Merge tag 'snapshot-start' into stable
[gnulib.git] / ChangeLog
1 <<<<<<< HEAD
2 =======
3 2012-03-24  Bruno Haible  <bruno@clisp.org>
4
5         gnulib-tool: Avoid unintended error output from 'cmp'.
6         * gnulib-tool (func_add_file, func_update_file, func_import): Use
7         "cmp -s", not "cmp > /dev/null".
8
9 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
10
11         gnulib-tool: fix imprecise comments w.r.t. an automake bug
12
13         It's not just Automake versions < 1.9b that creates an empty
14         pkgdatadir at installation time if pkgdata_DATA is specified
15         to empty; modern automake versions do this as well, at least
16         until automake 1.11.4 (not yet released at the moment of writing,
17         but soon to appear).  That behaviour was generally considered a
18         feature rather than a bug, at least until this discussion:
19         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
20
21         See also automake bugs #10997 and #11030.
22
23         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
24         reference to relevant automake bug numbers.
25         (func_emit_tests_Makefile_am): Likewise.
26
27 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
28
29         announce-gen: use Digest::SHA when possible
30         * build-aux/announce-gen: Use Digest::SHA when possible, falling
31         back to Digest::SHA1 if necessary.
32
33 2012-03-20  Jim Meyering  <meyering@redhat.com>
34
35         tests: avoid gcc warnings about argv vs. const initializers
36         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
37         warnings about discarding 'const' qualifier from pointer target type.
38         * tests/test-posix_spawn2.c (main): Likewise.
39
40 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
41
42         README-release: simplify slightly
43         * top/README-release: Run "git checkout master" only once.
44
45 2012-03-15  Mark Wielaard  <mark@klomp.org>
46
47         git-merge-changelog: add specific example on how to use with hg.
48         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
49
50 2012-03-18  Mark Wielaard  <mark@klomp.org>
51
52         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
53
54 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
55
56         git-version-gen: don't let "prefix" envvar cause trouble
57         * build-aux/git-version-gen (prefix): Initialize properly,
58         so as not to use a value specified via the environment.
59         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
60
61 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
62
63         regex: diagnose too-large repeat counts in EREs
64         Previously, the code did not diagnose the too-large repeat count
65         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
66         as if it were 'b\{1000000000}', which is unexpected.
67         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
68         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
69         is a reasonable one for this problem.  Another option would be to
70         create a new REG_OVERFLOW error for repeat counts that are too large.
71         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
72         count is too large, so that the caller can distinguish the two cases.
73         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
74         "Too large" return code, and that repeat counts are one example of this.
75
76 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
77
78         doc: some glibc x32 integer width issues
79         * doc/posix-headers/sys_types.texi (sys/types.h):
80         * doc/posix-headers/time.texi (time.h):
81         Mention that glibc x32 does not conform to POSIX in a couple of
82         areas related to integer widths.
83
84 2012-03-15  Bruno Haible  <bruno@clisp.org>
85
86         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
87         * lib/fma.c (VOLATILE): New macro.
88         (FUNC): Use it to work around a GCC compiler bug.
89
90 2012-03-13  Bruno Haible  <bruno@clisp.org>
91
92         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
93         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
94         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
95         REPLACE_HYPOTL to 1.
96         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
97
98 2012-03-13  Bruno Haible  <bruno@clisp.org>
99
100         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
101         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
102         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
103         REPLACE_REMAINDERL to 1.
104         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
105         bug.
106
107 2012-03-13  Bruno Haible  <bruno@clisp.org>
108
109         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
110         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
111         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
112         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
113         too big rounding errors.
114         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
115         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
116         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
117         (Depends-on): Update conditions.
118         * tests/test-sqrtl.c (my_ldexpl): New function.
119         (main): Add test of a particular value.
120         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
121
122 2012-03-13  Pádraig Brady  <P@draigBrady.com>
123
124         doc: Update timer_* platform portability notes.
125         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
126         that always return ENOSYS.
127         * doc/posix-functions/timer_delete.texi: Likewise.
128         * doc/posix-functions/timer_gettime.texi: Likewise.
129         * doc/posix-functions/timer_settime.texi: Likewise.
130
131 2012-03-13  Bruno Haible  <bruno@clisp.org>
132
133         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
134         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
135         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
136         REPLACE_CBRTL to 1.
137         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
138
139 2012-03-13  Bruno Haible  <bruno@clisp.org>
140
141         remainderl: Avoid compilation error on AIX >= 5.2.
142         * lib/math.in.h (remainderl): Undefine macro from the system header.
143
144 2012-03-13  Bruno Haible  <bruno@clisp.org>
145
146         Avoid compilation errors with MSVC option -fp:strict.
147         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
148         * lib/cbrtf.c: Likewise.
149         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
150
151 2012-03-12  Bruno Haible  <bruno@clisp.org>
152
153         uninorm: Don't crash in out-of-memory conditions.
154         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
155         gracefully.
156         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
157         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
158
159 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
160
161         quote: fix syntax-check
162         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
163         also exports quote_quoting_options.
164
165 2012-03-12  Simon Josefsson  <simon@josefsson.org>
166
167         Collapse list of copyright years to ranges.  See
168         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
169         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
170         build-aux/csharpexec.sh.in, build-aux/gnupload,
171         build-aux/install-reloc, build-aux/javacomp.sh.in,
172         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
173         build-aux/move-if-change, build-aux/reloc-ldflags,
174         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
175
176 2012-03-11  Bruno Haible  <bruno@clisp.org>
177
178         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
179         * m4/log2f-ieee.m4: New file.
180         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
181         whether log2f works with a minus zero argument. Replace it if not.
182         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
183         (Depends-on): Add log2-ieee.
184         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
185         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
186
187         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
188         * m4/log2-ieee.m4: New file.
189         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
190         whether log2 works with a minus zero argument. Replace it if not.
191         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
192         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
193         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
194
195         Tests for module 'log2l-ieee'.
196         * modules/log2l-ieee-tests: New file.
197         * tests/test-log2l-ieee.c: New file.
198
199         New module 'log2l-ieee'.
200         * modules/log2l-ieee: New file.
201
202         Tests for module 'log2-ieee'.
203         * modules/log2-ieee-tests: New file.
204         * tests/test-log2-ieee.c: New file.
205
206         New module 'log2-ieee'.
207         * modules/log2-ieee: New file.
208
209         Tests for module 'log2f-ieee'.
210         * modules/log2f-ieee-tests: New file.
211         * tests/test-log2f-ieee.c: New file.
212         * tests/test-log2-ieee.h: New file.
213
214         New module 'log2f-ieee'.
215         * modules/log2f-ieee: New file.
216
217 2012-03-11  Bruno Haible  <bruno@clisp.org>
218
219         Tests for module 'log2l'.
220         * modules/log2l-tests: New file.
221         * tests/test-log2l.c: New file.
222
223         New module 'log2l'.
224         * lib/math.in.h (log2l): New declaration.
225         * lib/log2l.c: New file.
226         * m4/log2l.m4: New file.
227         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
228         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
229         REPLACE_LOG2L.
230         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
231         REPLACE_LOG2L.
232         * modules/log2l: New file.
233         * tests/test-math-c++.cc: Check the declaration of log2l.
234         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
235         and OSF/1 problems.
236
237 2012-03-11  Bruno Haible  <bruno@clisp.org>
238
239         Tests for module 'log2f'.
240         * modules/log2f-tests: New file.
241         * tests/test-log2f.c: New file.
242
243         New module 'log2f'.
244         * lib/math.in.h (log2f): New declaration.
245         * lib/log2f.c: New file.
246         * m4/log2f.m4: New file.
247         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
248         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
249         REPLACE_LOG2F.
250         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
251         REPLACE_LOG2F.
252         * modules/log2f: New file.
253         * tests/test-math-c++.cc: Check the declaration of log2f.
254         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
255         and OSF/1 and Cygwin problems.
256
257 2012-03-11  Bruno Haible  <bruno@clisp.org>
258
259         Tests for module 'log2'.
260         * modules/log2-tests: New file.
261         * tests/test-log2.c: New file.
262         * tests/test-log2.h: New file.
263
264         New module 'log2'.
265         * lib/math.in.h (log2): New declaration.
266         * lib/log2.c: New file.
267         * m4/log2.m4: New file.
268         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
269         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
270         REPLACE_LOG2.
271         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
272         REPLACE_LOG2.
273         * modules/log2: New file.
274         * tests/test-math-c++.cc: Check the declaration of log2.
275         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
276         and OSF/1 and Cygwin problems.
277
278 2012-03-11  Bruno Haible  <bruno@clisp.org>
279
280         exp2* tests: More tests.
281         * tests/test-exp2.h (test_function): Test all integral arguments that
282         don't need to overflow or denormalized numbers.
283         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
284         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
285         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
286
287 2012-03-10  Bruno Haible  <bruno@clisp.org>
288
289         log1pl-ieee: Work around test failure on AIX 7.1.
290         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
291
292         log1pl-ieee: Work around test failure on IRIX 6.5.
293         * m4/log1pl-ieee.m4: New file.
294         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
295         test whether log1pl works with a minus zero argument. Replace it if
296         not.
297         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
298         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
299         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
300         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
301         (Depends-on): Update conditions.
302         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
303         m4/signbit.m4.
304         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
305         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
306
307         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
308         * m4/log1pf-ieee.m4: New file.
309         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
310         test whether log1pf works with a minus zero argument. Replace it if
311         not.
312         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
313         m4/signbit.m4.
314         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
315         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
316
317         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
318         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
319         (configure.ac): Require gl_FUNC_LOG1PF.
320
321         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
322         * m4/log1p-ieee.m4: New file.
323         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
324         whether log1p works with a minus zero argument. Replace it if not.
325         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
326         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
327         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
328         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
329         (Depends-on): Update conditions.
330         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
331         m4/signbit.m4.
332         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
333         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
334
335         Tests for module 'log1pl-ieee'.
336         * modules/log1pl-ieee-tests: New file.
337         * tests/test-log1pl-ieee.c: New file.
338
339         New module 'log1pl-ieee'.
340         * modules/log1pl-ieee: New file.
341
342         Tests for module 'log1p-ieee'.
343         * modules/log1p-ieee-tests: New file.
344         * tests/test-log1p-ieee.c: New file.
345
346         New module 'log1p-ieee'.
347         * modules/log1p-ieee: New file.
348
349         Tests for module 'log1pf-ieee'.
350         * modules/log1pf-ieee-tests: New file.
351         * tests/test-log1pf-ieee.c: New file.
352         * tests/test-log1p-ieee.h: New file.
353
354         New module 'log1pf-ieee'.
355         * modules/log1pf-ieee: New file.
356
357 2012-03-10  Bruno Haible  <bruno@clisp.org>
358
359         Tests for module 'log1pl'.
360         * modules/log1pl-tests: New file.
361         * tests/test-log1pl.c: New file.
362
363         New module 'log1pl'.
364         * lib/math.in.h (log1pl): New declaration.
365         * lib/log1pl.c: New file.
366         * m4/log1pl.m4: New file.
367         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
368         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
369         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
370         * modules/log1pl: New file.
371         * tests/test-math-c++.cc: Check the declaration of log1pl.
372         * doc/posix-functions/log1pl.texi: Mention the new module.
373
374 2012-03-10  Bruno Haible  <bruno@clisp.org>
375
376         Tests for module 'log1pf'.
377         * modules/log1pf-tests: New file.
378         * tests/test-log1pf.c: New file.
379
380         New module 'log1pf'.
381         * lib/math.in.h (log1pf): New declaration.
382         * lib/log1pf.c: New file.
383         * m4/log1pf.m4: New file.
384         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
385         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
386         REPLACE_LOG1PF.
387         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
388         REPLACE_LOG1PF.
389         * modules/log1pf: New file.
390         * tests/test-math-c++.cc: Check the declaration of log1pf.
391         * doc/posix-functions/log1pf.texi: Mention the new module.
392
393 2012-03-10  Bruno Haible  <bruno@clisp.org>
394
395         log1p tests: More tests.
396         * tests/test-log1p.h: New file.
397         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
398         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
399         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
400         (main): Invoke test_function.
401
402         log1p: Provide replacement for Minix and MSVC.
403         * lib/math.in.h (log1p): New declaration.
404         * lib/log1p.c: New file.
405         * m4/log1p.m4: New file.
406         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
407         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
408         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
409         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
410         (Depends-on): Add math, isnand, log, round.
411         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
412         HAVE_LOG1P is 0.
413         * tests/test-math-c++.cc: Check the declaration of log1p.
414         * doc/posix-functions/log1p.texi: Mention the replacement.
415
416 2012-03-10  Bruno Haible  <bruno@clisp.org>
417
418         math tests: Small simplification.
419         * tests/test-exp.h (test_function): Use the same err_bound for
420         'double' on platforms with sizeof (long double) == sizeof (double)
421         than on platforms with sizeof (long double) > sizeof (double).
422         * tests/test-exp2.h (test_function): Likewise.
423         * tests/test-expm1.h (test_function): Likewise.
424         * tests/test-log.h (test_function): Likewise.
425
426 2012-03-10  Bruno Haible  <bruno@clisp.org>
427
428         Fix some comments.
429         * lib/expl.c: Fix an ambiguous comment.
430         * lib/expm1.c: Likewise.
431         * lib/expm1l.c: Likewise.
432         * lib/exp2.c: Likewise.
433         * lib/exp2l.c: Likewise.
434
435 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
436
437         regex: allow inclusion of <regex.h> before <limits.h>
438         Without this patch, portable programs had to include <limits.h> before
439         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
440         I ran into this problem with a test version of GNU grep on Solaris 8.
441         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
442         This is done conditionally so that this change can be merged
443         back to glibc.
444         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
445         using the included regex.
446
447         fts: depend on fdopendir
448         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
449         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
450         problem was introduced when fdopendir was split out.
451
452 2012-03-10  Bruno Haible  <bruno@clisp.org>
453
454         Remove unused variables.
455         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
456         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
457
458 2012-03-10  Bruno Haible  <bruno@clisp.org>
459
460         isnanf-nolibm: Fix last commit.
461         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
462
463         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
464         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
465
466 2012-03-10  Bruno Haible  <bruno@clisp.org>
467
468         logf-ieee: Work around test failure on NetBSD 5.1.
469         * m4/logf-ieee.m4: New file.
470         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
471         whether logf works with a negative argument. Replace it if not.
472         * lib/logf.c (logf): For negative arguments, return NaN.
473         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
474         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
475         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
476
477         logf-ieee: Work around test failure on Solaris 9.
478         * modules/logf-ieee (Depends-on): Add log-ieee.
479         (configure.ac): Require gl_FUNC_LOGF.
480
481         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
482         * m4/log-ieee.m4: New file.
483         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
484         log works with a negative argument. Replace it if not.
485         * lib/log.c (log): For negative arguments, return NaN.
486         * modules/log-ieee (Files): Add m4/log-ieee.m4.
487         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
488         * doc/posix-functions/log.texi: Mention the log-ieee module.
489
490         Tests for module 'logl-ieee'.
491         * modules/logl-ieee-tests: New file.
492         * tests/test-logl-ieee.c: New file.
493
494         New module 'logl-ieee'.
495         * modules/logl-ieee: New file.
496
497         Tests for module 'log-ieee'.
498         * modules/log-ieee-tests: New file.
499         * tests/test-log-ieee.c: New file.
500
501         New module 'log-ieee'.
502         * modules/log-ieee: New file.
503
504         Tests for module 'logf-ieee'.
505         * modules/logf-ieee-tests: New file.
506         * tests/test-logf-ieee.c: New file.
507         * tests/test-log-ieee.h: New file.
508
509         New module 'logf-ieee'.
510         * modules/logf-ieee: New file.
511
512 2012-03-10  Bruno Haible  <bruno@clisp.org>
513
514         log: Fix bug introduced on 2012-03-09.
515         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
516
517 2012-03-10  Pádraig Brady  <P@draigBrady.com>
518
519         timer-time: link explicitly with pthreads on glibc
520         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
521         to support static linking, when newer glibc is
522         detected, as that contains pthread emulation of
523         POSIX timer functions where required.
524         * modules/timer-time: Depend on threadlib to
525         pull in the appropriate library to link.
526
527 2012-03-10  Bruno Haible  <bruno@clisp.org>
528
529         log* tests: More tests.
530         * tests/test-log.h: New file.
531         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
532         (main): Invoke test_function.
533         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
534         (main): Invoke test_function.
535         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
536         (main): Invoke test_function.
537         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
538         tests/randomd.c.
539         (Makefile.am): Add randomd.c to test_log_SOURCES.
540         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
541         tests/randomf.c.
542         (Makefile.am): Add randomf.c to test_logf_SOURCES.
543         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
544         tests/randoml.c.
545         (Depends-on): Add 'float'.
546         (Makefile.am): Add randoml.c to test_logl_SOURCES.
547
548 2012-03-09  Bruno Haible  <bruno@clisp.org>
549
550         logl: Work around OSF/1 5.1 bug.
551         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
552         * lib/logl.c (logl): If logf exists, use it and provide just the
553         workaround.
554         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
555         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
556         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
557         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
558         * modules/logl (configure.ac): Consider REPLACE_LOGL.
559         (Depends-on): Update conditions.
560         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
561
562 2012-03-09  Bruno Haible  <bruno@clisp.org>
563
564         logf: Work around OSF/1 5.1 bug.
565         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
566         * lib/logf.c (logf): If logf exists, use it and provide just the
567         workaround.
568         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
569         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
570         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
571         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
572         * modules/logf (configure.ac): Consider REPLACE_LOGF.
573         (Depends-on): Update conditions.
574         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
575
576 2012-03-09  Bruno Haible  <bruno@clisp.org>
577
578         log: Work around OSF/1 5.1 bug.
579         * lib/math.in.h (log): New declaration.
580         * lib/log.c: New file.
581         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
582         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
583         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
584         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
585         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
586         * modules/log (Files): Add lib/log.c.
587         (Depends-on): Add math.
588         (configure.ac): If REPLACE_LOG is 1, compile an override.
589         * tests/test-math-c++.cc: Check the declaration of log.
590         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
591
592 2012-03-09  Jim Meyering  <meyering@redhat.com>
593
594         readtokens.c: adjust wording in a comment
595         * lib/readtokens.c: Insert omitted "that" in a comment.
596
597 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
598
599         modechange: add notations +40, 00440, etc.
600         * lib/modechange.c (mode_compile): Support new notations
601         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
602
603 2012-03-08  Bruno Haible  <bruno@clisp.org>
604
605         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
606         * m4/exp2l-ieee.m4: New file.
607         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
608         test whether exp2l works with a NaN argument and with a negative
609         infinity argument. Replace it if not.
610         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
611         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
612         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
613         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
614         (Depends-on): Update conditions.
615         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
616         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
617         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
618
619         Tests for module 'exp2l-ieee'.
620         * modules/exp2l-ieee-tests: New file.
621         * tests/test-exp2l-ieee.c: New file.
622
623         New module 'exp2l-ieee'.
624         * modules/exp2l-ieee: New file.
625
626         Tests for module 'exp2-ieee'.
627         * modules/exp2-ieee-tests: New file.
628         * tests/test-exp2-ieee.c: New file.
629
630         New module 'exp2-ieee'.
631         * modules/exp2-ieee: New file.
632
633         Tests for module 'exp2f-ieee'.
634         * modules/exp2f-ieee-tests: New file.
635         * tests/test-exp2f-ieee.c: New file.
636         * tests/test-exp2-ieee.h: New file.
637
638         New module 'exp2f-ieee'.
639         * modules/exp2f-ieee: New file.
640
641 2012-03-08  Bruno Haible  <bruno@clisp.org>
642
643         Tests for module 'exp2l'.
644         * modules/exp2l-tests: New file.
645         * tests/test-exp2l.c: New file.
646
647         New module 'exp2l'.
648         * lib/math.in.h (exp2l): New declaration.
649         * lib/exp2l.c: New file.
650         * lib/expl-table.c: New file, extracted from lib/expl.c.
651         * lib/expl.c (gl_expl_table): New declaration.
652         (expl): Remove expl_table. Update reference.
653         * m4/exp2l.m4: New file.
654         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
655         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
656         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
657         * modules/exp2l: New file.
658         * modules/expl (Files): Add lib/expl-table.c.
659         (configure.ac): Compile also expl-table.c.
660         * tests/test-math-c++.cc: Check the declaration of exp2l.
661         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
662         problem.
663
664 2012-03-08  Bruno Haible  <bruno@clisp.org>
665
666         Tests for module 'exp2f'.
667         * modules/exp2f-tests: New file.
668         * tests/test-exp2f.c: New file.
669
670         New module 'exp2f'.
671         * lib/math.in.h (exp2f): New declaration.
672         * lib/exp2f.c: New file.
673         * m4/exp2f.m4: New file.
674         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
675         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
676         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
677         * modules/exp2f: New file.
678         * tests/test-math-c++.cc: Check the declaration of exp2f.
679         * doc/posix-functions/exp2f.texi: Mention the new module and the
680         IRIX problem.
681
682 2012-03-08  Bruno Haible  <bruno@clisp.org>
683
684         Tests for module 'exp2'.
685         * modules/exp2-tests: New file.
686         * tests/test-exp2.c: New file.
687         * tests/test-exp2.h: New file.
688
689         New module 'exp2'.
690         * lib/math.in.h (exp2): New declaration.
691         * lib/exp2.c: New file.
692         * m4/exp2.m4: New file.
693         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
694         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
695         REPLACE_EXP2.
696         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
697         REPLACE_EXP2.
698         * modules/exp2: New file.
699         * tests/test-math-c++.cc: Check the declaration of exp2.
700         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
701         and OpenBSD problems.
702
703 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
704
705         savedir: fix comment typo
706         * lib/savedir.c (savedirstream): Fix typo in comment.
707
708 2012-03-08  Bruno Haible  <bruno@clisp.org>
709
710         test-readtokens.c: use const; remove unwarranted cast
711         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
712
713 2012-03-08  Bruno Haible  <bruno@clisp.org>
714
715         fmal: Avoid compilation error on AIX.
716         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
717         AIX 5.2..7.1.
718
719 2012-03-08  Bruno Haible  <bruno@clisp.org>
720
721         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
722         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
723         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
724         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
725         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
726         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
727         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
728
729 2012-03-08  Bruno Haible  <bruno@clisp.org>
730
731         remainderf: Override buggy system function on IRIX 6.5.
732         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
733         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
734         when it exists.
735         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
736
737 2012-03-08  Jim Meyering  <meyering@redhat.com>
738
739         test-readtokens.c: avoid const-related compilation warnings
740         * tests/test-readtokens.c: Avoid const-related compilation warnings.
741
742 2012-03-07  Jim Meyering  <meyering@redhat.com>
743             Bruno Haible  <bruno@clisp.org>
744
745         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
746         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
747         tests/randomd.c.
748         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
749         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
750         tests/randoml.c.
751         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
752
753 2012-03-07  Bruno Haible  <bruno@clisp.org>
754
755         expm1l: Avoid compilation error on AIX.
756         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
757         AIX 5.2..7.1.
758
759 2012-03-07  Bruno Haible  <bruno@clisp.org>
760
761         expm1l: Don't override undeclared system function on IRIX 6.5.
762         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
763         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
764         it exists. Set HAVE_DECL_EXPM1L.
765         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
766         HAVE_EXPM1L.
767         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
768         HAVE_EXPM1L.
769         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
770
771 2012-03-07  Bruno Haible  <bruno@clisp.org>
772
773         remainderl: Don't override undeclared system function on IRIX 6.5.
774         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
775         HAVE_REMAINDERL.
776         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
777         declared when it exists. Set HAVE_DECL_REMAINDERL.
778         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
779         not HAVE_REMAINDERL.
780         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
781         HAVE_REMAINDERL.
782         * doc/posix-functions/remainderl.texi: Mention missing declaration
783         problem.
784
785 2012-03-07  Bruno Haible  <bruno@clisp.org>
786
787         rintf: Don't override undeclared system function on IRIX 6.5.
788         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
789         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
790         exists. Set HAVE_DECL_RINTF.
791         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
792         HAVE_RINTF.
793         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
794         HAVE_RINTF.
795         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
796
797 2012-03-07  Bruno Haible  <bruno@clisp.org>
798
799         roundl: Avoid compilation error on AIX.
800         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
801         AIX 5.2..7.1.
802
803 2012-03-07  Bruno Haible  <bruno@clisp.org>
804
805         roundl: Don't override undeclared system function on IRIX 6.5.
806         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
807         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
808         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
809         * modules/roundl (configure.ac): For replacement code, test
810         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
811         (Depends-on): Update conditions.
812         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
813
814 2012-03-07  Bruno Haible  <bruno@clisp.org>
815
816         roundf: Don't override undeclared system function on IRIX 6.5.
817         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
818         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
819         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
820         * modules/roundf (configure.ac): For replacement code, test
821         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
822         (Depends-on): Update conditions.
823         * modules/roundf-ieee (Depends-on): Update conditions.
824         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
825
826 2012-03-07  Bruno Haible  <bruno@clisp.org>
827
828         round: Don't override undeclared system function on IRIX 6.5.
829         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
830         argument.
831         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
832         also when it is not declared. Set HAVE_ROUND. For replacement code,
833         test HAVE_ROUND, not HAVE_DECL_ROUND.
834         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
835         not HAVE_DECL_ROUND.
836         (Depends-on): Update conditions.
837         * modules/round-ieee (Depends-on): Update conditions.
838         * doc/posix-functions/round.texi: Mention the IRIX problem.
839
840 2012-03-07  Bruno Haible  <bruno@clisp.org>
841
842         copysignf: Don't override undeclared system function on IRIX 6.5.
843         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
844         HAVE_COPYSIGNF.
845         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
846         declared when it exists. Set HAVE_DECL_COPYSIGNF.
847         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
848         not HAVE_COPYSIGNF.
849         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
850         HAVE_COPYSIGNF.
851         * doc/posix-functions/copysignf.texi: Mention missing declaration
852         problem.
853
854 2012-03-07  Jim Meyering  <meyering@redhat.com>
855
856         readtokens: add tests
857         * modules/readtokens-tests: New file.
858         * tests/test-readtokens.c: New file.
859
860 2012-03-07  Jim Meyering  <meyering@redhat.com>
861
862         quotearg: the module must now include quote.h
863         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
864         So must the module.
865         * modules/quotearg (Files): Add quote.h.
866
867 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
868
869         readtokens: avoid core dumps with unusual calling patterns
870         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
871         * lib/readtokens.c: Include limits.h.
872         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
873         (readtoken): Don't cache the delimiters; the cache code was buggy
874         if !delim && saved_delim, or if the new n_delim differs from the old.
875         Also, it wasn't thread-safe.
876
877 2012-03-07  Bruno Haible  <bruno@clisp.org>
878
879         quote: Adhere to common module description layout.
880         * modules/quote (Makefile.am): Add back empty section.
881
882 2012-03-06  Akim Demaille  <demaille@gostai.com>
883
884         quote: fuse into quotearg
885         This patch is made for the benefit of Bison.
886         quote does not leave the choice of the quoting style to the user.
887         quoting_style provides poor customizability, yet quoting_options,
888         which is very rich, is hidden inside quotearg.c.  So in order to
889         allow quote customization, move its implementation to quotearg.c.
890         * lib/quote.c: Remove.
891         * modules/quote: Adjust.
892         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
893         warning: provide all the members of literal structs.
894         (quote_quoting_options): New.
895         (quote, quote_n): Import implementation from quote.c.
896         * lib/quote.h: Import the comments from quote.c.
897         (quote_quoting_options): New.
898
899 2012-03-06  Bruno Haible  <bruno@clisp.org>
900
901         Tests for module 'expm1l-ieee'.
902         * modules/expm1l-ieee-tests: New file.
903         * tests/test-expm1l-ieee.c: New file.
904
905         New module 'expm1l-ieee'.
906         * modules/expm1l-ieee: New file.
907
908         Tests for module 'expm1f-ieee'.
909         * modules/expm1f-ieee-tests: New file.
910         * tests/test-expm1f-ieee.c: New file.
911
912         New module 'expm1f-ieee'.
913         * modules/expm1f-ieee: New file.
914
915         Tests for module 'expm1-ieee'.
916         * modules/expm1-ieee-tests: New file.
917         * tests/test-expm1-ieee.c: New file.
918         * tests/test-expm1-ieee.h: New file.
919
920         New module 'expm1-ieee'.
921         * modules/expm1-ieee: New file.
922         * m4/expm1-ieee.m4: New file.
923         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
924         whether expm1 works with a minus zero argument. Replace it if not.
925         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
926         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
927         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
928         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
929         (Depends-on): Update conditions.
930         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
931         AIX problem.
932
933 2012-03-06  Bruno Haible  <bruno@clisp.org>
934
935         Work around expm1f bug on IRIX 6.5.
936         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
937         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
938         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
939         not work.
940         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
941         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
942         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
943         (Depends-on): Update conditions.
944         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
945
946 2012-03-06  Bruno Haible  <bruno@clisp.org>
947
948         Tests for module 'expm1l'.
949         * modules/expm1l-tests: New file.
950         * tests/test-expm1l.c: New file.
951
952         New module 'expm1l'.
953         * lib/math.in.h (expm1l): New declaration.
954         * lib/expm1l.c: New file.
955         * m4/expm1l.m4: New file.
956         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
957         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
958         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
959         * modules/expm1l: New file.
960         * tests/test-math-c++.cc: Check the declaration of expm1l.
961         * doc/posix-functions/expm1l.texi: Mention the new module.
962
963 2012-03-06  Bruno Haible  <bruno@clisp.org>
964
965         Tests for module 'expm1f'.
966         * modules/expm1f-tests: New file.
967         * tests/test-expm1f.c: New file.
968
969         New module 'expm1f'.
970         * lib/math.in.h (expm1f): New declaration.
971         * lib/expm1f.c: New file.
972         * m4/expm1f.m4: New file.
973         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
974         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
975         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
976         * modules/expm1f: New file.
977         * tests/test-math-c++.cc: Check the declaration of expm1f.
978         * doc/posix-functions/expm1f.texi: Mention the new module.
979
980 2012-03-06  Bruno Haible  <bruno@clisp.org>
981
982         Tests for module 'expm1'.
983         * modules/expm1-tests: New file.
984         * tests/test-expm1.c: New file.
985         * tests/test-expm1.h: New file.
986
987         New module 'expm1'.
988         * lib/math.in.h (expm1): New declaration.
989         * lib/expm1.c: New file.
990         * m4/expm1.m4: New file.
991         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
992         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
993         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
994         * modules/expm1: New file.
995         * tests/test-math-c++.cc: Check the declaration of expm1.
996         * doc/posix-functions/expm1.texi: Mention the new module.
997
998 2012-03-06  Bruno Haible  <bruno@clisp.org>
999
1000         math: Ensure declarations of math functions.
1001         * modules/acosf (Depends-on): Add 'extensions'.
1002         * modules/asinf (Depends-on): Likewise.
1003         * modules/atan2f (Depends-on): Likewise.
1004         * modules/atanf (Depends-on): Likewise.
1005         * modules/cbrt (Depends-on): Likewise.
1006         * modules/cbrtf (Depends-on): Likewise.
1007         * modules/cbrtl (Depends-on): Likewise.
1008         * modules/copysignf (Depends-on): Likewise.
1009         * modules/copysignl (Depends-on): Likewise.
1010         * modules/cosf (Depends-on): Likewise.
1011         * modules/coshf (Depends-on): Likewise.
1012         * modules/expf (Depends-on): Likewise.
1013         * modules/fabsf (Depends-on): Likewise.
1014         * modules/fabsl (Depends-on): Likewise.
1015         * modules/fmaf (Depends-on): Likewise.
1016         * modules/fmal (Depends-on): Likewise.
1017         * modules/fmodf (Depends-on): Likewise.
1018         * modules/fmodl (Depends-on): Likewise.
1019         * modules/frexpf (Depends-on): Likewise.
1020         * modules/frexpl (Depends-on): Likewise.
1021         * modules/hypot (Depends-on): Likewise.
1022         * modules/hypotf (Depends-on): Likewise.
1023         * modules/hypotl (Depends-on): Likewise.
1024         * modules/ldexpf (Depends-on): Likewise.
1025         * modules/ldexpl (Depends-on): Likewise.
1026         * modules/log10f (Depends-on): Likewise.
1027         * modules/log10l (Depends-on): Likewise.
1028         * modules/log1p (Depends-on): Likewise.
1029         * modules/logb (Depends-on): Likewise.
1030         * modules/logf (Depends-on): Likewise.
1031         * modules/modff (Depends-on): Likewise.
1032         * modules/modfl (Depends-on): Likewise.
1033         * modules/powf (Depends-on): Likewise.
1034         * modules/remainderf (Depends-on): Likewise.
1035         * modules/remainderl (Depends-on): Likewise.
1036         * modules/rintf (Depends-on): Likewise.
1037         * modules/rintl (Depends-on): Likewise.
1038         * modules/sinf (Depends-on): Likewise.
1039         * modules/sinhf (Depends-on): Likewise.
1040         * modules/sqrtf (Depends-on): Likewise.
1041         * modules/tanf (Depends-on): Likewise.
1042         * modules/tanhf (Depends-on): Likewise.
1043         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
1044         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
1045         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
1046         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
1047         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
1048         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
1049         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
1050         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
1051         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
1052         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
1053         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
1054         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
1055         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
1056         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
1057         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
1058         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
1059         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
1060         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
1061         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
1062         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
1063         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
1064         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
1065         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
1066         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
1067         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
1068         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
1069         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
1070         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
1071         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
1072         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
1073         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
1074         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
1075         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
1076         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
1077         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
1078         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
1079         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
1080         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
1081         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
1082         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
1083         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
1084
1085 2012-03-06  Bruno Haible  <bruno@clisp.org>
1086
1087         math: Update module names in warnings.
1088         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
1089         tanl): Use specific module name in warn-on-use warning.
1090
1091 2012-03-06  Bruno Haible  <bruno@clisp.org>
1092
1093         expl: Simplify computation.
1094         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
1095
1096 2012-03-05  Bruno Haible  <bruno@clisp.org>
1097
1098         exp* tests: More tests.
1099         * tests/test-exp.h: New file.
1100         * tests/test-exp.c: Include <float.h> and test-exp.h.
1101         (main): Invoke test_function.
1102         * tests/test-expf.c: Include <float.h> and test-exp.h.
1103         (main): Invoke test_function.
1104         * tests/test-expl.c: Include <float.h> and test-exp.h.
1105         (main): Invoke test_function.
1106         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
1107         (Makefile.am): Add randomd.c to test_exp_SOURCES.
1108         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
1109         (Makefile.am): Add randomf.c to test_expf_SOURCES.
1110         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
1111         (Depends-on): Add 'float'.
1112         (Makefile.am): Add randoml.c to test_expl_SOURCES.
1113
1114         expl: Fix precision of computed result.
1115         * lib/expl.c: Completely rewritten.
1116         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
1117         (Maintainer): Add me.
1118         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
1119
1120 2012-03-05  Bruno Haible  <bruno@clisp.org>
1121
1122         cbrt* tests: More tests.
1123         * tests/test-cbrt.h: New file.
1124         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
1125         (main): Invoke test_function.
1126         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
1127         (main): Invoke test_function.
1128         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
1129         (main): Invoke test_function.
1130         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
1131         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
1132         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
1133         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
1134         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
1135         (Depends-on): Add 'float'.
1136         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
1137
1138 2012-03-05  Bruno Haible  <bruno@clisp.org>
1139
1140         hypot* tests: More tests.
1141         * tests/test-hypot.h: New file, partially extracted from
1142         tests/test-hypotl.c.
1143         * tests/test-hypot.c: Include test-hypot.h.
1144         (main): Invoke test_function.
1145         * tests/test-hypotf.c: Include test-hypot.h.
1146         (main): Invoke test_function.
1147         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
1148         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
1149         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
1150         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
1151         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
1152         tests/randomf.c.
1153         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
1154         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
1155         tests/randoml.c.
1156         (Depends-on): Add 'fpucw', 'float'.
1157         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
1158
1159 2012-03-05  Bruno Haible  <bruno@clisp.org>
1160
1161         fpucw: Doc about FreeBSD.
1162         * lib/fpucw.h: Mention FreeBSD in comments.
1163
1164 2012-03-04  Bruno Haible  <bruno@clisp.org>
1165
1166         sqrt* tests: More tests.
1167         * tests/test-sqrt.h: New file.
1168         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
1169         (main): Invoke test_function.
1170         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
1171         (main): Invoke test_function.
1172         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
1173         (main): Invoke test_function.
1174         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
1175         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
1176         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
1177         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
1178         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
1179         (Depends-on): Add 'float'.
1180         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
1181
1182 2012-03-04  Bruno Haible  <bruno@clisp.org>
1183
1184         remainder* tests: More tests.
1185         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
1186         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
1187         (main): Invoke test_function.
1188         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
1189         (main): Invoke test_function.
1190         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
1191         (main): Invoke test_function.
1192         * modules/remainder-tests (Files): Add tests/test-remainder.h,
1193         tests/randomd.c.
1194         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
1195         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
1196         tests/randomf.c.
1197         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
1198         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
1199         tests/randoml.c.
1200         (Depends-on): Add 'float'.
1201         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
1202
1203 2012-03-04  Bruno Haible  <bruno@clisp.org>
1204
1205         remainder, remainderf, remainderl: Fix computation for large quotients.
1206         * lib/remainder.c: Completely rewritten.
1207         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
1208         USE_FLOAT.
1209         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
1210         USE_LONG_DOUBLE.
1211         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
1212         isnand, isinf. Remove round, fma.
1213         * modules/remainderf (Files): Add lib/remainder.c.
1214         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
1215         Remove roundf, fmaf.
1216         * modules/remainderl (Files): Add lib/remainder.c.
1217         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
1218         isinf. Remove roundl, fmal.
1219         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
1220         REMAINDER_LIBM.
1221         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
1222         REMAINDERF_LIBM.
1223         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
1224         REMAINDERL_LIBM.
1225
1226 2012-03-04  Bruno Haible  <bruno@clisp.org>
1227
1228         fmod* tests: More tests.
1229         * tests/test-fmod.h (my_ldexp): New function.
1230         (test_function): Reduce amount of random numbers to test. Add tests
1231         of very large quotients x / y.
1232         * tests/test-fmod.c (MAX_EXP): New macro.
1233         * tests/test-fmodf.c (MAX_EXP): Likewise.
1234         * tests/test-fmodl.c (MAX_EXP): Likewise.
1235
1236 2012-03-04  Bruno Haible  <bruno@clisp.org>
1237
1238         fmod, fmodl: Fix computation for large quotients x / y.
1239         * lib/fmod.c: Completely rewritten.
1240         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
1241         USE_LONG_DOUBLE.
1242         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
1243         isnand. Remove fma.
1244         * modules/fmodl (Files): Add lib/fmod.c.
1245         (Depends-on): Add float, isfinite, signbit, fabsl,
1246         frexpl, ldexpl, isnanl. Remove fma.
1247         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
1248         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
1249
1250 2012-03-03  Bruno Haible  <bruno@clisp.org>
1251
1252         fmod* tests: More tests.
1253         * tests/test-fmod.h: New file.
1254         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
1255         (main): Invoke test_function.
1256         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
1257         (main): Invoke test_function.
1258         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
1259         (main): Invoke test_function.
1260         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
1261         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
1262         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
1263         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
1264         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
1265         (Depends-on): Add 'float'.
1266         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
1267
1268 2012-03-03  Bruno Haible  <bruno@clisp.org>
1269
1270         rint* tests: More tests.
1271         * tests/test-rint.h: New file, partially extracted from
1272         tests/test-rintl.c.
1273         * tests/test-rint.c: Include test-rint.h.
1274         (main): Invoke test_function.
1275         * tests/test-rintf.c: Include test-rint.h.
1276         (main): Invoke test_function.
1277         * tests/test-rintl.c: Include test-rint.h.
1278         (main): Invoke test_function.
1279         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
1280         (Makefile.am): Add randomd.c to test_rint_SOURCES.
1281         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
1282         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
1283         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
1284         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
1285
1286 2012-03-03  Bruno Haible  <bruno@clisp.org>
1287
1288         modf* tests: More tests.
1289         * tests/test-modf.h: New file.
1290         * tests/test-modf.c: Include <float.h> and test-modf.h.
1291         (main): Invoke test_function.
1292         * tests/test-modff.c: Include <float.h> and test-modf.h.
1293         (main): Invoke test_function.
1294         * tests/test-modfl.c: Include <float.h> and test-modf.h.
1295         (main): Invoke test_function.
1296         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
1297         (Makefile.am): Add randomd.c to test_modf_SOURCES.
1298         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
1299         (Makefile.am): Add randomf.c to test_modff_SOURCES.
1300         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
1301         (Depends-on): Add 'float'.
1302         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
1303
1304 2012-03-03  Bruno Haible  <bruno@clisp.org>
1305
1306         fabs* tests: More tests.
1307         * tests/test-fabs.h: New file, partially extracted from
1308         tests/test-fabsl.c.
1309         * tests/test-fabs.c (RANDOM): New macro.
1310         * tests/test-fabsf.c (RANDOM): New macro.
1311         * tests/test-fabsl.c (RANDOM): New macro.
1312         * modules/fabs-tests (Files): Add tests/randomd.c.
1313         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
1314         * modules/fabsf-tests (Files): Add tests/randomf.c.
1315         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
1316         * modules/fabsl-tests (Files): Add tests/randoml.c.
1317         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
1318
1319 2012-03-03  Bruno Haible  <bruno@clisp.org>
1320
1321         ldexp* tests: More tests.
1322         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
1323         * tests/test-ldexp.c (RANDOM): New macro.
1324         * tests/test-ldexpf.c (RANDOM): New macro.
1325         * tests/test-ldexpl.c (RANDOM): New macro.
1326         * modules/ldexp-tests (Files): Add tests/randomd.c.
1327         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
1328         * modules/ldexpf-tests (Files): Add tests/randomf.c.
1329         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
1330         * modules/ldexpl-tests (Files): Add tests/randoml.c.
1331         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
1332
1333 2012-03-03  Bruno Haible  <bruno@clisp.org>
1334
1335         frexp* tests: More tests.
1336         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
1337         * tests/test-frexp.c (RANDOM): New macro.
1338         * tests/test-frexpf.c (RANDOM): New macro.
1339         * tests/test-frexpl.c (RANDOM): New macro.
1340         * modules/frexp-tests (Files): Add tests/randomd.c.
1341         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
1342         * modules/frexpf-tests (Files): Add tests/randomf.c.
1343         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
1344         * modules/frexpl-tests (Files): Add tests/randoml.c.
1345         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
1346
1347 2012-03-03  Bruno Haible  <bruno@clisp.org>
1348
1349         Support for pseudo-random numbers in tests.
1350         * tests/randomf.c: New file.
1351         * tests/randomd.c: New file.
1352         * tests/randoml.c: New file.
1353         * tests/macros.h (randomf, randomd, randoml): New declarations.
1354
1355 2012-03-03  Bruno Haible  <bruno@clisp.org>
1356
1357         frexp* tests: Refactor.
1358         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
1359         * tests/test-frexp.c: Include and use it.
1360         * tests/test-frexpf.c: Likewise.
1361         * tests/test-frexpl.c: Likewise.
1362         * modules/frexp-tests (Files): Add tests/test-frexp.h.
1363         * modules/frexpf-tests (Files): Likewise.
1364         * modules/frexpl-tests (Files): Likewise.
1365
1366 2012-03-02  Jim Meyering  <meyering@redhat.com>
1367
1368         maint: don't specify XZ_OPT=-9ev in dist-related rule
1369         Using xz's -9 option is warranted only if you have a very large
1370         tarball (see xz's documentation for the sizes vs. presets), and
1371         requires 64MiB of memory at decompression time.
1372         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
1373         Automake's default of just "-e" is fine.  Override on a
1374         per-package basis by setting XZ_OPT e.g., in cfg.mk.
1375
1376 2012-03-01  Eric Blake  <eblake@redhat.com>
1377
1378         maint.mk: allow announcement for non-gnulib project
1379         * maint.mk (announcement): Skip gnulib version if not used.
1380
1381 2012-03-01  Jim Meyering  <meyering@redhat.com>
1382
1383         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
1384         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
1385         envvar settings cannot interfere.  Otherwise, setting envvars like
1386         prohibit=foo require=bar, etc. would cause spurious test failures.
1387
1388 2012-03-01  Eric Blake  <eblake@redhat.com>
1389
1390         maint.mk: add per-line exclusions to prohibitions
1391         * maint.mk (_sc_search_regexp): Add $exclude parameter.
1392         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
1393         (sc_const_long_option): Use it.
1394
1395 2012-03-01  Bruno Haible  <bruno@clisp.org>
1396
1397         Tests for module 'expl-ieee'.
1398         * modules/expl-ieee-tests: New file.
1399         * tests/test-expl-ieee.c: New file.
1400
1401         New module 'expl-ieee'.
1402         * modules/expl-ieee: New file.
1403
1404         Tests for module 'exp-ieee'.
1405         * modules/exp-ieee-tests: New file.
1406         * tests/test-exp-ieee.c: New file.
1407
1408         New module 'exp-ieee'.
1409         * modules/exp-ieee: New file.
1410
1411         Tests for module 'expf-ieee'.
1412         * modules/expf-ieee-tests: New file.
1413         * tests/test-expf-ieee.c: New file.
1414         * tests/test-exp-ieee.h: New file.
1415
1416         New module 'expf-ieee'.
1417         * modules/expf-ieee: New file.
1418
1419 2012-02-29  Bruno Haible  <bruno@clisp.org>
1420
1421         cbrtl-ieee: Work around test failure on IRIX 6.5.
1422         * m4/cbrtl-ieee.m4: New file.
1423         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
1424         test whether cbrtl works with a minus zero argument. Replace it if not.
1425         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
1426         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
1427         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
1428         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
1429         (Depends-on): Update conditions.
1430         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
1431         m4/signbit.m4.
1432         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
1433         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
1434         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
1435
1436         Tests for module 'cbrtl-ieee'.
1437         * modules/cbrtl-ieee-tests: New file.
1438         * tests/test-cbrtl-ieee.c: New file.
1439
1440         New module 'cbrtl-ieee'.
1441         * modules/cbrtl-ieee: New file.
1442
1443         Tests for module 'cbrt-ieee'.
1444         * modules/cbrt-ieee-tests: New file.
1445         * tests/test-cbrt-ieee.c: New file.
1446
1447         New module 'cbrt-ieee'.
1448         * modules/cbrt-ieee: New file.
1449
1450         Tests for module 'cbrtf-ieee'.
1451         * modules/cbrtf-ieee-tests: New file.
1452         * tests/test-cbrtf-ieee.c: New file.
1453         * tests/test-cbrt-ieee.h: New file.
1454
1455         New module 'cbrtf-ieee'.
1456         * modules/cbrtf-ieee: New file.
1457
1458 2012-02-29  Bruno Haible  <bruno@clisp.org>
1459
1460         cbrtf: Work around bug in IRIX 6.5 system function.
1461         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
1462         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
1463         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
1464         work.
1465         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
1466         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
1467         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
1468         (Depends-on): Update conditions.
1469         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
1470
1471 2012-02-29  Bruno Haible  <bruno@clisp.org>
1472
1473         Tests for module 'cbrtl'.
1474         * modules/cbrtl-tests: New file.
1475         * tests/test-cbrtl.c: New file.
1476
1477         New module 'cbrtl'.
1478         * lib/math.in.h (cbrtl): New declaration.
1479         * lib/cbrtl.c: New file.
1480         * m4/cbrtl.m4: New file.
1481         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
1482         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
1483         HAVE_DECL_CBRTL.
1484         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
1485         HAVE_DECL_CBRTL.
1486         * modules/cbrtl: New file.
1487         * tests/test-math-c++.cc: Check the declaration of cbrtl.
1488         * doc/posix-functions/cbrtl.texi: Mention the new module.
1489
1490 2012-02-29  Bruno Haible  <bruno@clisp.org>
1491
1492         Tests for module 'cbrtf'.
1493         * modules/cbrtf-tests: New file.
1494         * tests/test-cbrtf.c: New file.
1495
1496         New module 'cbrtf'.
1497         * lib/math.in.h (cbrtf): New declaration.
1498         * lib/cbrtf.c: New file.
1499         * m4/cbrtf.m4: New file.
1500         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
1501         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
1502         HAVE_DECL_CBRTF.
1503         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
1504         HAVE_DECL_CBRTF.
1505         * modules/cbrtf: New file.
1506         * tests/test-math-c++.cc: Check the declaration of cbrtf.
1507         * doc/posix-functions/cbrtf.texi: Mention the new module.
1508
1509 2012-02-29  Bruno Haible  <bruno@clisp.org>
1510
1511         cbrt: Provide replacement on MSVC and Minix.
1512         * lib/math.in.h (cbrt): New declaration.
1513         * lib/cbrt.c: New file.
1514         * m4/cbrt.m4: New file.
1515         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
1516         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
1517         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
1518         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
1519         (Depends-on): Add dependencies.
1520         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
1521         * tests/test-math-c++.cc: Check the declaration of cbrt.
1522         * doc/posix-functions/cbrt.texi: Mention that the module provides a
1523         replacement.
1524
1525 2012-02-29  Bruno Haible  <bruno@clisp.org>
1526
1527         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
1528         * m4/hypotl-ieee.m4: New file.
1529         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
1530         test whether hypotl works with mixed NaN and Infinity arguments.
1531         Replace it if not.
1532         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
1533         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
1534         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
1535         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
1536         (Depends-on): Update conditions.
1537         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
1538         (Depends-on): Add hypot-ieee.
1539         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
1540         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
1541
1542         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
1543         * m4/hypotf-ieee.m4: New file.
1544         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
1545         test whether hypotf works with mixed NaN and Infinity arguments.
1546         Replace it if not.
1547         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
1548         (Depends-on): Add hypot-ieee.
1549         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
1550         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
1551
1552         hypot-ieee: Work around test failure on OSF/1 and native Windows.
1553         * lib/math.in.h (hypot): New declaration.
1554         * lib/hypot.c: New file.
1555         * m4/hypot-ieee.m4: New file.
1556         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
1557         whether hypot works with mixed NaN and Infinity arguments. Replace it
1558         if not.
1559         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
1560         REPLACE_HYPOT.
1561         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
1562         * modules/hypot (Files): Add lib/hypot.c.
1563         (Depends-on): Add dependencies.
1564         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
1565         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
1566         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
1567         * tests/test-math-c++.cc: Check the declaration of hypot.
1568         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
1569
1570         Tests for module 'hypotl-ieee'.
1571         * modules/hypotl-ieee-tests: New file.
1572         * tests/test-hypotl-ieee.c: New file.
1573
1574         New module 'hypotl-ieee'.
1575         * modules/hypotl-ieee: New file.
1576
1577         Tests for module 'hypot-ieee'.
1578         * modules/hypot-ieee-tests: New file.
1579         * tests/test-hypot-ieee.c: New file.
1580
1581         New module 'hypot-ieee'.
1582         * modules/hypot-ieee: New file.
1583
1584         Tests for module 'hypotf-ieee'.
1585         * modules/hypotf-ieee-tests: New file.
1586         * tests/test-hypotf-ieee.c: New file.
1587         * tests/test-hypot-ieee.h: New file.
1588
1589         New module 'hypotf-ieee'.
1590         * modules/hypotf-ieee: New file.
1591
1592 2012-02-29  Bruno Haible  <bruno@clisp.org>
1593
1594         Remove unused variables.
1595         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
1596         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
1597         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
1598         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
1599
1600 2012-02-29  Eric Blake  <eblake@redhat.com>
1601
1602         termios: fix pid_t always, not just for tcgetsid
1603         * doc/posix-headers/termios.texi (termios.h): Mention problem.
1604         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
1605         just when building tcgetsid.
1606
1607 2012-02-29  Bruno Haible  <bruno@clisp.org>
1608
1609         Tests for module 'hypotl'.
1610         * modules/hypotl-tests: New file.
1611         * tests/test-hypotl.c: New file.
1612
1613         New module 'hypotl'.
1614         * lib/math.in.h (hypotl): New declaration.
1615         * lib/hypotl.c: New file.
1616         * m4/hypotl.m4: New file.
1617         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
1618         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
1619         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
1620         * modules/hypotl: New file.
1621         * tests/test-math-c++.cc: Check the hypotl declaration.
1622         * doc/posix-functions/hypotl.texi: Mention the new module.
1623
1624 2012-02-29  Eric Blake  <eblake@redhat.com>
1625
1626         tcgetsid: fix cygwin header bug
1627         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
1628
1629         docs: update cygwin progress
1630         * doc/posix-functions/llround.texi (llround): Added in cygwin
1631         1.7.8.
1632         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
1633         * doc/glibc-functions/program_invocation_name.texi
1634         (program_invocation_name): Likewise.
1635         * doc/glibc-functions/program_invocation_short_name.texi
1636         (program_invocation_short_name): Likewise.
1637         * doc/glibc-functions/madvise.texi (madvise): Likewise.
1638         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
1639         Likewise.
1640         * doc/posix-functions/pthread_spin_destroy.texi
1641         (pthread_spin_destroy): Added in cygwin 1.7.10.
1642         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
1643         Likewise.
1644         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
1645         Likewise.
1646         * doc/posix-functions/pthread_spin_trylock.texi
1647         (pthread_spin_trylock): Likewise.
1648         * doc/posix-functions/pthread_spin_unlock.texi
1649         (pthread_spin_unlock): Likewise.
1650         * doc/posix-functions/pthread_setschedprio.texi
1651         (pthread_setschedprio): Likewise.
1652         * doc/posix-functions/pthread_attr_getstack.texi
1653         (pthread_attr_getstack): Likewise.
1654         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
1655         (pthread_attr_getstackaddr): Likewise.
1656         * doc/glibc-functions/pthread_getattr_np.texi
1657         (pthread_getattr_np): Likewise.
1658         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
1659         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
1660         * doc/posix-functions/clock_settime.texi (clock_settime):
1661         Likewise.
1662         * doc/posix-functions/pthread_attr_getguardsize.texi
1663         (pthread_attr_getguardsize): Likewise.
1664         * doc/posix-functions/pthread_attr_setguardsize.texi
1665         (pthread_attr_setguardsize): Likewise.
1666         * doc/posix-functions/pthread_attr_setstack.texi
1667         (pthread_attr_setstack): Likewise.
1668         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
1669         (pthread_attr_setstackaddr): Likewise.
1670         * doc/posix-functions/clock_getcpuclockid.texi
1671         (clock_getcpuclockid): Likewise.
1672         * doc/posix-functions/pthread_getcpuclockid.texi
1673         (pthread_getcpuclockid): Likewise.
1674         * doc/glibc-functions/error.texi (error): Likewise.
1675         * doc/glibc-functions/error_at_line.texi (error_at_line):
1676         Likewise.
1677         * doc/glibc-functions/error_message_count.texi
1678         (error_message_count): Likewise.
1679         * doc/glibc-functions/error_one_per_line.texi
1680         (error_one_per_line): Likewise.
1681         * doc/glibc-functions/error_print_progname.texi
1682         (error_print_progname): Likewise.
1683         * doc/posix-functions/pthread_condattr_getclock.texi
1684         (pthread_condattr_getclock): Likewise.
1685         * doc/posix-functions/pthread_condattr_setclock.texi
1686         (pthread_condattr_setclock): Likewise.
1687         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
1688         Likewise.
1689         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
1690         * doc/glibc-functions/getpt.texi (getpt): Likewise.
1691         * doc/glibc-functions/get_current_dir_name.texi
1692         (get_current_dir_name): Likewise.
1693         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
1694         Likewise.
1695         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
1696         wrong return type.
1697         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
1698         1.7.11.
1699
1700 2012-02-29  Bruno Haible  <bruno@clisp.org>
1701
1702         Tests for module 'hypotf'.
1703         * modules/hypotf-tests: New file.
1704         * tests/test-hypotf.c: New file.
1705
1706         New module 'hypotf'.
1707         * lib/math.in.h (hypotf): New declaration.
1708         * lib/hypotf.c: New file.
1709         * m4/hypotf.m4: New file.
1710         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
1711         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
1712         REPLACE_HYPOTF.
1713         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
1714         REPLACE_HYPOTF.
1715         * modules/hypotf: New file.
1716         * tests/test-math-c++.cc: Check the hypotf declaration.
1717         * doc/posix-functions/hypotf.texi: Mention the new module.
1718
1719         hypot: Prepare for hypotf module.
1720         * m4/hypot.m4: New file.
1721         * modules/hypot (Files): Add m4/hypot.m4.
1722         (configure.ac): Invoke gl_FUNC_HYPOT.
1723
1724 2012-02-29  Bruno Haible  <bruno@clisp.org>
1725
1726         hypot tests: More tests.
1727         * tests/test-hypot.c: Include <float.h>.
1728         (main): Add tests about overflow and underflow.
1729
1730 2012-02-29  Bruno Haible  <bruno@clisp.org>
1731
1732         math code: Add comments.
1733         * lib/acosl.c: Add comment about related glibc source files.
1734         * lib/asinl.c: Likewise.
1735         * lib/atanl.c: Likewise.
1736         * lib/expl.c: Likewise.
1737         * lib/logl.c: Likewise.
1738         * lib/sincosl.c: Likewise.
1739         * lib/sinl.c: Likewise.
1740         * lib/tanl.c: Likewise.
1741         * lib/trigl.c: Likewise.
1742         * lib/cosl.c: Likewise. Fix comments.
1743
1744 2012-02-28  Bruno Haible  <bruno@clisp.org>
1745
1746         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
1747         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
1748         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
1749         HUGE_VALL are defined.
1750         (numeric_equald): Renamed from numeric_equal.
1751         (numeric_equalf, numeric_equall): New functions.
1752         (main): Check also HUGE_VALF, HUGE_VALL.
1753         * modules/math-tests (Files): Add tests/macros.h.
1754         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
1755         HUGE_VALL.
1756
1757 2012-02-28  Bruno Haible  <bruno@clisp.org>
1758
1759         doc: Move ISO C11 feature notes into POSIX chapters.
1760         * doc/posix-functions/aligned_alloc.texi: Renamed from
1761         doc/glibc-functions/aligned_alloc.texi.
1762         * doc/posix-functions/quick_exit.texi: Renamed from
1763         doc/glibc-functions/quick_exit.texi.
1764         * doc/posix-headers/uchar.texi: Renamed from
1765         doc/glibc-headers/uchar.texi.
1766         * doc/posix-functions/c16rtomb.texi: Renamed from
1767         doc/glibc-functions/c16rtomb.texi.
1768         * doc/posix-functions/c32rtomb.texi: Renamed from
1769         doc/glibc-functions/c32rtomb.texi.
1770         * doc/posix-functions/mbrtoc16.texi: Renamed from
1771         doc/glibc-functions/mbrtoc16.texi.
1772         * doc/posix-functions/mbrtoc32.texi: Renamed from
1773         doc/glibc-functions/mbrtoc32.texi.
1774         * doc/gnulib.texi: Update.
1775         (Glibc uchar.h): Remove section.
1776         Suggested by Eric Blake.
1777
1778 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
1779
1780         stdnoreturn: port to MSVC better
1781         MSVC standard headers use __declspec(noreturn), so #define noreturn
1782         to empty on that platform.  Reported by Bruno Haible in
1783         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
1784         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
1785         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
1786
1787 2012-02-28  Bruno Haible  <bruno@clisp.org>
1788
1789         doc: Mention new glibc headers and functions.
1790         * doc/glibc-headers/uchar.texi: New file.
1791         * doc/glibc-functions/aligned_alloc.texi: New file.
1792         * doc/glibc-functions/c16rtomb.texi: New file.
1793         * doc/glibc-functions/c32rtomb.texi: New file.
1794         * doc/glibc-functions/clock_adjtime.texi: New file.
1795         * doc/glibc-functions/fanotify_init.texi: New file.
1796         * doc/glibc-functions/fanotify_mark.texi: New file.
1797         * doc/glibc-functions/inet6_opt_append.texi: New file.
1798         * doc/glibc-functions/inet6_opt_find.texi: New file.
1799         * doc/glibc-functions/inet6_opt_finish.texi: New file.
1800         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
1801         * doc/glibc-functions/inet6_opt_init.texi: New file.
1802         * doc/glibc-functions/inet6_opt_next.texi: New file.
1803         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
1804         * doc/glibc-functions/inet6_rth_add.texi: New file.
1805         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
1806         * doc/glibc-functions/inet6_rth_init.texi: New file.
1807         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
1808         * doc/glibc-functions/inet6_rth_segments.texi: New file.
1809         * doc/glibc-functions/inet6_rth_space.texi: New file.
1810         * doc/glibc-functions/login.texi: New file.
1811         * doc/glibc-functions/mbrtoc16.texi: New file.
1812         * doc/glibc-functions/mbrtoc32.texi: New file.
1813         * doc/glibc-functions/name_to_handle_at.texi: New file.
1814         * doc/glibc-functions/ntp_gettimex.texi: New file.
1815         * doc/glibc-functions/open_by_handle_at.texi: New file.
1816         * doc/glibc-functions/prlimit.texi: New file.
1817         * doc/glibc-functions/process_vm_readv.texi: New file.
1818         * doc/glibc-functions/process_vm_writev.texi: New file.
1819         * doc/glibc-functions/recvmmsg.texi: New file.
1820         * doc/glibc-functions/scandirat.texi: New file.
1821         * doc/glibc-functions/sendmmsg.texi: New file.
1822         * doc/glibc-functions/setns.texi: New file.
1823         * doc/glibc-functions/timespec_get.texi: New file.
1824         * doc/gnulib.texi: Include them.
1825         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
1826         sections.
1827         Reported by Eric Blake.
1828
1829 2012-02-28  Bruno Haible  <bruno@clisp.org>
1830
1831         Avoid compilation errors with MSVC option -fp:strict.
1832         * lib/floor.c: Use MSVC specific pragma fenv_access.
1833         * lib/ceil.c: Likewise.
1834         * lib/trunc.c: Likewise.
1835         * lib/round.c: Likewise.
1836         * lib/rint.c: Likewise.
1837         * lib/fma.c: Likewise.
1838         * lib/integer_length.c: Likewise.
1839         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
1840         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
1841         * tests/test-floor2.c: Likewise.
1842         * tests/test-floorf2.c: Likewise.
1843         * tests/test-ceil2.c: Likewise.
1844         * tests/test-ceilf2.c: Likewise.
1845         * tests/test-trunc2.c: Likewise.
1846         * tests/test-truncf2.c: Likewise.
1847         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1848
1849 2012-02-27  Bruno Haible  <bruno@clisp.org>
1850
1851         Tests for module 'sqrtl-ieee'.
1852         * modules/sqrtl-ieee-tests: New file.
1853         * tests/test-sqrtl-ieee.c: New file.
1854
1855         New module 'sqrtl-ieee'.
1856         * modules/sqrtl-ieee: New file.
1857
1858         Tests for module 'sqrt-ieee'.
1859         * modules/sqrt-ieee-tests: New file.
1860         * tests/test-sqrt-ieee.c: New file.
1861
1862         New module 'sqrt-ieee'.
1863         * modules/sqrt-ieee: New file.
1864
1865         Tests for module 'sqrtf-ieee'.
1866         * modules/sqrtf-ieee-tests: New file.
1867         * tests/test-sqrtf-ieee.c: New file.
1868         * tests/test-sqrt-ieee.h: New file.
1869
1870         New module 'sqrtf-ieee'.
1871         * modules/sqrtf-ieee: New file.
1872
1873 2012-02-27  Bruno Haible  <bruno@clisp.org>
1874
1875         remainderl-ieee: Work around test failure on OSF/1.
1876         * m4/remainderl-ieee.m4: New file.
1877         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
1878         present, test whether remainderl works with a zero second argument.
1879         Replace it if not.
1880         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
1881         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
1882         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
1883         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
1884         (Depends-on): Update conditions.
1885         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
1886         (Depends-on): Add remainder-ieee.
1887         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
1888         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
1889         module.
1890
1891         remainderf-ieee: Work around test failure on OSF/1.
1892         * m4/remainderf-ieee.m4: New file.
1893         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
1894         present, test whether remainderf works with a zero second argument.
1895         Replace it if not.
1896         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
1897         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
1898         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
1899         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
1900         (Depends-on): Update conditions.
1901         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
1902         (Depends-on): Add remainder-ieee.
1903         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
1904         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
1905         module.
1906
1907         remainder-ieee: Work around test failure on OSF/1.
1908         * m4/remainder-ieee.m4: New file.
1909         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
1910         present, test whether remainder works with a zero second argument.
1911         Replace it if not.
1912         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
1913         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
1914         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
1915         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
1916         (Depends-on): Update dependencies.
1917         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
1918         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
1919         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
1920
1921         Tests for module 'remainderl-ieee'.
1922         * modules/remainderl-ieee-tests: New file.
1923         * tests/test-remainderl-ieee.c: New file.
1924
1925         New module 'remainderl-ieee'.
1926         * modules/remainderl-ieee: New file.
1927
1928         Tests for module 'remainder-ieee'.
1929         * modules/remainder-ieee-tests: New file.
1930         * tests/test-remainder-ieee.c: New file.
1931
1932         New module 'remainder-ieee'.
1933         * modules/remainder-ieee: New file.
1934
1935         Tests for module 'remainderf-ieee'.
1936         * modules/remainderf-ieee-tests: New file.
1937         * tests/test-remainderf-ieee.c: New file.
1938         * tests/test-remainder-ieee.h: New file.
1939
1940         New module 'remainderf-ieee'.
1941         * modules/remainderf-ieee: New file.
1942
1943 2012-02-27  Bruno Haible  <bruno@clisp.org>
1944
1945         modff, modfl: Fix configure syntax error.
1946         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
1947         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
1948
1949 2012-02-27  Bruno Haible  <bruno@clisp.org>
1950
1951         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
1952         * m4/fmodl-ieee.m4: New file.
1953         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
1954         whether fmodl works with zero arguments. Replace it if not.
1955         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
1956         (Depends-on): Add fmod-ieee.
1957         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
1958         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
1959
1960         fmodf-ieee: Work around test failure on OSF/1.
1961         * m4/fmodf-ieee.m4: New file.
1962         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
1963         whether fmodf works with zero arguments. Replace it if not.
1964         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
1965         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
1966         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
1967         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
1968         (Depends-on): Update dependencies.
1969         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
1970         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
1971         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
1972
1973         fmodf-ieee: Work around test failure on MSVC 9.
1974         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
1975         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
1976
1977         fmod-ieee: Work around test failures on OSF/1, mingw.
1978         * m4/fmod-ieee.m4: New file.
1979         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
1980         whether fmod works with zero arguments. Replace it if not.
1981         * lib/math.in.h (fmod): New declaration.
1982         * lib/fmod.c: New file.
1983         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
1984         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
1985         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
1986         * modules/fmod (Files): Add lib/fmod.c.
1987         (Depends-on): Add math, isinf, trunc, fma.
1988         (configure.ac): Arrange to compile lib/fmod.c if needed.
1989         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
1990         m4/signbit.m4.
1991         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
1992         * tests/test-math-c++.cc: Check the declaration of fmod.
1993         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
1994
1995         fmodl-ieee: Fix test failures.
1996         * lib/fmodl.c (fmodl): Treat Inf specially.
1997         * modules/fmodl (Depends-on): Add isinf.
1998
1999         Tests for module 'fmodl-ieee'.
2000         * modules/fmodl-ieee-tests: New file.
2001         * tests/test-fmodl-ieee.c: New file.
2002
2003         New module 'fmodl-ieee'.
2004         * modules/fmodl-ieee: New file.
2005
2006         Tests for module 'fmod-ieee'.
2007         * modules/fmod-ieee-tests: New file.
2008         * tests/test-fmod-ieee.c: New file.
2009
2010         New module 'fmod-ieee'.
2011         * modules/fmod-ieee: New file.
2012
2013         Tests for module 'fmodf-ieee'.
2014         * modules/fmodf-ieee-tests: New file.
2015         * tests/test-fmodf-ieee.c: New file.
2016         * tests/test-fmod-ieee.h: New file.
2017
2018         New module 'fmodf-ieee'.
2019         * modules/fmodf-ieee: New file.
2020
2021 2012-02-27  Bruno Haible  <bruno@clisp.org>
2022
2023         Tests for module 'rintl-ieee'.
2024         * modules/rintl-ieee-tests: New file.
2025         * tests/test-rintl-ieee.c: New file.
2026
2027         New module 'rintl-ieee'.
2028         * modules/rintl-ieee: New file.
2029
2030         Tests for module 'rint-ieee'.
2031         * modules/rint-ieee-tests: New file.
2032         * tests/test-rint-ieee.c: New file.
2033
2034         New module 'rint-ieee'.
2035         * modules/rint-ieee: New file.
2036
2037         Tests for module 'rintf-ieee'.
2038         * modules/rintf-ieee-tests: New file.
2039         * tests/test-rintf-ieee.c: New file.
2040         * tests/test-rint-ieee.h: New file.
2041
2042         New module 'rintf-ieee'.
2043         * modules/rintf-ieee: New file.
2044
2045 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
2046
2047         regex: re_search etc. should return -2 when memory exhausted
2048         This bug was uncovered when testing 'grep'.  Without the fix,
2049         re_search and friends return -1 when memory is exhausted, but -1
2050         means no match, and this causes grep to falsely report no-match
2051         instead of memory-exhaustion.  See
2052         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
2053         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
2054         trouble; this can occur if re_search_internal ran out of memory.
2055
2056 2012-02-26  Bruno Haible  <bruno@clisp.org>
2057
2058         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
2059         * m4/modfl-ieee.m4: New file.
2060         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
2061         whether modfl works with Inf. Replace it if not.
2062         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
2063         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
2064         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
2065         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
2066         (Depends-on): Update dependencies.
2067         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
2068         m4/signbit.m4.
2069         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
2070         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
2071
2072         modfl-ieee: Fix dependencies.
2073         * modules/modfl-ieee (Depends-on): Add modf-ieee.
2074
2075         modfl-ieee: Fix test failures.
2076         * lib/modfl.c (modfl): Treat NaN and Inf specially.
2077         * modules/modfl (Depends-on): Add isfinite, isinf.
2078
2079         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
2080         * m4/modff-ieee.m4: New file.
2081         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
2082         whether modff works with NaN and Inf. Replace it if not.
2083         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
2084         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
2085         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
2086         * modules/modff (configure.ac): Consider REPLACE_MODFF.
2087         (Depends-on): Update dependencies.
2088         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
2089         m4/signbit.m4.
2090         (Depends-on): Add modf-ieee.
2091         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
2092         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
2093
2094         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
2095         * m4/modf-ieee.m4: New file.
2096         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
2097         whether modf works with NaN and Inf. Replace it if not.
2098         * lib/math.in.h (modf): New declaration.
2099         * lib/modf.c: New file.
2100         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
2101         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
2102         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
2103         * modules/modf (Files): Add lib/modf.c.
2104         (Depends-on): Add math, isfinite, trunc, isinf.
2105         (configure.ac): Addrange to compile lib/modf.c if needed.
2106         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
2107         m4/signbit.m4.
2108         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
2109         * tests/test-math-c++.cc: Check the declaration of modf.
2110         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
2111
2112         Tests for module 'modfl-ieee'.
2113         * modules/modfl-ieee-tests: New file.
2114         * tests/test-modfl-ieee.c: New file.
2115
2116         New module 'modfl-ieee'.
2117         * modules/modfl-ieee: New file.
2118
2119         Tests for module 'modf-ieee'.
2120         * modules/modf-ieee-tests: New file.
2121         * tests/test-modf-ieee.c: New file.
2122
2123         New module 'modf-ieee'.
2124         * modules/modf-ieee: New file.
2125
2126         Tests for module 'modff-ieee'.
2127         * modules/modff-ieee-tests: New file.
2128         * tests/test-modff-ieee.c: New file.
2129         * tests/test-modf-ieee.h: New file.
2130
2131         New module 'modff-ieee'.
2132         * modules/modff-ieee: New file.
2133
2134 2012-02-26  Bruno Haible  <bruno@clisp.org>
2135
2136         Tests for module 'fabsl-ieee'.
2137         * modules/fabsl-ieee-tests: New file.
2138         * tests/test-fabsl-ieee.c: New file.
2139
2140         New module 'fabsl-ieee'.
2141         * modules/fabsl-ieee: New file.
2142
2143         Tests for module 'fabs-ieee'.
2144         * modules/fabs-ieee-tests: New file.
2145         * tests/test-fabs-ieee.c: New file.
2146
2147         New module 'fabs-ieee'.
2148         * modules/fabs-ieee: New file.
2149
2150         Tests for module 'fabsf-ieee'.
2151         * modules/fabsf-ieee-tests: New file.
2152         * tests/test-fabsf-ieee.c: New file.
2153         * tests/test-fabs-ieee.h: New file.
2154
2155         New module 'fabsf-ieee'.
2156         * modules/fabsf-ieee: New file.
2157
2158 2012-02-26  Bruno Haible  <bruno@clisp.org>
2159
2160         Tests for module 'fmal-ieee'.
2161         * modules/fmal-ieee-tests: New file.
2162         * tests/test-fmal-ieee.c: New file.
2163
2164         New module 'fmal-ieee'.
2165         * modules/fmal-ieee: New file.
2166
2167         Tests for module 'fma-ieee'.
2168         * modules/fma-ieee-tests: New file.
2169         * tests/test-fma-ieee.c: New file.
2170
2171         New module 'fma-ieee'.
2172         * modules/fma-ieee: New file.
2173
2174         Tests for module 'fmaf-ieee'.
2175         * modules/fmaf-ieee-tests: New file.
2176         * tests/test-fmaf-ieee.c: New file.
2177         * tests/test-fma-ieee.h: New file.
2178
2179         New module 'fmaf-ieee'.
2180         * modules/fmaf-ieee: New file.
2181
2182 2012-02-26  Bruno Haible  <bruno@clisp.org>
2183
2184         Tests for module 'ldexpl-ieee'.
2185         * modules/ldexpl-ieee-tests: New file.
2186         * tests/test-ldexpl-ieee.c: New file.
2187
2188         New module 'ldexpl-ieee'.
2189         * modules/ldexpl-ieee: New file.
2190
2191         Tests for module 'ldexp-ieee'.
2192         * modules/ldexp-ieee-tests: New file.
2193         * tests/test-ldexp-ieee.c: New file.
2194
2195         New module 'ldexp-ieee'.
2196         * modules/ldexp-ieee: New file.
2197
2198         Tests for module 'ldexpf-ieee'.
2199         * modules/ldexpf-ieee-tests: New file.
2200         * tests/test-ldexpf-ieee.c: New file.
2201         * tests/test-ldexp-ieee.h: New file.
2202
2203         New module 'ldexpf-ieee'.
2204         * modules/ldexpf-ieee: New file.
2205
2206 2012-02-26  Bruno Haible  <bruno@clisp.org>
2207
2208         Refactor frexp*-ieee tests.
2209         * tests/test-frexp-ieee.h: New file.
2210         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
2211         (main): Just call test_function.
2212         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
2213         (main): Just call test_function.
2214         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
2215         (main): Just call test_function.
2216         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
2217         * modules/frexp-ieee-tests (Files): Likewise.
2218         * modules/frexpl-ieee-tests (Files): Likewise.
2219
2220         Tests for module 'frexpl-ieee'.
2221         * modules/frexpl-ieee-tests: New file.
2222         * tests/test-frexpl-ieee.c: New file.
2223
2224         New module 'frexpl-ieee'.
2225         * modules/frexpl-ieee: New file.
2226
2227         Tests for module 'frexp-ieee'.
2228         * modules/frexp-ieee-tests: New file.
2229         * tests/test-frexp-ieee.c: New file.
2230
2231         New module 'frexp-ieee'.
2232         * modules/frexp-ieee: New file.
2233
2234         Tests for module 'frexpf-ieee'.
2235         * modules/frexpf-ieee-tests: New file.
2236         * tests/test-frexpf-ieee.c: New file.
2237
2238         New module 'frexpf-ieee'.
2239         * modules/frexpf-ieee: New file.
2240
2241 2012-02-26  Bruno Haible  <bruno@clisp.org>
2242
2243         roundl-ieee tests: More tests.
2244         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2245         (main): Add tests for [MX] shaded specification in POSIX.
2246         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2247         (Depends-on): Add isnanl-nolibm.
2248
2249         round-ieee tests: More tests.
2250         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2251         (main): Add tests for [MX] shaded specification in POSIX.
2252         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2253         (Depends-on): Add isnand-nolibm.
2254
2255         roundf-ieee tests: More tests.
2256         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2257         (main): Add tests for [MX] shaded specification in POSIX.
2258         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2259         (Depends-on): Add isnanf-nolibm.
2260
2261         truncl-ieee tests: More tests.
2262         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2263         (main): Add tests for [MX] shaded specification in POSIX.
2264         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2265         (Depends-on): Add isnanl-nolibm.
2266
2267         trunc-ieee tests: More tests.
2268         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2269         (main): Add tests for [MX] shaded specification in POSIX.
2270         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2271         (Depends-on): Add isnand-nolibm.
2272
2273         truncf-ieee tests: More tests.
2274         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2275         (main): Add tests for [MX] shaded specification in POSIX.
2276         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2277         (Depends-on): Add isnanf-nolibm.
2278
2279         ceill-ieee tests: More tests.
2280         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2281         (main): Add tests for [MX] shaded specification in POSIX.
2282         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2283         (Depends-on): Add isnanl-nolibm.
2284
2285         ceil-ieee tests: More tests.
2286         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2287         (main): Add tests for [MX] shaded specification in POSIX.
2288         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2289         (Depends-on): Add isnand-nolibm.
2290
2291         ceilf-ieee tests: More tests.
2292         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2293         (main): Add tests for [MX] shaded specification in POSIX.
2294         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2295         (Depends-on): Add isnanf-nolibm.
2296
2297         floorl-ieee tests: More tests.
2298         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2299         (main): Add tests for [MX] shaded specification in POSIX.
2300         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2301         (Depends-on): Add isnanl-nolibm.
2302
2303         floor-ieee tests: More tests.
2304         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2305         (main): Add tests for [MX] shaded specification in POSIX.
2306         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2307         (Depends-on): Add isnand-nolibm.
2308
2309         floorf-ieee tests: More tests.
2310         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2311         (main): Add tests for [MX] shaded specification in POSIX.
2312         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2313         (Depends-on): Add isnanf-nolibm.
2314
2315 2012-02-26  Bruno Haible  <bruno@clisp.org>
2316
2317         fpieee: More comments.
2318         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
2319
2320 2012-02-25  Bruno Haible  <bruno@clisp.org>
2321
2322         Tests for module 'log10l'.
2323         * modules/log10l-tests: New file.
2324         * tests/test-log10l.c: New file.
2325         * tests/test-math-c++.cc: Check the declaration of log10l.
2326
2327         New module 'log10l'.
2328         * lib/math.in.h (log10l): New declaration.
2329         * lib/log10l.c: New file.
2330         * m4/log10l.m4: New file.
2331         * modules/log10l: New file.
2332         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
2333         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
2334         HAVE_DECL_LOG10L.
2335         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
2336         HAVE_DECL_LOG10L.
2337         * doc/posix-functions/log10l.texi: Mention the new module.
2338
2339 2012-02-25  Bruno Haible  <bruno@clisp.org>
2340
2341         fmodl, remainder*: Avoid wrong results due to rounding errors.
2342         * lib/fmodl.c (fmodl): Correct the result if it is not within the
2343         expected bounds.
2344         * lib/remainderf.c (remainderf): Likewise.
2345         * lib/remainder.c (remainder): Likewise.
2346         * lib/remainderl.c (remainderl): Likewise.
2347
2348 2012-02-25  Bruno Haible  <bruno@clisp.org>
2349
2350         Tests for module 'remainderl'.
2351         * modules/remainderl-tests: New file.
2352         * tests/test-remainderl.c: New file.
2353         * tests/test-math-c++.cc: Check the declaration of remainderl.
2354
2355         New module 'remainderl'.
2356         * lib/math.in.h (remainderl): New declaration.
2357         * lib/remainderl.c: New file.
2358         * m4/remainderl.m4: New file.
2359         * modules/remainderl: New file.
2360         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
2361         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
2362         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
2363         HAVE_REMAINDERL.
2364         * doc/posix-functions/remainderl.texi: Mention the new module.
2365
2366 2012-02-25  Bruno Haible  <bruno@clisp.org>
2367
2368         Tests for module 'remainderf'.
2369         * modules/remainderf-tests: New file.
2370         * tests/test-remainderf.c: New file.
2371         * tests/test-math-c++.cc: Check the declaration of remainderf.
2372
2373         New module 'remainderf'.
2374         * lib/math.in.h (remainderf): New declaration.
2375         * lib/remainderf.c: New file.
2376         * m4/remainderf.m4: New file.
2377         * modules/remainderf: New file.
2378         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
2379         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
2380         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
2381         HAVE_REMAINDERF.
2382         * doc/posix-functions/remainderf.texi: Mention the new module.
2383
2384 2012-02-25  Bruno Haible  <bruno@clisp.org>
2385
2386         remainder: Support for MSVC.
2387         * lib/math.in.h (remainder): New declaration.
2388         * lib/remainder.c: New file.
2389         * m4/remainder.m4: New file.
2390         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
2391         (Depends-on): Add math, round, fma.
2392         (configure.ac): Use results of gl_FUNC_REMAINDER.
2393         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
2394         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
2395         HAVE_DECL_REMAINDER.
2396         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
2397         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
2398         * tests/test-math-c++.cc: Check the declaration of remainder.
2399         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
2400         problems are fixed.
2401
2402 2012-02-25  Bruno Haible  <bruno@clisp.org>
2403
2404         Tests for module 'fmodl'.
2405         * modules/fmodl-tests: New file.
2406         * tests/test-fmodl.c: New file.
2407         * tests/test-math-c++.cc: Check the declaration of fmodl.
2408
2409         New module 'fmodl'.
2410         * lib/math.in.h (fmodl): New declaration.
2411         * lib/fmodl.c: New file.
2412         * m4/fmodl.m4: New file.
2413         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
2414         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
2415         REPLACE_FMODL.
2416         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
2417         REPLACE_FMODL.
2418         * modules/fmodl: New file.
2419         * doc/posix-functions/fmodl.texi: Mention the new module.
2420
2421 2012-02-25  Bruno Haible  <bruno@clisp.org>
2422
2423         Tests for module 'modfl'.
2424         * modules/modfl-tests: New file.
2425         * tests/test-modfl.c: New file.
2426         * tests/test-math-c++.cc: Check the declaration of modfl.
2427
2428         New module 'modfl'.
2429         * lib/math.in.h (modfl): New declaration.
2430         * lib/modfl.c: New file.
2431         * m4/modfl.m4: New file.
2432         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
2433         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
2434         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
2435         * modules/modfl: New file.
2436         * doc/posix-functions/modfl.texi: Mention the new module.
2437
2438 2012-02-25  Bruno Haible  <bruno@clisp.org>
2439
2440         Tests for module 'fabsl'.
2441         * modules/fabsl-tests: New file.
2442         * tests/test-fabsl.c: New file.
2443         * tests/test-math-c++.cc: Check the declaration of fabsl.
2444
2445         New module 'fabsl'.
2446         * lib/math.in.h (fabsl): New declaration.
2447         * lib/fabsl.c: New file.
2448         * m4/fabsl.m4: New file.
2449         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
2450         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
2451         REPLACE_FABSL.
2452         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
2453         REPLACE_FABSL.
2454         * modules/fabsl: New file.
2455         * doc/posix-functions/fabsl.texi: Mention the new module.
2456
2457 2012-02-25  Bruno Haible  <bruno@clisp.org>
2458
2459         fabs tests: More tests.
2460         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
2461         (zero): New variable.
2462         (main): Add tests for signed zero.
2463         * modules/fabs-tests (Files): Add tests/minus-zero.h.
2464
2465         fabsf tests: More tests.
2466         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
2467         (zero): New variable.
2468         (main): Add tests for signed zero.
2469         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
2470
2471 2012-02-24  Bruno Haible  <bruno@clisp.org>
2472
2473         atanl: Provide function definition on MSVC.
2474         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
2475         function pointer.
2476         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
2477
2478 2012-02-24  Bruno Haible  <bruno@clisp.org>
2479
2480         acosl: Provide function definition on MSVC.
2481         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
2482         function pointer.
2483         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
2484
2485 2012-02-24  Bruno Haible  <bruno@clisp.org>
2486
2487         asinl: Provide function definition on MSVC.
2488         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
2489         function pointer.
2490         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
2491
2492 2012-02-24  Bruno Haible  <bruno@clisp.org>
2493
2494         tanl: Provide function definition on MSVC.
2495         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
2496         function pointer.
2497         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
2498
2499 2012-02-24  Bruno Haible  <bruno@clisp.org>
2500
2501         cosl: Provide function definition on MSVC.
2502         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
2503         function pointer.
2504         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
2505
2506 2012-02-24  Bruno Haible  <bruno@clisp.org>
2507
2508         sinl: Provide function definition on MSVC.
2509         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
2510         function pointer.
2511         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
2512
2513 2012-02-24  Bruno Haible  <bruno@clisp.org>
2514
2515         logl: Provide function definition on MSVC.
2516         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
2517         function pointer.
2518         * lib/math.in.h (logl): Undefine if it does not exist as a function.
2519
2520 2012-02-24  Bruno Haible  <bruno@clisp.org>
2521
2522         expl: Provide function definition on MSVC.
2523         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
2524         function pointer.
2525         * lib/math.in.h (expl): Undefine if it does not exist as a function.
2526
2527 2012-02-24  Bruno Haible  <bruno@clisp.org>
2528
2529         sqrtl: Provide function definition on MSVC.
2530         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
2531         a function pointer.
2532         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
2533
2534 2012-02-24  Bruno Haible  <bruno@clisp.org>
2535
2536         ceill: Provide function definition on MSVC.
2537         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
2538         used as a function pointer.
2539         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
2540
2541 2012-02-24  Bruno Haible  <bruno@clisp.org>
2542
2543         floorl: Provide function definition on MSVC.
2544         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
2545         used as a function pointer.
2546         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
2547
2548 2012-02-24  Bruno Haible  <bruno@clisp.org>
2549
2550         ceilf: Provide function definition on MSVC.
2551         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
2552         used as a function pointer.
2553         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
2554
2555 2012-02-24  Bruno Haible  <bruno@clisp.org>
2556
2557         floorf: Provide function definition on MSVC.
2558         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
2559         used as a function pointer.
2560         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
2561
2562 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
2563
2564         stdnoreturn: new module
2565         This implements a replacement for C11's <stdnoreturn.h>.
2566         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
2567         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
2568         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
2569         * tests/test-stdnoreturn.c: New files.
2570
2571 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
2572
2573         regex: fix false multibyte matches in some regular expressions
2574         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
2575         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
2576         * lib/regex_internal.c (re_string_skip_chars):
2577         Fix miscomputation of remain_len that may cause incomplete
2578         multi-byte character and false match.
2579
2580 2012-02-24  Jim Meyering  <meyering@redhat.com>
2581
2582         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
2583         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
2584         uses with "==" *before* the call, e.g., 0 == strcmp (...)
2585         Remove now-unnecessary str''cmp obfuscation.
2586         Suggested by Akim Demaille.
2587
2588 2012-02-24  Bruno Haible  <bruno@clisp.org>
2589
2590         streq: Rename macro.
2591         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
2592         * NEWS: Mention the change.
2593         * lib/mbrtowc.c (mbrtowc): Update.
2594         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
2595         * lib/wcwidth.c (wcwidth): Update.
2596         Suggested by Akim Demaille and Jim Meyering.
2597
2598 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
2599
2600         regex: fix typo in definition of MIN
2601         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
2602         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
2603
2604 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
2605             Bruno Haible  <bruno@clisp.org>
2606
2607         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
2608         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
2609         entries into a stack-allocated buffer directly.
2610         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
2611
2612 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
2613             Bruno Haible  <bruno@clisp.org>
2614
2615         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
2616
2617          - There were several instances of this pattern:
2618
2619              for (;;) {
2620                n = acl (f, GETACLCNT, 0, NULL);
2621                [ allocate an array A of size N ]
2622                if (acl (f, GETACL, n, a) == n)
2623                  break;
2624              }
2625
2626            This loop might never terminate if some other process is constantly
2627            manipulating the file's ACL.  The loop should be rewritten to
2628            terminate.
2629
2630          - The acl (... GETACLNT ...) call is merely an optimization; its value
2631            is merely a hint as to how big to make the array.  A better
2632            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
2633            and just guess a reasonably-big size, growing the size and trying
2634            again if it's not large enough.  This guarantees termination, and
2635            saves a system call.
2636
2637         * lib/acl-internal.h: Include <limits.h>.
2638         (MIN, SIZE_MAX): New macros.
2639         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
2640         a stack-allocated buffer, and use malloc if it does not fit. Don't
2641         use GETACLCNT.
2642         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
2643
2644 2012-02-19  Bruno Haible  <bruno@clisp.org>
2645
2646         acl: Fix endless loop on Solaris with vxfs.
2647         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
2648         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
2649         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
2650         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
2651         * tests/test-sameacls.c (main)[Solaris]: Likewise.
2652         Reported by Bill Jones in
2653         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
2654
2655 2012-02-19  Bruno Haible  <bruno@clisp.org>
2656
2657         acl: Fix copy-acl test failure on Solaris 11 2011-11.
2658         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
2659         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
2660         that this function returns 0 in some more cases.
2661
2662 2012-02-19  Bruno Haible  <bruno@clisp.org>
2663
2664         acl: Update doc references.
2665         * doc/acl-resources.txt: Update links to Solaris documentation.
2666
2667 2012-02-19  Bruno Haible  <bruno@clisp.org>
2668
2669         Fix test failure in many locales on Solaris 11.
2670         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
2671         'tr' arguments.
2672         * tests/test-pipe-filter-ii1.c (main): Likewise.
2673         * build-aux/bootstrap (check_versions): Run 'tr' command with range
2674         expressions in the C locale.
2675         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
2676         * m4/host-os.m4 (gl_HOST_OS): Likewise.
2677
2678 2012-02-19  Bruno Haible  <bruno@clisp.org>
2679
2680         gnulib-tool: Improve usage message.
2681         * gnulib-tool (func_usage): Move doc of --help and --version to the
2682         section "Operation modes".
2683
2684 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
2685
2686         README-release: make it easier to execute commands
2687         * top/README-release: break commands out on to separate lines.
2688
2689 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
2690
2691         GNUmakefile: simplify detection of unconfigured trees
2692         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
2693         whether the tree make is being run from is already configured or
2694         not.  Related simplifications.
2695
2696 2012-02-13  Simon Josefsson  <simon@josefsson.org>
2697
2698         * gnulib-tool (func_usage): Document --help and --version.
2699
2700 2012-02-11  Jim Meyering  <meyering@redhat.com>
2701
2702         bootstrap: don't exit 0 upon gnulib-tool failure
2703         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
2704         its exit status, not 0.
2705
2706 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
2707
2708         README-release: various improvements
2709         * top/README-release: Give a command to push changes for the
2710         release.  Add "distcheck" to list of other pre-release checks.
2711         Fix instance of "make stable" which should be "make TYPE".
2712
2713 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
2714
2715         maint: replace FSF snail-mail addresses with URLs
2716         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
2717         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
2718         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
2719         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
2720         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
2721         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
2722         * lib/check-version.c, lib/check-version.h, lib/config.charset:
2723         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
2724         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
2725         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
2726         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
2727         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
2728         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
2729         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
2730         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
2731         * lib/glthread/thread.c, lib/glthread/thread.h:
2732         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
2733         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
2734         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
2735         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
2736         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
2737         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
2738         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
2739         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
2740         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
2741         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
2742         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
2743         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
2744         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
2745         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
2746         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
2747         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
2748         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
2749         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
2750         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
2751         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
2752         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
2753         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
2754         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
2755         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
2756         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
2757         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
2758         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
2759         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
2760         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
2761         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
2762         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
2763         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
2764         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
2765         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
2766         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
2767         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
2768         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
2769         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
2770         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
2771         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
2772         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
2773         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
2774         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
2775         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
2776         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
2777         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
2778         * tests/test-poll.c, tests/test-quotearg-simple.c:
2779         * tests/test-quotearg.c, tests/test-quotearg.h:
2780         * tests/test-round-ieee.c, tests/test-round1.c:
2781         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
2782         * tests/test-roundl-ieee.c, tests/test-roundl.c:
2783         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
2784         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
2785         * tests/test-strerror.c, tests/test-strerror_r.c:
2786         * tests/test-strsignal.c, tests/test-strverscmp.c:
2787         * tests/test-xmemdup0.c:
2788         Replace FSF snail mail addresses with URLs, as per GNU coding
2789         standards.  See glibc bug
2790         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
2791
2792 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
2793
2794         README-release: capitalize a word and split a line
2795         * top/README-release: Fix punctuation and spacing.
2796
2797 2012-02-08  Akim Demaille  <demaille@gostai.com>
2798
2799         fatal-signal: use C prototypes (with explicit void).
2800         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
2801         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
2802
2803 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
2804
2805         regex: spelling fix
2806         * lib/regexec.c: spelling fix
2807
2808         regex: rely on stdint.h for SIZE_MAX
2809         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
2810
2811 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
2812
2813         regex: merge glibc changes
2814
2815         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
2816         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
2817         (init_word_char): Work even if bitset words are not exactly 32 or
2818         64 bits wide.  Don't assume there are no padding bits.
2819         * lib/regex.c [_LIBC]: Do not include <config.h>.
2820         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
2821         and -Wtype-limits.
2822         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
2823         needless disagreement with glibc.  All uses changed.  Define it to
2824         1 only if _GNU_SOURCE, to match glibc.
2825         (_REG_RM_NAME): Remove; no longer needed, since the names in
2826         question are now all protected by __USE_GNU.
2827         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
2828         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
2829         * lib/regex_internal.h (MIN): New macro.
2830
2831         2012-01-03 Ulrich Drepper <drepper@gmail.com>
2832         * lib/regcomp.c (init_word_char): Optimize regex a bit.
2833
2834         2011-12-30 Jakub Jelinek <jakub@redhat.com>
2835         * lib/regex_internal.c (re_string_fetch_byte_case):
2836         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
2837         is miscompiled, and it turns out it is because of an incorrect
2838         attribute on re_string_fetch_byte_case.  Unlike
2839         re_string_peek_byte_case, this one is really not pure, it modifies
2840         memory (increments pstr->cur_idx), and with the pure attribute GCC
2841         assumed it doesn't and it cached the presumed value of
2842         regexp->cur_idx in a variable across the
2843          for (;; ++i)
2844            {
2845              if (i >= BRACKET_NAME_BUF_SIZE)
2846                return REG_EBRACK;
2847              if (token->type == OP_OPEN_CHAR_CLASS)
2848                ch = re_string_fetch_byte_case (regexp);
2849              else
2850                ch = re_string_fetch_byte (regexp);
2851              if (re_string_eoi(regexp))
2852                return REG_EBRACK;
2853              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
2854                break;
2855              elem->opr.name[i] = ch;
2856            }
2857
2858         2011-11-29 Andreas Schwab <schwab@redhat.com>
2859         * lib/regcomp.c (build_equiv_class):
2860         Fix access after end of search string in regex matcher.
2861
2862         2011-11-12 Ulrich Drepper <drepper@redhat.com>
2863         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
2864
2865         2011-10-12 Ulrich Drepper <drepper@redhat.com>
2866         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
2867
2868         2011-10-11 Ulrich Drepper <drepper@redhat.com>
2869         * lib/regcomp.c (parse_branch, parse_sub_exp):
2870         More regex memory leak fixes and tests.
2871         (parse_sub_exp, parse_bracket_exp):
2872         Fix memory leak for some invalid regular expressions.
2873
2874         2011-05-28 Ulrich Drepper <drepper@gmail.com>
2875         * lib/regex_internal.c, lib/regexec.c:
2876         Fix unnecessary overallocation due to incomplete character.  When
2877         incomplete characters are found at the end of a string the code
2878         ran amok and allocated lots of memory.  Stricter limits are now in
2879         place.
2880
2881         2011-05-20 Reuben Thomas <rrt@sc3d.org>
2882         * lib/regex.h: Update documentation.
2883
2884         2011-05-16 Aharon Robbins <arnold@skeeve.com>
2885         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
2886
2887         2010-05-05 Andreas Schwab <schwab@redhat.com>
2888         * lib/regexec.c (find_collation_sequence_value):
2889         Fix lookup of collation sequence value during regexp matching.
2890
2891         2010-01-22 Ulrich Drepper <drepper@redhat.com>
2892         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
2893
2894         2008-01-16 Ulrich Drepper <drepper@redhat.com>
2895         * lib/regex.h: Cleanup namespace.
2896
2897         2007-11-26 Ulrich Drepper <drepper@redhat.com>
2898         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
2899
2900         2007-08-26 Ulrich Drepper <drepper@redhat.com>
2901         * lib/regex_internal.h: Prevent some declarations and definitions
2902         to be seen when used in tests.
2903
2904         2005-05-06 Ulrich Drepper <drepper@redhat.com>
2905         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
2906         __libc_lock_* macros if not _LIBC.
2907         (struct re_dfa_t): Add lock.
2908
2909 2012-02-07  Eric Blake  <eblake@redhat.com>
2910
2911         maint.mk: also prohibit lower-case @var@
2912         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
2913         lower case, like @top_srcdir@.
2914
2915 2012-02-04  Eric Blake  <eblake@redhat.com>
2916
2917         canonicalize: avoid uninitialized memory use
2918         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
2919         random '/' left in dest.
2920         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
2921
2922 2012-02-04  Bruno Haible  <bruno@clisp.org>
2923
2924         isatty: Fix test failure of ptsname_r on native Windows.
2925         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
2926         and don't set errno.
2927         (isatty): Test first whether fd is valid. Set errno when returning 0.
2928
2929 2012-02-04  Bruno Haible  <bruno@clisp.org>
2930
2931         spawn-pipe tests: Fix a NULL program name in a diagnostic.
2932         * tests/test-spawn-pipe-main.c: Include progname.h.
2933         (main): Invoke set_program_name.
2934         * modules/spawn-pipe-tests (Depends-on): Add progname.
2935
2936         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
2937         * tests/test-nonblocking-socket-main.c: Include progname.h.
2938         (main): Invoke set_program_name.
2939         * modules/nonblocking-socket-tests (Depends-on): Add progname.
2940
2941         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
2942         * tests/test-nonblocking-pipe-main.c: Include progname.h.
2943         (main): Invoke set_program_name.
2944         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
2945
2946 2012-02-04  Eric Blake  <eblake@redhat.com>
2947
2948         canonicalize-lgpl: fix // handling
2949         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
2950
2951         canonicalize: fix // handling
2952         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
2953         /// to //, since only // is special.
2954
2955 2012-02-04  Bruno Haible  <bruno@clisp.org>
2956
2957         ioctl: Fix test failure on native Windows.
2958         * lib/ioctl.c: Include msvc-nothrow.h.
2959         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
2960
2961 2012-02-04  Bruno Haible  <bruno@clisp.org>
2962
2963         fsync: Avoid test failure on native Windows.
2964         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
2965         read-only.
2966
2967 2012-02-04  Bruno Haible  <bruno@clisp.org>
2968
2969         sys_select: Avoid syntax error on OpenBSD 5.0.
2970         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
2971         currently being included, just include the system's <sys/select.h>.
2972
2973 2012-02-04  Bruno Haible  <bruno@clisp.org>
2974
2975         sys_select: Avoid syntax error on OpenBSD 5.0.
2976         * lib/sys_select.in.h: Include <signal.h> only after the include_next
2977         <sys/select.h>, not before.
2978         Reported by Jiri B <jirib@devio.us>.
2979
2980 2012-02-04  Bruno Haible  <bruno@clisp.org>
2981
2982         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
2983         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
2984         global variables.
2985         * tests/test-get-rusage-data.c (main): Likewise.
2986         Reported by Jim Meyering.
2987
2988 2012-02-04  Bruno Haible  <bruno@clisp.org>
2989
2990         stdioext: Fix last commit.
2991         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
2992
2993 2012-02-03  Bruno Haible  <bruno@clisp.org>
2994
2995         stdioext: Add tentative support for Plan9.
2996         * lib/stdio-impl.h: Include <errno.h>.
2997         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
2998         * lib/freadable.c (freadable): Likewise.
2999         * lib/fwritable.c (fwritable): Likewise.
3000         * lib/fbufmode.c (fbufmode): Likewise.
3001         * lib/freading.c (freading): Likewise.
3002         * lib/fwriting.c (fwriting): Likewise.
3003         * lib/freadptr.c (freadptr): Likewise.
3004         * lib/freadseek.c (freadptrinc): Likewise.
3005         * lib/freadahead.c (freadahead): Likewise.
3006         * lib/fpurge.c (fpurge): Likewise.
3007         * lib/fseeko.c (rpl_fseeko): Likewise.
3008         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
3009         Reported by Jens Staal <staal1978@gmail.com>.
3010
3011 2012-02-02  Jim Meyering  <meyering@redhat.com>
3012
3013         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
3014         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
3015         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
3016         not even to try to add the attribute.  Instead, add a pragma to suppress
3017         the suggestion/warning.
3018
3019 2012-01-31  Karl Berry  <karl@gnu.org>
3020
3021         setstate doc: typo.
3022         * doc/posix-functions/setstate.texi (setstate): { not (.
3023
3024 2012-01-31  Bruno Haible  <bruno@clisp.org>
3025
3026         popen: Make more robust on Windows.
3027         * lib/popen.c: On native Windows, use the _popen based code even if
3028         HAVE_POPEN is set.
3029         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
3030         environment variable on native Windows.
3031
3032 2012-01-30  Bruno Haible  <bruno@clisp.org>
3033
3034         pclose: Fix typo.
3035         * lib/stdio.in.h (pclose): Fix typo in warning message.
3036
3037 2012-01-30  Bruno Haible  <bruno@clisp.org>
3038
3039         doc about getlogin_r, setstate.
3040         * doc/posix-functions/getlogin_r.texi: List the incompatible
3041         declaration problem under "not fixed by gnulib".
3042         * doc/posix-functions/setstate.texi: Mention incompatible declaration
3043         problem on Solaris 11 and other platforms.
3044
3045 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
3046             Bruno Haible  <bruno@clisp.org>
3047
3048         poll tests: Make test more robust.
3049         * tests/test-poll.c: Include macros.h.
3050         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
3051         return value of various I/O operations.
3052         * modules/poll-tests (Files): Add tests/macros.h.
3053
3054 2012-01-30  Bruno Haible  <bruno@clisp.org>
3055
3056         sys_stat: Fix support for mingw64 and MSVC.
3057         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
3058         header files already do it.
3059         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
3060         stat itself.
3061         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
3062
3063 2012-01-30  Bruno Haible  <bruno@clisp.org>
3064
3065         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
3066         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
3067         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
3068
3069 2012-01-29  Bruno Haible  <bruno@clisp.org>
3070
3071         quotearg: Fix test failure on MacOS X 10.5.
3072         * tests/test-quotearg-simple.c: Include localcharset.h.
3073         (main): If the locale encoding is not ASCII, bypass the tests of
3074         locale_quoting_style and clocale_quoting_style.
3075         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
3076
3077 2012-01-29  Jim Meyering  <meyering@redhat.com>
3078
3079         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
3080         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
3081         detect uses of canonicalize_file_name.
3082
3083 2012-01-28  Bruno Haible  <bruno@clisp.org>
3084
3085         test-framework-sh: Fix test failure with AIX 7.1 diff.
3086         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
3087         in column 1, like 'diff -c' does.
3088         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
3089         whether 'diff -u' is used. Instead, test whether the output contains
3090         some '@' character.
3091
3092 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
3093
3094         strtoimax: eliminate need for stdint.h, inttypes.h checks
3095         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
3096         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
3097         the prerequisites for a recently-introduced strtoimax test.
3098         I guess this might cause strtoimax to be replaced when not
3099         strictly necessary on older hosts, but this shouldn't introduce
3100         any bugs and it should make Emacs 'configure' faster on typical
3101         modern hosts.  Problem discovered when importing the latest gnulib
3102         to an Emacs test version.
3103         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
3104
3105 2012-01-28  Bruno Haible  <bruno@clisp.org>
3106
3107         sys_time: Override 'struct timeval' on some native Windows platforms.
3108         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
3109         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
3110         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
3111         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
3112         needs to be overridden.
3113         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
3114         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
3115         * tests/test-sys_select.c: Check that the tv_sec member has the same
3116         size as a 'time_t'.
3117         * tests/test-sys_time.c: Likewise.
3118         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
3119         is set, set also REPLACE_GETTIMEOFDAY.
3120         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
3121         convert the resulting 'struct timeval' before returning.
3122         * lib/select.c: Include <sys/time.h>.
3123         (select, timeval): Undefine at the right place.
3124         * modules/select (Depends-on): Add sys_time.
3125         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
3126         some Windows platforms.
3127         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
3128
3129 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3130
3131         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
3132         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
3133         an integer.
3134         * lib/fcntl.c (dupfd): Likewise.
3135         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
3136
3137 2012-01-28  Bruno Haible  <bruno@clisp.org>
3138
3139         fcntl: Avoid compilation error on native Windows.
3140         * modules/fcntl (Depends-on): Add 'close'.
3141
3142 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3143
3144         select, poll, isatty: Avoid warnings on x86_64 mingw64.
3145         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
3146         pointer to an integer.
3147         * lib/poll.c (IsConsoleHandle): Likewise.
3148         * lib/isatty.c (IsConsoleHandle): Likewise.
3149
3150 2012-01-28  Jim Meyering  <meyering@redhat.com>
3151
3152         doc: clarify README-release
3153         * top/README-release: Clarify: you should make a point to have
3154         the latest stable versions of build tools in your PATH, and the
3155         reference to buildreq is solely for its list of tool names, not
3156         for its minimal-functional version numbers.
3157         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
3158
3159         maint.mk: use more readable (yet functionally equivalent) quoting
3160         It is common to quote a single quote in a single quoted string like
3161         this:  '...'\''...'.  Unless you know the idiom, that looks like
3162         gibberish, so prefer to double-quote the string when possible.
3163         Then you can use a more readable, lone single quote: "...'..."
3164         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
3165         "don't" is more readable than the equivalent 'don'\''t'.
3166         (sc_cast_of_x_alloc_return_value): Likewise.
3167         (sc_cast_of_alloca_return_value): Likewise.
3168         (sc_makefile_path_separator_check): Similar: use ":" in '...',
3169         rather than '\'':'\''.
3170
3171 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
3172
3173         stdalign: relax _Alignof and tighten _Alignas test
3174         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
3175         as it was too strict: alignof must divide offsetof, but it need
3176         not equal offsetof.  Inspired by Joseph S. Myers's comment
3177         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
3178         Conversely, tighten the _Alignas test a bit, as the resulting
3179         alignment must be exactly 8.
3180
3181 2012-01-27  Bruno Haible  <bruno@clisp.org>
3182
3183         stdalign: Document the last change.
3184         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
3185
3186 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
3187
3188         stdalign: check that alignof and offsetof are consistent
3189         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
3190         Problem reported for gnulib by Richard W.M. Jones in
3191         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
3192
3193 2012-01-27  Jim Meyering  <meyering@redhat.com>
3194
3195         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
3196         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
3197         convert a sequence with gaps to the minimal containing range.
3198         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
3199         * tests/test-update-copyright.sh: Test for this.
3200         The FSF confirmed it is ok to do this, assuming there is at
3201         least one significant change per year in the affected range:
3202         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
3203
3204 2012-01-26  Bruno Haible  <bruno@clisp.org>
3205
3206         pipe2: refine doc about thread-safety
3207         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
3208         multithread-safety problem.
3209         * doc/glibc-functions/accept4.texi: Likewise.
3210
3211 2012-01-26  Bruno Haible  <bruno@clisp.org>
3212
3213         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
3214         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
3215         In the test program, include <fcntl.h>, for O_RDONLY.
3216
3217 2012-01-26  Eric Blake  <eblake@redhat.com>
3218
3219         pipe2: document lack of thread-safety in replacement
3220         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
3221         issue in replacement.
3222         * doc/glibc-functions/accept4.texi (accept4): Likewise.
3223         Based on a report by Eric Wong.
3224
3225 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3226             Bruno Haible  <bruno@clisp.org>
3227
3228         malloca: Avoid warnings on x86_64 mingw64.
3229         * lib/malloca.c: Include <stdint.h>.
3230         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
3231         * modules/malloca (Depends-on): Add stdint.
3232         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
3233
3234 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
3235
3236         obstack: remove __STDC__ conditionals
3237         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
3238         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
3239         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
3240         m4/include_next.m4 as the only gnulib-maintained places that still
3241         refer to __STDC__.
3242
3243 2012-01-24  Bruno Haible  <bruno@clisp.org>
3244
3245         havelib: Modern quoting.
3246         * build-aux/config.rpath: Quote 'like this', not `like this', as per
3247         the recent change to the GNU coding standards.
3248
3249 2012-01-24  Bruno Haible  <bruno@clisp.org>
3250
3251         stdint: Improve support for Android.
3252         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
3253         Reported by Simon Josefsson <simon@josefsson.org>.
3254
3255 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
3256
3257         doc: omit trailing empty lines from INSTALL etc.
3258         * doc/Makefile (INSTALL): Omit trailing empty lines.
3259         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
3260         omit trailing empty lines.  This simplifies the build procedure.
3261
3262 2012-01-23  Jim Meyering  <meyering@redhat.com>
3263
3264         tests: avoid spurious warnings about gl_sockets_startup
3265         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
3266         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
3267         reporting a "statement with no effect".
3268         * tests/test-accept.c (main): Mark as "(void)".
3269         * tests/test-accept4.c (main): Likewise.
3270         * tests/test-bind.c (main): Likewise.
3271         * tests/test-connect.c (main): Likewise.
3272         * tests/test-getpeername.c (main): Likewise.
3273         * tests/test-getsockname.c (main): Likewise.
3274         * tests/test-getsockopt.c (main): Likewise.
3275         * tests/test-listen.c (main): Likewise.
3276         * tests/test-recv.c (main): Likewise.
3277         * tests/test-recvfrom.c (main): Likewise.
3278         * tests/test-send.c (main): Likewise.
3279         * tests/test-sendto.c (main): Likewise.
3280         * tests/test-setsockopt.c (main): Likewise.
3281         * tests/test-shutdown.c (main): Likewise.
3282
3283 2012-01-21  Bruno Haible  <bruno@clisp.org>
3284
3285         locale-fr.m4: Fix for Android.
3286         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
3287         failure of the test program on Bionic libc.
3288
3289 2012-01-21  Jim Meyering  <meyering@redhat.com>
3290
3291         bootstrap: fail when bootstrap_post_import_hook fails
3292         Otherwise, it's far too easy to miss diagnostics emitted
3293         between gnulib-tool's output and that of running configure.
3294         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
3295
3296 2012-01-17  Jim Meyering  <meyering@redhat.com>
3297
3298         maint: enable sc_trailing_blank
3299         * build-aux/pmccabe.css: Remove trailing blanks.
3300         * doc/acl-cygwin.txt: Likewise.
3301         * doc/gnu-oids.texi: Likewise
3302         * cfg.mk: Enable sc_trailing_blank.
3303         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
3304
3305 2012-01-17  Jim Meyering  <meyering@redhat.com>
3306
3307         maint: enable sc_prohibit_openat_without_use
3308         * cfg.mk: Enable sc_prohibit_openat_without_use.
3309         Exempt lib/selinux-at.c.
3310
3311 2012-01-17  Jim Meyering  <meyering@redhat.com>
3312
3313         maint: enable sc_prohibit_cloexec_without_use
3314         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
3315         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
3316
3317 2012-01-17  Jim Meyering  <meyering@redhat.com>
3318
3319         maint: enable sc_prohibit_intprops_without_use
3320         * cfg.mk: Enable sc_prohibit_intprops_without_use
3321         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
3322
3323 2012-01-17  Jim Meyering  <meyering@redhat.com>
3324
3325         maint: enable sc_prohibit_hash_pjw_without_use
3326         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
3327         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
3328         to match any use of \<hash_pjw\>, i.e., not necessarily with a
3329         following " (".
3330
3331 2012-01-17  Jim Meyering  <meyering@redhat.com>
3332
3333         maint: enable double-word-prohibiting rule
3334         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
3335         Exempt three files.
3336
3337 2012-01-17  Jim Meyering  <meyering@redhat.com>
3338
3339         maint: remove empty lines at EOF, but excluding modules/*
3340         Apply syntax rules at home as well as abroad.  Most changes
3341         were induced by running this:
3342           make srcdir=. _build-aux=build-aux -f top/maint.mk \
3343             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
3344             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
3345         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
3346         Exempt modules/* and two binary files.
3347         Also exempt doc/INSTALL*, per request from Bruno Haible.
3348         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
3349         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
3350         * doc/Copyright/request-assign.future: Likewise.
3351         * doc/Copyright/request-disclaim.changes: Likewise.
3352         * doc/INSTALL: Likewise.
3353         * doc/INSTALL.ISO: Likewise.
3354         * doc/INSTALL.UTF-8: Likewise.
3355         * doc/acl-cygwin.txt: Likewise.
3356         * doc/acl-resources.txt: Likewise.
3357         * doc/fdl-1.2.texi: Likewise.
3358         * doc/fdl-1.3.texi: Likewise.
3359         * doc/fdl.texi: Likewise.
3360         * lib/argp-pin.c: Likewise.
3361         * lib/round.c: Likewise.
3362         * lib/unicase/u16-totitle.c: Likewise.
3363         * lib/unictype/block_test.c: Likewise.
3364         * lib/uninorm/canonical-decomposition.c: Likewise.
3365         * m4/README: Likewise.
3366         * m4/relocatable-lib.m4: Likewise.
3367         * tests/test-isnand-nolibm.c: Likewise.
3368         * tests/test-isnand.c: Likewise.
3369         * tests/uninorm/NormalizationTest.txt: Likewise.
3370
3371 2012-01-17  Jim Meyering  <meyering@redhat.com>
3372
3373         maint: add framework to run syntax-check rules against gnulib sources
3374         * cfg.mk: New file, to disable all currently-failing tests.
3375         We'll enable them one by one, as they are made to pass.
3376         * Makefile (sc_maint): New rule.
3377
3378 2012-01-21  Bruno Haible  <bruno@clisp.org>
3379
3380         stdint: Add support for Android.
3381         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
3382         include the system's <stdint.h>.
3383         Reported by Simon Josefsson <simon@josefsson.org>.
3384
3385 2012-01-19  Jim Meyering  <meyering@redhat.com>
3386
3387         bootstrap: add bootstrap_post_import_hook
3388         Bison does still need something like the gnulib_mk_hook whose
3389         invocation I had to remove along with slurp in commit 767ccd40.
3390         Technically, we could get along without it, but doing so would
3391         have required living with a warning and a mandatory post-bootstrap
3392         automake rerun.
3393         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
3394         (bootstrap_post_import_hook): New function.
3395         Invoke it after gnulib-tool --import and before autoreconf.
3396
3397 2012-01-18  Jim Meyering  <meyering@redhat.com>
3398
3399         gitlog-to-changelog: don't use "no_"-prefixed variable name
3400         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
3401         to enable both --cluster and --no-cluster.  Change variable name,
3402         s/\$no_cluster/$cluster/, and reverse usage to match.
3403
3404         gitlog-to-changelog: use "||", not "or" in expressions
3405         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
3406         expressions.
3407
3408 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
3409
3410         gitlog-to-changelog: new option --no-cluster
3411         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
3412         clustering of adjacent commit messages.
3413
3414 2012-01-17  Jim Meyering  <meyering@redhat.com>
3415
3416         maint: spell file systems with two words, not one
3417         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
3418         two words, not one.
3419
3420 2012-01-16  Jim Meyering  <meyering@redhat.com>
3421
3422         bootstrap: add a FIXME comment to ensure we eventually remove the hack
3423         * build-aux/bootstrap (gnulib_tool_options): Add comment.
3424
3425 2012-01-16  Eric Blake  <eblake@redhat.com>
3426
3427         bootstrap: cater to autoconf 2.59
3428         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
3429         is not available.
3430
3431         bootstrap: properly check for libtool
3432         * build-aux/bootstrap (libtoolize): Also run libtool when older
3433         usage is detected.
3434
3435 2012-01-15  Bruno Haible  <bruno@clisp.org>
3436
3437         Improve support for MSVC 9.
3438         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
3439         clashes on MSVC.
3440         * lib/fcntl.in.h: Likewise.
3441         * lib/stdlib.in.h: Likewise.
3442         * lib/sys_stat.in.h: Likewise.
3443
3444 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
3445
3446         gnupload: we hold the master copy of this script now
3447         For motivation and more information, see:
3448         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
3449         * build-aux/gnupload: Make it clear in the heading comments that the
3450         master copy of this file is maintained by gnulib.  Since we are at
3451         it, bump its copyright year and ...
3452         ($scriptversion): ... the date in its version.
3453         ($usage): Patches and bug reports should be sent to the gnulib list,
3454         not the automake one.
3455         * config/srclist.txt: Don't try to sync 'gnupload' from automake
3456         anymore.
3457
3458 2012-01-15  Bruno Haible  <bruno@clisp.org>
3459
3460         Fix module 'random'.
3461         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
3462         initstate, setstate are declared.
3463
3464 2012-01-14  Bruno Haible  <bruno@clisp.org>
3465
3466         Tests for module 'random'.
3467         * modules/random-tests: New file.
3468         * tests/test-random.c: New file, based on tests/test-random_r.c.
3469
3470         New module 'random'.
3471         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
3472         declarations.
3473         * lib/random.c: New file, based on glibc/stdlib/random.c.
3474         * m4/random.m4: New file.
3475         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
3476         HAVE_RANDOM.
3477         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
3478         * modules/random: New file.
3479         * config/srclist.txt: Add an entry for random.c.
3480         * doc/posix-functions/random.texi: Mention the 'random' module.
3481         * doc/posix-functions/initstate.texi: Likewise.
3482         * doc/posix-functions/setstate.texi: Likewise.
3483         * doc/posix-functions/srandom.texi: Likewise.
3484
3485 2012-01-12  Bruno Haible  <bruno@clisp.org>
3486
3487         random_r: Use common idioms.
3488         * lib/random_r.c: Include <stdlib.h> first.
3489
3490         random_r: Override incompatible API on AIX, OSF/1.
3491         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
3492         Override the system function if REPLACE_RANDOM_R is 1.
3493         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
3494         and OSF/1, set REPLACE_RANDOM_R.
3495         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
3496         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
3497         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
3498         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
3499         * doc/glibc-functions/random_r.texi: Likewise.
3500         * doc/glibc-functions/setstate_r.texi: Likewise.
3501
3502         random_r: Support for MSVC 9.
3503         * lib/random_r.c: Include stdint.h, not inttypes.h.
3504
3505 2012-01-12  Eric Blake  <eblake@redhat.com>
3506
3507         inet_ntop: guard extra work by IF_LINT
3508         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
3509         better code generation when not checking for warnings.
3510         Suggested by Paul Eggert and Jim Meyering.
3511
3512         strptime: fix regression on mingw
3513         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
3514         Fix regression.  Reported by Bruno Haible.
3515
3516 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
3517             Bruno Haible  <bruno@clisp.org>
3518
3519         copy-file: add error-code-returning variant.
3520         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
3521         (qcopy_file_preserving): New declaration.
3522         * lib/copy-file.c (qcopy_file_preserving): Renamed from
3523         copy_file_preserving. Change return type to 'int'. Don't emit an error
3524         message here.
3525         (copy_file_preserving): New function.
3526         * tests/test-copy-file.c: Include <stdlib.h>.
3527         (main): Test qcopy_file_preserving if the environment variable
3528         NO_STDERR_OUTPUT is set.
3529         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
3530         with NO_STDERR_OUTPUT
3531         * tests/test-copy-file-2.sh: Likewise.
3532
3533 2012-01-10  Bruno Haible  <bruno@clisp.org>
3534
3535         copy-file: Use 'quote' module consistently.
3536         * lib/copy-file.c (copy_file_preserving): Use quote().
3537
3538         copy-file: Refactor.
3539         * lib/copy-file.c: Include quote.h.
3540         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
3541         message here.
3542         * modules/copy-file (Depends-on): Add quote.
3543
3544         acl: Export qcopy_acl.
3545         * lib/acl.h (qcopy_acl): New declaration.
3546         * lib/copy-acl.c (qcopy_acl): Make non-static.
3547
3548         acl: Rename a local variable.
3549         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
3550
3551         acl: Align return values of copy_acl and qcopy_acl.
3552         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
3553         maybe < -1.
3554
3555 2012-01-11  Eric Blake  <eblake@redhat.com>
3556
3557         strptime: silence gcc warnings
3558         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
3559         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
3560         Reported by Daniel P. Berrange.
3561
3562         inet_ntop: silence gcc warning
3563         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
3564         Reported by Daniel P. Berrange.
3565
3566 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
3567
3568         getloadavg test: skip the test on GNU/Linux without /proc mounted
3569         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
3570         file.  When /proc is not mounted, it always fails with ENOENT.
3571         * tests/test-getloadavg.c (main): Treat ENOENT return code from
3572         getloadavg(3) the same way as ENOSYS and ENOTSUP.
3573
3574 2012-01-10  Bruno Haible  <bruno@clisp.org>
3575
3576         regex: Avoid link error on MSVC 9.
3577         * modules/regex (Depends-on): Add wctype.
3578
3579 2012-01-10  Bruno Haible  <bruno@clisp.org>
3580
3581         doc: Mention --with-tests option.
3582         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
3583         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
3584         --with-tests.
3585         Reported by Reuben Thomas.
3586
3587 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
3588
3589         users.txt: order package names lexicographically.
3590         * users.txt: Order package names lexicographically.
3591
3592 2012-01-10  Jim Meyering  <meyering@redhat.com>
3593
3594         maint.mk: fix description in comment
3595         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
3596
3597         ignore-value: remove deprecated ignore_ptr function
3598         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
3599         * NEWS: Note this.
3600
3601 2012-01-09  Jim Meyering  <meyering@redhat.com>
3602
3603         test-init.sh: avoid a subshell
3604         * tests/test-init.sh: Remove protective subshell.
3605         Suggested by Bernhard Voelker.  While a subshell is normally
3606         required to protect against older shells (Solaris, FreeBSD) that
3607         warn about a missing program before performing redirection, the
3608         shell-selection tests performed by init.sh probably exclude any
3609         offending shell.
3610
3611 2012-01-08  Bruno Haible  <bruno@clisp.org>
3612
3613         setlocale tests: Avoid test failure on Solaris 11 2011-11.
3614         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
3615         variable.
3616
3617 2012-01-08  Bruno Haible  <bruno@clisp.org>
3618
3619         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
3620         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
3621         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
3622         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
3623         macro.
3624         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
3625         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
3626         * lib/spawn_faction_addopen.c: Add workaround implementation if
3627         HAVE_WORKING_POSIX_SPAWN.
3628         * modules/spawn (Makefile): Substitute
3629         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
3630         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
3631         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
3632         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
3633         (Depends-on): Update conditions.
3634         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
3635         the Solaris 11 bug.
3636
3637 2012-01-08  Bruno Haible  <bruno@clisp.org>
3638
3639         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
3640         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
3641         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
3642         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
3643         macro.
3644         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
3645         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
3646         * lib/spawn_faction_adddup2.c: Add workaround implementation if
3647         HAVE_WORKING_POSIX_SPAWN.
3648         * modules/spawn (Makefile): Substitute
3649         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
3650         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
3651         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
3652         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
3653         (Depends-on): Update conditions.
3654         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
3655         the Solaris 11 bug.
3656
3657 2012-01-08  Bruno Haible  <bruno@clisp.org>
3658
3659         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
3660         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
3661         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
3662         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
3663         HAVE_WORKING_POSIX_SPAWN.
3664         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
3665         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
3666         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
3667         * lib/spawn_faction_addclose.c: Add workaround implementation if
3668         HAVE_WORKING_POSIX_SPAWN.
3669         * modules/spawn (Makefile): Substitute
3670         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
3671         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
3672         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
3673         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
3674         (Depends-on): Update conditions.
3675         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
3676         the Solaris 11 bug.
3677
3678 2012-01-08  Bruno Haible  <bruno@clisp.org>
3679
3680         doc: Update for Solaris 11 2011-11.
3681         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
3682         * m4/printf.m4: Update comments.
3683
3684 2012-01-08  Bruno Haible  <bruno@clisp.org>
3685
3686         mktime: Avoid compilation error on Solaris 11.
3687         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
3688
3689 2012-01-08  Bruno Haible  <bruno@clisp.org>
3690
3691         doc: Small fix.
3692         * doc/posix-headers/nl_types.texi: Correct platforms list.
3693
3694 2012-01-08  Simon Josefsson  <simon@josefsson.org>
3695
3696         Add lgpl-3.0 module.
3697         * MODULES.html.sh (Support for building documentation): Add
3698         lgpl-3.0.
3699         * modules/lgpl-3.0: New file.
3700
3701 2012-01-08  Jim Meyering  <meyering@redhat.com>
3702
3703         select.c: indent with spaces, not TABs
3704         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
3705
3706 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
3707
3708         quotearg: do not use grave accent for left quote
3709         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
3710         locale_quoting_style.
3711         (quotearg_buffer_restyled): Fix example.
3712         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
3713
3714 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
3715
3716         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
3717         Most programs do not have translation catalogs for English and much
3718         less separate catalogs for British and American English.  Drop the
3719         suggestion to translators about these two, and provide it
3720         automatically for Unicode locales.  Like most programs, even those
3721         using American English, we use single quotation marks.  This conflicts
3722         with the American typographic convention, but works better when you
3723         cite the entire error message within double quotes.  It also tries not
3724         to clash with established practice and with what non-gnulib programs
3725         will usually do.
3726         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
3727         using an UTF-8 or GB-18030 locale.  The list of other locales with
3728         quotes was provided by Bruno Haible.
3729         (quotearg_buffer_restyled): Adjust instructions to translators.
3730         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
3731         text, since this would be wrong when using Unicode.
3732         * modules/quotearg: Depend on c-strcaseeq.
3733
3734 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
3735
3736         quotearg: fix Wikipedia link
3737         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
3738
3739 2012-01-07  Simon Josefsson  <simon@josefsson.org>
3740
3741         Fix for mingw with MSVC9.
3742         * m4/ld-version-script.m4: Check that compiler rejects version
3743         scripts with syntax errors.  Reported by Bruno Haible
3744         <bruno@clisp.org>.
3745
3746 2012-01-06  Bruno Haible  <bruno@clisp.org>
3747
3748         Talk about "native Windows API", not "Woe32".
3749         * lib/accept4.c: Update comments to mention native Windows.
3750         * lib/execute.c: Likewise.
3751         * lib/fatal-signal.c: Likewise.
3752         * lib/localcharset.c: Likewise.
3753         * lib/nanosleep.c: Likewise.
3754         * lib/nl_langinfo.c: Likewise.
3755         * lib/pclose.c: Likewise.
3756         * lib/pipe-filter-gi.c: Likewise.
3757         * lib/pipe-filter-ii.c: Likewise.
3758         * lib/pipe.c: Likewise.
3759         * lib/pipe2.c: Likewise.
3760         * lib/popen.c: Likewise.
3761         * lib/progreloc.c: Likewise.
3762         * lib/relocatable.c: Likewise.
3763         * lib/sigaction.c: Likewise.
3764         * lib/sigprocmask.c: Likewise.
3765         * lib/spawn-pipe.h: Likewise.
3766         * lib/spawn-pipe.c: Likewise.
3767         * lib/spawni.c: Likewise.
3768         * lib/stat-time.h: Likewise.
3769         * lib/w32spawn.h: Likewise.
3770         * tests/test-isatty.c: Likewise.
3771         * lib/config.charset: More comments.
3772         * doc/gnulib-intro.texi: Mention native Windows.
3773         * doc/posix-functions/_Exit_C99.texi: Likewise.
3774         * doc/posix-headers/fcntl.texi: Likewise.
3775
3776 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
3777
3778         argp: Avoid crash if translator uses % characters in a translation.
3779         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
3780         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
3781
3782 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
3783
3784         doc: C11 and C++11 are now official
3785         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
3786         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
3787         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
3788         * modules/stdalign:
3789         Replace references to draft C1X to C11, and to draft C++0X to C++11.
3790
3791 2012-01-06  Bruno Haible  <bruno@clisp.org>
3792
3793         uc-is-grapheme-break tests: Tweak.
3794         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
3795         message.
3796
3797 2012-01-06  Bruno Haible  <bruno@clisp.org>
3798
3799         test-init.sh: correct the test for diff -u
3800         * tests/test-init.sh: Also redirect stdout to /dev/null.
3801
3802 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
3803
3804         Use ', not `, for quoting output.
3805         * build-aux/announce-gen (usage, sizes, print_news_deltas)
3806         (print_changelog_deltas, get_tool_versions, main program):
3807         * build-aux/git-version-gen:
3808         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
3809         * build-aux/move-if-change (help):
3810         * build-aux/useless-if-before-free (usage, main program):
3811         * check-module (parse_module_file, usage)
3812         (find_included_lib_files, check_module):
3813         * lib/argmatch.c (main) [TEST]:
3814         * lib/argp-help.c (_help):
3815         * lib/getopt1.c (main) [TEST]:
3816         * lib/git-merge-changelog.c (usage):
3817         * lib/xstrtol-error.c (xstrtol_error):
3818         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
3819         * m4/argz.m4 (gl_FUNC_ARGZ):
3820         * m4/bison.m4 (gl_BISON):
3821         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
3822         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
3823         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
3824         * m4/fpending.m4 (gl_PREREQ_FPENDING):
3825         * m4/gc-random.m4 (gl_GC_RANDOM):
3826         * m4/intl.m4 (gt_CHECK_DECL):
3827         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
3828         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
3829         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
3830         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
3831         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
3832         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
3833         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
3834         * tests/test-dirname.c (main):
3835         * tests/test-getpass.c (main):
3836         * tests/test-iconvme.c (main):
3837         * tests/test-parse-datetime.c (LOG):
3838         * tests/test-xstrtoimax.sh:
3839         * tests/test-xstrtol.sh:
3840         * tests/test-xstrtoll.sh:
3841         * tests/test-xstrtoumax.sh:
3842         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
3843         * top/GNUmakefile (abort-due-to-no-makefile):
3844         Quote 'like this', not `like this', as per the recent change to
3845         the GNU coding standards.
3846
3847 2012-01-05  Bruno Haible  <bruno@clisp.org>
3848
3849         strtoimax: Don't force a replacement on systems where intmax_t is int.
3850         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
3851         'intmax_t' is not larger than 'int'.
3852         Reported by Pádraig Brady <P@draigBrady.com>.
3853
3854 2012-01-05  Bruno Haible  <bruno@clisp.org>
3855
3856         doc: Mention NetBSD bugs.
3857         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
3858         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
3859
3860 2012-01-05  Bruno Haible  <bruno@clisp.org>
3861
3862         strtoumax tests: Enhance tests.
3863         * tests/test-strtoumax.c (main): Add tests for large values.
3864
3865 2012-01-05  Bruno Haible  <bruno@clisp.org>
3866
3867         strtoimax: Work around AIX 5.1 bug.
3868         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
3869         definition.
3870         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
3871         Set HAVE_STRTOIMAX.
3872         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
3873         REPLACE_STRTOIMAX.
3874         * modules/inttypes-incomplete (Makefile.am): Substitute
3875         REPLACE_STRTOIMAX.
3876         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
3877         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
3878         (Depends-on): Update conditions.
3879         * tests/test-strtoimax.c (main): Add tests for large values.
3880         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
3881
3882 2012-01-05  Bruno Haible  <bruno@clisp.org>
3883
3884         inttypes: Modernize.
3885         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
3886         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
3887         (Makefile.am): Update inttypes.h rule.
3888
3889 2012-01-05  Jim Meyering  <meyering@redhat.com>
3890
3891         init.sh: don't waste a subshell just to redirect stderr
3892         * tests/init.sh: In testing for diff -u and diff -c, use a
3893         stderr-redirecting exec inside `...` rather than a subshell.
3894
3895         test-init.sh: avoid failure on HP-UX 11.00
3896         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
3897         resolves to diff -c or cmp.  Reported by Bruno Haible.
3898
3899 2012-01-05  Bruno Haible  <bruno@clisp.org>
3900
3901         Tests for module 'strtoull'.
3902         * modules/strtoull-tests: New file.
3903         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
3904
3905 2012-01-05  Bruno Haible  <bruno@clisp.org>
3906
3907         Tests for module 'strtoll'.
3908         * modules/strtoll-tests: New file.
3909         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
3910
3911 2012-01-05  Bruno Haible  <bruno@clisp.org>
3912
3913         Tests for module 'strtoul'.
3914         * modules/strtoul-tests: New file.
3915         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
3916
3917 2012-01-05  Bruno Haible  <bruno@clisp.org>
3918
3919         Tests for module 'strtol'.
3920         * modules/strtol-tests: New file.
3921         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
3922
3923 2012-01-04  Jim Meyering  <meyering@redhat.com>
3924
3925         test-init.sh: accommodate Solaris 5.10's different diff -u output
3926         * tests/test-init.sh: Also exempt @@ lines from the comparison
3927         of diff output, since Solaris 5.10 and GNU diff formats differ.
3928         Reported by Stefano Lattarini.
3929
3930 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
3931
3932         test-posixtm: don't assume signed integer wraparound
3933         * tests/test-posixtm.c (main): Don't assume wraparound semantics
3934         after signed integer overflow.  Inspired by (though it may not
3935         fix) Bruno Haible's bug report in
3936         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
3937
3938         Spell out "Windows 9x" and "Windows XP".
3939         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
3940         "Windows 9x" and "WinXP" with "Windows XP".
3941
3942 2012-01-04  Jim Meyering  <meyering@redhat.com>
3943
3944         test-vc-list-files-cvs.sh: remove obsolete comment
3945         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
3946         double exit.  Now that's all encapsulated via skip_ and Exit.
3947
3948 2012-01-04  Bruno Haible  <bruno@clisp.org>
3949
3950         Talk about "native Windows API", not "Win32".
3951         * lib/classpath.c: Update comments to mention native Windows.
3952         * lib/csharpexec.c: Likewise.
3953         * lib/dup2.c: Likewise.
3954         * lib/error.c: Likewise.
3955         * lib/fcntl.c: Likewise.
3956         * lib/filename.h: Likewise.
3957         * lib/findprog.c: Likewise.
3958         * lib/get-rusage-as.c: Likewise.
3959         * lib/get-rusage-data.c: Likewise.
3960         * lib/getpagesize.c: Likewise.
3961         * lib/javaexec.c: Likewise.
3962         * lib/msvc-inval.c: Likewise.
3963         * lib/msvc-nothrow.c: Likewise.
3964         * lib/nanosleep.c: Likewise.
3965         * lib/nonblocking.c: Likewise.
3966         * lib/printf-parse.c: Likewise.
3967         * lib/setlocale.c: Likewise.
3968         * lib/sigaction.c: Likewise.
3969         * lib/strerror_r.c: Likewise.
3970         * lib/tmpdir.c: Likewise.
3971         * lib/vasnprintf.c: Likewise.
3972         * lib/w32spawn.h: Likewise.
3973         * lib/waitpid.c: Likewise.
3974         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
3975         * m4/locale-ar.m4: Likewise.
3976         * m4/locale-fr.m4: Likewise.
3977         * m4/locale-ja.m4: Likewise.
3978         * m4/locale-tr.m4: Likewise.
3979         * m4/locale-zh.m4: Likewise.
3980         * m4/printf.m4: Likewise.
3981         * tests/test-cloexec.c: Likewise.
3982         * tests/test-copy-acl.sh: Likewise.
3983         * tests/test-copy-file.sh: Likewise.
3984         * tests/test-file-has-acl.sh: Likewise.
3985         * tests/test-set-mode-acl.sh: Likewise.
3986         * tests/test-dup-safer.c: Likewise.
3987         * tests/test-dup2.c: Likewise.
3988         * tests/test-dup3.c: Likewise.
3989         * tests/test-fcntl.c: Likewise.
3990         * tests/test-nonblocking-pipe.h: Likewise.
3991         * tests/test-nonblocking-socket.h: Likewise.
3992         * tests/test-pipe.c: Likewise.
3993         * tests/test-pipe2.c: Likewise.
3994         * tests/test-spawn-pipe-child.c: Likewise.
3995         * doc/acl-resources.txt: Likewise.
3996         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
3997         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
3998         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
3999         * lib/localcharset.c: Update comments to mention native Windows.
4000         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4001         * lib/localename.c: Likewise.
4002         * lib/progreloc.c: Likewise.
4003         * lib/relocatable.c: Likewise.
4004         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4005         (windows_compute_revents): Renamed from win32_compute_revents.
4006         (windows_compute_revents_socket): Renamed from
4007         win32_compute_revents_socket.
4008         * lib/select.c: Update comments to mention native Windows.
4009         (windows_poll_handle): Renamed from win32_poll_handle.
4010         * m4/threadlib.m4: Update comments to mention native Windows.
4011         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
4012         --enable-threads=windows instead of --enable-threads=win32. Set
4013         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
4014         * lib/glthread/lock.h: Update comments to mention native Windows.
4015         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
4016         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
4017         USE_WIN32_THREADS.
4018         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
4019         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
4020         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
4021         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
4022         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
4023         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
4024         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
4025         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
4026         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
4027         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
4028         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
4029         * tests/test-tls.c: Likewise.
4030         Rationale:
4031         Microsoft renamed the "Win32 API" to "Windows API", as it is available
4032         on both 32-bit and 64-bit Windows systems.
4033         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
4034         line of distinction is between "native Windows" on one side and Unix/
4035         POSIX systems on the other side. More details in
4036         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
4037         Suggested by Paul Eggert.
4038
4039 2012-01-03  Bruno Haible  <bruno@clisp.org>
4040
4041         isatty: Support for MSVC 9.
4042         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
4043         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
4044         (_isatty_nothrow): New function.
4045         (isatty): Use it instead of _isatty.
4046         (IsConsoleHandle): Add comment, from Paolo Bonzini.
4047         * lib/poll.c (IsConsoleHandle): Likewise.
4048         * lib/select.c (IsConsoleHandle): Likewise.
4049         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
4050         (gl_PREREQ_ISATTY): New macro.
4051         * modules/isatty (Depends-on): Add msvc-inval.
4052         (configure.ac): Invoke gl_PREREQ_ISATTY.
4053
4054 2012-01-03  Jim Meyering  <meyering@redhat.com>
4055
4056         maint.mk: remove temporary transition aid from over 1.5 years ago
4057         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
4058         purpose was to aid in the transition (avoiding silent malfunction)
4059         from that old name to the new _sc_search_regexp.  This shim was
4060         added by commit 219c504b.
4061
4062         init.sh: do not try to accommodate compare arguments starting with "-"
4063         * tests/init.sh (compare_dev_null_): Do not try to accommodate
4064         compare arguments that start with "-".  Besides, we do not worry
4065         about this when invoking diff or cmp; why start now with sed?
4066         Using "--" to separate options from argument would trigger sed
4067         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
4068         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
4069
4070 2012-01-02  Bruno Haible  <bruno@clisp.org>
4071
4072         Enhance tests for module 'isatty'.
4073         * modules/isatty-tests (Depends-on): Add pipe-posix.
4074         * tests/test-isatty.c: Include <fcntl.h>.
4075         (DEV_NULL): New macro.
4076         (main): Test the resut of isatty() also on regular files, pipes, and
4077         /dev/null.
4078
4079         New module 'isatty'.
4080         * lib/unistd.in.h (isatty): New declaration.
4081         * lib/isatty.c: New file, based on an idea of
4082         Bastien Roucariès <roucaries.bastien@gmail.com>.
4083         * m4/isatty.m4: New file.
4084         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
4085         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
4086         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
4087         REPLACE_ISATTY.
4088         * modules/isatty: New file.
4089         * doc/posix-functions/isatty.texi: Mention the new module.
4090         Suggested by Paolo Bonzini.
4091
4092 2012-01-02  Bruno Haible  <bruno@clisp.org>
4093
4094         canonicalize: Tweak 2011-12-29 commit.
4095         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
4096         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
4097
4098 2012-01-02  Jim Meyering  <meyering@redhat.com>
4099
4100         gitlog-to-changelog: describe input syntax in --help output
4101         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
4102
4103         gitlog-to-changelog: fix typo in --help: show backslash before email @
4104         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
4105         in sources, but not in actual output.
4106
4107 2011-12-30  Jim Meyering  <meyering@redhat.com>
4108
4109         gitlog-to-changelog: don't malfunction when name contains %-directive
4110         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
4111         in a name string cause trouble.  E.g., with a user name of "%s",
4112         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
4113
4114 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
4115
4116         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
4117         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
4118         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
4119         the "  (tiny change)" notation that is appended to the standard
4120         ChangeLog "date  name  email" header line.
4121
4122 2012-01-01  Jim Meyering  <meyering@redhat.com>
4123
4124         test-framework-sh: init.sh: fix "make dist" failure
4125         When using gnulib-tool's --with-tests option and any module that
4126         depends on test-framework-sh, "make dist" would fail due to the
4127         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
4128         in the gltests directory, and not in the gllib/ directory.
4129         One way to work around that is to move the EXTRA_DIST += init.sh
4130         from the primary module to the -tests one:
4131         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
4132         * modules/test-framework-sh (Makefile.am): ...not here.
4133         Reported by Tom G. Christensen in
4134         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
4135
4136         version-etc: update copyright year reported by --version
4137         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
4138
4139 2011-12-31  Pádraig Brady  <P@draigBrady.com>
4140
4141         canonicalize: only stat() if required
4142         * lib/canonicalize.c (canonicalize_filename_mode):
4143         Avoid calling l?stat() when both CAN_MISSING,
4144         and CAN_NOLINKS are set, as we neither need
4145         to resolve symlinks or test component existence.
4146
4147 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
4148
4149         doc: cover st_ino issues once; add OpenVMS etc.
4150         * doc/posix-functions/stat.texi (stat):
4151         * doc/posix-functions/lstat.texi (lstat):
4152         * doc/posix-functions/fstatat.texi (fstatat):
4153         * doc/posix-functions/fstat.texi (fstat):
4154         Move general 'struct stat' stuff to sys_stat.texi,
4155         leaving behind a pointer.
4156         * doc/posix-headers/sys_stat.texi (sys/stat.h):
4157         Merge duplicate info about 'struct stat' problems into here.
4158         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
4159         and suggest partial workarounds.
4160
4161         same-inode: port to OpenVMS
4162         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
4163         three st_ino values.
4164
4165 2011-12-30  Pádraig Brady  <P@draigBrady.com>
4166
4167         canonicalize: fix references to stat() and lstat()
4168         * lib/canonicalize.c (canonicalize_filename_mode):
4169         Ensure references always resolve to a replacement
4170         function if required (even via a macro).
4171
4172 2011-12-30  Jim Meyering  <meyering@redhat.com>
4173
4174         gitlog-to-changelog: remove a little duplication
4175         * build-aux/gitlog-to-changelog (main): Grep @lines once,
4176         rather than twice.
4177
4178 2011-12-29  Pádraig Brady  <P@draigBrady.com>
4179
4180         canonicalize: add support for not resolving symlinks
4181         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
4182         indicate we don't want to follow symlinks.  Also
4183         provide CAN_MODE_MASK to aid setting these existing
4184         mutually exclusive values.
4185         * lib/canonicalize.c (canonicalize_filename_mode):
4186         Extract the flags from can_mode parameter, which
4187         are currently just used to select between stat()
4188         and lstat().  Also ensure that mutually exclusive
4189         values are flagged immediately as invalid.
4190         * tests/test-canonicalize.c: Verify symlinks are
4191         not followed, and that invalid flag combinations
4192         are diagnosed.
4193
4194 2011-12-25  Jim Meyering  <meyering@redhat.com>
4195
4196         gitlog-to-changelog: do not clump multi-paragraph entries
4197         Identical header lines (date,name,email+coauthors) are suppressed,
4198         thus putting all entries with those same characteristics under
4199         a single header.  However, when a log entry consists of two or
4200         more paragraphs, it may not be clear where it starts and ends.
4201         This change makes it so that such an entry is always separated
4202         from others by a header line, even when that header would
4203         otherwise be suppressed.
4204         * build-aux/gitlog-to-changelog: Implement the above.
4205         Inspired by a related request from Stefano Lattarini in
4206         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
4207
4208 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
4209
4210         announce-gen: fix `cmd' typo in diagnostic
4211         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
4212         diagnostic: a missing '$' meant that the command was not output.
4213
4214 2011-12-23  Jim Meyering  <meyering@redhat.com>
4215
4216         test-framework-sh: distribute init.sh
4217         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
4218         Otherwise, "make -C gnulib-tests check" (at least in grep) would
4219         fail due to the lack of init.sh.
4220
4221         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
4222         * modules/atexit-tests: Rather than listing tests/init.sh,
4223         now that there's a module for it, simply depend on that new module.
4224         * modules/closein-tests: Likewise.
4225         * modules/exclude-tests: Likewise.
4226         * modules/getcwd-tests: Likewise.
4227         * modules/perror-tests: Likewise.
4228         * modules/pread-tests: Likewise.
4229         * modules/pwrite-tests: Likewise.
4230         * modules/vc-list-files-tests: Likewise.
4231         * modules/verify-tests: Likewise.
4232         * modules/xalloc-die-tests: Likewise.
4233         * modules/xstrtoimax-tests: Likewise.
4234         * modules/xstrtol-tests: Likewise.
4235         * modules/xstrtoll-tests: Likewise.
4236         * modules/xstrtoumax-tests: Likewise.
4237         * modules/yesno-tests: Likewise.
4238
4239 2011-12-22  Jim Meyering  <meyering@redhat.com>
4240
4241         test-framework-sh: add minimal tests of init.sh's compare function
4242         * modules/test-framework-sh-tests: New file.
4243         * tests/test-init.sh: New file.
4244
4245         test-framework-sh: new module
4246         * modules/test-framework-sh: New file.
4247         * MODULES.html.sh (Support for maintaining and releasing projects):
4248         List it.
4249
4250         init.sh: do not emit simulated diff output to stderr
4251         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
4252
4253 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
4254
4255         .gitignore: ignore gnulib.dvi and regex.info
4256         * doc/.gitignore:add gnulib.dvi and regex.info
4257
4258 2011-12-22  Jim Meyering  <meyering@redhat.com>
4259
4260         init.sh: correct previous change
4261         * tests/init.sh (compare): My previous change was wrong.
4262         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
4263
4264         init.sh: avoid unwarranted test failure when using "set -e"
4265         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
4266         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
4267         a use like "compare exp out" would get evoke an unconditional failure.
4268
4269 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
4270
4271         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
4272         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
4273         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
4274         autoreconf that did not.
4275         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
4276         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
4277
4278 2011-12-17  Jim Meyering  <meyering@redhat.com>
4279
4280         bootstrap: remove some now-unneeded code
4281         This script arose back when gnulib-tool was young.
4282         Since then, it has seen improvements that render much of this
4283         script unnecessary.  In particular, it can now make symlinks
4284         to the files it uses.  Also, I no longer see as much value in
4285         marking files as read-only via comments.
4286         If you relied on the symlink-creation feature of the preceding
4287         version of this script, you can get most of that functionality
4288         by adding the --symlink option to the definition of
4289         gnulib_tool_option_extras in your bootstrap.conf file.
4290         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
4291         Run autopoint and libtoolize *before* gnulib-tool.
4292         After it, run an abbreviated autoreconf, rather than a loop around
4293         all tools.
4294         (slirp, bt_mark_as_generated): Remove functions.
4295
4296 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
4297
4298         ftoastr: fix typo
4299         * lib/ftoastr.h: Fix misspelling in comment.
4300
4301 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
4302
4303         * top/README-release: fix punctuation.
4304
4305 2011-12-17  Jim Meyering  <meyering@redhat.com>
4306
4307         bootstrap: correct the recent buildreq change
4308         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
4309         had no effect.
4310         * build-aux/bootstrap (buildreq): Bracket each search term with
4311         "*...*", so that the shell "case" statement works as intended.
4312         Add comments.
4313
4314 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
4315
4316         build: let bootstrap resort to wget when downloading .po files
4317         * build-aux/bootstrap (download_po_files): Fallback to wget when
4318         downloading the .po files via rsync fails.  This is necessary to
4319         bootstrap from behind a strict firewall.
4320
4321 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
4322
4323         stdint: don't assume C++11 when compiling with g++
4324         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
4325         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
4326         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
4327         work also in C++ before C++11, as that improperly inhibits
4328         generating a substitute stdint.h for that case.
4329
4330 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
4331
4332         alloca: protect comment from gnulib-tool
4333         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
4334         that gnulib-tool doesn't think it's a license, and munge it to
4335         say "GCC version 3".
4336
4337 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
4338
4339         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
4340         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
4341         $(abs_top_builddir) instead of $(top_builddir).
4342
4343 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
4344
4345         strftime-tests: also test nanoseconds
4346         * tests/test-strftime.c (T): Add a test of %N.
4347
4348 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
4349
4350         inttypes, stdint: add C++11 support
4351         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
4352         when including inttypes.h and stdint.h.  Support this change to
4353         the standard.
4354         * doc/posix-headers/inttypes.texi (inttypes.h):
4355         * doc/posix-headers/stdint.texi (stdint.h): Document this.
4356         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
4357         Define if not defined already, for the benefit of pre-C++11 hosts.
4358         Define the standard format macros (e.g., PRId8) always.
4359         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
4360         Likewise, if __cpluspus.  Define the standard constant and limit
4361         macros (e.g., INT8_C, INT8_MAX) always.
4362         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
4363         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
4364         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
4365         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
4366         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
4367         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
4368         Likewise.
4369
4370 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
4371
4372         nonblocking tests: Fix test failure on Linux/PPC.
4373         Suggested by Prerna Saxena in
4374         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
4375         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
4376         Set to 1100000.
4377
4378 2011-12-12  Jim Meyering  <meyering@redhat.com>
4379
4380         argmatch: don't hard-code `' when listing valid option arguments
4381         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
4382         use the quote function to add quotes.  Use fputs rather than
4383         fprintf for the format string with no format directive.
4384
4385 2011-12-07  Eric Blake  <eblake@redhat.com>
4386
4387         bootstrap: detect tools required by gnulib-tool
4388         * build-aux/bootstrap (buildreq): Provide minimum implicit
4389         dependencies.
4390         * DEPENDENCIES: Mention patch as a prereq.
4391
4392 2011-12-04  Bruno Haible  <bruno@clisp.org>
4393
4394         sethostname: Port to Windows platforms.
4395         * lib/sethostname.c: Provide an alternate implementation for Windows
4396         platforms.
4397         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
4398         (main): Skip the test if sethostname() fails with EPERM. On Windows
4399         platforms, don't check the result of gethostname().
4400
4401 >>>>>>> snapshot-start
4402 2011-12-04  Bruno Haible  <bruno@clisp.org>
4403             Jim Meyering  <meyering@redhat.com>
4404
4405         tests: Avoid spurious error message on platforms without mktemp program.
4406         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
4407
4408 <<<<<<< HEAD
4409 =======
4410 2011-12-04  Bruno Haible  <bruno@clisp.org>
4411
4412         sethostname: Fix documentation.
4413         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
4414         "not fixed" section.
4415
4416 2011-12-03  Bruno Haible  <bruno@clisp.org>
4417
4418         gnulib-tool: Verify that the License field is present and non-empty.
4419         * gnulib-tool (func_get_license_raw): New function, extracted from
4420         func_get_license.
4421         (func_get_license): Use it. Warn if the module is not a test module and
4422         has no license.
4423         Suggested by Jim Meyering.
4424
4425 2011-12-03  Bruno Haible  <bruno@clisp.org>
4426
4427         sethostname tests: Fix link error on mingw.
4428         * tests/test-sethostname1.c: New file, extracted from
4429         tests/test-sethostname.c.
4430         * tests/test-sethostname2.c: New file, extracted from
4431         tests/test-sethostname.c.
4432         * tests/test-sethostname.c: Remove file.
4433         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
4434         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
4435         (Depends-on): Add gethostname.
4436         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
4437         Link the latter with $(GETHOSTNAME_LIB).
4438
4439         sethostname tests: Fix compilation error on mingw.
4440         * tests/test-sethostname.c: Don't include <sys/types.h>.
4441         (geteuid): Use a dummy value without uid_t.
4442         * modules/sethostname-tests (Depends-on): Remove sys_types.
4443
4444         sethostname tests: Avoid a gcc warning.
4445         * tests/test-sethostname.c (main): Remove an unused variable.
4446
4447         Tweak last commit.
4448         * modules/sethostname-tests (Files): Sort by decreasing importance.
4449         (configure.ac): Check for geteuid.
4450         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
4451         the test when there's nothing to test. Drop an unnecessary cast.
4452         Improve an error message. Verify that the final sethostname() call
4453         succeeds.
4454
4455 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4456
4457         Add a test suite for the sethostname module.
4458         * modules/sethostname-tests: New file.  A test program
4459         for the sethostname module.
4460         * tests/test-sethostname.c: Likewise.
4461
4462 2011-12-03  Bruno Haible  <bruno@clisp.org>
4463
4464         Tweak last commit.
4465         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
4466         Fix preprocessor directives indentation. Fix typos.
4467         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
4468         * modules/unistd (Makefile): Likewise.
4469
4470 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4471
4472         Integrate the sethostname module into unistd.
4473         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
4474         into the unistd.h header.
4475         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
4476         preprocessor directives.
4477         * modules/unistd: Setup the Makefile substitutions of the
4478         SETHOSTNAME preprocessor directives.
4479
4480 2011-12-03  Bruno Haible  <bruno@clisp.org>
4481
4482         Tweak last commit.
4483         * lib/sethostname.c: Don't include <string.h>.
4484         (sethostname): No need to copy the argument string to the stack. Don't
4485         call clearerr. Preserve errno when fprintf failed.
4486         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
4487         Don't invoke AC_REPLACE_FUNCS.
4488         * modules/sethostname (Link): Remove empty section.
4489         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
4490         failure problem.
4491
4492 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4493
4494         New module 'sethostname'.
4495         * lib/sethostname.c (sethostname): New file.  Provide sethostname
4496         for systems that lack it.
4497         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
4498         sethostname declaration and function.
4499         * modules/sethostname: New file.  Define the sethostname module.
4500
4501 2011-12-03  Bruno Haible  <bruno@clisp.org>
4502
4503         Tweak last commit.
4504         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
4505
4506 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4507
4508         Split the HOST_NAME_MAX detection into a separate m4 macro.
4509         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
4510         macro so it can be used by the pending sethostname module.
4511
4512 >>>>>>> snapshot-start
4513 2011-12-03  Bruno Haible  <bruno@clisp.org>
4514
4515         Fix module descriptions syntax.
4516         * modules/argv-iter (License): Fix syntax.
4517         * modules/di-set (License): Likewise.
4518         * modules/ino-map (License): Likewise.
4519         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
4520
4521 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
4522
4523         stdalign: port to Clang 3.0
4524         Problem reported by Simon Josefsson in
4525         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
4526         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
4527         which has <stdalign.h> but which does not define alignof.
4528         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
4529
4530 2011-12-01  Eric Blake  <eblake@redhat.com>
4531
4532         mktempd: silence dd usage
4533         * build-aux/mktempd (rand_bytes): Silence dd.
4534
4535 2011-11-30  Simon Josefsson  <simon@josefsson.org>
4536
4537         manywarnings: Don't mention gcc version in docstring.
4538         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
4539         Jim Meyering <meyering@redhat.com>.
4540
4541 2011-11-30  Jim Meyering  <meyering@redhat.com>
4542
4543         hash: mark a few floating point constants with "f" suffix
4544         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
4545         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
4546         floating point constants with "f", since they're destined to be
4547         saved/used as "float"s.
4548
4549 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
4550
4551         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
4552         * tests/test-float.c (test_long_double): Correct and re-enable the
4553         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
4554
4555 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
4556
4557         Avoid subtracting two pointers that don't point into the same block.
4558         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
4559         only pointers into the same memory block are subtracted. We cannot
4560         assume that sizeof (ptrdiff_t) == sizeof (void *).
4561
4562 2011-11-29  Eric Blake  <eblake@redhat.com>
4563
4564         maint.mk: add syntax check for use of compare from init.sh
4565         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
4566         moved here from coreutils.
4567
4568         manywarnings: drop -Wunsuffixed-float-constants
4569         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
4570         '1.0D', which is the only way to silence this warning for 'double'.
4571
4572 2011-11-29  Jim Meyering  <meyering@redhat.com>
4573
4574         hash: mark compute_bucket_size with the pure attribute
4575         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
4576
4577         quotearg, propername: correct pragma guard expression
4578         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
4579         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
4580
4581 2011-11-28  Jim Meyering  <meyering@redhat.com>
4582
4583         propername: do not mark proper_name with the const attribute
4584         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
4585         since it examines data pointed to by its parameter.
4586         * lib/propername.c (proper_name): Instead, add a pragma to suppress
4587         the suggestion from -Wsuggest-attribute=const.
4588
4589         propername: mark one more function as const
4590         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
4591
4592 2011-11-27  Jim Meyering  <meyering@redhat.com>
4593
4594         mark functions with const and pure attributes
4595
4596         Mark functions per suggestions from gcc-4.6 when using these options:
4597         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
4598         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
4599         Follow these guidelines: when possible, apply the attribute to
4600         an extern declaration, not to its definition.  Apply it to the
4601         definition only when the definition is static.
4602         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
4603         * lib/argv-iter.h (argv_iter_n_args): Likewise.
4604         * lib/base64.h (isbase64): Likewise.
4605         * lib/basename-lgpl.c (last_component, base_len): Likewise.
4606         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
4607         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
4608         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
4609         (c_tolower, c_toupper): Likewise.
4610         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
4611         * lib/chdir-long.c (find_non_slash): Likewise.
4612         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
4613         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
4614         * lib/file-type.h (file_type): Likewise.
4615         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
4616         * lib/filevercmp.c (verrevcmp): Likewise.
4617         * lib/freadahead.h (freadahead): Likewise.
4618         * lib/fts.c (fts_maxarglen): Likewise.
4619         * lib/hash-pjw.h (hash_pjw): Likewise.
4620         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
4621         * lib/hash.c (is_prime, next_prime): Likewise.
4622         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
4623         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
4624         (hash_table_ok, hash_get_first, hash_string): Likewise.
4625         (compute_bucket_size): Likewise.
4626         * lib/i-ring.h (i_ring_empty): Likewise.
4627         * lib/isnan.c (isnanl): Likewise.
4628         * lib/math.h (isnanl, rpl_isnanl): Likewise.
4629         * lib/memcasecmp.h (memcasecmp): Likewise.
4630         * lib/memchr2.h (memchr2): Likewise.
4631         * lib/memcmp2.h (memcmp2): Likewise.
4632         * lib/parse-datetime.y (lookup_zone): Likewise.
4633         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
4634         [!WINDOWS_SOCKETS]: Likewise.
4635         * lib/strnlen1.h (strnlen1): Likewise.
4636         * lib/uniwidth.in.h (uc_width): Likewise.
4637         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
4638         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
4639         (quoting_options_from_style): Add a comment.
4640         * lib/propername.h (proper_name): Add a comment.
4641
4642 2011-11-27  Bruno Haible  <bruno@clisp.org>
4643
4644         Remove unused macros from !_LIBC code in glibc-borrowed files.
4645         * lib/fnmatch.c (STRCOLL): Remove macro.
4646         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
4647         * lib/glob.c (__stat, __readdir64): Remove macros.
4648         * lib/tempname.c (__open64, __xstat64): Remove macros.
4649         Suggested by Paul Eggert.
4650
4651 2011-11-27  Bruno Haible  <bruno@clisp.org>
4652
4653         getcwd: Fix link error on MSVC 9.
4654         * modules/getcwd (Depends-on): Add readdir, rewinddir.
4655
4656 2011-11-27  Bruno Haible  <bruno@clisp.org>
4657
4658         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
4659         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
4660         HAVE_OPENDIR is 0.
4661         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
4662         HAVE_CLOSEDIR is 0.
4663         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
4664         is 0.
4665         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
4666
4667 2011-11-27  Bruno Haible  <bruno@clisp.org>
4668
4669         getcwd: Fix bug from 2011-08-17.
4670         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
4671         platforms that need it.
4672         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
4673         code of 4 to be a failure, not a success. This ensures that
4674         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
4675
4676 2011-11-27  Bruno Haible  <bruno@clisp.org>
4677
4678         binary-io tests: Avoid test failure on mingw when libtool is used.
4679         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
4680         Don't verify the size of t-bin-out1.tmp here.
4681         * tests/test-binary-io.sh: Verify it here.
4682         Reported by Simon Josefsson.
4683
4684 2011-11-26  Bruno Haible  <bruno@clisp.org>
4685
4686         Fix conflict between two instantiations of module 'unistd'.
4687         * gnulib-tool (func_emit_autoconf_snippet): Substitute
4688         ${include_guard_prefix} also in the autoconf snippet.
4689         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
4690         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
4691         GNULIB_UNISTD_H_GETOPT.
4692         * modules/getopt-posix (configure.ac): Set the
4693         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
4694         * modules/getopt-gnu (configure.ac): Likewise.
4695         * modules/unistd (Makefile.am): Change the substitution value of
4696         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
4697         Reported by Simon Josefsson.
4698
4699 2011-11-25  Bruno Haible  <bruno@clisp.org>
4700
4701         pagealign_alloc: Doc and comments.
4702         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
4703         module.
4704         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
4705
4706 2011-11-25  Jim Meyering  <meyering@redhat.com>
4707
4708         test-update-copyright.sh: avoid false-positive failure
4709         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
4710         around false positive failure on Cygwin/Windows.  The latter was
4711         matching erroneously-created files with names like
4712         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
4713
4714 2011-11-25  Simon Josefsson  <simon@josefsson.org>
4715
4716         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
4717         * m4/valgrind-tests.m4: Check that the parameters that will be
4718         used works, not just a subset of them.  Reported by Bruno Haible
4719         <bruno@clisp.org>.
4720
4721 2011-11-24  Jim Meyering  <meyering@redhat.com>
4722
4723         test-stdalign.c: comment out long double tests
4724         * tests/test-stdalign.c: Don't try to reduce alignment of long double
4725         variables.  That provokes errors like this from gcc-4.7.0 20111124:
4726         error: '_Alignas' specifiers cannot reduce alignment of \
4727         'static_longdouble_alignas'.
4728
4729 2011-11-22  Jim Meyering  <meyering@redhat.com>
4730
4731         init.sh: make "compare /dev/null FILE" output more readable
4732         * tests/init.sh (compare_): Document the preferred order of arguments.
4733         (emit_diff_u_header_): New function.
4734         (compare_dev_null_): Emit a simulated diff, rather than just the
4735         contents of the unexpected file.  Suggestion from Bruno Haible.
4736
4737 2011-11-21  Jim Meyering  <meyering@redhat.com>
4738             Eric Blake  <eblake@redhat.com>
4739
4740         init.sh: work around OSF/1 5.1's mishandling of /dev/null
4741         * tests/init.sh: Make our compare function slightly more portable.
4742         Reported by Bruno Haible in
4743         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
4744
4745 2011-11-21  Simon Josefsson  <simon@josefsson.org>
4746
4747         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
4748         before using it, in code that ends up in config.h.
4749
4750 2011-11-20  Bruno Haible  <bruno@clisp.org>
4751
4752         getcwd: Work around getcwd bug on AIX 5..7.
4753         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
4754         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
4755         Use a different value for gl_cv_func_getcwd_path_max. Move the
4756         definition of HAVE_PARTLY_WORKING_GETCWD from here...
4757         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
4758         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
4759         Define HAVE_MINIMALLY_WORKING_GETCWD.
4760         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
4761         where it is not even minimally working, that is, on AIX.
4762         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
4763         m4/getcwd-path-max.m4.
4764         (main): Update exit code computation.
4765         * doc/posix-functions/getcwd.texi: Mention list of platforms where
4766         getcwd does not handle long file names.
4767
4768 2011-11-20  Bruno Haible  <bruno@clisp.org>
4769
4770         getcwd: Fix bug from 2009-09-10.
4771         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
4772         like "no".
4773
4774 2011-11-20  Simon Josefsson  <simon@josefsson.org>
4775
4776         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
4777
4778 2011-11-20  Bruno Haible  <bruno@clisp.org>
4779
4780         fma tests: Avoid shadowing local variables.
4781         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
4782         expected.
4783
4784 2011-11-20  Bruno Haible  <bruno@clisp.org>
4785
4786         copysignf tests: Fix.
4787         * tests/test-copysignf.c: Fix signature check.
4788
4789 2011-11-20  Bruno Haible  <bruno@clisp.org>
4790
4791         fma: Remove unused code.
4792         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
4793         unused macros.
4794
4795 2011-11-20  Bruno Haible  <bruno@clisp.org>
4796
4797         sethostname: Fix doc about AIX.
4798         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
4799         sethostname; it has it.
4800
4801         sethostname: Mention more portability problems.
4802         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
4803         problem.
4804         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
4805
4806 2011-11-19  Bruno Haible  <bruno@clisp.org>
4807
4808         Depend on module fcntl-h when AT_FDCWD is used.
4809         * modules/utimens (Depends-on): Add fcntl-h.
4810         * modules/areadlinkat (Depends-on): Likewise.
4811         * modules/areadlinkat-with-size (Depends-on): Likewise.
4812         * modules/faccessat (Depends-on): Likewise.
4813         * modules/fchmodat (Depends-on): Likewise.
4814         * modules/fchownat (Depends-on): Likewise.
4815         * modules/getcwd (Depends-on): Likewise.
4816         * modules/mkdirat (Depends-on): Likewise.
4817         * modules/mkfifoat (Depends-on): Likewise.
4818         * modules/readlinkat (Depends-on): Likewise.
4819         * modules/symlinkat (Depends-on): Likewise.
4820         * modules/dup2-tests (Depends-on): Likewise.
4821         * modules/fdutimensat-tests (Depends-on): Likewise.
4822         * modules/futimens-tests (Depends-on): Likewise.
4823
4824 2011-11-19  Bruno Haible  <bruno@clisp.org>
4825
4826         euidaccess: Update a comment.
4827         * lib/euidaccess.c: Update comment about platforms with faccessat.
4828
4829 2011-11-19  Bruno Haible  <bruno@clisp.org>
4830
4831         openat: Fix file list.
4832         * modules/openat (Files): Remove lib/at-func.c.
4833
4834 2011-11-19  Bruno Haible  <bruno@clisp.org>
4835
4836         fstatat: Simplify.
4837         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
4838         gnulib should define rpl_fstatat, there is a
4839         "#define fstatat rpl_fstatat" in <sys/stat.h>.
4840
4841 2011-11-19  Bruno Haible  <bruno@clisp.org>
4842
4843         Ensure 'inline' can be used in tests/test-utimens-common.h.
4844         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
4845         * modules/futimens-tests (configure.ac): Likewise.
4846         * modules/utimens-tests (configure.ac): Likewise.
4847         * modules/utimensat-tests (configure.ac): Likewise.
4848
4849 2011-11-19  Simon Josefsson  <simon@josefsson.org>
4850
4851         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
4852         not hash_insert0.
4853         (hash_insert_if_absent): Doc fix.
4854
4855 2011-11-19  Simon Josefsson  <simon@josefsson.org>
4856
4857         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
4858
4859 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
4860
4861         test-getcwd: disambiguate exit status
4862         * tests/test-getcwd.c (test_long_name): Return 0..7.
4863         (main): Exit with an unambiguous exit status.  The old
4864         code yielded a mysterious mixture of two failure codes.
4865
4866         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
4867         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
4868         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
4869         rpl_fstatat or fstatat.  This should fix the other problem
4870         reported by Kai Habel in
4871         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
4872         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
4873         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
4874         and I reproduced it on a Solaris 8 host we still have in production.
4875
4876 2011-11-18  Jim Meyering  <meyering@redhat.com>
4877
4878         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
4879         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
4880         Add a sentence to the comment.
4881         (hash_insert0): New function that simply calls hash_insert_if_absent.
4882         * lib/hash.h (hash_insert_if_absent): Declare it.
4883         (hash_insert0): Add deprecation attribute.
4884         (_GL_ATTRIBUTE_DEPRECATED): Define.
4885         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
4886         not hash_insert0.
4887         * NEWS: Mention it, even though it's not really an incompatible change.
4888
4889 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
4890
4891         openat: avoid compilation failure due to lack of <errno.h> inclusion
4892         * lib/openat.c: Include <errno.h>.
4893
4894 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
4895
4896         * modules/getcwd (Depends-on): Add fdopendir.
4897         This fixes one of the two problems reported by Kai Habel in
4898         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
4899
4900         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
4901         stdalign problem reported by Ian Beckwith in
4902         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
4903         * modules/crypto/gc-arcfour (Depends-on):
4904         Depend conditionally on crypto/arcfour.
4905         * modules/crypto/gc-arctwo (Depends-on):
4906         Depend conditionally on crypto/arctwo.
4907         * modules/crypto/gc-des (Depends-on):
4908         Depend conditionally on crypto/des.
4909         * modules/crypto/gc-hmac-md5 (Depends-on):
4910         Depend conditionally on crypto/hmac-md5.
4911         * modules/crypto/gc-hmac-sha1 (Depends-on):
4912         Depend conditionally on crypto/hmac-sha1.
4913         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
4914         * modules/crypto/gc-md4 (Depends-on):
4915         Depend conditionally on crypto/md4.
4916         * modules/crypto/gc-md5 (Depends-on):
4917         Depend conditionally on crypto/md5.
4918         * modules/crypto/gc-rijndael (Depends-on):
4919         Depend conditionally on crypto/rijndael.
4920         * modules/crypto/gc-sha1 (Depends-on):
4921         Depend conditionally on crypto/sha1.
4922         * modules/crypto/gc-arcfour:
4923         * modules/crypto/gc-arctwo:
4924         * modules/crypto/gc-des:
4925         * modules/crypto/gc-hmac-md5:
4926         * modules/crypto/gc-hmac-sha1:
4927         * modules/crypto/gc-md2:
4928         * modules/crypto/gc-md4:
4929         * modules/crypto/gc-md5:
4930         * modules/crypto/gc-rijndael:
4931         * modules/crypto/gc-sha1:
4932         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
4933         now that the conditional dependencies do the work for us.
4934
4935 2011-11-17  Jim Meyering  <meyering@redhat.com>
4936
4937         tests: factor st_ctime-comparison out of two headers
4938         * tests/test-utimens-common.h (ctime_compare): Define.
4939         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
4940         * tests/test-lutimens.h (test_lutimens): Likewise.
4941         * tests/test-utimens.h (test_utimens): Likewise.
4942
4943         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
4944         Invoke the test program via an init.sh-using wrapper.
4945         * tests/test-getcwd.sh: New file.
4946         * modules/getcwd-tests (Files): Add it.
4947         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
4948
4949 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
4950
4951         gitlog-to-changelog: support multi-author commits.
4952         The FSF cares about keeping track of all authors of patches to its
4953         projects, but Git doesn't provide obvious support for multi-author
4954         changesets. Consensus seems to be forming around the use of extra
4955         Signed-off-by inspired lines in the log message formatted as
4956         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
4957         multi-author commits between version control systems.
4958         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
4959         log message and output in standard ChangeLog multi-author format.
4960         Reported by Peter Rosin <peda@lysator.liu.se>
4961
4962 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
4963             Bruno Haible  <bruno@clisp.org>
4964
4965         Fix some modules' file list.
4966         * modules/fstatat (Files): Add m4/lstat.m4.
4967         * modules/openat (Files): Likewise.
4968         * modules/unlinkat (Files): Likewise.
4969
4970 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
4971
4972         maint.mk: fix tight-scope.mk generation in VPATH builds.
4973         * top/maint.mk (tight-scope.mk): Make sure to prefix file
4974         reference with $(srcdir) so that the file is found correctly even
4975         when running `make syntax-check' in a VPATH build.
4976
4977 2011-11-13  Bruno Haible  <bruno@clisp.org>
4978             Jim Meyering  <meyering@redhat.com>
4979
4980         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
4981         * tests/init.sh (compare): Remove "No differences encountered" or
4982         synonymous output from the 'diff' program.
4983
4984 2011-11-13  Bruno Haible  <bruno@clisp.org>
4985
4986         Makefile: Tweak indentation.
4987         * Makefile: Use tab as first character in every line that contains rule
4988         commands.
4989
4990 2011-11-13  Bruno Haible  <bruno@clisp.org>
4991
4992         Syntax check for copyright statements.
4993         * check-copyright: New file.
4994         * Makefile (sc_check_copyright): New rule.
4995
4996 2011-11-13  Simon Josefsson  <simon@josefsson.org>
4997
4998         * build-aux/git-version-gen: Add --prefix to configure the tag
4999         match string.
5000
5001 2011-11-13  Simon Josefsson  <simon@josefsson.org>
5002
5003         * build-aux/git-version-gen: Add --help and --version.
5004
5005 2011-11-12  Jim Meyering  <meyering@redhat.com>
5006
5007         revamp the other test-exclude?.sh scripts to use init.sh, too
5008         * tests/test-exclude1.sh: Use init.sh.
5009         * tests/test-exclude2.sh: Likewise.
5010         * tests/test-exclude3.sh: Likewise.
5011         * tests/test-exclude4.sh: Likewise.
5012         * tests/test-exclude5.sh: Likewise.
5013         * tests/test-exclude6.sh: Likewise.
5014         * tests/test-exclude7.sh: Likewise.
5015         * tests/test-exclude8.sh: Likewise.
5016         * modules/exclude-tests (Files): List init.sh.
5017
5018         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
5019         These shell scripts ignored failure of the binary test-exclude,
5020         so making the latter return 77 didn't cause them to be skipped.
5021         * tests/test-exclude5.sh: Exit with test-exclude's error status
5022         when that program fails.  Revamp to use init.sh.
5023         * tests/test-exclude2.sh: Likewise.
5024
5025         test-exclude: fix a typo
5026         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
5027
5028 2011-11-11  Bruno Haible  <bruno@clisp.org>
5029
5030         obstack: Fix compilation error on MSVC 9.
5031         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
5032
5033 2011-11-11  Jim Meyering  <meyering@redhat.com>
5034
5035         test-exclude: skip tests rather than failing on deficient systems
5036         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
5037         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
5038         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
5039         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
5040
5041 2011-11-10  Bruno Haible  <bruno@clisp.org>
5042
5043         ptsname_r test: Avoid gcc warning on glibc systems.
5044         * tests/test-ptsname_r.c (null_ptr): New function.
5045         (test_errors): Use it.
5046
5047 2011-11-10  Bruno Haible  <bruno@clisp.org>
5048
5049         ptsname_r: Avoid compilation error on OSF/1 5.1.
5050         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
5051         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
5052         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
5053         function is not declared or incompatibly declared.
5054         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
5055         * modules/ptsname_r (Depends-on, configure.ac): Update.
5056         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
5057
5058 2011-11-10  Bruno Haible  <bruno@clisp.org>
5059
5060         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
5061         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
5062         When cross-compiling, guess yes on all platforms except AIX.
5063         Reported by Ludovic Courtès <ludo@gnu.org>.
5064
5065 2011-11-09  Bruno Haible  <bruno@clisp.org>
5066
5067         ptsname_r tests: Fix bugs.
5068         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
5069         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
5070
5071 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
5072
5073         fstatat: work with cross-compilation
5074         Problem reported by Ludovic Courtès in
5075         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
5076         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
5077         "cross-compiling" and assume the bug is present.  Replace
5078         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
5079         an inverted sense, to be more conservative about our assumptions.
5080         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
5081
5082 2011-11-09  Bruno Haible  <bruno@clisp.org>
5083
5084         Improve MODULES.html output.
5085         * modules/mkfifoat (Description): Use the word "function".
5086         * modules/readlinkat (Description): Likewise.
5087         * modules/symlinkat (Description): Likewise.
5088
5089 2011-11-09  Eric Blake  <eblake@redhat.com>
5090
5091         ptsname_r-tests: new test module
5092         * modules/ptsname_r-tests: New module.
5093         * tests/test-ptsname_r.c: New file.
5094
5095         ptsname_r: new module
5096         * modules/ptsname_r: New module.
5097         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
5098         * lib/ptsname.c (__ptsname_r): Split...
5099         * lib/ptsname_r.c: ...into new file.
5100         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
5101         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
5102         * modules/stdlib (Makefile.am): Substitute witnesses.
5103         * lib/stdlib.in.h (ptsname_r): Declare it.
5104         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
5105         * MODULES.html.sh (Misc): Likewise.
5106         * modules/ptsname (Depends-on): Alter dependency.
5107         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
5108
5109 2011-11-09  Jim Meyering  <meyering@redhat.com>
5110
5111         announce-gen: be more concise when there's only one URL+tarball
5112         * build-aux/announce-gen (get_tool_versions): When you distribute
5113         only one type of tarball, combine the first two "Here are..."
5114         sections and make the key-checking grammar independent of
5115         how many tarballs there are.
5116
5117 2011-11-09  Eric Blake  <eblake@redhat.com>
5118
5119         openpty: provide a stub on mingw
5120         * lib/pty.in.h (includes): Provide forward declarations.
5121         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
5122
5123         raise: fix mingw handling of SIGPIPE
5124         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
5125
5126 2011-11-08  Bruno Haible  <bruno@clisp.org>
5127
5128         More conditional dependencies.
5129         * modules/faccessat (Depends-on): Add conditions.
5130         * modules/fchmodat (Depends-on): Likewise.
5131         * modules/fchownat (Depends-on): Likewise.
5132         * modules/fstatat (Depends-on): Likewise.
5133         * modules/mkfifoat (Depends-on): Likewise.
5134         * modules/readlinkat (Depends-on): Likewise.
5135         * modules/symlinkat (Depends-on): Likewise.
5136         * modules/unlinkat (Depends-on): Likewise.
5137         * modules/utimensat (Depends-on): Likewise.
5138         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
5139         * modules/linkat (Depends-on): Refine the conditions.
5140         * modules/renameat (Depends-on): Likewise.
5141
5142 2011-11-08  Bruno Haible  <bruno@clisp.org>
5143
5144         faccessat: Move AC_LIBOBJ invocation to module description.
5145         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
5146         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
5147         invocation from here...
5148         * modules/faccessat (configure.ac): ... to here. Invoke
5149         gl_PREREQ_FACCESSAT.
5150
5151 2011-11-08  Bruno Haible  <bruno@clisp.org>
5152
5153         faccessat: Simplify autoconf macro.
5154         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
5155         gl_FUNC_EUIDACCESS.
5156
5157 2011-11-08  Bruno Haible  <bruno@clisp.org>
5158
5159         renameat: Fix dependencies.
5160         * modules/renameat (Depends-on): Add stdbool.
5161
5162 2011-11-08  Bruno Haible  <bruno@clisp.org>
5163
5164         mkfifoat: Fix module description.
5165         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
5166         not gl_UNISTD_MODULE_INDICATOR.
5167
5168 2011-11-08  Bruno Haible  <bruno@clisp.org>
5169
5170         fstatat: Remove unused dependency.
5171         * modules/fstatat (Depends-on): Remove fstat.
5172
5173 2011-11-08  Simon Josefsson  <simon@josefsson.org>
5174
5175         GNUmakefile: behave when Makefile is missing.
5176         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
5177
5178 2011-11-08  Bruno Haible  <bruno@clisp.org>
5179
5180         openat: Conditionalize dependencies.
5181         * lib/openat.c: Reduce the scope of some #includes.
5182         * modules/openat (Depends-on): Add conditions.
5183
5184 2011-11-07  Jim Meyering  <meyering@redhat.com>
5185
5186         maint.mk: extract GPG key ID without using a temporary file
5187         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
5188         without using a temporary file.  Based on a suggestion from Werner Koch
5189         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
5190
5191 2011-11-07  Eric Blake  <eblake@redhat.com>
5192
5193         grantpt: fix typo
5194         * lib/stdlib.in.h (grantpt): Check correct function.
5195
5196         maint.mk: silence new syntax check
5197         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
5198
5199 2011-11-06  Bruno Haible  <bruno@clisp.org>
5200
5201         Doc about floating-point and math API.
5202         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
5203         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
5204
5205 2011-11-06  Bruno Haible  <bruno@clisp.org>
5206
5207         stdalign tests: Skip the test when compiled by Sun C.
5208         * tests/test-stdalign.c (main): Skip the test on Sun C.
5209
5210 2011-11-06  Bruno Haible  <bruno@clisp.org>
5211
5212         ansi-c++-opt: Complete the 2011-06-05 change.
5213         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
5214         does not support namespaces, set the variable to "no", not to ":".
5215
5216 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
5217
5218         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
5219
5220 2011-11-06  Bruno Haible  <bruno@clisp.org>
5221
5222         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
5223         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
5224         (minus_zerol) [HP-UX]: New macro.
5225         (unary_minus) [HP-UX]: New function.
5226         (copysignl) [HP-UX]: Use unary_minus function.
5227
5228 2011-11-06  Bruno Haible  <bruno@clisp.org>
5229
5230         ldexp, ldexpf, ldexpl: Enhance tests.
5231         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
5232         and tests/test-ldexpl.c.
5233         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
5234         LDEXP, MIN_EXP, MAX_EXP): New macros.
5235         Include test-ldexp.h.
5236         (main): Just call test_function.
5237         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
5238         infinity.h, nan.h.
5239         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
5240         MAX_EXP): New macros.
5241         Include test-ldexp.h.
5242         (x, y): Remove variables.
5243         (main): Just call test_function.
5244         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
5245         infinity.h, nan.h.
5246         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
5247         MAX_EXP): New macros.
5248         Include test-ldexp.h.
5249         (x, y): Remove variables.
5250         (main): Just call test_function.
5251         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
5252         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
5253         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
5254         (Depends-on): Add isnand-nolibm, signbit, float.
5255         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
5256         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
5257         (Depends-on): Add isnanf-nolibm, signbit, float.
5258
5259 2011-11-06  Bruno Haible  <bruno@clisp.org>
5260
5261         math tests: Cosmetics.
5262         * tests/test-math-c++.cc: Reorder declarations.
5263
5264 2011-11-05  Bruno Haible  <bruno@clisp.org>
5265
5266         fma*: Simplify test.
5267         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
5268         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
5269
5270         Tests for module 'fmal'.
5271         * modules/fmal-tests: New file.
5272         * tests/test-fmal1.c: New file.
5273         * tests/test-fmal2.c: New file.
5274
5275         New module 'fmal'.
5276         * lib/math.in.h (fmal): New declaration.
5277         * lib/fmal.c: New file.
5278         * m4/fmal.m4: New file.
5279         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
5280         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
5281         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
5282         REPLACE_FMAL.
5283         * modules/fmal: New file.
5284         * doc/posix-functions/fmal.texi: Mention the new module and the various
5285         bugs.
5286
5287         Tests for module 'fmaf'.
5288         * modules/fmaf-tests: New file.
5289         * tests/test-fmaf1.c: New file.
5290         * tests/test-fmaf2.c: New file.
5291
5292         New module 'fmaf'.
5293         * lib/math.in.h (fmaf): New declaration.
5294         * lib/fmaf.c: New file.
5295         * m4/fmaf.m4: New file.
5296         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
5297         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
5298         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
5299         REPLACE_FMAF.
5300         * modules/fmaf: New file.
5301         * doc/posix-functions/fmaf.texi: Mention the new module and the various
5302         bugs.
5303
5304         Tests for module 'fma'.
5305         * modules/fma-tests: New file.
5306         * tests/test-fma1.c: New file.
5307         * tests/test-fma1.h: New file.
5308         * tests/test-fma2.c: New file.
5309         * tests/test-fma2.h: New file.
5310
5311         New module 'fma'.
5312         * lib/math.in.h (fma): New declaration.
5313         * lib/fma.c: New file.
5314         * m4/fma.m4: New file.
5315         * m4/fegetround.m4: New file.
5316         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
5317         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
5318         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
5319         REPLACE_FMA.
5320         * modules/fma: New file.
5321         * doc/posix-functions/fma.texi: Mention the new module and the various
5322         bugs.
5323
5324         Extend gl_MATHFUNC.
5325         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
5326         Support 'void' as argument type.
5327         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
5328
5329 2011-11-05  Jim Meyering  <meyering@redhat.com>
5330
5331         maint.mk: also prohibit inclusion of dirent.h without use
5332         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
5333
5334 2011-11-05  Bruno Haible  <bruno@clisp.org>
5335
5336         ldexpl tests: Avoid test failure on MSVC 9.
5337         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
5338         value. Needed in order to enforce the conversion from a value greater
5339         than LDBL_MAX to Infinity.
5340
5341 2011-11-05  Bruno Haible  <bruno@clisp.org>
5342
5343         New modules 'at-internal', 'openat-h', split off from module 'openat'.
5344         * modules/at-internal: New file, extracted from modules/openat.
5345         * modules/openat-h: New file.
5346         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
5347         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
5348         * modules/openat (Description): Add reference to POSIX function.
5349         (Files): Remove lib/openat.h, lib/openat-proc.c.
5350         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
5351         intprops, unistd.
5352         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
5353         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
5354         gl_FCNTL_MODULE_INDICATOR.
5355         (Include): Remove unistd.h, openat.h.
5356         * modules/areadlinkat (Files): Add lib/at-func.c.
5357         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5358         openat-die, openat-h, save-cwd.
5359         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
5360         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5361         openat-die, openat-h, save-cwd, unistd.
5362         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
5363         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5364         openat-h, save-cwd. Remove fcntl-h, openat.
5365         * modules/fchmodat (Files): Remove lib/openat.h.
5366         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5367         openat, stdbool, unistd.
5368         * modules/fchownat (Files): Remove lib/openat.h.
5369         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5370         openat, stdbool, sys_stat.
5371         * modules/fdopendir (Files): Remove lib/openat-priv.h,
5372         lib/openat-proc.c.
5373         (Depends-on): Add at-internal.
5374         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
5375         * modules/fstatat (Files): Remove lib/openat.h.
5376         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
5377         stdbool, unistd.
5378         * modules/fts (Depends-on): Add openat-h.
5379         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
5380         openat.
5381         * modules/mkdirat (Files): Remove lib/openat.h.
5382         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5383         openat, stdbool, sys_stat.
5384         * modules/mkfifoat (Files): Add lib/at-func.c.
5385         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5386         openat-h, save-cwd. Remove fcntl-h, openat.
5387         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
5388         * modules/readlinkat (Files): Add lib/at-func.c.
5389         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5390         openat-h, save-cwd. Remove fcntl-h, openat.
5391         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
5392         openat.
5393         * modules/selinux-at (Files): Add lib/at-func.c.
5394         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5395         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
5396         * modules/symlinkat (Files): Add lib/at-func.c.
5397         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5398         openat-h, save-cwd. Remove fcntl-h, openat.
5399         * modules/unlinkat (Files): Remove lib/openat.h.
5400         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
5401         stdbool.
5402         * modules/utimensat (Files): Add lib/at-func.c.
5403         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
5404         openat-die, openat-h, save-cwd.
5405         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
5406         * modules/fdutimensat-tests (Depends-on): Add openat.
5407         * modules/fstatat-tests (Depends-on): Add openat-h.
5408         * modules/readlinkat-tests (Depends-on): Add openat.
5409         * modules/symlinkat-tests (Depends-on): Add openat.
5410
5411 2011-11-05  Bruno Haible  <bruno@clisp.org>
5412
5413         openat: Include <stdbool.h>.
5414         * lib/openat.c: Include <stdbool.h>.
5415
5416 2011-11-04  Bruno Haible  <bruno@clisp.org>
5417
5418         fchownat, renameat, unlinkat: Fix dependencies.
5419         * modules/fchownat (Depends-on): Add fstatat.
5420         * modules/renameat (Depends-on): Likewise.
5421         * modules/unlinkat (Depends-on): Likewise.
5422
5423 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
5424
5425         openat: remove direct dependency on dirent
5426         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
5427         and hasn't been needed ever since fdopendir was split into its own
5428         module on 2009-08-31.
5429         * modules/openat (Depends-on): Remove dirent.
5430
5431 2011-11-04  Bruno Haible  <bruno@clisp.org>
5432
5433         renameat: Optimize code size.
5434         * modules/renameat (configure.ac): Don't compile at-func2.c if
5435         REPLACE_RENAMEAT is 1.
5436
5437 2011-11-04  Bruno Haible  <bruno@clisp.org>
5438
5439         openat tests: Fix file list.
5440         * modules/openat-tests (Files): Add tests/test-open.h.
5441
5442 2011-11-04  Bruno Haible  <bruno@clisp.org>
5443
5444         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
5445         * modules/fchmodat (Depends-on): Add openat-die.
5446         * modules/fchownat (Depends-on): Likewise.
5447         * modules/linkat (Depends-on): Likewise.
5448         * modules/renameat (Depends-on): Likewise.
5449         * modules/openat (Depends-on): Add dirent.
5450
5451 2011-11-04  Jim Meyering  <meyering@redhat.com>
5452
5453         at-func*.c: fix comments
5454         * lib/at-func2.c: Correct/improve first-line comment.
5455         * lib/at-func.c: Correct grammar in first-line comment.
5456
5457 2011-11-04  Bruno Haible  <bruno@clisp.org>
5458
5459         New module 'mkdirat', split off from module 'openat'.
5460         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
5461         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
5462         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
5463         * modules/mkdirat: New file, extracted from modules/openat.
5464         * modules/openat (Files): Remove lib/mkdirat.c.
5465         (Depends-on): Remove mkdir.
5466         (configure.ac): Remove AC_LIBOBJ of mkdirat.
5467         (Include): Remove <sys/stat.h>.
5468         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
5469         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
5470         tests/test-mkdir.h.
5471         (Depends-on): Remove ignore-value.
5472         (Makefile.am): Remove rules for test-mkdirat.
5473         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
5474         of module 'openat'.
5475         * NEWS: Mention the change.
5476
5477 2011-11-04  Bruno Haible  <bruno@clisp.org>
5478
5479         closedir: Avoid warning on mingw.
5480         * lib/closedir.c: Include <unistd.h>.
5481
5482 2011-11-04  Bruno Haible  <bruno@clisp.org>
5483
5484         New module 'fstatat', split off from module 'openat'.
5485         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
5486         defined.
5487         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
5488         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
5489         gl_FUNC_FSTATAT.
5490         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
5491         * modules/fstatat: New file, extracted from modules/openat.
5492         * modules/openat (Files): Remove lib/fstatat.c.
5493         (Depends-on): Remove lstat.
5494         (configure.ac): Remove AC_LIBOBJ of fstatat.
5495         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
5496         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
5497         tests/test-lstat.h, tests/test-stat.h.
5498         (Depends-on): Remove getcwd-lgpl.
5499         (Makefile.am): Remove rules for test-fstatat.
5500         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
5501         of module 'openat'.
5502         * NEWS: Mention the change.
5503         * modules/getcwd (Depends-on): Add fstatat.
5504         * modules/linkat (Depends-on): Likewise.
5505         * modules/mkfifoat-tests (Depends-on): Likewise.
5506         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
5507
5508 2011-11-03  Bruno Haible  <bruno@clisp.org>
5509
5510         New module 'unlinkat', split off from module 'openat'.
5511         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
5512         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
5513         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
5514         * modules/unlinkat: New file, extracted from modules/openat. Correct
5515         the dependency conditions.
5516         * modules/openat (Files): Remove lib/unlinkat.c.
5517         (Depends-on): Remove rmdir, unlink.
5518         (configure.ac): Remove AC_LIBOBJ of unlinkat.
5519         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
5520         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
5521         tests/test-rmdir.h, tests/test-unlink.h.
5522         (Depends-on): Remove unlinkdir.
5523         (Makefile.am): Remove rules for test-unlinkat.
5524         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
5525         of module 'openat'.
5526         * NEWS: Mention the change.
5527         * modules/linkat-tests (Depends-on): Add unlinkat.
5528         * modules/mkfifoat-tests (Depends-on): Likewise.
5529         * modules/readlinkat-tests (Depends-on): Likewise.
5530
5531 2011-11-02  Bruno Haible  <bruno@clisp.org>
5532
5533         New module 'fchmodat', split off from module 'openat'.
5534         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
5535         defined.
5536         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
5537         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
5538         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
5539         * modules/fchmodat: New file, extracted from modules/openat.
5540         * modules/openat (Files): Remove lib/fchmodat.c.
5541         (configure.ac): Remove AC_LIBOBJ of fchmodat.
5542         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
5543         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
5544         (Makefile.am): Remove rules for test-fchmodat.
5545         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
5546         of module 'openat'.
5547         * NEWS: Mention the change.
5548
5549 2011-11-02  Jim Meyering  <meyering@redhat.com>
5550
5551         putenv: indent #definition of "environ" to placate cppi
5552         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
5553
5554         gitlog-to-changelog: provide a ChangeLog-repair mechanism
5555         Git logs are often treated as immutable, because editing them
5556         changes the SHA1 checksums of all descendants.  Thus, errors in
5557         git logs tend to stay there forever.  However, when we generate
5558         a ChangeLog file -- typically for distribution -- from that git log,
5559         we can actually make corrections in the generated file.  The key
5560         lies in recording in machine-readable/applicable form the desired
5561         corrections.  See --help for description and an example.
5562         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
5563         (usage): Describe it; alphabetize option descriptions.
5564         (main): Honor the new option, carefully.
5565
5566 2011-11-01  Jim Meyering  <meyering@redhat.com>
5567
5568         gitlog-to-changelog: avoid an infloop
5569         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
5570         that ends up being empty.
5571
5572 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
5573
5574         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
5575         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
5576         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
5577         contains (possibly-quoted) backslashes.  This should avoid
5578         all-too-common shell bugs if COMPLICATED contains backslashes in
5579         the "wrong" places.  Reported by David Evans in
5580         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
5581         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
5582         because we want ASCII ranges.  Is there some reason we don't use
5583         the C locale everywhere in this script?
5584         (func_module, top level): Avoid unwanted pathname expansion when
5585         $repo_url_prefix or $repo_url_suffix_repl contain shell
5586         metacharacters like '?' and '*'.
5587
5588 2011-11-01  Bruno Haible  <bruno@clisp.org>
5589
5590         fchownat: Improve description.
5591         * modules/fchownat (Description): Add link to function.
5592
5593 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
5594
5595         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
5596         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
5597         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
5598         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
5599
5600 2011-11-01  Bruno Haible  <bruno@clisp.org>
5601
5602         alignof: Avoid collision with stdalign module.
5603         * lib/alignof.h (alignof): Remove macro.
5604         * NEWS: Mention the change.
5605         Reported by Paul Eggert.
5606
5607 2011-11-01  Bruno Haible  <bruno@clisp.org>
5608
5609         New module 'fchownat', split off from module 'openat'.
5610         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
5611         defined.
5612         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
5613         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
5614         invoke gl_FUNC_FCHOWNAT.
5615         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
5616         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
5617         * modules/fchownat: New file, extracted from modules/openat.
5618         * modules/openat (Files): Remove lib/fchownat.c.
5619         (Depends-on): Remove lchown.
5620         (configure.ac): Remove AC_LIBOBJ of fchownat.
5621         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
5622         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
5623         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
5624         (Depends-on): Remove mgetgroups, usleep, stat-time.
5625         (configure.ac): Remove test for getegid.
5626         (Makefile.am): Remove rules for test-fchownat.
5627         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
5628         of module 'openat'.
5629         * NEWS: Mention the change.
5630
5631 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
5632
5633         stdalign: port better to MSVC and to Sun C 5.11
5634         This fixes some of the problems reported by Bruno Haible in
5635         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
5636         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
5637         shortcomings of MSVC and of Sun C 5.11.
5638         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
5639         around __declspec arg.
5640         * modules/stdalign-tests (Files): Add tests/macros.h.
5641         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
5642         Include macros.h, for ASSERT.
5643         (DECLARE_ALIGNED): Remove.
5644         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
5645         to catch bug), and to 1 if not (simplifies the rest of the code).
5646         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
5647         (CHECK_AUTO): Remove.
5648         (CHECK_ALIGNED): Check only the alignment of the static vars,
5649         since auto var alignment isn't supported by Sun C 5.11.
5650         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
5651         ASSERT failures are easier to diagnose.
5652
5653 2011-10-31  Bruno Haible  <bruno@clisp.org>
5654
5655         doc about some IRIX 5.3 problems.
5656         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
5657         on IRIX 5.3.
5658         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
5659         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
5660         5.3.
5661         * doc/posix-functions/grantpt.texi: Likewise.
5662         * doc/posix-functions/unlockpt.texi: Likewise.
5663         * doc/posix-functions/lgamma.texi: Likewise.
5664         * doc/posix-functions/nextafter.texi: Likewise.
5665         * doc/posix-functions/remainder.texi: Likewise.
5666         * doc/posix-functions/select.texi: Mention misplaced declaration on
5667         IRIX 5.3.
5668         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5669
5670 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
5671
5672         gitlog-to-changelog: fix git-log invocation.
5673         git-log mishandles date strings before 1970-01-01 UTC, and there is
5674         no use to specify --since=1970-01-01 by default anyway.
5675         * build-aux/gitlog-to-changelog: By default, when no --since option
5676         was given, do not specify explicit --since option to git-log.
5677
5678 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
5679
5680         gitlog-to-changelog: new option --append-dot.
5681         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
5682         first non-blank line of each commit message terminated with a dot.
5683
5684 2011-10-30  Bruno Haible  <bruno@clisp.org>
5685
5686         ffsl, ffsll: Avoid compilation error due to 'restrict'.
5687         * lib/ffsl.h: Include <config.h>.
5688         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
5689
5690 2011-10-30  Jim Meyering  <meyering@redhat.com>
5691
5692         GNUmakefile: reenable "make syntax-check" for most projects
5693         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
5694         build-aux variable", "syntax-check" would do nothing but succeed with
5695         the "No version control files detected..." diagnostic (unless you
5696         happened to override _build-aux via cfg.mk).
5697         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
5698         to precede inclusion of maint.mk.  Otherwise, these variables would
5699         be used undefined in any project that does not override the default.
5700
5701 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
5702
5703         gitlog-to-changelog: treat a message with only blank lines as empty.
5704         * build-aux/gitlog-to-changelog: Move the code that removes leading and
5705         trailing blank lines before the code that issues a warning about an
5706         empty commit message.
5707
5708 2011-10-30  Jim Meyering  <meyering@redhat.com>
5709
5710         test-parse-datetime.c: avoid new DST-related false positive test failure
5711         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
5712         based on the time/date we'll convert, not the current time.
5713         Otherwise, the moment we cross a DST boundary like today's in
5714         Europe, (CEST to CET), that offset ends up being one hour off.
5715
5716 2011-10-27  Bruno Haible  <bruno@clisp.org>
5717
5718         fstat: Tweak documentation.
5719         * modules/fstat (Description): More precise description.
5720
5721 2011-10-27  Bruno Haible  <bruno@clisp.org>
5722
5723         Update documentation regarding 'largefile' module.
5724         * doc/posix-functions/fstat.texi: Tweak wording.
5725         * doc/posix-functions/opendir.texi: Mention that the module fixes the
5726         problems with huge directories and/or small ino_t types.
5727         * doc/posix-functions/readdir.texi: Likewise.
5728         * doc/posix-functions/rewinddir.texi: Likewise.
5729
5730 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
5731
5732         maint.mk: don't maintain a second build-aux variable.
5733         * maint.mk (build_aux): Removed.  The maintainer-makefile module
5734         depends on GNUmakefile, which already maintains a cfg.mk
5735         overridable $(_build-aux) for projects with a non-standard
5736         build-aux directory location, although without the $(srcdir)
5737         prefix.  Use that variable consistently instead of introducing a
5738         second one.  Adjust all call sites.
5739
5740 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
5741
5742         Add stdalign module and use it in other modules.
5743         This is based on a previous proposal by Bruno Haible
5744         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
5745
5746         stdalign: new module
5747         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
5748         * modules/stdalign: New files.
5749         * MODULES.html.sh (c1x_core_properties): Add stdalign.
5750         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
5751
5752         stdalign-tests: new module
5753         * modules/stdalign-tests, tests/test-stdalign.c: New files.
5754
5755         argp: use stdalign
5756         * lib/argp-parse.c: Include <stdalign.h>.
5757         (alignof): Remove.
5758         * modules/argp (Depends-on): Add stdalign.
5759
5760         crypto libraries: use stdalign
5761         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
5762         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
5763         Do not include <stdlib.h> twice, in md4.c.
5764         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
5765         because we are accessing a pointer's bit-pattern, not a size.
5766         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
5767         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
5768         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
5769         * modules/crypto/sha512: Likewise.
5770
5771         sys_socket: use stdalign, not alignof
5772         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
5773         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
5774
5775 2011-10-27  Bruno Haible  <bruno@clisp.org>
5776
5777         raise test: Avoid a test failure on Linux/MIPS.
5778         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
5779         because 99 is a valid signal on Linux/MIPS.
5780
5781 2011-10-27  Bruno Haible  <bruno@clisp.org>
5782
5783         nonblocking tests: Fix test failure on Linux/MIPS.
5784         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
5785         Set to 270000.
5786
5787 2011-10-27  Bruno Haible  <bruno@clisp.org>
5788
5789         utimensat: Work around problem on Linux/hppa.
5790         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
5791         values.
5792         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
5793
5794 2011-10-25  Jim Meyering  <meyering@redhat.com>
5795
5796         maint.mk: fix a bug in sc_prohibit_stddef_without_use
5797         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
5798         after symbols like NULL, size_t, etc.
5799         Reported by Alfred M. Szmidt.
5800
5801         maint.mk: exempt ENODATA from a syntax-check rule
5802         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
5803         from the sc_prohibit_always-defined_macros syntax-check rule.
5804         Add a comment.  See this for more details:
5805         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
5806
5807 2011-10-23  Jim Meyering  <meyering@redhat.com>
5808
5809         fts: close parent dir FD before returning from post-traversal fts_read
5810         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
5811         unlink A, even though an FD open on A remained.  This is suboptimal
5812         (holding a file descriptor open longer than needed), but otherwise not
5813         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
5814         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
5815         that represents a real problem: it causes the removal of A to fail
5816         with e.g., "rm: cannot remove `A': Device or resource busy"
5817
5818         fts visits each directory twice and keeps a cache (fts_fd_ring) of
5819         directory file descriptors.  After completing the final, FTS_DP,
5820         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
5821         cache, but then proceeded to add a new FD to it via the subsequent
5822         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
5823         final file descriptor would be closed only via fts_close's call to
5824         fd_ring_clear.  Now, it is usually closed earlier, via the final
5825         FTS_DP-returning fts_read call.
5826         * lib/fts.c (restore_initial_cwd): New function, converted from
5827         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
5828         Update callers.
5829         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
5830         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
5831
5832 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
5833             Bruno Haible  <bruno@clisp.org>
5834             Jim Meyering  <jim@meyering.net>
5835
5836         readme-release: improve safety of release prep instructions.
5837         * README-release: Don't git pull all branches when only master
5838         is needed for the release process.
5839         Run make maintainer-clean before changing trees and merging.
5840         Don't try to run ./configure right after git pull in case files
5841         that influence the bootstrap process have changed, move the
5842         ./configure step to after running ./bootstrap.
5843         Don't bootstrap "one last time"... it's the first time!
5844
5845 2011-10-22  Bruno Haible  <bruno@clisp.org>
5846
5847         errno, strerror-override: Support for MSVC 10.
5848         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
5849         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
5850         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
5851         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
5852         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
5853         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
5854         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
5855         Assign values compatible with MSVC 10.
5856         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
5857         New macros.
5858         (GNULIB_defined_EWINSOCK): New macro.
5859         * lib/strerror-override.c (strerror_override): Update accordingly.
5860         * lib/strerror-override.h: Likewise.
5861         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
5862         longer equal to the corresponding errno value.
5863         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5864
5865 2011-10-22  Bruno Haible  <bruno@clisp.org>
5866
5867         perror: Recognize when test program crashes.
5868         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
5869         strerror, set gl_cv_func_perror_works to no.
5870         Reported by Daniel Richard G. <skunk@iskunk.org>.
5871
5872         perror: Fix indentation.
5873         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
5874
5875 2011-10-22  Bruno Haible  <bruno@clisp.org>
5876
5877         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
5878         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
5879         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
5880         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
5881         functions, not as a macro.
5882         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
5883         macros.
5884         (isfinite, isinf, isnan, signbit): Check overloaded functions and
5885         absence of macro.
5886         Suggested by Eric Blake.
5887         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5888
5889 2011-10-21  Bruno Haible  <bruno@clisp.org>
5890
5891         relocatable-prog-wrapper: Don't leave object files behind.
5892         * build-aux/install-reloc: Re-synchronize list of .o files to be
5893         removed with list of compilation units.
5894
5895 2011-10-20  Bruno Haible  <bruno@clisp.org>
5896
5897         openpty, posix_openpt: Remove code duplication.
5898         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
5899         * lib/openpty.c: Include <stdlib.h>.
5900         (openpty): Use posix_openpt on all platforms except IRIX.
5901         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
5902
5903 2011-10-20  Bruno Haible  <bruno@clisp.org>
5904
5905         unlockpt: Detect invalid argument.
5906         * lib/unlockpt.c: Include <fcntl.h>.
5907         (unlockpt): Check whether fd is valid, using fcntl().
5908         * modules/unlockpt (Depends-on): Add fcntl-h.
5909
5910 2011-10-20  Bruno Haible  <bruno@clisp.org>
5911
5912         openpty: Avoid compilation error on AIX 6.1.
5913         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
5914
5915 2011-10-20  Bruno Haible  <bruno@clisp.org>
5916
5917         posix_openpt: Support for OpenBSD.
5918         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
5919         (posix_openpt) [OpenBSD]: New code.
5920         * lib/grantpt.c: Include <fcntl.h>.
5921         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
5922         * modules/grantpt (Depends-on): Add fcntl-h.
5923
5924 2011-10-20  Bruno Haible  <bruno@clisp.org>
5925
5926         posix_openpt test: Coding style.
5927         * tests/test-posix_openpt.c: Use GNU coding style.
5928
5929 2011-10-20  Bruno Haible  <bruno@clisp.org>
5930
5931         grantpt: Support --avoid=pt_chown.
5932         * modules/grantpt (Files): Add lib/pty-private.h.
5933
5934 2011-10-20  Bruno Haible  <bruno@clisp.org>
5935
5936         posix_openpt: Fix autoconf macro.
5937         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
5938         unneeded check for _getpty.
5939
5940 2011-10-20  Bruno Haible  <bruno@clisp.org>
5941
5942         openpty: Update comments.
5943         * lib/openpty.c: Add comments about Minix.
5944
5945 2011-10-19  Eric Blake  <eblake@redhat.com>
5946
5947         openpty: relax license
5948         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
5949
5950         pt_chown: use configmake to simplify build
5951         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
5952
5953         ptsname and others: relax license
5954         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
5955         * modules/unlockpt (License): Likewise.
5956         * modules/pt_chown (License): Likewise.
5957         * modules/ptsname (License): Likewise.
5958         * modules/ttyname_r (License): Likewise.
5959
5960 2011-10-19  Jim Meyering  <meyering@redhat.com>
5961
5962         posix_openpt: remove spurious #endif
5963         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
5964
5965 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
5966
5967         maint.mk: Respect $(build_aux) in web-manual rule.
5968         * top/maint.mk (web-manual): Find gen-announce script in user's
5969         $(build_aux) directory instead of hard-coding 'build-aux'.
5970
5971 2011-10-19  Bruno Haible  <bruno@clisp.org>
5972
5973         posix_openpt: Fix compilation error.
5974         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
5975         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
5976         Mention the openpty module as an alternative.
5977
5978 2011-10-19  Bruno Haible  <bruno@clisp.org>
5979
5980         Support for old NeXTstep 3.3 frexp().
5981         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
5982         execution time of the test to 5 seconds.
5983         Reported by Daniel Richard G. <skunk@iskunk.org>.
5984
5985 2011-10-19  Bruno Haible  <bruno@clisp.org>
5986
5987         Support for old NeXTstep 3.3 sed.
5988         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
5989         part, use /.../, not \|...|. Escape periods in the header file name.
5990         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
5991         Reported by Daniel Richard G. <skunk@iskunk.org>.
5992
5993 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
5994
5995         Support for old NeXTstep 3.3 gcc.
5996         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
5997         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
5998         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
5999         * lib/spawn.in.h (_Restrict_arr_): Likewise.
6000         * lib/regex.h (_Restrict_arr_): Likewise.
6001         * lib/regex_internal.h (re_token_t): Likewise.
6002         * lib/regexec.c (check_node_accept_bytes): Likewise.
6003         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
6004
6005 2011-10-18  Eric Blake  <eblake@redhat.com>
6006
6007         posix_openpt: new module
6008         * modules/posix_openpt: New module.
6009         * m4/posix_openpt.m4: New file.
6010         * lib/posix_openpt.c: Likewise.
6011         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
6012         (gl_STDLIB_H_DEFAULTS): Set defaults.
6013         * modules/stdlib (Makefile.am): Substitute macros.
6014         * lib/stdlib.in.h (posix_openpt): Declare.
6015         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
6016         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
6017         * modules/posix_openpt-tests: New test module.
6018         * tests/test-posix_openpt.c: New test.
6019
6020 2011-10-15  Bruno Haible  <bruno@clisp.org>
6021
6022         xstrtoll: Fix compilation failure.
6023         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
6024         from lib/strtol.c.
6025         * doc/posix-headers/limits.texi: Mention missing numerical limits on
6026         some platforms.
6027         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6028
6029 2011-10-15  Bruno Haible  <bruno@clisp.org>
6030
6031         vasnprintf: Optimize bit search operation.
6032         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
6033         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
6034         gl_DOUBLE_EXPONENT_LOCATION.
6035         * modules/vasnprintf (Files): Add m4/exponentd.m4.
6036         * modules/unistdio/u8-vasnprintf (Files): Likewise.
6037         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
6038         * modules/unistdio/u16-vasnprintf (Files): Likewise.
6039         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
6040         * modules/unistdio/u32-vasnprintf (Files): Likewise.
6041         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
6042         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
6043         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
6044
6045 2011-10-15  Bruno Haible  <bruno@clisp.org>
6046
6047         vasnprintf: Fix comments.
6048         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
6049
6050 2011-10-14  Bruno Haible  <bruno@clisp.org>
6051
6052         Tests for module 'integer_length_ll'.
6053         * modules/integer_length_ll-tests: New file.
6054         * tests/test-integer_length_ll.c: New file.
6055
6056         New module 'integer_length_ll'.
6057         * lib/integer_length_ll.c: New file.
6058         * modules/integer_length_ll: New file.
6059
6060 2011-10-14  Bruno Haible  <bruno@clisp.org>
6061
6062         Tests for module 'integer_length_l'.
6063         * modules/integer_length_l-tests: New file.
6064         * tests/test-integer_length_l.c: New file.
6065
6066         New module 'integer_length_l'.
6067         * lib/integer_length_l.c: New file.
6068         * modules/integer_length_l: New file.
6069
6070 2011-10-14  Bruno Haible  <bruno@clisp.org>
6071
6072         Tests for module 'integer_length'.
6073         * modules/integer_length-tests: New file.
6074         * tests/test-integer_length.c: New file.
6075
6076         New module 'integer_length'.
6077         * lib/integer_length.h: New file.
6078         * lib/integer_length.c: New file.
6079         * modules/integer_length: New file.
6080
6081 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6082
6083         popen: Fix dependency conditions.
6084         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
6085
6086 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6087
6088         perror: Fix autoconf test.
6089         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
6090         <stdlib.h> and <string.h>.
6091
6092 2011-10-14  Bruno Haible  <bruno@clisp.org>
6093
6094         ffsl: Optimize on 64-bit platforms.
6095         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
6096         unrolling.
6097
6098 2011-10-13  Bruno Haible  <bruno@clisp.org>
6099
6100         ffsl: Optimize on 32-bit platforms.
6101         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
6102         use ffs() without a loop.
6103
6104         ffsl, ffsll: Optimize for GCC.
6105         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
6106         * lib/ffsl.c (GCC_BUILTIN): New macro.
6107         * lib/ffsll.c (GCC_BUILTIN): Likewise.
6108
6109 2011-10-13  Bruno Haible  <bruno@clisp.org>
6110
6111         ffs, bcopy, memset: Support symbol renaming via config.h.
6112         * lib/ffs.c: Include <config.h>.
6113         * lib/bcopy.c: Likewise.
6114         * lib/memset.c: Likewise.
6115
6116 2011-10-10  Bruno Haible  <bruno@clisp.org>
6117
6118         atanl: Simplify for platforms where 'long double' == 'double'.
6119         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6120         alternative implementation.
6121         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6122         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6123         * modules/atanl (Depends-on): Add atan. Update conditions.
6124
6125 2011-10-10  Bruno Haible  <bruno@clisp.org>
6126
6127         acosl: Simplify for platforms where 'long double' == 'double'.
6128         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6129         alternative implementation.
6130         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6131         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6132         * modules/acosl (Depends-on): Add acos. Update conditions.
6133
6134 2011-10-10  Bruno Haible  <bruno@clisp.org>
6135
6136         asinl: Simplify for platforms where 'long double' == 'double'.
6137         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6138         alternative implementation.
6139         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6140         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6141         * modules/asinl (Depends-on): Add asin. Update conditions.
6142
6143 2011-10-10  Bruno Haible  <bruno@clisp.org>
6144
6145         tanl: Simplify for platforms where 'long double' == 'double'.
6146         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6147         implementation.
6148         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6149         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6150         * modules/tanl (Depends-on): Add tan. Update conditions.
6151         (configure.ac): Don't compile trigl.c if
6152         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6153
6154 2011-10-10  Bruno Haible  <bruno@clisp.org>
6155
6156         cosl: Simplify for platforms where 'long double' == 'double'.
6157         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6158         implementation.
6159         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6160         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6161         * modules/cosl (Depends-on): Add cos. Update conditions.
6162         (configure.ac): Don't compile sincosl.c and trigl.c if
6163         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6164
6165 2011-10-10  Bruno Haible  <bruno@clisp.org>
6166
6167         sinl: Simplify for platforms where 'long double' == 'double'.
6168         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6169         implementation.
6170         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6171         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6172         * modules/sinl (Depends-on): Add sin. Update conditions.
6173         (configure.ac): Don't compile sincosl.c and trigl.c if
6174         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6175
6176 2011-10-10  Bruno Haible  <bruno@clisp.org>
6177
6178         logl: Simplify for platforms where 'long double' == 'double'.
6179         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6180         implementation.
6181         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6182         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6183         * modules/logl (Depends-on): Add log. Update conditions.
6184
6185 2011-10-10  Bruno Haible  <bruno@clisp.org>
6186
6187         expl: Simplify for platforms where 'long double' == 'double'.
6188         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6189         implementation.
6190         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6191         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6192         * modules/expl (Depends-on): Add exp. Update conditions.
6193
6194 2011-10-10  Bruno Haible  <bruno@clisp.org>
6195
6196         sqrtl: Simplify for platforms where 'long double' == 'double'.
6197         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6198         alternative implementation.
6199         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6200         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6201         * modules/sqrtl (Depends-on): Update conditions.
6202
6203 2011-10-10  Bruno Haible  <bruno@clisp.org>
6204
6205         ldexpl: Simplify for platforms where 'long double' == 'double'.
6206         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6207         alternative implementation.
6208         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6209         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6210         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
6211
6212 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
6213
6214         ffsll: set correct witness
6215         * modules/ffsll (configure.ac): Fix typo.
6216
6217 2011-10-10  Bruno Haible  <bruno@clisp.org>
6218
6219         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
6220         * lib/printf-frexpl.c: Include <config.h>.
6221         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6222         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
6223         second time.
6224         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
6225         gl_LONG_DOUBLE_VS_DOUBLE.
6226         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
6227         conditions.
6228
6229 2011-10-10  Bruno Haible  <bruno@clisp.org>
6230
6231         frexpl: Simplify for platforms where 'long double' == 'double'.
6232         * lib/frexpl.c: Include <config.h>.
6233         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6234         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6235         time.
6236         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6237         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6238         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
6239         * modules/frexpl (Depends-on): Add frexp. Update conditions.
6240         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
6241         conditions.
6242
6243 2011-10-10  Jim Meyering  <meyering@redhat.com>
6244
6245         test-renameat: don't leave behind a temporary file
6246         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
6247           ERROR: files left in build directory after distclean:
6248           ./gltests/test-renameat.too
6249           make[1]: *** [distcleancheck] Error 1
6250         Reported by Tom G. Christensen.
6251
6252 2011-10-09  Bruno Haible  <bruno@clisp.org>
6253
6254         rint: Determine RINT_LIBM correctly on AIX 7.
6255         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
6256         directly, not only through a function pointer. Also accept an optional
6257         4th argument with extra code.
6258         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
6259         rintf() call by gcc when optimizing.
6260
6261         mathfunc.m4: Refactor.
6262         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
6263         m4 variable.
6264
6265 2011-10-09  Bruno Haible  <bruno@clisp.org>
6266
6267         rintl: Simplify for platforms where 'long double' == 'double'.
6268         * lib/rintl.c: Include <config.h>.
6269         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6270         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6271         time.
6272         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6273         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6274         * modules/rintl (Depends-on): Add rint. Update conditions.
6275
6276 2011-10-09  Bruno Haible  <bruno@clisp.org>
6277
6278         roundl: Simplify for platforms where 'long double' == 'double'.
6279         * lib/roundl.c: Include <config.h>.
6280         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6281         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6282         time.
6283         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6284         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6285         * modules/roundl (Depends-on): Add round. Update conditions.
6286
6287 2011-10-09  Bruno Haible  <bruno@clisp.org>
6288
6289         truncl: Simplify for platforms where 'long double' == 'double'.
6290         * lib/truncl.c: Include <config.h>.
6291         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6292         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6293         time.
6294         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6295         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6296         * modules/truncl (Depends-on): Add trunc. Update conditions.
6297
6298 2011-10-09  Bruno Haible  <bruno@clisp.org>
6299
6300         ceill: Simplify for platforms where 'long double' == 'double'.
6301         * lib/ceill.c: Include <config.h>.
6302         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6303         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6304         time.
6305         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6306         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6307         * modules/ceill (Depends-on): Add ceil. Update conditions.
6308
6309 2011-10-09  Bruno Haible  <bruno@clisp.org>
6310
6311         floorl: Simplify for platforms where 'long double' == 'double'.
6312         * lib/floorl.c: Include <config.h>.
6313         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6314         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6315         time.
6316         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6317         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6318         * modules/floorl (Depends-on): Add floor. Update conditions.
6319
6320 2011-10-09  Bruno Haible  <bruno@clisp.org>
6321
6322         rint: Fix ordering constraints.
6323         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
6324         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
6325         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
6326
6327 2011-10-09  Bruno Haible  <bruno@clisp.org>
6328
6329         copysignl: Simplify for platforms where 'long double' == 'double'.
6330         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6331         alternative.
6332         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6333         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6334         * modules/copysignl (Depends-on): Add copysign. Update conditions.
6335
6336 2011-10-09  Bruno Haible  <bruno@clisp.org>
6337
6338         Tests for module 'rintl'.
6339         * modules/rintl-tests: New file.
6340         * tests/test-rintl.c: New file.
6341
6342         New module 'rintl'.
6343         * lib/math.in.h (rintl): New declaration.
6344         * lib/rintl.c: New file.
6345         * m4/rintl.m4: New file.
6346         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
6347         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
6348         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
6349         * modules/rintl: New file.
6350         * tests/test-math-c++.cc: Check the declaration of rintl.
6351         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6352         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
6353         * doc/posix-functions/rintl.texi: Mention the new module.
6354
6355 2011-10-09  Bruno Haible  <bruno@clisp.org>
6356
6357         Tests for module 'rintf'.
6358         * modules/rintf-tests: New file.
6359         * tests/test-rintf.c: New file.
6360
6361         New module 'rintf'.
6362         * lib/math.in.h (rintf): New declaration.
6363         * lib/rintf.c: New file.
6364         * m4/rintf.m4: New file.
6365         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
6366         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
6367         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
6368         * modules/rintf: New file.
6369         * tests/test-math-c++.cc: Check the declaration of rintf.
6370         * doc/posix-functions/rintf.texi: Mention the new module.
6371
6372 2011-10-09  Bruno Haible  <bruno@clisp.org>
6373
6374         rint: Support for MSVC.
6375         * lib/math.in.h (rint): New declaration.
6376         * lib/rint.c: New file.
6377         * m4/rint.m4: New file.
6378         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
6379         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
6380         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
6381         * modules/rint (Description): Fix.
6382         (Files): Add lib/rint.c, m4/rint.m4.
6383         (Depends-on): Add math.
6384         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
6385         gl_MATH_MODULE_INDICATOR.
6386         * tests/test-math-c++.cc: Check the declaration of rint.
6387         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6388         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
6389         * doc/posix-functions/rint.texi: Mention the replacement provided by
6390         the module.
6391
6392         rint tests: More tests.
6393         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
6394         minus-zero.h, infinity.h, nan.h.
6395         (main): Skip the test if the current rounding mode is not standard. Add
6396         tests for negative numbers, minus zero, infinity, NaN.
6397         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
6398         tests/nan.h.
6399         (Depends-on): Add isnand-nolibm.
6400
6401 2011-10-09  Bruno Haible  <bruno@clisp.org>
6402
6403         Tests for module 'copysignl'.
6404         * modules/copysignl-tests: New file.
6405         * tests/test-copysignl.c: New file.
6406
6407         New module 'copysignl'.
6408         * lib/math.in.h (copysignl): New declaration.
6409         * lib/copysignl.c: New file.
6410         * m4/copysignl.m4: New file.
6411         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
6412         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
6413         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
6414         HAVE_COPYSIGNL.
6415         * modules/copysignl: New file.
6416         * tests/test-math-c++.cc: Check the declaration of copysignl.
6417         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6418         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
6419         * doc/posix-functions/copysignl.texi: Mention the new module.
6420
6421 2011-10-09  Bruno Haible  <bruno@clisp.org>
6422
6423         Tests for module 'copysignf'.
6424         * modules/copysignf-tests: New file.
6425         * tests/test-copysignf.c: New file.
6426
6427         New module 'copysignf'.
6428         * lib/math.in.h (copysignf): New declaration.
6429         * lib/copysignf.c: New file.
6430         * m4/copysignf.m4: New file.
6431         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
6432         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
6433         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
6434         HAVE_COPYSIGNF.
6435         * modules/copysignf: New file.
6436         * tests/test-math-c++.cc: Check the declaration of copysignf.
6437         * doc/posix-functions/copysignf.texi: Mention the new module.
6438
6439 2011-10-09  Bruno Haible  <bruno@clisp.org>
6440
6441         Ensure that HAVE_* variables are set to 1 before they are set to 0.
6442         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
6443         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
6444         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
6445         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
6446         gl_SIGNAL_H_DEFAULTS.
6447
6448 2011-10-09  Bruno Haible  <bruno@clisp.org>
6449
6450         poll: Make macro safer.
6451         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
6452         ac_cv_header_poll_h is not set.
6453
6454 2011-10-09  Bruno Haible  <bruno@clisp.org>
6455
6456         copysign: Provide replacement.
6457         * lib/math.in.h (copysign): New declaration.
6458         * lib/copysign.c: New file.
6459         * m4/copysign.m4: New file.
6460         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
6461         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
6462         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
6463         HAVE_COPYSIGN.
6464         * modules/copysign (Description): Clarify.
6465         (Files): Add lib/copysign.c, m4/copysign.m4.
6466         (Depends-on): Add math, signbit.
6467         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
6468         gl_MATH_MODULE_INDICATOR.
6469         * tests/test-math-c++.cc: Check the declaration of copysign.
6470         * doc/posix-functions/copysign.texi: Mention the effects of the module
6471         on Minix and MSVC.
6472
6473 2011-10-09  Bruno Haible  <bruno@clisp.org>
6474
6475         isinf: Ensure macro on AIX 5.1.
6476         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
6477         macro.
6478         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
6479
6480 2011-10-09  Bruno Haible  <bruno@clisp.org>
6481
6482         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
6483         * modules/snprintf-posix-tests (configure.ac): Require
6484         gl_LONG_DOUBLE_VS_DOUBLE.
6485         * modules/sprintf-posix-tests (configure.ac): Likewise.
6486         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
6487         * modules/vasprintf-posix-tests (configure.ac): Likewise.
6488         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
6489         * modules/vsprintf-posix-tests (configure.ac): Likewise.
6490         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
6491         tests on platforms where 'long double' is the same as 'double'.
6492         * tests/test-sprintf-posix.h (test_function): Likewise.
6493         * tests/test-vasnprintf-posix.c (test_function): Likewise.
6494         * tests/test-vasprintf-posix.c (test_function): Likewise.
6495
6496         *printf: Fix for platforms where 'long double' == 'double'.
6497         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
6498         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
6499         * modules/dprintf-posix (Files): Add m4/math_h.m4.
6500         * modules/fprintf-posix (Files): Likewise.
6501         * modules/obstack-printf-posix (Files): Likewise.
6502         * modules/snprintf-posix (Files): Likewise.
6503         * modules/sprintf-posix (Files): Likewise.
6504         * modules/vasnprintf (Files): Likewise.
6505         * modules/vasnprintf-posix (Files): Likewise.
6506         * modules/vasprintf-posix (Files): Likewise.
6507         * modules/vdprintf-posix (Files): Likewise.
6508         * modules/vfprintf-posix (Files): Likewise.
6509         * modules/vsnprintf-posix (Files): Likewise.
6510         * modules/vsprintf-posix (Files): Likewise.
6511         * modules/unistdio/u8-vasnprintf (Files): Likewise.
6512         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
6513         * modules/unistdio/u16-vasnprintf (Files): Likewise.
6514         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
6515         * modules/unistdio/u32-vasnprintf (Files): Likewise.
6516         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
6517         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
6518
6519         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
6520         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
6521         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6522         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
6523         'long double'.
6524         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
6525
6526         isinf: Fix for platforms where 'long double' == 'double'.
6527         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
6528         Don't blindly assume 80-bit 'long double'.
6529
6530         isfinite: Fix for platforms where 'long double' == 'double'.
6531         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
6532         Don't blindly assume 80-bit 'long double'.
6533
6534         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
6535         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
6536         * modules/isfinite-tests (configure.ac): Require
6537         gl_LONG_DOUBLE_VS_DOUBLE.
6538         * modules/isinf-tests (configure.ac): Likewise.
6539         * modules/isnan-tests (configure.ac): Likewise.
6540         * modules/isnanl-tests (configure.ac): Likewise.
6541         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
6542         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
6543         tests on platforms where 'long double' is the same as 'double'.
6544         * tests/test-isinf.c (test_isinfl): Likewise.
6545         * tests/test-isnan.c (test_long_double): Likewise.
6546         * tests/test-isnanl.h (main): Likewise.
6547
6548 2011-10-08  Bruno Haible  <bruno@clisp.org>
6549
6550         Tests for module 'tanhf'.
6551         * modules/tanhf-tests: New file.
6552         * tests/test-tanhf.c: New file.
6553
6554         New module 'tanhf'.
6555         * lib/math.in.h (tanhf): New declaration.
6556         * lib/tanhf.c: New file.
6557         * m4/tanhf.m4: New file.
6558         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
6559         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
6560         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
6561         * modules/tanhf: New file.
6562         * tests/test-math-c++.cc: Check the declaration of tanhf.
6563         * doc/posix-functions/tanhf.texi: Mention the new module.
6564
6565         tanh: Use a .m4 file.
6566         * m4/tanh.m4: New file.
6567         * modules/tanh (Files): Add it.
6568         (configure.ac): Just invoke gl_FUNC_TANH.
6569
6570 2011-10-08  Bruno Haible  <bruno@clisp.org>
6571
6572         Tests for module 'coshf'.
6573         * modules/coshf-tests: New file.
6574         * tests/test-coshf.c: New file.
6575
6576         New module 'coshf'.
6577         * lib/math.in.h (coshf): New declaration.
6578         * lib/coshf.c: New file.
6579         * m4/coshf.m4: New file.
6580         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
6581         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
6582         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
6583         * modules/coshf: New file.
6584         * tests/test-math-c++.cc: Check the declaration of coshf.
6585         * doc/posix-functions/coshf.texi: Mention the new module.
6586
6587         cosh: Use a .m4 file.
6588         * m4/cosh.m4: New file.
6589         * modules/cosh (Files): Add it.
6590         (configure.ac): Just invoke gl_FUNC_COSH.
6591
6592 2011-10-08  Bruno Haible  <bruno@clisp.org>
6593
6594         Tests for module 'sinhf'.
6595         * modules/sinhf-tests: New file.
6596         * tests/test-sinhf.c: New file.
6597
6598         New module 'sinhf'.
6599         * lib/math.in.h (sinhf): New declaration.
6600         * lib/sinhf.c: New file.
6601         * m4/sinhf.m4: New file.
6602         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
6603         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
6604         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
6605         * modules/sinhf: New file.
6606         * tests/test-math-c++.cc: Check the declaration of sinhf.
6607         * doc/posix-functions/sinhf.texi: Mention the new module.
6608
6609         sinh: Use a .m4 file.
6610         * m4/sinh.m4: New file.
6611         * modules/sinh (Files): Add it.
6612         (configure.ac): Just invoke gl_FUNC_SINH.
6613
6614 2011-10-08  Bruno Haible  <bruno@clisp.org>
6615
6616         Tests for module 'atan2f'.
6617         * modules/atan2f-tests: New file.
6618         * tests/test-atan2f.c: New file.
6619
6620         New module 'atan2f'.
6621         * lib/math.in.h (atan2f): New declaration.
6622         * lib/atan2f.c: New file.
6623         * m4/atan2f.m4: New file.
6624         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
6625         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
6626         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
6627         * modules/atan2f: New file.
6628         * tests/test-math-c++.cc: Check the declaration of atan2f.
6629         * doc/posix-functions/atan2f.texi: Mention the new module.
6630
6631         atan2: Use a .m4 file.
6632         * m4/atan2.m4: New file.
6633         * modules/atan2 (Files): Add it.
6634         (configure.ac): Just invoke gl_FUNC_ATAN2.
6635
6636 2011-10-08  Bruno Haible  <bruno@clisp.org>
6637
6638         Tests for module 'atanf'.
6639         * modules/atanf-tests: New file.
6640         * tests/test-atanf.c: New file.
6641
6642         New module 'atanf'.
6643         * lib/math.in.h (atanf): New declaration.
6644         * lib/atanf.c: New file.
6645         * m4/atanf.m4: New file.
6646         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
6647         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
6648         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
6649         * modules/atanf: New file.
6650         * tests/test-math-c++.cc: Check the declaration of atanf.
6651         * doc/posix-functions/atanf.texi: Mention the new module.
6652
6653         atan: Use a .m4 file.
6654         * m4/atan.m4: New file.
6655         * modules/atan (Files): Add it.
6656         (configure.ac): Just invoke gl_FUNC_ATAN.
6657
6658 2011-10-08  Bruno Haible  <bruno@clisp.org>
6659
6660         Tests for module 'acosf'.
6661         * modules/acosf-tests: New file.
6662         * tests/test-acosf.c: New file.
6663
6664         New module 'acosf'.
6665         * lib/math.in.h (acosf): New declaration.
6666         * lib/acosf.c: New file.
6667         * m4/acosf.m4: New file.
6668         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
6669         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
6670         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
6671         * modules/acosf: New file.
6672         * tests/test-math-c++.cc: Check the declaration of acosf.
6673         * doc/posix-functions/acosf.texi: Mention the new module.
6674
6675         acos: Use a .m4 file.
6676         * m4/acos.m4: New file.
6677         * modules/acos (Files): Add it.
6678         (configure.ac): Just invoke gl_FUNC_ACOS.
6679
6680 2011-10-08  Bruno Haible  <bruno@clisp.org>
6681
6682         Tests for module 'asinf'.
6683         * modules/asinf-tests: New file.
6684         * tests/test-asinf.c: New file.
6685
6686         New module 'asinf'.
6687         * lib/math.in.h (asinf): New declaration.
6688         * lib/asinf.c: New file.
6689         * m4/asinf.m4: New file.
6690         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
6691         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
6692         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
6693         * modules/asinf: New file.
6694         * tests/test-math-c++.cc: Check the declaration of asinf.
6695         * doc/posix-functions/asinf.texi: Mention the new module.
6696
6697         asin: Use a .m4 file.
6698         * m4/asin.m4: New file.
6699         * modules/asin (Files): Add it.
6700         (configure.ac): Just invoke gl_FUNC_ASIN.
6701
6702 2011-10-08  Bruno Haible  <bruno@clisp.org>
6703
6704         Tests for module 'tanf'.
6705         * modules/tanf-tests: New file.
6706         * tests/test-tanf.c: New file.
6707
6708         New module 'tanf'.
6709         * lib/math.in.h (tanf): New declaration.
6710         * lib/tanf.c: New file.
6711         * m4/tanf.m4: New file.
6712         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
6713         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
6714         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
6715         * modules/tanf: New file.
6716         * tests/test-math-c++.cc: Check the declaration of tanf.
6717         * doc/posix-functions/tanf.texi: Mention the new module.
6718
6719         tan: Use a .m4 file.
6720         * m4/tan.m4: New file.
6721         * modules/tan (Files): Add it.
6722         (configure.ac): Just invoke gl_FUNC_TAN.
6723
6724 2011-10-08  Bruno Haible  <bruno@clisp.org>
6725
6726         Tests for module 'cosf'.
6727         * modules/cosf-tests: New file.
6728         * tests/test-cosf.c: New file.
6729
6730         New module 'cosf'.
6731         * lib/math.in.h (cosf): New declaration.
6732         * lib/cosf.c: New file.
6733         * m4/cosf.m4: New file.
6734         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
6735         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
6736         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
6737         * modules/cosf: New file.
6738         * tests/test-math-c++.cc: Check the declaration of cosf.
6739         * doc/posix-functions/cosf.texi: Mention the new module.
6740
6741         cos: Use a .m4 file.
6742         * m4/cos.m4: New file.
6743         * modules/cos (Files): Add it.
6744         (configure.ac): Just invoke gl_FUNC_COS.
6745
6746 2011-10-08  Bruno Haible  <bruno@clisp.org>
6747
6748         Tests for module 'sinf'.
6749         * modules/sinf-tests: New file.
6750         * tests/test-sinf.c: New file.
6751
6752         New module 'sinf'.
6753         * lib/math.in.h (sinf): New declaration.
6754         * lib/sinf.c: New file.
6755         * m4/sinf.m4: New file.
6756         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
6757         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
6758         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
6759         * modules/sinf: New file.
6760         * tests/test-math-c++.cc: Check the declaration of sinf.
6761         * doc/posix-functions/sinf.texi: Mention the new module.
6762
6763         sin: Use a .m4 file.
6764         * m4/sin.m4: New file.
6765         * modules/sin (Files): Add it.
6766         (configure.ac): Just invoke gl_FUNC_SIN.
6767
6768 2011-10-08  Bruno Haible  <bruno@clisp.org>
6769
6770         Tests for module 'powf'.
6771         * modules/powf-tests: New file.
6772         * tests/test-powf.c: New file.
6773
6774         New module 'powf'.
6775         * lib/math.in.h (powf): New declaration.
6776         * lib/powf.c: New file.
6777         * m4/powf.m4: New file.
6778         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
6779         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
6780         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
6781         * modules/powf: New file.
6782         * tests/test-math-c++.cc: Check the declaration of powf.
6783         * doc/posix-functions/powf.texi: Mention the new module.
6784
6785         pow: Use a .m4 file.
6786         * m4/pow.m4: New file.
6787         * modules/pow (Files): Add it.
6788         (configure.ac): Just invoke gl_FUNC_POW.
6789
6790 2011-10-08  Bruno Haible  <bruno@clisp.org>
6791
6792         Tests for module 'log10f'.
6793         * modules/log10f-tests: New file.
6794         * tests/test-log10f.c: New file.
6795
6796         New module 'log10f'.
6797         * lib/math.in.h (log10f): New declaration.
6798         * lib/log10f.c: New file.
6799         * m4/log10f.m4: New file.
6800         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
6801         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
6802         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
6803         * modules/log10f: New file.
6804         * tests/test-math-c++.cc: Check the declaration of log10f.
6805         * doc/posix-functions/log10f.texi: Mention the new module.
6806
6807         log10: Use a .m4 file.
6808         * m4/log10.m4: New file.
6809         * modules/log10 (Files): Add it.
6810         (configure.ac): Just invoke gl_FUNC_LOG10.
6811
6812 2011-10-08  Bruno Haible  <bruno@clisp.org>
6813
6814         Tests for module 'logf'.
6815         * modules/logf-tests: New file.
6816         * tests/test-logf.c: New file.
6817
6818         New module 'logf'.
6819         * lib/math.in.h (logf): New declaration.
6820         * lib/logf.c: New file.
6821         * m4/logf.m4: New file.
6822         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
6823         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
6824         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
6825         * modules/logf: New file.
6826         * tests/test-math-c++.cc: Check the declaration of logf.
6827         * doc/posix-functions/logf.texi: Mention the new module.
6828
6829         log: Use a .m4 file.
6830         * m4/log.m4: New file.
6831         * modules/log (Files): Add it.
6832         (configure.ac): Just invoke gl_FUNC_LOG.
6833
6834 2011-10-08  Bruno Haible  <bruno@clisp.org>
6835
6836         Tests for module 'expf'.
6837         * modules/expf-tests: New file.
6838         * tests/test-expf.c: New file.
6839
6840         New module 'expf'.
6841         * lib/math.in.h (expf): New declaration.
6842         * lib/expf.c: New file.
6843         * m4/expf.m4: New file.
6844         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
6845         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
6846         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
6847         * modules/expf: New file.
6848         * tests/test-math-c++.cc: Check the declaration of expf.
6849         * doc/posix-functions/expf.texi: Mention the new module.
6850
6851         exp: Use a .m4 file.
6852         * m4/exp.m4: New file.
6853         * modules/exp (Files): Add it.
6854         (configure.ac): Just invoke gl_FUNC_EXP.
6855
6856 2011-10-08  Bruno Haible  <bruno@clisp.org>
6857
6858         Tests for module 'sqrtf'.
6859         * modules/sqrtf-tests: New file.
6860         * tests/test-sqrtf.c: New file.
6861
6862         New module 'sqrtf'.
6863         * lib/math.in.h (sqrtf): New declaration.
6864         * lib/sqrtf.c: New file.
6865         * m4/sqrtf.m4: New file.
6866         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
6867         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
6868         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
6869         * modules/sqrtf: New file.
6870         * tests/test-math-c++.cc: Check the declaration of sqrtf.
6871         * doc/posix-functions/sqrtf.texi: Mention the new module.
6872
6873 2011-10-08  Bruno Haible  <bruno@clisp.org>
6874
6875         Tests: Avoid link failures w.r.t. libintl.
6876         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
6877         $(LIBINTL).
6878         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
6879         $(LIBINTL).
6880         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
6881         against $(LIBINTL).
6882         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
6883         $(LIBINTL).
6884         * modules/openat-tests (Makefile.am): Link test-fchmodat against
6885         $(LIBINTL).
6886         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
6887
6888 2011-10-08  Bruno Haible  <bruno@clisp.org>
6889
6890         pow tests: Defeat compiler optimizations.
6891         * tests/test-pow.c (main): Assign arguments to x and y before use.
6892
6893 2011-10-08  Bruno Haible  <bruno@clisp.org>
6894
6895         gnulib-tool: Improve last commit.
6896         * gnulib-tool (func_modules_transitive_closure): Simplify code.
6897         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
6898         ignore dependencies that are not among the modules list.
6899
6900 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
6901
6902         gnulib-tool: don't follow dependencies to avoided modules
6903         This fixes a bug that is related to the previous one.
6904         * gnulib-tool (func_modules_transitive_closure)
6905         (func_emit_autoconf_snippets):
6906         Check whether a dependency is acceptable before using it.
6907         (--extract-dependencies): Report an error if --avoid is also used,
6908         since this combination of options is not yet supported.
6909
6910         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
6911         Problem reported by Peter Dyballa in
6912         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
6913         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
6914         when echoing "$condition".
6915
6916 2011-10-07  Bruno Haible  <bruno@clisp.org>
6917
6918         Fix documentation about math functions on MacOS X.
6919         * doc/posix-functions/exp2.texi: Don't say the function is missing on
6920         MacOS X 10.5.
6921         * doc/posix-functions/fdim.texi: Likewise.
6922         * doc/posix-functions/feclearexcept.texi: Likewise.
6923         * doc/posix-functions/fegetenv.texi: Likewise.
6924         * doc/posix-functions/fegetround.texi: Likewise.
6925         * doc/posix-functions/feholdexcept.texi: Likewise.
6926         * doc/posix-functions/feraiseexcept.texi: Likewise.
6927         * doc/posix-functions/fesetenv.texi: Likewise.
6928         * doc/posix-functions/fesetround.texi: Likewise.
6929         * doc/posix-functions/fetestexcept.texi: Likewise.
6930         * doc/posix-functions/feupdateenv.texi: Likewise.
6931         * doc/posix-functions/fmax.texi: Likewise.
6932         * doc/posix-functions/fmin.texi: Likewise.
6933         * doc/posix-functions/log2.texi: Likewise.
6934         * doc/posix-functions/modff.texi: Likewise.
6935         * doc/posix-functions/nan.texi: Likewise.
6936         * doc/posix-functions/nanf.texi: Likewise.
6937         * doc/posix-functions/nextafterf.texi: Likewise.
6938         * doc/posix-functions/remquo.texi: Likewise.
6939
6940 2011-10-07  Bruno Haible  <bruno@clisp.org>
6941
6942         modff: Drop assumption about library that defines modff.
6943         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
6944         AC_CHECK_FUNCS.
6945         * modules/modff (Files): Add m4/mathfunc.m4.
6946
6947 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
6948
6949         raise tests: Avoid a GCC warning.
6950         * tests/test-raise.c (handler): Use _Noreturn.
6951
6952 2011-10-07  Bruno Haible  <bruno@clisp.org>
6953
6954         Tests for module 'ldexpf'.
6955         * modules/ldexpf-tests: New file.
6956         * tests/test-ldexpf.c: New file.
6957
6958         New module 'ldexpf'.
6959         * lib/math.in.h (ldexpf): New declaration.
6960         * lib/ldexpf.c: New file.
6961         * m4/ldexpf.m4: New file.
6962         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
6963         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
6964         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
6965         * modules/ldexpf: New file.
6966         * tests/test-math-c++.cc: Check the declaration of ldexpf.
6967         * doc/posix-functions/ldexpf.texi: Mention the new module.
6968
6969 2011-10-06  Bruno Haible  <bruno@clisp.org>
6970
6971         frexpf: Work around problems on IRIX and mingw.
6972         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
6973         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
6974         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
6975         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
6976         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
6977         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
6978         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
6979
6980 2011-10-06  Bruno Haible  <bruno@clisp.org>
6981
6982         fabsf: Drop assumption about library that defines fabsf.
6983         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
6984         AC_CHECK_FUNCS.
6985         * modules/fabsf (Files): Add m4/mathfunc.m4.
6986
6987 2011-10-06  Bruno Haible  <bruno@clisp.org>
6988
6989         frexpf: Drop assumption about library that defines frexpf.
6990         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
6991         'int *', 'float *', 'long double *', 'float', 'long double'.
6992         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
6993         AC_CHECK_FUNCS.
6994         * modules/frexpf (Files): Add m4/mathfunc.m4.
6995
6996         Tests for module 'frexpf'.
6997         * modules/frexpf-tests: New file.
6998         * tests/test-frexpf.c: New file.
6999
7000         New module 'frexpf'.
7001         * lib/math.in.h (frexpf): New declaration.
7002         * lib/frexpf.c: New file.
7003         * m4/frexpf.m4: New file.
7004         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
7005         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
7006         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
7007         * modules/frexpf: New file.
7008         * tests/test-math-c++.cc: Check the declaration of frexpf.
7009         * doc/posix-functions/frexpf.texi: Mention the new module.
7010
7011 2011-10-06  Bruno Haible  <bruno@clisp.org>
7012
7013         math: Sort function declarations of math.in.h.
7014         * lib/math.in.h (frexp, logb): Move declarations.
7015
7016 2011-10-05  Bruno Haible  <bruno@clisp.org>
7017
7018         Tests for module 'modff'.
7019         * modules/modff-tests: New file.
7020         * tests/test-modff.c: New file.
7021
7022         New module 'modff'.
7023         * lib/math.in.h (modff): New declaration.
7024         * lib/modff.c: New file.
7025         * m4/modff.m4: New file.
7026         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
7027         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
7028         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
7029         * modules/modff: New file.
7030         * tests/test-math-c++.cc: Check the declaration of modff.
7031         * doc/posix-functions/modff.texi: Mention the new module.
7032
7033         modf tests: Make test sharper.
7034         * tests/test-modf.c (main): Strengthen upper bound.
7035
7036         modf: Use a .m4 file.
7037         * m4/modf.m4: New file.
7038         * modules/modf (Files): Add it.
7039         (configure.ac): Just invoke gl_FUNC_MODF.
7040
7041 2011-10-05  Bruno Haible  <bruno@clisp.org>
7042
7043         Tests for module 'fmodf'.
7044         * modules/fmodf-tests: New file.
7045         * tests/test-fmodf.c: New file.
7046
7047         New module 'fmodf'.
7048         * lib/math.in.h (fmodf): New declaration.
7049         * lib/fmodf.c: New file.
7050         * m4/fmodf.m4: New file.
7051         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
7052         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
7053         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
7054         * modules/fmodf: New file.
7055         * tests/test-math-c++.cc: Check the declaration of fmodf.
7056         * doc/posix-functions/fmodf.texi: Mention the new module.
7057
7058         fmod: Use a .m4 file.
7059         * m4/fmod.m4: New file.
7060         * modules/fmod (Files): Add it.
7061         (configure.ac): Just invoke gl_FUNC_FMOD.
7062
7063 2011-10-05  Bruno Haible  <bruno@clisp.org>
7064
7065         Tests for module 'fabsf'.
7066         * modules/fabsf-tests: New file.
7067         * tests/test-fabsf.c: New file.
7068
7069         New module 'fabsf'.
7070         * lib/math.in.h (fabsf): New declaration.
7071         * lib/fabsf.c: New file.
7072         * m4/fabsf.m4: New file.
7073         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
7074         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
7075         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
7076         * modules/fabsf: New file.
7077         * tests/test-math-c++.cc: Check the declaration of fabsf.
7078         * doc/posix-functions/fabsf.texi: Mention the new module.
7079
7080         fabs: Use a .m4 file.
7081         * m4/fabs.m4: New file.
7082         * modules/fabs (Files): Add it.
7083         (configure.ac): Just invoke gl_FUNC_FABS.
7084
7085 2011-10-05  Jim Meyering  <meyering@redhat.com>
7086
7087         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
7088         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
7089         ls -lL regression introduced in coreutils-8.12, it does so at the
7090         cost of an additional stat call in the common case.  Besides, now
7091         that the kernel change that prompted commit 95f7c57f has been reverted
7092         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
7093         we have no use for commit 95f7c57f, "file-has-acl: use
7094         acl_extended_file_nofollow if available".
7095
7096 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
7097
7098         file-has-acl: revert unintended change in behavior of ls -L
7099         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
7100         derived from...
7101         (file_has_acl): ...code here.  Call it.
7102         This problem was introduced with 2011-07-22 commit 95f7c57f,
7103         "file-has-acl: use acl_extended_file_nofollow if available".
7104         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
7105
7106 2011-10-03  Bruno Haible  <bruno@clisp.org>
7107
7108         poll: Avoid link errors on MSVC.
7109         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
7110         * modules/poll (Depends-on): Add sockets.
7111         (Link): New section.
7112         * NEWS: Mention the change.
7113         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
7114         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
7115         $(LIB_POLL) instead of $(LIBSOCKET).
7116
7117 2011-10-03  Bruno Haible  <bruno@clisp.org>
7118
7119         sys_select tests: Fix link error on MSVC 9.
7120         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
7121         with $(LIB_SELECT) instead of $(LIBSOCKET).
7122
7123 2011-10-03  Bruno Haible  <bruno@clisp.org>
7124
7125         sys_select: Fix compilation error on mingw.
7126         * lib/sys_select.in.h: On native Windows, include <io.h>.
7127
7128 2011-10-03  Bruno Haible  <bruno@clisp.org>
7129
7130         wmemset: Support for MSVC.
7131         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
7132         whether wmemset() exists.
7133
7134 2011-10-03  Bruno Haible  <bruno@clisp.org>
7135
7136         wmemmove: Support for MSVC.
7137         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
7138         whether wmemmove() exists.
7139
7140 2011-10-03  Bruno Haible  <bruno@clisp.org>
7141
7142         wmemcpy: Support for MSVC.
7143         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
7144         whether wmemcpy() exists.
7145
7146 2011-10-03  Bruno Haible  <bruno@clisp.org>
7147
7148         wmemcmp: Support for MSVC.
7149         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
7150         whether wmemcmp() exists.
7151
7152 2011-10-03  Bruno Haible  <bruno@clisp.org>
7153
7154         wmemchr: Support for MSVC.
7155         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
7156         whether wmemchr() exists.
7157
7158 2011-10-03  Bruno Haible  <bruno@clisp.org>
7159
7160         glthread/*, strsignal: Support for MSVC.
7161         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
7162         including <winsock.h> on MSVC 9.
7163         * lib/glthread/lock.h: Likewise.
7164         * lib/glthread/thread.h: Likewise.
7165         * lib/glthread/tls.h: Likewise.
7166         * lib/glthread/yield.h: Likewise.
7167         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
7168         if HAVE_UNISTD_H is false.
7169         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
7170
7171 2011-10-03  Bruno Haible  <bruno@clisp.org>
7172
7173         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
7174         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
7175         Set to 100000.
7176
7177 2011-10-03  Bruno Haible  <bruno@clisp.org>
7178
7179         acl: Fix specification.
7180         * lib/file-has-acl.c (file_has_acl): Fix specification.
7181
7182 2011-10-03  Bruno Haible  <bruno@clisp.org>
7183
7184         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
7185         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
7186         (compute_curr_prefix, shared_library_fullname,
7187         find_shared_library_fullname, get_shared_library_fullname, relocate):
7188         Use it together with PIC && INSTALLDIR.
7189         Reported by <jojelino@gmail.com>
7190         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
7191
7192 2011-10-01  Jim Meyering  <meyering@redhat.com>
7193
7194         maint.mk: adjust a release-related rule not to require use of gzip
7195         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
7196         Instead, check each file in $(DIST_ARCHIVES).  This is better for
7197         projects that build only .tar.xz files.  Also fix an erroneous test.
7198
7199         test-linkat: don't leave behind a temporary file
7200         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
7201         Otherwise, coreutils' "make distcheck" would fail with this:
7202           Only in /c/cu/tests/torture/coreutils/test/\
7203             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
7204           make[2]: *** [my-distcheck] Error 1
7205
7206         float, math: add omitted file
7207         * lib/itold.c: Add file, required for yesterday's float change.
7208
7209 2011-10-01  Bruno Haible  <bruno@clisp.org>
7210
7211         isinf: Fix for OpenBSD/x86.
7212         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
7213         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
7214         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
7215
7216 2011-10-01  Bruno Haible  <bruno@clisp.org>
7217
7218         isfinite: Fix syntax error in configure test.
7219         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
7220
7221         isfinite: Fix typo.
7222         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
7223         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
7224
7225 2011-10-01  Bruno Haible  <bruno@clisp.org>
7226
7227         nonblocking tests: Fix test failure on Linux/IA-64.
7228         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
7229         Set to 270000.
7230
7231 2011-10-01  Bruno Haible  <bruno@clisp.org>
7232
7233         mkfifoat tests: Fix a test failure on mingw.
7234         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
7235         with error ENOSYS.
7236
7237 2011-09-30  Bruno Haible  <bruno@clisp.org>
7238
7239         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
7240         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
7241         'long double'. Set REPLACE_ITOLD.
7242         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
7243         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
7244         * lib/itold.c: New file.
7245         * modules/float (Files): Add lib/itold.c.
7246         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
7247         (Makefile.am): Substitute REPLACE_ITOLD.
7248         * modules/math (Depends-on): Add float.
7249         (Makefile.am): Substitute REPLACE_ITOLD.
7250         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
7251         * doc/posix-headers/math.texi: Likewise.
7252         * doc/posix-functions/logl.texi: Likewise.
7253
7254 2011-09-30  Bruno Haible  <bruno@clisp.org>
7255
7256         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
7257         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
7258         Set to 140000.
7259
7260 2011-09-30  Bruno Haible  <bruno@clisp.org>
7261
7262         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
7263         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
7264         invocation, say "right after AC_PROG_CC_STDC", not "right after
7265         AC_PROG_CC".
7266         Reported by Gary V. Vaughan <gary@gnu.org>.
7267
7268 2011-09-30  Bruno Haible  <bruno@clisp.org>
7269
7270         Centralize C99 requirement.
7271         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
7272         * modules/stdarg (configure.ac-early): Invoke it instead of
7273         AC_PROG_CC_STDC.
7274         Reported by Gary V. Vaughan and Paul Eggert.
7275
7276 2011-09-29  Bruno Haible  <bruno@clisp.org>
7277
7278         float: Fix LDBL_MAX value on Linux/PowerPC.
7279         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
7280         on Linux/PowerPC.
7281         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
7282         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
7283         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
7284         platform.
7285         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
7286
7287 2011-09-29  Bruno Haible  <bruno@clisp.org>
7288
7289         doc: Improve doc about gl_EARLY.
7290         * doc/gnulib-tool.texi (Initial import): Mention where to place an
7291         AC_PROG_CC_STDC invocation.
7292         Reported by Gary V. Vaughan <gary@gnu.org>.
7293
7294 2011-09-28  Bruno Haible  <bruno@clisp.org>
7295
7296         fgetc, fputc, fread, fwrite tests: Fix link error.
7297         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
7298         on non-MSVC platforms.
7299         * tests/test-fputc.c (main): Likewise.
7300         * tests/test-fread.c (main): Likewise.
7301         * tests/test-fwrite.c (main): Likewise.
7302         Reported by Jim Meyering.
7303
7304 2011-09-27  Bruno Haible  <bruno@clisp.org>
7305
7306         fputc, fwrite tests: Avoid test failure on MSVC.
7307         * tests/test-fgetc.c: Include msvc-inval.h.
7308         (main): Invoke gl_msvc_inval_ensure_handler.
7309         * tests/test-fputc.c: Include msvc-inval.h.
7310         (main): Invoke gl_msvc_inval_ensure_handler.
7311         * tests/test-fread.c: Include msvc-inval.h.
7312         (main): Invoke gl_msvc_inval_ensure_handler.
7313         * tests/test-fwrite.c: Include msvc-inval.h.
7314         (main): Invoke gl_msvc_inval_ensure_handler.
7315         * modules/fgetc-tests (Depends-on): Add msvc-inval.
7316         * modules/fputc-tests (Depends-on): Likewise.
7317         * modules/fread-tests (Depends-on): Likewise.
7318         * modules/fwrite-tests (Depends-on): Likewise.
7319
7320 2011-09-27  Bruno Haible  <bruno@clisp.org>
7321
7322         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
7323         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
7324         (raise): Remove older, duplicated declaration.
7325         (_gl_raise_SIGPIPE): New declaration.
7326         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
7327         (rpl_raise): Remove function.
7328         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
7329         a gnulib-defined SIGPIPE here.
7330         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
7331         'sigprocmask' has detected missing signal-blocking and the module
7332         'sigpipe' is enabled.
7333         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
7334
7335 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
7336
7337         base64-tests: avoid memory leak
7338         * tests/test-base64.c (main): Plug memory leak.
7339
7340         base32: new module
7341         * modules/base32: New module.
7342         * lib/base32.c: New file.
7343         * lib/base32.h: Likewise.
7344         * m4/base32.m4: Likewise.
7345         * modules/base32-tests: New test.
7346         * tests/test-base32.c: Likewise.
7347         * MODULES.html.sh (Misc): Mention it.
7348
7349 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
7350
7351         gnulib: use more-standard license notice wording
7352         * gnulib-tool (func_emit_copyright_notice): When emitting a
7353         license notice into a file, use the standard wording as suggested
7354         by the current information for GNU maintainers, except say "file"
7355         rather than "program".  The new wording gives a license version
7356         number, which addresses an issue raised by Glenn Morris in
7357         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
7358         * m4/onceonly.m4: Use that same wording here, too.
7359
7360         dup2: minor simplification
7361         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
7362         as lib/dup2.c no longer uses 'inline'.
7363
7364 2011-09-25  Bruno Haible  <bruno@clisp.org>
7365
7366         strings: Fix compilation error on MSVC.
7367         * lib/strings.in.h: Include <stddef.h> for size_t.
7368
7369 2011-09-25  Bruno Haible  <bruno@clisp.org>
7370
7371         fflush et al.: Document limitation on MSVC.
7372         * doc/posix-functions/fflush.texi: Document possible crash in handling
7373         mode other than DEFAULT_HANDLING.
7374         * doc/posix-functions/fgetc.texi: Likewise.
7375         * doc/posix-functions/fputc.texi: Likewise.
7376         * doc/posix-functions/fread.texi: Likewise.
7377         * doc/posix-functions/fwrite.texi: Likewise.
7378
7379 2011-09-25  Bruno Haible  <bruno@clisp.org>
7380
7381         msvc-inval: Allow three invalid parameter handling modes.
7382         * lib/msvc-inval.h: Don't include <stdlib.h> here.
7383         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
7384         macros.
7385         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
7386         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
7387         SANE_LIBRARY_HANDLING as a no-op.
7388         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
7389         <stdlib.h>.
7390         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
7391
7392 2011-09-25  Bruno Haible  <bruno@clisp.org>
7393
7394         msvc-inval: Make handler multithread-safe.
7395         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
7396         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
7397         declarations.
7398         (gl_msvc_inval_current): New declaration.
7399         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
7400         Operate on the structure returned by gl_msvc_inval_current().
7401         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
7402         Remove varaiables.
7403         (tls_index, tls_initialized): New variables.
7404         (not_per_thread): New variable.
7405         (gl_msvc_inval_current): New function.
7406         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
7407         returned by gl_msvc_inval_current().
7408
7409 2011-09-25  Bruno Haible  <bruno@clisp.org>
7410
7411         msvc-inval: Install handler globally.
7412         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
7413         !_MSC_VER.
7414         (gl_msvc_invalid_parameter_handler): Remove declaration.
7415         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
7416         declarations.
7417         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
7418         Install the handler globally, don't uninstall it.
7419         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
7420         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
7421         currently valid, call RaiseException instead.
7422         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
7423         for !_MSC_VER.
7424
7425 2011-09-25  Bruno Haible  <bruno@clisp.org>
7426
7427         strerror_r-posix: Fix for MSVC 9.
7428         * lib/strerror_r.c (local_snprintf): New function.
7429         (snprintf): Define to local_snprintf, not to _snprintf.
7430
7431 2011-09-25  Bruno Haible  <bruno@clisp.org>
7432
7433         ftruncate: Support for MSVC 9.
7434         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
7435         (chsize_nothrow): New function.
7436         (chsize): Redefine as a macro.
7437         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
7438         * modules/ftruncate (Depends-on): Add msvc-inval.
7439
7440 2011-09-25  Bruno Haible  <bruno@clisp.org>
7441
7442         New module 'fstat'.
7443         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
7444         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
7445         * lib/fchdir.c (rpl_fstat): Remove function.
7446         * m4/fstat.m4: New file.
7447         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
7448         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
7449         declared.
7450         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
7451         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
7452         * modules/fstat: New file.
7453         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
7454         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
7455         is set.
7456         * doc/posix-functions/fstat.texi: Mention the new module and the
7457         problem on MSVC.
7458         * NEWS: Mention the change.
7459         * modules/acl (Depends-on): Add fstat.
7460         * modules/chdir-safer (Depends-on): Likewise.
7461         * modules/chown (Depends-on): Likewise.
7462         * modules/copy-file (Depends-on): Likewise.
7463         * modules/fchdir (Depends-on): Likewise.
7464         * modules/fdopendir (Depends-on): Likewise.
7465         * modules/fopen (Depends-on): Likewise.
7466         * modules/fts (Depends-on): Likewise.
7467         * modules/getcwd (Depends-on): Likewise.
7468         * modules/isapipe (Depends-on): Likewise.
7469         * modules/linkat (Depends-on): Likewise.
7470         * modules/lseek (Depends-on): Likewise.
7471         * modules/mkdir-p (Depends-on): Likewise.
7472         * modules/open (Depends-on): Likewise.
7473         * modules/openat (Depends-on): Likewise.
7474         * modules/read-file (Depends-on): Likewise.
7475         * modules/renameat (Depends-on): Likewise.
7476         * modules/utimens (Depends-on): Likewise.
7477
7478 2011-09-25  Bruno Haible  <bruno@clisp.org>
7479
7480         linkat: Fix compilation on MSVC 9.
7481         * lib/linkat.c: Don't include <stdint.h>.
7482
7483 2011-09-25  Bruno Haible  <bruno@clisp.org>
7484
7485         fclose: Support for MSVC 9.
7486         * lib/fclose.c: Include msvc-inval.h.
7487         (fclose_nothrow): New function.
7488         (rpl_fclose): Use it.
7489         * modules/fclose (Depends-on): Add msvc-inval.
7490         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
7491
7492 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
7493
7494         dup2: minor simplifications
7495         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
7496         that it's a performance win.
7497         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
7498         ! defined __CYGWIN__)" to "ifdef F_GETFL".
7499
7500 2011-09-24  Jim Meyering  <meyering@redhat.com>
7501
7502         test-futimens: avoid a warning from gcc -Wshadow
7503         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
7504         to avoid a shadowing warning.
7505
7506 2011-09-24  Bruno Haible  <bruno@clisp.org>
7507
7508         fdopen: Support for MSVC 9.
7509         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
7510         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
7511         * lib/fdopen.c: Include msvc-inval.h.
7512         (fdopen_nothrow): New function.
7513         (rpl_fdopen): Use it.
7514         * modules/fdopen (Depends-on): Add msvc-inval.
7515         * modules/fclose-tests (Depends-on): Add fdopen.
7516         * modules/fflush-tests (Depends-on): Likewise.
7517         * modules/fgetc-tests (Depends-on): Likewise.
7518         * modules/fputc-tests (Depends-on): Likewise.
7519         * modules/fread-tests (Depends-on): Likewise.
7520         * modules/freopen-tests (Depends-on): Likewise.
7521         * modules/fseeko-tests (Depends-on): Likewise.
7522         * modules/ftello-tests (Depends-on): Likewise.
7523         * modules/fwrite-tests  (Depends-on): Likewise.
7524         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
7525
7526 2011-09-24  Bruno Haible  <bruno@clisp.org>
7527
7528         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
7529         * modules/fgetc-tests (Depends-on): Add unistd.
7530         * modules/fputc-tests (Depends-on): Likewise.
7531         * modules/fread-tests (Depends-on): Likewise.
7532         * modules/fwrite-tests (Depends-on): Likewise.
7533
7534 2011-09-24  Bruno Haible  <bruno@clisp.org>
7535
7536         dup: Simplify autoconf test.
7537         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
7538         on gl_MSVC_INVAL's result.
7539
7540 2011-09-24  Bruno Haible  <bruno@clisp.org>
7541
7542         Tests for function fwrite().
7543         * modules/fwrite-tests: New file.
7544         * tests/test-fwrite.c: New file.
7545         * modules/stdio-tests (Depends-on): Add fwrite-tests.
7546
7547         Tests for function fread().
7548         * modules/fread-tests: New file.
7549         * tests/test-fread.c: New file.
7550         * modules/stdio-tests (Depends-on): Add fread-tests.
7551
7552         Activate fputc tests.
7553         * modules/stdio-tests (Depends-on): Add fputc-tests.
7554
7555         Enhance fgetc, fputc tests.
7556         * tests/test-fgetc.c (main): Also test the stream's error indicator.
7557         * tests/test-fputc.c (main): Likewise.
7558
7559 2011-09-24  Bruno Haible  <bruno@clisp.org>
7560
7561         write: Support for MSVC 9.
7562         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
7563         is not 1.
7564         * lib/write.c (write_nothrow): New function.
7565         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
7566         not 1. Use write_nothrow.
7567         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
7568         invalid parameter handler.
7569         (gl_PREREQ_WRITE): New macro.
7570         * modules/write (Depends-on): Add msvc-inval.
7571         (configure.ac): Invoke gl_PREREQ_WRITE.
7572         * doc/posix-functions/write.texi: Mention the problem on MSVC.
7573
7574 2011-09-24  Bruno Haible  <bruno@clisp.org>
7575
7576         read: Fix last commit.
7577         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
7578
7579 2011-09-24  Bruno Haible  <bruno@clisp.org>
7580
7581         dup2: Fix last commit.
7582         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
7583         (rpl_dup2): Disable fcntl workaround on native Windows.
7584
7585         sigprocmask: Make code safer.
7586         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
7587         section that changes macro definitions for this compilation unit.
7588
7589 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
7590
7591         dup2: clarify by coalescing Windows-specific material
7592         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
7593         "msvc-nothrow.h"' to the Windows-specific section, so that the
7594         Emacs source need not contain these include files.
7595         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
7596         Windows-specific fixes into this function rather than just the
7597         nothrow fix, as this shortens and clarifies the code.  Always
7598         define as a function, as that's a bit cleaner than having it be
7599         sometimes a function and sometimes a macro.
7600         (rpl_dup2): Move the Windows-specific stuff out of here and into
7601         ms_windows_dup2.  Don't protect the Haiku-related fix with
7602         "#if !defined __linux__", as the same code also works around
7603         a Linux kernel bug, and it doesn't add any system calls on any
7604         platform.  Add comment about FreeBSD 6.1.
7605
7606         sigprocmask: move #include directive
7607         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
7608         Windows-specific section, so that the Emacs source need not
7609         contain msvc-inval.h.
7610
7611 2011-09-23  Bruno Haible  <bruno@clisp.org>
7612
7613         read: Support for MSVC 9.
7614         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
7615         is not 1.
7616         * lib/read.c (read_nothrow): New function.
7617         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
7618         read_nothrow.
7619         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
7620         invalid parameter handler.
7621         (gl_PREREQ_READ): New macro.
7622         * modules/read (Depends-on): Add msvc-inval.
7623         (configure.ac): Invoke gl_PREREQ_READ.
7624         * doc/posix-functions/read.texi: Mention the problem on MSVC.
7625
7626 2011-09-23  Bruno Haible  <bruno@clisp.org>
7627
7628         close: Support for MSVC 9.
7629         * lib/close.c: Include <errno.h>, msvc-inval.h.
7630         (close_nothrow): New function.
7631         (rpl_close): Use it.
7632         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
7633         invalid parameter handler.
7634         * modules/close (Depends-on): Add msvc-inval.
7635         * modules/dup2-tests (Depends-on): Add close.
7636         * modules/dup3-tests (Depends-on): Likewise.
7637         * modules/fcntl-tests (Depends-on): Likewise.
7638         * modules/spawn-pipe-tests (Depends-on): Likewise.
7639         * modules/unistd-safer-tests (Depends-on): Likewise.
7640         * doc/posix-functions/close.texi: Mention the problem on MSVC.
7641
7642 2011-09-23  Bruno Haible  <bruno@clisp.org>
7643
7644         New module 'dup'.
7645         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
7646         Allow replacement.
7647         * lib/dup.c: New file.
7648         * lib/fchdir.c (rpl_dup): Remove function.
7649         * m4/dup.m4: New file.
7650         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
7651         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
7652         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
7653         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
7654         * modules/dup: New file.
7655         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
7656         'dup' module is in use.
7657         * modules/fdopendir (Depends-on): Add dup.
7658         * modules/fdutimensat-tests (Depends-on): Likewise.
7659         * modules/fts (Depends-on): Likewise.
7660         * modules/futimens-tests (Depends-on): Likewise.
7661         * modules/posix_spawnp-tests (Depends-on): Likewise.
7662         * modules/unistd-safer-tests (Depends-on): Likewise.
7663         * modules/utimens-tests (Depends-on): Likewise.
7664         * doc/posix-functions/dup.texi: Mention the new module and the problem
7665         on MSVC.
7666
7667 2011-09-23  Bruno Haible  <bruno@clisp.org>
7668
7669         getdtablesize: Support for MSVC 9.
7670         * lib/getdtablesize.c: Include msvc-inval.h.
7671         (_setmaxstdio_nothrow): New function.
7672         (_setmaxstdio): Redefine it.
7673         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
7674         * modules/getdtablesize (Depends-on): Add msvc-inval.
7675         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
7676
7677 2011-09-23  Bruno Haible  <bruno@clisp.org>
7678
7679         signal-h: Rename from signal.
7680         * modules/signal-h: Renamed from modules/signal.
7681         * modules/pthread_sigmask (Depends-on): Update.
7682         * modules/raise (Depends-on): Likewise.
7683         * modules/sigaction (Depends-on): Likewise.
7684         * modules/sigpipe (Depends-on): Likewise.
7685         * modules/sigprocmask (Depends-on): Likewise.
7686         * modules/sys_select (Depends-on): Likewise.
7687         * modules/signal-h-tests: Renamed from modules/signal-tests.
7688         (Files, Depends-on, Makefile.am): Update.
7689         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
7690         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
7691         (Files, Makefile.am): Update.
7692         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
7693         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
7694         * modules/signal: New placeholder file.
7695         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
7696         * doc/posix-headers/signal.texi: Update.
7697         * NEWS: Mention the change.
7698
7699 2011-09-23  Bruno Haible  <bruno@clisp.org>
7700
7701         sigprocmask: Avoid crashes through signal() on MSVC 9.
7702         * lib/sigprocmask.c: Include msvc-inval.h.
7703         (signal_nothrow): New function.
7704         (signal): Redefine it.
7705         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
7706         * modules/sigprocmask (Depends-on): Add msvc-inval.
7707         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
7708
7709 2011-09-23  Bruno Haible  <bruno@clisp.org>
7710
7711         Tests for module 'raise'.
7712         * modules/raise-tests: New file.
7713         * tests/test-raise.c: New file.
7714
7715         raise: Support for MSVC.
7716         * lib/signal.in.h (raise): New declaration.
7717         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
7718         for native Windows platforms.
7719         * m4/raise.m4: New file.
7720         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
7721         HAVE_RAISE, REPLACE_RAISE.
7722         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
7723         REPLACE_RAISE.
7724         * modules/raise (Status, Notice): Remove fields.
7725         (Files): Add m4/raise.m4.
7726         (Depends-on): Add signal, msvc-inval.
7727         (configure.ac): Use the common idioms.
7728         (Maintainer): Add me.
7729         * tests/test-signal-c++.cc: Check the signature of raise.
7730         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
7731
7732 2011-09-23  Bruno Haible  <bruno@clisp.org>
7733
7734         pipe2: Fix compilation on pre-C99 compilers.
7735         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
7736
7737 2011-09-23  Bruno Haible  <bruno@clisp.org>
7738
7739         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
7740         * lib/msvc-nothrow.h: New file.
7741         * lib/msvc-nothrow.c: New file.
7742         * m4/msvc-nothrow.m4: New file.
7743         * modules/msvc-nothrow: New file.
7744         * lib/dup2.c: Include msvc-nothrow.h.
7745         (rpl_dup2): No need to protect _get_osfhandle call here.
7746         * lib/accept4.c: Include msvc-nothrow.h.
7747         * lib/error.c: Likewise.
7748         * lib/fcntl.c: Likewise.
7749         * lib/lseek.c: Likewise.
7750         * lib/nonblocking.c: Likewise.
7751         * lib/poll.c: Likewise.
7752         * lib/read.c: Likewise.
7753         * lib/select.c: Likewise.
7754         * lib/sockets.h: Likewise.
7755         * lib/sockets.c: Likewise.
7756         * lib/stdio-read.c: Likewise.
7757         * lib/stdio-write.c: Likewise.
7758         * lib/write.c: Likewise.
7759         * lib/w32sock.h: Likewise.
7760         * lib/w32spawn.h: Likewise.
7761         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
7762         * lib/fsync.c: Likewise.
7763         * lib/isapipe.c: Likewise.
7764         * modules/dup2 (Depends-on): Add msvc-nothrow.
7765         * modules/accept4 (Depends-on): Likewise.
7766         * modules/error (Depends-on): Likewise.
7767         * modules/fcntl (Depends-on): Likewise.
7768         * modules/lseek (Depends-on): Likewise.
7769         * modules/nonblocking (Depends-on): Likewise.
7770         * modules/poll (Depends-on): Likewise.
7771         * modules/read (Depends-on): Likewise.
7772         * modules/select (Depends-on): Likewise.
7773         * modules/sockets (Depends-on): Likewise.
7774         * modules/sigpipe (Depends-on): Likewise.
7775         * modules/write (Depends-on): Likewise.
7776         * modules/accept (Depends-on): Likewise.
7777         * modules/bind (Depends-on): Likewise.
7778         * modules/connect (Depends-on): Likewise.
7779         * modules/gethostname (Depends-on): Likewise.
7780         * modules/getpeername (Depends-on): Likewise.
7781         * modules/getsockname (Depends-on): Likewise.
7782         * modules/getsockopt (Depends-on): Likewise.
7783         * modules/ioctl (Depends-on): Likewise.
7784         * modules/listen (Depends-on): Likewise.
7785         * modules/recv (Depends-on): Likewise.
7786         * modules/recvfrom (Depends-on): Likewise.
7787         * modules/send (Depends-on): Likewise.
7788         * modules/sendto (Depends-on): Likewise.
7789         * modules/setsockopt (Depends-on): Likewise.
7790         * modules/shutdown (Depends-on): Likewise.
7791         * modules/socket (Depends-on): Likewise.
7792         * modules/execute (Depends-on): Likewise.
7793         * modules/spawn-pipe (Depends-on): Likewise.
7794         * modules/flock (Depends-on): Likewise.
7795         * modules/fsync (Depends-on): Likewise.
7796         * modules/isapipe (Depends-on): Likewise.
7797         * tests/test-cloexec.c: Include msvc-nothrow.h.
7798         * tests/test-dup-safer.c: Likewise.
7799         * tests/test-dup2.c: Likewise.
7800         * tests/test-dup3.c: Likewise.
7801         * tests/test-fcntl.c: Likewise.
7802         * tests/test-pipe.c: Likewise.
7803         * tests/test-pipe2.c: Likewise.
7804         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
7805         * modules/unistd-safer-tests (Depends-on): Likewise.
7806         * modules/dup2-tests (Depends-on): Likewise.
7807         * modules/dup3-tests (Depends-on): Likewise.
7808         * modules/fcntl-tests (Depends-on): Likewise.
7809         * modules/pipe-posix-tests (Depends-on): Likewise.
7810         * modules/pipe2-tests (Depends-on): Likewise.
7811
7812 2011-09-23  Bruno Haible  <bruno@clisp.org>
7813
7814         dup2: Make code more maintainable.
7815         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
7816         (rpl_dup2): Use it.
7817         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
7818         * modules/dup2 (configure.ac): Invoke it.
7819         Reported by Paul Eggert.
7820
7821 2011-09-23  Bruno Haible  <bruno@clisp.org>
7822
7823         msvc-inval: Fix compilation error.
7824         * lib/msvc-inval.h: Include <excpt.h>.
7825
7826 2011-09-23  Bruno Haible  <bruno@clisp.org>
7827
7828         mkdir: Tweak for MSVC 9.
7829         * lib/sys_stat.in.h: Update comments.
7830         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
7831
7832         Tests for module 'chdir'.
7833         * modules/chdir-tests: New file.
7834         * tests/test-chdir.c: New file.
7835
7836         New module 'chdir'.
7837         * modules/chdir: New file.
7838         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
7839         (chdir): New declaration.
7840         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
7841         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
7842         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
7843         * tests/test-unistd-c++.cc: Check signature of chdir.
7844         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
7845         * modules/chdir-long (Depends-on): Add chdir.
7846         * modules/fchdir (Depends-on): Likewise.
7847         * modules/rename (Depends-on): Likewise.
7848         * modules/savewd (Depends-on): Likewise.
7849
7850         rmdir: Support for mingw, MSVC 9.
7851         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
7852         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
7853
7854         getcwd: Tweak for MSVC 9.
7855         * lib/unistd.in.h: Update comments.
7856         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
7857
7858 2011-09-22  Bruno Haible  <bruno@clisp.org>
7859
7860         strerror_r-posix: Avoid a link error on MSVC.
7861         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
7862         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
7863
7864 2011-09-22  Bruno Haible  <bruno@clisp.org>
7865
7866         select: Avoid link errors on MSVC.
7867         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
7868         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
7869         * modules/pselect (Link): Likewise.
7870         * NEWS: Mention the change.
7871         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
7872         test-select-stdin against $(LIB_SELECT).
7873         * modules/pselect-tests (Makefile.am): Link test-pselect against
7874         $(LIB_SELECT).
7875
7876 2011-09-22  Bruno Haible  <bruno@clisp.org>
7877
7878         select: Avoid compilation error on MSVC.
7879         * lib/select.c: Don't include <stdbool.h>.
7880
7881 2011-09-21  Bruno Haible  <bruno@clisp.org>
7882
7883         Consolidate all uses of PATH_MAX in *.m4 files.
7884         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
7885         macros.
7886         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
7887         and gl_PATHMAX_SNIPPET.
7888         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
7889         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
7890         * modules/chdir-long (Files): Add m4/pathmax.m4.
7891         * modules/getcwd (Files): Likewise.
7892
7893 2011-09-21  Bruno Haible  <bruno@clisp.org>
7894
7895         ftruncate: Un-deprecate, concentrate on Win32 support.
7896         * modules/ftruncate (Status, Notice): Remove sections.
7897         (Depends-on): Add largefile.
7898         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
7899         non-mingw platforms.
7900         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
7901         include <io.h>.
7902         * modules/perror-tests (Depends-on): Add ftruncate.
7903         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
7904         'ftruncate' module.
7905
7906 2011-09-21  Bruno Haible  <bruno@clisp.org>
7907
7908         Add dependencies to new dirent related modules.
7909         * modules/opendir (Depends-on): Add closedir.
7910         * modules/getcwd (Depends-on): Add opendir, closedir.
7911         * modules/dirent-safer-tests (Depends-on): Likewise.
7912         * modules/fdopendir-tests (Depends-on): Likewise.
7913         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
7914         * modules/renameat-tests (Depends-on): Likewise.
7915
7916 2011-09-21  Bruno Haible  <bruno@clisp.org>
7917
7918         opendir: Avoid compilation error on mingw.
7919         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
7920         * modules/opendir (Depends-on): Add unistd.
7921
7922 2011-09-21  Bruno Haible  <bruno@clisp.org>
7923
7924         ftruncate tests: Avoid a test failure on mingw.
7925         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
7926
7927 2011-09-21  Bruno Haible  <bruno@clisp.org>
7928
7929         select tests: Avoid test failures on OSF/1 5.1 and mingw.
7930         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
7931         native Windows.
7932
7933 2011-09-21  Bruno Haible  <bruno@clisp.org>
7934
7935         New module 'fdopen'.
7936         * lib/stdio.in.h (fdopen): New declaration.
7937         * lib/fdopen.c: New file.
7938         * m4/fdopen.m4: New file.
7939         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
7940         REPLACE_FDOPEN.
7941         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
7942         REPLACE_FDOPEN.
7943         * modules/fdopen: New file.
7944         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
7945         * tests/test-stdio-c++.cc: Check signature of fdopen.
7946         * doc/posix-functions/fdopen.texi: Mention the new module.
7947
7948 2011-09-21  Bruno Haible  <bruno@clisp.org>
7949
7950         unlockpt tests: Avoid test failure on NetBSD 5.1.
7951         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
7952         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
7953
7954 2011-09-21  Bruno Haible  <bruno@clisp.org>
7955
7956         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
7957         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
7958         * tests/test-getlogin_r.c (main): Likewise.
7959
7960 2011-09-20  Bruno Haible  <bruno@clisp.org>
7961
7962         time tests: Don't require pid_t.
7963         * doc/posix-headers/time.texi: Revert last change.
7964         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
7965         * tests/test-time.c: Comment out the check for pid_t.
7966
7967 2011-09-20  Bruno Haible  <bruno@clisp.org>
7968
7969         fsync tests: Avoid a test failure on mingw.
7970         * tests/test-fsync.c (main): Allow a failure with EIO.
7971
7972 2011-09-20  Bruno Haible  <bruno@clisp.org>
7973
7974         euidaccess: Update comments.
7975         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
7976
7977 2011-09-20  Bruno Haible  <bruno@clisp.org>
7978
7979         Ensure EBADF returns for socket functions on mingw.
7980         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
7981         descriptor is invalid.
7982         * lib/bind.c (rpl_bind): Likewise.
7983         * lib/connect.c (rpl_connect): Likewise.
7984         * lib/getpeername.c (rpl_getpeername): Likewise.
7985         * lib/getsockname.c (rpl_getsockname): Likewise.
7986         * lib/getsockopt.c (rpl_getsockopt): Likewise.
7987         * lib/listen.c (rpl_listen): Likewise.
7988         * lib/recv.c (rpl_recv): Likewise.
7989         * lib/recvfrom.c (rpl_recvfrom): Likewise.
7990         * lib/send.c (rpl_send): Likewise.
7991         * lib/sendto.c (rpl_sendto): Likewise.
7992         * lib/setsockopt.c (rpl_setsockopt): Likewise.
7993         * lib/shutdown.c (rpl_shutdown): Likewise.
7994
7995 2011-09-20  Bruno Haible  <bruno@clisp.org>
7996
7997         select tests: EBADF tests.
7998         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
7999         test_bad_fd): New functions.
8000         (test_function): Invoke also test_bad_fd.
8001
8002 2011-09-20  Bruno Haible  <bruno@clisp.org>
8003
8004         Tests for module 'posix_spawn_file_actions_addopen.
8005         * modules/posix_spawn_file_actions_addopen-tests: New file.
8006         * tests/test-posix_spawn_file_actions_addopen.c: New file.
8007
8008         Tests for module 'posix_spawn_file_actions_adddup2'.
8009         * modules/posix_spawn_file_actions_adddup2-tests: New file.
8010         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
8011
8012         Tests for module 'posix_spawn_file_actions_addclose'.
8013         * modules/posix_spawn_file_actions_addclose-tests: New file.
8014         * tests/test-posix_spawn_file_actions_addclose.c: New file.
8015
8016 2011-09-20  Bruno Haible  <bruno@clisp.org>
8017
8018         Tests for module 'unlockpt'.
8019         * modules/unlockpt-tests: New file.
8020         * tests/test-unlockpt.c: New file.
8021         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
8022
8023         Tests for module 'grantpt'.
8024         * modules/grantpt-tests: New file.
8025         * tests/test-grantpt.c: New file.
8026         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
8027
8028 2011-09-20  Bruno Haible  <bruno@clisp.org>
8029
8030         freopen tests: EBADF tests.
8031         * tests/test-freopen.c: Include errno.h, unistd.h.
8032         (main): Add tests for EBADF, commented out for the moment.
8033
8034         fclose tests: EBADF tests.
8035         * tests/test-fclose.c (main): Add tests for EBADF.
8036
8037         fflush tests: EBADF tests.
8038         * tests/test-fflush.c: Include errno.h, macros.h.
8039         (main): Add tests for EBADF.
8040
8041         ftello tests: EBADF tests.
8042         * tests/test-ftello4.sh: New file.
8043         * tests/test-ftello4.c: New file.
8044         * modules/ftello-tests (Files): Add them.
8045         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
8046
8047         fseeko tests: EBADF tests.
8048         * tests/test-fseeko4.sh: New file.
8049         * tests/test-fseeko4.c: New file.
8050         * modules/fseeko-tests (Files): Add them.
8051         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
8052
8053         Tests for function fputc().
8054         * modules/fputc-tests: New file.
8055         * tests/test-fputc.c: New file.
8056         * modules/stdio-tests (Depends-on): Add fputc-tests.
8057
8058         Tests for function fgetc().
8059         * modules/fgetc-tests: New file.
8060         * tests/test-fgetc.c: New file.
8061         * modules/stdio-tests (Depends-on): Add fgetc-tests.
8062
8063         Tests for function fdopen().
8064         * modules/fdopen-tests: New file.
8065         * tests/test-fdopen.c: New file.
8066         * modules/stdio-tests (Depends-on): Add fdopen-tests.
8067
8068         Tests for module 'vdprintf'.
8069         * modules/vdprintf-tests: New file.
8070         * tests/test-vdprintf.c: New file.
8071
8072         Tests for module 'dprintf'.
8073         * modules/dprintf-tests: New file.
8074         * tests/test-dprintf.c: New file.
8075
8076 2011-09-20  Bruno Haible  <bruno@clisp.org>
8077
8078         Tests for module 'ioctl'.
8079         * modules/ioctl-tests: New file.
8080         * tests/test-ioctl.c: New file.
8081
8082 2011-09-20  Bruno Haible  <bruno@clisp.org>
8083
8084         fcntl tests: EBADF tests.
8085         * tests/test-fcntl.c (main): Add more tests for EBADF.
8086
8087 2011-09-20  Bruno Haible  <bruno@clisp.org>
8088
8089         utimensat tests: EBADF tests.
8090         * tests/test-utimensat.c (main): Add tests for EBADF.
8091
8092         renameat tests: EBADF tests.
8093         * tests/test-renameat.c (main): Add tests for EBADF.
8094
8095         mkfifoat tests: EBADF tests.
8096         * tests/test-mkfifoat.c (main): Add tests for EBADF.
8097
8098         readlinkat tests: EBADF tests.
8099         * tests/test-readlinkat.c (main): Add tests for EBADF.
8100
8101         symlinkat tests: EBADF tests.
8102         * tests/test-symlinkat.c (main): Add tests for EBADF.
8103
8104         linkat tests: EBADF tests.
8105         * tests/test-linkat.c (main): Add tests for EBADF.
8106
8107         Tests for module 'faccessat'.
8108         * modules/faccessat-tests: New file.
8109         * tests/test-faccessat.c: New file.
8110
8111         fdopendir tests: EBADF tests.
8112         * tests/test-fdopendir.c (main): Add more tests for EBADF.
8113
8114         openat tests: EBADF tests.
8115         * tests/test-fchownat.c (main): Add tests for EBADF.
8116         * tests/test-fstatat.c (main): Likewise.
8117         * tests/test-mkdirat.c (main): Likewise.
8118         * tests/test-openat.c (main): Likewise.
8119         * tests/test-unlinkat.c (main): Likewise.
8120         * tests/test-fchmodat.c: New file.
8121         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
8122         (Makefile.am): Also run 'test-fchmodat'.
8123
8124 2011-09-20  Bruno Haible  <bruno@clisp.org>
8125
8126         utimens, futimens, fdutimensat tests: EBADF tests.
8127         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
8128
8129         Tests for function fstat().
8130         * modules/fstat-tests: New file.
8131         * tests/test-fstat.c: New file.
8132         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
8133
8134 2011-09-20  Bruno Haible  <bruno@clisp.org>
8135
8136         test-ttyname_r tests: EBADF tests.
8137         * tests/test-ttyname_r.c (main): Add tests for EBADF.
8138
8139         Tests for module 'isatty'.
8140         * modules/isatty-tests: New file.
8141         * tests/test-isatty.c: New file.
8142
8143         Tests for module 'write'.
8144         * modules/write-tests: New file.
8145         * tests/test-write.c: New file.
8146
8147         Tests for module 'read'.
8148         * modules/read-tests: New file.
8149         * tests/test-read.c: New file.
8150
8151         pwrite tests: EBADF tests.
8152         * tests/test-pwrite.c (main): Add tests for EBADF.
8153
8154         pread tests: EBADF tests.
8155         * tests/test-pread.c (main): Add tests for EBADF.
8156
8157         lseek tests: EBADF tests.
8158         * tests/test-lseek.c (main): Add more tests for EBADF.
8159
8160         Tests for module 'ftruncate'.
8161         * modules/ftruncate-tests: New file.
8162         * tests/test-ftruncate.sh: New file.
8163         * tests/test-ftruncate.c: New file.
8164
8165         fsync tests: EBADF tests.
8166         * tests/test-fsync.c (main): Add more tests for EBADF.
8167
8168         fdatasync tests: EBADF tests.
8169         * tests/test-fdatasync.c (main): Add more tests for EBADF.
8170
8171         Tests for module 'fchown'.
8172         * modules/fchown-tests: New file.
8173         * tests/test-fchown.c: New file.
8174
8175         Tests for module 'fchmod'.
8176         * modules/fchmod-tests: New file.
8177         * tests/test-fchmod.c: New file.
8178
8179         fchdir tests: EBADF tests.
8180         * tests/test-fchdir.c (main): Add more tests for EBADF.
8181
8182         dup2 tests: EBADF tests.
8183         * tests/test-dup2.c (main): Add more tests for EBADF.
8184
8185         Tests for module 'dup'.
8186         * modules/dup-tests: New file.
8187         * tests/test-dup.c: New file.
8188
8189         Tests for module 'close'.
8190         * modules/close-tests: New file.
8191         * tests/test-close.c: New file.
8192
8193 2011-09-20  Bruno Haible  <bruno@clisp.org>
8194
8195         Tests for module 'shutdown'.
8196         * modules/shutdown-tests: New file.
8197         * tests/test-shutdown.c: New file.
8198
8199         Tests for module 'setsockopt'.
8200         * modules/setsockopt-tests: New file.
8201         * tests/test-setsockopt.c: New file.
8202
8203         Tests for module 'sendto'.
8204         * modules/sendto-tests: New file.
8205         * tests/test-sendto.c: New file.
8206
8207         Tests for module 'send'.
8208         * modules/send-tests: New file.
8209         * tests/test-send.c: New file.
8210
8211         Tests for module 'recvfrom'.
8212         * modules/recvfrom-tests: New file.
8213         * tests/test-recvfrom.c: New file.
8214
8215         Tests for module 'recv'.
8216         * modules/recv-tests: New file.
8217         * tests/test-recv.c: New file.
8218
8219         Tests for module 'listen'.
8220         * modules/listen-tests: New file.
8221         * tests/test-listen.c: New file.
8222
8223         Tests for module 'getsockopt'.
8224         * modules/getsockopt-tests: New file.
8225         * tests/test-getsockopt.c: New file.
8226
8227         Tests for module 'getsockname'.
8228         * modules/getsockname-tests: New file.
8229         * tests/test-getsockname.c: New file.
8230
8231         Tests for module 'getpeername'.
8232         * modules/getpeername-tests: New file.
8233         * tests/test-getpeername.c: New file.
8234
8235         Tests for module 'connect'.
8236         * modules/connect-tests: New file.
8237         * tests/test-connect.c: New file.
8238
8239         Tests for module 'bind'.
8240         * modules/bind-tests: New file.
8241         * tests/test-bind.c: New file.
8242
8243         accept4 tests: Fix for native Windows.
8244         * tests/test-accept4.c: Include sockets.h.
8245         (main): Invoke gl_sockets_startup.
8246         * modules/accept4-tests (Depends-on): Add sockets.
8247
8248         accept tests: Fix for native Windows.
8249         * tests/test-accept.c: Include sockets.h.
8250         (main): Invoke gl_sockets_startup.
8251         * modules/accept-tests (Depends-on): Add sockets.
8252
8253 2011-09-19  Bruno Haible  <bruno@clisp.org>
8254
8255         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
8256         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
8257         do...while(0).
8258         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
8259         Suggested by Paul Eggert.
8260
8261 2011-09-19  Bruno Haible  <bruno@clisp.org>
8262
8263         sched: Ensure pid_t is defined.
8264         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
8265         not define pid_t.
8266         * lib/sched.in.h: Include <sys/types.h>.
8267         * doc/posix-headers/sched.texi: Mention the pid_t problem.
8268         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8269
8270 2011-09-19  Bruno Haible  <bruno@clisp.org>
8271
8272         msvc-inval: Ensure the entire expansion is a single statement.
8273         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
8274         of braces.
8275
8276 2011-09-19  Jim Meyering  <meyering@redhat.com>
8277
8278         tests: use printf, not echo in init.sh's warn_ function
8279         * tests/init.sh (warn_): Use printf, not echo.  The latter would
8280         misbehave when given strings containing a backslash or starting
8281         with e.g., -n.  James Youngman suggested setting IFS.
8282
8283 2011-09-19  Eric Blake  <eblake@redhat.com>
8284
8285         futimens: enhance test
8286         * tests/test-futimens.h (test_futimens): Also check for EBADF on
8287         closed non-negative fd.
8288
8289         date: accept 'hence' as opposite of 'ago'
8290         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
8291         * tests/test-parse-datetime.c (main): Enhance test.
8292         Suggested by Jesse Wilson.
8293
8294 2011-09-19  Jim Meyering  <meyering@redhat.com>
8295
8296         getcwd: don't fail in a deep directory on a system without openat
8297         Before this change, getcwd would fail when called from a directory
8298         of depth PATH_MAX / 3 or greater.  That was due to the fact that
8299         the non-openat implementation used "..", "../..", "../../..", etc.
8300         to access ancestor directories.  With too many, that string would
8301         be longer than PATH_MAX.
8302         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
8303         using gnulib's openat replacement.
8304         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
8305         we're using the replacement function.
8306
8307 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
8308
8309         maint.mk: avoid warnings from perl about missing files
8310         * top/maint.mk (def_sym_regex): Ignore files listed in
8311         $(gl_other_headers_) that do not exist, say because a project
8312         does not use a corresponding module.
8313
8314 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
8315
8316         stat: use pathmax.h only if needed
8317         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
8318         This is better for Emacs, which does not have a mingw port and
8319         therefore can avoid the pathmax module.
8320
8321         utimens: remove dependency on dup2
8322         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
8323         to work around the Linux kernel bug.
8324         * modules/utimens (Depends-on): Remove dup2.
8325
8326 2011-09-18  Bruno Haible  <bruno@clisp.org>
8327
8328         inet_ntop, inet_pton: Look for it also in libresolv.
8329         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
8330         libnsl, search for it in libresolv.
8331         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
8332         Needed on Solaris 7.
8333
8334 2011-09-18  Bruno Haible  <bruno@clisp.org>
8335
8336         accept, accept4 tests: Avoid link error on Solaris.
8337         * modules/accept-tests (Makefile.am): Link test-accept against
8338         $(LIBSOCKET).
8339         * modules/accept4-tests (Makefile.am): Link test-accept4 against
8340         $(LIBSOCKET).
8341
8342         accept4: Avoid link error on Solaris.
8343         * modules/accept4 (Link): New section.
8344
8345         socket functions: Avoid link errors on Solaris.
8346         * modules/accept (Depends-on): Add socketlib.
8347         (Link): New section.
8348         * modules/bind (Depends-on): Add socketlib.
8349         (Link): New section.
8350         * modules/connect (Depends-on): Add socketlib.
8351         (Link): New section.
8352         * modules/getpeername (Depends-on): Add socketlib.
8353         (Link): New section.
8354         * modules/getsockname (Depends-on): Add socketlib.
8355         (Link): New section.
8356         * modules/getsockopt (Depends-on): Add socketlib.
8357         (Link): New section.
8358         * modules/listen (Depends-on): Add socketlib.
8359         (Link): New section.
8360         * modules/recv (Depends-on): Add socketlib.
8361         (Link): New section.
8362         * modules/recvfrom (Depends-on): Add socketlib.
8363         (Link): New section.
8364         * modules/send (Depends-on): Add socketlib.
8365         (Link): New section.
8366         * modules/sendto (Depends-on): Add socketlib.
8367         (Link): New section.
8368         * modules/setsockopt (Depends-on): Add socketlib.
8369         (Link): New section.
8370         * modules/shutdown (Depends-on): Add socketlib.
8371         (Link): New section.
8372         * modules/socket (Depends-on): Add socketlib.
8373         (Link): New section.
8374
8375 2011-09-18  Bruno Haible  <bruno@clisp.org>
8376
8377         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
8378         * tests/test-ptsname.c (main): Terminate the test if it takes longer
8379         than 5 seconds.
8380         * modules/ptsname-tests (configure.ac): Test for alarm.
8381
8382 2011-09-18  Bruno Haible  <bruno@clisp.org>
8383
8384         posix_spawn_file_actions_add*: Fix module dependencies.
8385         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
8386         posix_spawn_file_actions_init.
8387         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
8388         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
8389
8390 2011-09-18  Bruno Haible  <bruno@clisp.org>
8391
8392         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
8393         * tests/test-rename.h (test_rename): Allow error code EEXIST.
8394         * tests/test-renameat.c (main): Likewise.
8395
8396 2011-09-18  Bruno Haible  <bruno@clisp.org>
8397
8398         Tests for module 'accept4'.
8399         * modules/accept4-tests: New file.
8400         * tests/test-accept4.c: New file.
8401
8402 2011-09-18  Bruno Haible  <bruno@clisp.org>
8403
8404         Tests for module 'accept'.
8405         * modules/accept-tests: New file.
8406         * tests/test-accept.c: New file.
8407
8408 2011-09-18  Bruno Haible  <bruno@clisp.org>
8409
8410         dup2: Support for MSVC.
8411         * lib/dup2.c: Include msvc-inval.h.
8412         (rpl_dup2): Handle invalid parameter notifications during dup2 and
8413         _get_osfhandle calls.
8414         * modules/dup2 (Depends-on): Add msvc-inval.
8415         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
8416
8417         New module 'msvc-inval'.
8418         * lib/msvc-inval.h: New file.
8419         * lib/msvc-inval.c: New file.
8420         * m4/msvc-inval.m4: New file.
8421         * modules/msvc-inval: New file.
8422
8423 2011-09-17  Bruno Haible  <bruno@clisp.org>
8424
8425         Tests for module 'pclose'.
8426         * modules/pclose-tests: New file.
8427
8428         New module 'pclose'.
8429         * lib/stdio.in.h (pclose): New declaration.
8430         * lib/pclose.c: New file.
8431         * m4/pclose.m4: New file.
8432         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
8433         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
8434         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
8435         * modules/pclose: New file.
8436         * modules/popen-tests (Depends-on): Add pclose.
8437         * modules/popen-safer-tests (Depends-on): Likewise.
8438         * doc/posix-functions/pclose.texi: Mention the new module.
8439
8440 2011-09-17  Bruno Haible  <bruno@clisp.org>
8441
8442         popen: Support for MSVC.
8443         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
8444         * lib/popen.c (popen): Provide alternate definition for native Windows.
8445         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
8446         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
8447         * modules/popen (Depends-on, configure.ac): Update condition.
8448         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
8449         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
8450         fixed.
8451
8452 2011-09-17  Bruno Haible  <bruno@clisp.org>
8453
8454         isnanl, isnand, isnanf: Work around MSVC bug.
8455         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
8456
8457 2011-09-17  Bruno Haible  <bruno@clisp.org>
8458
8459         sys_socket tests: Fix recent mistake.
8460         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
8461
8462 2011-09-17  Bruno Haible  <bruno@clisp.org>
8463
8464         putenv: Support for MSVC.
8465         * modules/putenv (Depends-on): Add environ.
8466         * lib/putenv.c (environ): Disable declaration.
8467         * lib/unistd.in.h: Update comment.
8468
8469 2011-09-17  Bruno Haible  <bruno@clisp.org>
8470
8471         math: Avoid macro redefinition warnings on MSVC.
8472         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
8473         Undefine before redefining.
8474
8475 2011-09-17  Bruno Haible  <bruno@clisp.org>
8476
8477         doc: Mention functions which are declared as macros.
8478         * doc/posix-functions/*[fl].texi: Mention that some functions are
8479         defined as macros with arguments only.
8480
8481 2011-09-17  Bruno Haible  <bruno@clisp.org>
8482
8483         Add dependencies to new dirent related modules.
8484         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
8485         * modules/fts (Depends-on): Likewise.
8486         * modules/glob (Depends-on): Likewise.
8487         * modules/savedir (Depends-on): Likewise.
8488         * modules/scandir (Depends-on): Likewise.
8489         * modules/dirent-safer (Depends-on): Add opendir, closedir.
8490         * modules/fdopendir (Depends-on): Add opendir.
8491
8492 2011-09-17  Bruno Haible  <bruno@clisp.org>
8493
8494         inet_pton: Support for MSVC on Windows Vista or newer.
8495         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
8496         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
8497         HAVE_DECL_INET_PTON is defined.
8498         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
8499         On platforms with <winsock2.h>, test whether inet_pton is declared in
8500         <ws2tcpip.h>. If so, arrange to replace it.
8501         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
8502         REPLACE_INET_PTON.
8503         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
8504         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
8505         (Depends-on, configure.ac): Update condition.
8506         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
8507
8508 2011-09-17  Bruno Haible  <bruno@clisp.org>
8509
8510         inet_ntop: Support for MSVC on Windows Vista or newer.
8511         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
8512         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
8513         HAVE_DECL_INET_NTOP is defined.
8514         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
8515         On platforms with <winsock2.h>, test whether inet_ntop is declared in
8516         <ws2tcpip.h>. If so, arrange to replace it.
8517         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
8518         REPLACE_INET_NTOP.
8519         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
8520         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
8521         (Depends-on, configure.ac): Update condition.
8522         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
8523
8524 2011-09-16  Eric Blake  <eblake@redhat.com>
8525
8526         test-fsync: yet another enhancement
8527         * tests/test-fsync.c (main): Also test behavior on read-only text
8528         file.
8529
8530 2011-09-16  Bruno Haible  <bruno@clisp.org>
8531
8532         Enhance fsync, fdatasync tests.
8533         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
8534         * tests/test-fdatasync.c (main): Likewise.
8535
8536 2011-09-16  Bruno Haible  <bruno@clisp.org>
8537
8538         Support for MSVC compiler: Ensure mode_t gets defined.
8539         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
8540         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
8541         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
8542         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
8543         * tests/test-fcntl-h.c: Check that mode_t is defined.
8544         * tests/test-sys_stat.c: Likewise.
8545         * tests/test-sys_types.c: Likewise.
8546         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
8547         * doc/posix-headers/sys_stat.texi: Likewise.
8548         * doc/posix-headers/sys_types.texi: Likewise.
8549
8550 2011-09-16  Bruno Haible  <bruno@clisp.org>
8551
8552         sys_stat: Support for MSVC.
8553         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
8554         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
8555         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
8556         MSVC.
8557
8558 2011-09-16  Bruno Haible  <bruno@clisp.org>
8559
8560         Support for MSVC compiler: Ensure off_t gets defined.
8561         * lib/unistd.in.h: Include <sys/types.h>.
8562         * tests/test-fcntl-h.c: Check that off_t is defined.
8563         * tests/test-sys_stat.c: Likewise.
8564         * tests/test-sys_types.c: Likewise.
8565
8566 2011-09-16  Eric Blake  <eblake@redhat.com>
8567
8568         fdatasync: port to Solaris
8569         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
8570         * modules/fdatasync (Link): Document it.
8571         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
8572
8573         fdatasync: port to MacOS X 10.7
8574         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
8575         declared.
8576         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
8577         * modules/unistd (Makefile.am): Substitute it.
8578         * lib/unistd.in.h (fdatasync): Declare on MacOS.
8579         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
8580
8581         fdatasync: minor improvements
8582         * modules/fdatasync (Depends-on): Add condition for fsync.
8583         * lib/fdatasync.c (fdatasync): Add comment.
8584         * tests/test-unistd-c++.cc: Test fdatasync.
8585
8586         unistd: update refs to newer POSIX
8587         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
8588         Suggested by Bruno Haible.
8589
8590         fdatasync: new module
8591         * modules/fsync (Description): Document difference to fdatasync.
8592         * modules/fdatasync: New module.
8593         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
8594         * lib/fdatasync.c (fdatasync): Likewise.
8595         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
8596         defaults.
8597         * modules/unistd (Makefile.am): Set witnesses.
8598         * lib/unistd.in.h (fdatasync): Declare.
8599         * MODULES.html.sh: Document it.
8600         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
8601         * modules/fdatasync-tests: New test.
8602         * tests/test-fdatasync.c: Likewise.
8603
8604 2011-09-16  Eric Blake  <eblake@redhat.com>
8605
8606         test-fsync: enhance tests
8607         * modules/fsync-tests (Depends-on): Add errno, for mingw.
8608         * tests/test-fsync.c (main): Enhance test.
8609
8610 2011-09-15  Bruno Haible  <bruno@clisp.org>
8611
8612         Support for MSVC compiler: Ensure ssize_t gets defined.
8613         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
8614         * doc/posix-headers/stdio.texi: Likewise.
8615         * modules/stdio (Depends-on): Add ssize_t.
8616         * modules/sys_socket (Depends-on): Likewise.
8617         * modules/sys_types (Depends-on): Likewise.
8618         * modules/sys_uio (Depends-on): Likewise.
8619         * modules/unistd (Depends-on): Likewise.
8620         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
8621         * tests/test-sys_types.c: Check that ssize_t is defined.
8622
8623 2011-09-14  Bruno Haible  <bruno@clisp.org>
8624
8625         Avoid using #, the m4 comment starter character, near brackets.
8626         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
8627         delimiter character in sed expressions.
8628         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
8629         Suggested by Eric Blake.
8630
8631         Properly quote AC_CHECK_DECLS' 4th argument.
8632         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
8633         argument.
8634         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
8635         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
8636         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
8637         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
8638         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
8639         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
8640         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
8641         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
8642         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
8643         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
8644         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
8645         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
8646         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
8647         * m4/isinf.m4 (gl_ISINF): Likewise.
8648         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
8649         * m4/readutmp.m4 (gl_READUTMP): Likewise.
8650         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
8651         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
8652         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
8653         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
8654         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
8655         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
8656         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
8657         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
8658         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
8659         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
8660         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
8661         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
8662         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
8663         Reported by Eric Blake.
8664
8665         Properly quote AC_CHECK_DECL's 4th argument.
8666         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
8667         argument.
8668         * m4/argp.m4 (gl_ARGP): Likewise.
8669         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
8670         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
8671         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
8672         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
8673         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
8674         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
8675         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
8676         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
8677         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
8678         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
8679         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
8680         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
8681         Reported by Eric Blake.
8682
8683 2011-09-14  Eric Blake  <eblake@redhat.com>
8684
8685         opendir: avoid compile warning
8686         * lib/opendir.c (includes): Always include errno.h.
8687         Reported by Tatsuro MATSUOKA.
8688
8689 2011-09-14  Jim Meyering  <meyering@redhat.com>
8690
8691         maint.mk: sc_tight_scope: propagate failure from sub-make
8692         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
8693         Reported by Martin von Gagern.
8694
8695 2011-09-13  Bruno Haible  <bruno@clisp.org>
8696
8697         tempname: Support for MSVC.
8698         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
8699         MSVC.
8700         * modules/tempname (Depends-on): Add fcntl-h.
8701
8702 2011-09-13  Bruno Haible  <bruno@clisp.org>
8703
8704         sys_time: Support for MSVC.
8705         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
8706         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
8707         include <winsock2.h>.
8708         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
8709         function declarations that collide with POSIX.
8710         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
8711         (Makefile.am): Substitute HAVE_WINSOCK2_H.
8712
8713 2011-09-13  Bruno Haible  <bruno@clisp.org>
8714
8715         stat: Support for MSVC.
8716         * lib/stat.c: Include pathmax.h.
8717         * modules/stat (Depends-on): Add pathmax.
8718
8719         pathmax: Support for native Windows.
8720         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
8721
8722 2011-09-12  Bruno Haible  <bruno@clisp.org>
8723
8724         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
8725         * lib/dirent.in.h (struct dirent): New type.
8726         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
8727         DT_WHT): New macros.
8728         (DIR): New type.
8729         (opendir, closedir): Declare only if the module 'opendir' is enabled.
8730         (readdir, rewinddir): New declarations.
8731         * lib/dirent-private.h: New file.
8732         * lib/opendir.c: New file.
8733         * lib/readdir.c: New file.
8734         * lib/rewinddir.c: New file.
8735         * lib/closedir.c: New file.
8736         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
8737         * m4/opendir.m4: New file.
8738         * m4/readdir.m4: New file.
8739         * m4/rewinddir.m4: New file.
8740         * m4/closedir.m4: New file.
8741         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
8742         REPLACE_CLOSEDIR here.
8743         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
8744         readdir, rewinddir are declared.
8745         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
8746         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
8747         HAVE_REWINDDIR, HAVE_CLOSEDIR.
8748         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
8749         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
8750         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
8751         * modules/opendir: New file.
8752         * modules/readdir: New file.
8753         * modules/rewinddir: New file.
8754         * modules/closedir: New file.
8755         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
8756         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
8757         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
8758         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
8759         * NEWS: Mention the 'fchdir' change.
8760
8761 2011-09-11  Bruno Haible  <bruno@clisp.org>
8762
8763         asm-underscore.m4: Support for MSVC.
8764         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
8765         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
8766
8767 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
8768
8769         Doc about crypt functions.
8770         * doc/posix-functions/crypt.texi: Expand range of glibc versions
8771         needing for _GNU_SOURCE to get crypt.
8772         * doc/posix-functions/encrypt.texi: Likewise.
8773         * doc/posix-functions/setkey.texi: Likewise.
8774
8775 2011-09-11  Bruno Haible  <bruno@clisp.org>
8776
8777         doc: Update regarding MSVC 9.
8778         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
8779         tested".
8780         * doc/posix-functions/*.texi: Update with info about MSVC 9.
8781         * doc/posix-headers/*.texi: Likewise.
8782         * doc/pastposix-functions/*.texi: Likewise.
8783         * doc/glibc-functions/*.texi: Likewise.
8784         * doc/glibc-headers/*.texi: Likewise.
8785
8786 2011-09-11  Bruno Haible  <bruno@clisp.org>
8787
8788         unistd et al.: Don't assume <unistd.h> exists.
8789         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
8790         does not exist.
8791         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
8792         exist. But include <stdlib.h>.
8793         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
8794         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
8795         symlink() does not exist.
8796         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
8797         include <io.h> instead.
8798         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
8799         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
8800         include <direct.h> instead.
8801         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
8802         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8803         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
8804         <io.h> instead.
8805         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
8806         correctly if the system does not have hard links.
8807         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
8808         <direct.h> instead.
8809         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
8810         it when looking for function declarations.
8811         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
8812         <direct.h> and <io.h> instead.
8813         * doc/posix-headers/unistd.texi: More details about MSVC problem.
8814
8815 2011-09-11  Bruno Haible  <bruno@clisp.org>
8816
8817         strcase: Support for MSVC.
8818         * modules/strcase (Status, Notice): Remove obsoletion mark.
8819         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
8820         * doc/posix-functions/strncasecmp.texi: Likewise.
8821
8822         strings: Don't assume <strings.h> exists.
8823         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
8824         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
8825         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
8826         * doc/posix-headers/strings.texi: Mention the MSVC problem.
8827
8828 2011-09-11  Bruno Haible  <bruno@clisp.org>
8829
8830         dirent: Don't assume <dirent.h> exists.
8831         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
8832         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
8833         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
8834         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
8835
8836 2011-09-11  Bruno Haible  <bruno@clisp.org>
8837
8838         Fix wint_t on MSVC.
8839         * lib/wchar.in.h (wint_t): On MSVC, override it.
8840         * lib/wctype.in.h (wint_t): Likewise.
8841         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
8842         MSVC.
8843         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
8844         * doc/posix-headers/wctype.texi: Likewise.
8845
8846 2011-09-11  Bruno Haible  <bruno@clisp.org>
8847
8848         sys_types: Fix typo.
8849         * lib/sys_types.in.h: Fix typo in comment.
8850         Reported by Paul Eggert.
8851
8852         Support for MSVC compiler: Ensure size_t gets defined.
8853         * modules/strings (Depends-on): Add 'sys_types'.
8854         * modules/sys_uio (Depends-on): Likewise.
8855         * lib/sys_uio.in.h: Update comment.
8856
8857         C++ tests for module 'sys_types'.
8858         * modules/sys_types-c++-tests: New file.
8859         * tests/test-sys_types-c++.cc: New file.
8860
8861         Tests for module 'sys_types'.
8862         * modules/sys_types-tests: New file.
8863         * tests/test-sys_types.c: New file.
8864
8865         New module 'sys_types'.
8866         * lib/sys_types.in.h: New file.
8867         * m4/sys_types_h.m4: New file.
8868         * modules/sys_types: New file.
8869         * doc/posix-headers/sys_types.texi: Mention the new module and the
8870         size_t problem on MSVC 9.
8871
8872 2011-09-11  Bruno Haible  <bruno@clisp.org>
8873
8874         Support for MSVC compiler: Avoid division by a literal 0.
8875         * lib/math.in.h (NAN): Define through a function call also on MSVC.
8876         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
8877         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
8878         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
8879         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
8880         * tests/infinity.h: New file.
8881         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
8882         on MSVC.
8883         * tests/test-ceilf1.c: Include infinity.h.
8884         (main): Use Infinityf.
8885         * tests/test-ceil1.c: Include infinity.h.
8886         (main): Use Infinityd.
8887         * tests/test-ceill.c: Include infinity.h.
8888         (main): Use Infinityl.
8889         * tests/test-dprintf-posix.c: Include infinity.h.
8890         (test_function): Use Infinityd.
8891         * tests/test-floorf1.c: Include infinity.h.
8892         (main): Use Infinityf.
8893         * tests/test-floor1.c: Include infinity.h.
8894         (main): Use Infinityd.
8895         * tests/test-floorl.c: Include infinity.h.
8896         (main): Use Infinityl.
8897         * tests/test-fprintf-posix.c: Include infinity.h.
8898         (test_function): Use Infinityd.
8899         * tests/test-frexp.c: Include infinity.h.
8900         (main): Use Infinityd.
8901         * tests/test-frexpl.c: Include infinity.h.
8902         (main): Use Infinityl.
8903         * tests/test-isfinite.c: Include infinity.h.
8904         (test_isfinitef): Use Infinityf.
8905         (test_isfinited): Use Infinityd.
8906         (test_isfinitel): Use Infinityl.
8907         * tests/test-isinf.c: Include infinity.h.
8908         (test_isinff): Use Infinityf.
8909         (test_isinfd): Use Infinityd.
8910         (test_isinfl): Use Infinityl.
8911         * tests/test-isnan.c: Include infinity.h.
8912         (test_float): Use Infinityf.
8913         (test_double): Use Infinityd.
8914         (test_long_double): Use Infinityl.
8915         * tests/test-isnanf.h: Include infinity.h.
8916         (main): Use Infinityf.
8917         * tests/test-isnand.h: Include infinity.h.
8918         (main): Use Infinityd.
8919         * tests/test-isnanl.h: Include infinity.h.
8920         (main): Use Infinityl.
8921         * tests/test-ldexpl.c: Include infinity.h.
8922         (main): Use Infinityl.
8923         * tests/test-printf-posix.h: Include infinity.h.
8924         (test_function): Use Infinityd.
8925         * tests/test-roundf1.c: Include infinity.h.
8926         (main): Use Infinityf.
8927         * tests/test-round1.c: Include infinity.h.
8928         (main): Use Infinityd.
8929         * tests/test-roundl.c: Include infinity.h.
8930         (main): Use Infinityl.
8931         * tests/test-signbit.c: Include infinity.h.
8932         (test_signbitf): Use Infinityf.
8933         (test_signbitd): Use Infinityd.
8934         (test_signbitl): Use Infinityl.
8935         * tests/test-snprintf-posix.h: Include infinity.h.
8936         (test_function): Use Infinityd, Infinityl.
8937         * tests/test-sprintf-posix.h: Include infinity.h.
8938         (test_function): Use Infinityd, Infinityl.
8939         * tests/test-truncf1.c: Include infinity.h.
8940         (main): Use Infinityf.
8941         * tests/test-trunc1.c: Include infinity.h.
8942         (main): Use Infinityd.
8943         * tests/test-truncl.c: Include infinity.h.
8944         (main): Use Infinityl.
8945         * tests/test-vasnprintf-posix.c: Include infinity.h.
8946         (test_function): Use Infinityd, Infinityl.
8947         * tests/test-vasprintf-posix.c: Include infinity.h.
8948         (test_function): Use Infinityd, Infinityl.
8949         * modules/ceilf-tests (Files): Add tests/infinity.h.
8950         * modules/ceil-tests (Files): Likewise.
8951         * modules/ceill-tests (Files): Likewise.
8952         * modules/dprintf-posix-tests (Files): Likewise.
8953         * modules/floorf-tests (Files): Likewise.
8954         * modules/floor-tests (Files): Likewise.
8955         * modules/floorl-tests (Files): Likewise.
8956         * modules/fprintf-posix-tests (Files): Likewise.
8957         * modules/frexp-tests (Files): Likewise.
8958         * modules/frexp-nolibm-tests (Files): Likewise.
8959         * modules/frexpl-tests (Files): Likewise.
8960         * modules/frexpl-nolibm-tests (Files): Likewise.
8961         * modules/isfinite-tests (Files): Likewise.
8962         * modules/isinf-tests (Files): Likewise.
8963         * modules/isnan-tests (Files): Likewise.
8964         * modules/isnanf-tests (Files): Likewise.
8965         * modules/isnanf-nolibm-tests (Files): Likewise.
8966         * modules/isnand-tests (Files): Likewise.
8967         * modules/isnand-nolibm-tests (Files): Likewise.
8968         * modules/isnanl-tests (Files): Likewise.
8969         * modules/isnanl-nolibm-tests (Files): Likewise.
8970         * modules/ldexpl-tests (Files): Likewise.
8971         * modules/printf-posix-tests (Files): Likewise.
8972         * modules/roundf-tests (Files): Likewise.
8973         * modules/round-tests (Files): Likewise.
8974         * modules/roundl-tests (Files): Likewise.
8975         * modules/signbit-tests (Files): Likewise.
8976         * modules/snprintf-posix-tests (Files): Likewise.
8977         * modules/sprintf-posix-tests (Files): Likewise.
8978         * modules/truncf-tests (Files): Likewise.
8979         * modules/trunc-tests (Files): Likewise.
8980         * modules/truncl-tests (Files): Likewise.
8981         * modules/vasnprintf-posix-tests (Files): Likewise.
8982         * modules/vasprintf-posix-tests (Files): Likewise.
8983         * modules/vdprintf-posix-tests (Files): Likewise.
8984         * modules/vfprintf-posix-tests (Files): Likewise.
8985         * modules/vprintf-posix-tests (Files): Likewise.
8986         * modules/vsnprintf-posix-tests (Files): Likewise.
8987         * modules/vsprintf-posix-tests (Files): Likewise.
8988         * modules/xprintf-posix-tests (Files): Likewise.
8989
8990 2011-09-11  Bruno Haible  <bruno@clisp.org>
8991
8992         Ensure pid_t gets defined.
8993         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
8994         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
8995         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
8996         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
8997         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
8998         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
8999         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
9000         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9001         * tests/test-fcntl-h.c: Check that pid_t is defined.
9002         * tests/test-sched.c: Likewise.
9003         * tests/test-termios.c: Likewise.
9004         * tests/test-time.c: Likewise.
9005         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
9006         * doc/posix-headers/signal.texi: Likewise.
9007         * doc/posix-headers/sys_types.texi: Likewise.
9008         * doc/posix-headers/time.texi: Likewise.
9009
9010 2011-09-11  Bruno Haible  <bruno@clisp.org>
9011
9012         acl: Fix compilation on Solaris 10 (older version).
9013         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
9014         of ACE_EVERYONE.
9015         * lib/set-mode-acl.c (qset_acl): Likewise.
9016         Reported by Christian Jullien <eligis@orange.fr>.
9017
9018 2011-09-10  Bruno Haible  <bruno@clisp.org>
9019
9020         iconv, unsetenv: Add support for MSVC compiler.
9021         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
9022         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
9023
9024 2011-09-10  Bruno Haible  <bruno@clisp.org>
9025
9026         *printf: Add support for MSVC compiler.
9027         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
9028         handles the exception caused by the %n directive. When cross-compiling,
9029         guess no on native Windows.
9030         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
9031         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
9032         emulate it through vsnprintf.
9033         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
9034         * doc/posix-functions/dprintf.texi: Update documentation regarding
9035         MSVC 9.
9036         * doc/posix-functions/fprintf.texi: Likewise.
9037         * doc/posix-functions/printf.texi: Likewise.
9038         * doc/posix-functions/snprintf.texi: Likewise.
9039         * doc/posix-functions/sprintf.texi: Likewise.
9040         * doc/posix-functions/swprintf.texi: Likewise.
9041         * doc/posix-functions/vdprintf.texi: Likewise.
9042         * doc/posix-functions/vfprintf.texi: Likewise.
9043         * doc/posix-functions/vprintf.texi: Likewise.
9044         * doc/posix-functions/vsnprintf.texi: Likewise.
9045         * doc/posix-functions/vsprintf.texi: Likewise.
9046         * doc/glibc-functions/asprintf.texi: Likewise.
9047         * doc/glibc-functions/obstack_printf.texi: Likewise.
9048         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
9049         * doc/glibc-functions/vasprintf.texi: Likewise.
9050
9051 2011-09-10  Bruno Haible  <bruno@clisp.org>
9052
9053         nocrash: Add support for native Windows.
9054         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
9055
9056 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
9057             Bruno Haible  <bruno@clisp.org>
9058
9059         absolute-header, include-next: Add support for MSVC compiler.
9060         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
9061         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
9062         directory separator in #line directives.
9063         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
9064         recognize also backslash as directory separator in #line directives.
9065
9066 2011-09-08  Jim Meyering  <meyering@redhat.com>
9067
9068         maint.mk: mark the post-release commit log with "maint: " prefix
9069         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
9070         one-line commit-log summary.
9071
9072 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
9073             Bruno Haible  <bruno@clisp.org>
9074
9075         Doc about crypt functions.
9076         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
9077         systems.
9078         * doc/posix-functions/encrypt.texi: Likewise.
9079         * doc/posix-functions/setkey.texi: Likewise.
9080
9081 2011-09-08  Simon Josefsson  <simon@josefsson.org>
9082
9083         * lib/gc.h: Fix copyright header.
9084
9085 2011-09-07  Bruno Haible  <bruno@clisp.org>
9086
9087         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
9088         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
9089         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
9090
9091 2011-09-07  Bruno Haible  <bruno@clisp.org>
9092
9093         openat: Work around compilation error with OSF/1 5.1 DTK cc.
9094         * lib/fopen.c: Use different syntax for include of <stdio.h>.
9095         * lib/freopen.c: Likewise.
9096         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
9097         * lib/lstat.c: Likewise.
9098         * lib/stat.c: Likewise.
9099         * lib/open.c: Use different syntax for include of <fcntl.h>.
9100         * lib/openat.c: Include fcntl.h again, explicitly.
9101
9102 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
9103
9104         parse-datetime: document the newly accepted format
9105         * doc/parse-datetime.texi (Combined date and time of day items):
9106         New section.
9107
9108 2011-09-06  Bruno Haible  <bruno@clisp.org>
9109
9110         acl: Fix a test failure on newer Solaris 10 with ZFS.
9111         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
9112         ENOSYS as no ACL.
9113         Reported by Jim Meyering.
9114
9115 2011-09-06  Bruno Haible  <bruno@clisp.org>
9116
9117         acl: Update for AIX >= 5.3 with NFS.
9118         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
9119         ENOSYS as no ACL.
9120
9121         acl: Fix a test failure on AIX >= 5.3 with NFS.
9122         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
9123         as no ACL.
9124
9125 2011-09-06  Bruno Haible  <bruno@clisp.org>
9126
9127         acl: Fix a test failure on IRIX 6.5 with NFS.
9128         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
9129         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
9130         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
9131         * lib/copy-acl.c (qcopy_acl): Likewise.
9132
9133 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
9134
9135         openat: port to AIX 7.1 with large files
9136         AIX 7.1 does a "#define openat open64at" if large files are in use,
9137         so we can't simply #undef openat.  Use the orig_openat trick (similar
9138         to orig_open in lib/open.c) to work around the problem.  Problem
9139         reported by Kevin Brott for GNU tar, in the thread containing
9140         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
9141         * lib/openat.c (__need_system_fcntl_h): Define first.
9142         Include <fcntl.h> and <sys/types.h> before undefining.
9143         (orig_openat) [HAVE_OPENAT]: New inline function.
9144         (openat) [HAVE_OPENAT]: Do not undef.
9145         (rpl_openat): Use orig_openat, not openat.
9146
9147 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
9148             Bruno Haible  <bruno@clisp.org>
9149
9150         acl: Avoid errors on NonStop Kernel.
9151         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
9152         ENOTSUP errors.
9153
9154 2011-09-05  Bruno Haible  <bruno@clisp.org>
9155
9156         acl: Clean up Solaris code.
9157         * lib/acl-internal.h: Remove no-op #if.
9158         * lib/file-has-acl.c: Likewise.
9159         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
9160         * lib/copy-acl.c (qcopy_acl): Likewise.
9161
9162 2011-09-05  Bruno Haible  <bruno@clisp.org>
9163
9164         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
9165         binaries built on the original Solaris 10.
9166         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
9167         trivial.
9168
9169 2011-09-05  Bruno Haible  <bruno@clisp.org>
9170
9171         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
9172         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
9173         10.
9174         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
9175         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
9176         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
9177         instead of acl_get, facl_get, acl_set, facl_set.
9178
9179 2011-09-05  Bruno Haible  <bruno@clisp.org>
9180
9181         copy-file: Try unit tests on more file systems.
9182         * tests/test-copy-file-1.sh: New file.
9183         * tests/test-copy-file-2.sh: New file.
9184         * modules/copy-file-tests (Files): Add them.
9185         (Makefile.am): Add them to TESTS.
9186
9187         acl: Try unit tests on more file systems.
9188         * tests/test-file-has-acl-1.sh: New file.
9189         * tests/test-file-has-acl-2.sh: New file.
9190         * tests/test-set-mode-acl-1.sh: New file.
9191         * tests/test-set-mode-acl-2.sh: New file.
9192         * tests/test-copy-acl-1.sh: New file.
9193         * tests/test-copy-acl-2.sh: New file.
9194         * modules/acl-tests (Files): Add them.
9195         (Makefile.am): Add them to TESTS.
9196
9197 2011-09-04  Bruno Haible  <bruno@clisp.org>
9198
9199         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
9200         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
9201         10.
9202         (OLD_ALLOW, OLD_DENY): New macros.
9203         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
9204         ACE_ACCESS_ALLOWED_ACE_TYPE.
9205         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
9206         ACE_ACCESS_DENIED_ACE_TYPE.
9207         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
9208         (NEW_ACE_EXECUTE): Fix value.
9209         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
9210         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
9211         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
9212         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
9213         NEW_ACE_SYNCHRONIZE): New macros.
9214         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
9215         instead of acl_fromtext, acl_set, facl_set.
9216         Fixes a coreutils/tests/cp/perm failure.
9217
9218 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
9219
9220         openat: test for fstatat (..., 0) bug
9221         Further testing with tar suggests that fstatat (..., 0)
9222         does not work in general, on AIX 7.1; see
9223         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
9224         So, give up entirely on AIX 7.1's fstatat, and fall back on our
9225         replacement fstatat (which is what older AIX releases were using
9226         anyway).
9227         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
9228         use is now changed to orig_fstatat.  This was probably the right
9229         thing to do anyway.
9230         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
9231         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
9232         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
9233         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
9234         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
9235         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
9236         if the bug is found.
9237
9238         openat: test for fstatat (AT_FDCWD, ..., 0) bug
9239         This tests for another fstatat bug on AIX 7.1:
9240         fstatat (AT_FDCWD, ..., 0) does not work.  See
9241         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
9242         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
9243         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
9244         (rpl_fstatat): Adjust so that it works around either (or both)
9245         bugs if present.
9246         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
9247
9248 2011-09-03  Karl Berry  <karl@gnu.org>
9249
9250         * doc/regex.texi (Character Class Operators): Avoid literal ":"
9251         in index entries.
9252
9253 2011-09-02  Bruno Haible  <bruno@clisp.org>
9254
9255         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
9256         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
9257         values of AR, ARFLAGS, RANLIB.
9258         Reported by John W. Eaton <jwe@gnu.org> for Octave.
9259
9260 2011-09-02  Bruno Haible  <bruno@clisp.org>
9261
9262         Find 'ar' program that fits with --host argument.
9263         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
9264
9265 2011-09-02  Bruno Haible  <bruno@clisp.org>
9266
9267         tests: init.sh: Support any non-GNU diff.
9268         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
9269         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
9270         Solaris 8.
9271
9272 2011-09-02  Bruno Haible  <bruno@clisp.org>
9273
9274         tests: init.sh: work also with any non-GNU diff that supports -u
9275         * tests/init.sh: Relax check for diff -u support.
9276         Rather than checking for GNU diff via --version, simply check
9277         for support for -u itself.  Useful at least on OpenBSD 4.9,
9278         AIX 7.1, IRIX 6.5, and Solaris 10.
9279
9280 2011-09-01  Bruno Haible  <bruno@clisp.org>
9281
9282         strtoimax, strtoumax: Document problem on HP-UX 11.
9283         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
9284         * doc/posix-functions/strtoumax.texi: Likewise.
9285
9286 2011-09-01  Bruno Haible  <bruno@clisp.org>
9287
9288         strtoumax: Avoid link error on OSF/1 with DTK cc.
9289         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
9290         defined as a function.
9291         * modules/strtoumax (Depends-on, configure.ac): Test only whether
9292         strtoumax is defined, not whether it is declared.
9293
9294 2011-09-01  Bruno Haible  <bruno@clisp.org>
9295
9296         strtoimax: Avoid link error on OSF/1 with DTK cc.
9297         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
9298         defined as a function.
9299         * modules/strtoimax (Depends-on, configure.ac): Test only whether
9300         strtoimax is defined, not whether it is declared.
9301
9302 2011-09-01  Bruno Haible  <bruno@clisp.org>
9303
9304         imaxdiv: Avoid link error on OSF/1 with DTK cc.
9305         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
9306         as a function.
9307         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
9308         whether it is declared.
9309
9310 2011-09-01  Bruno Haible  <bruno@clisp.org>
9311
9312         imaxabs: Avoid link error on OSF/1 with DTK cc.
9313         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
9314         as a function.
9315         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
9316         whether it is declared.
9317
9318 2011-09-01  Bruno Haible  <bruno@clisp.org>
9319
9320         Tests for module 'strtoumax'.
9321         * modules/strtoumax-tests: New file.
9322         * tests/test-strtoumax.c: New file.
9323
9324         Tests for module 'strtoimax'.
9325         * modules/strtoimax-tests: New file.
9326         * tests/test-strtoimax.c: New file.
9327
9328         Tests for module 'imaxdiv'.
9329         * modules/imaxdiv-tests: New file.
9330         * tests/test-imaxdiv.c: New file.
9331
9332         Tests for module 'imaxabs'.
9333         * modules/imaxabs-tests: New file.
9334         * tests/test-imaxabs.c: New file.
9335
9336 2011-09-01  Bruno Haible  <bruno@clisp.org>
9337
9338         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
9339         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
9340         pthread_create.
9341
9342 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
9343
9344         openat: work around AIX 7.1 fstatat issue
9345         This should fix the problem that was not properly fixed
9346         in the previous change, dated 2011-08-30.
9347         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
9348         __need_system_stat_h defined.
9349         (orig_fstatat) [HAVE_FSTATAT]: New function.
9350         (rpl_fstatat): Go back to the old way of doing things,
9351         except call orig_fstatat instead of fstatat.
9352         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
9353         Remove unnecessary check whether fstatat fills in st_size etc.
9354
9355 2011-09-01  Bruno Haible  <bruno@clisp.org>
9356
9357         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
9358         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
9359         just include the system's header.
9360
9361 2011-08-31  Jim Meyering  <meyering@redhat.com>
9362
9363         tests: avoid spurious assertion failure in test-float.c on ppc64
9364         * tests/test-float.c (test_long_double): Comment out an assertion,
9365         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
9366         with gcc-4.4.4.
9367
9368         maint: indent with spaces, not TABs
9369         I need to get in the habit of running gnulib's "make check".
9370         Both of these would have been caught.
9371         * m4/largefile.m4: Indent with spaces, not TABs.
9372         * lib/parse-datetime.y (iso_8601_time): Likewise.
9373         Spotted by Pádraig Brady.
9374
9375         test-parse-datetime.c: accommodate a relatively strict gcc warning
9376         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
9377         to avoid a warning from gcc's -Werror=missing-declarations.
9378         Insert a few spaces-before-funcall-parenthesis.
9379
9380 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
9381
9382         parse-datetime: accept ISO 8601 date and time rep with "T" separator
9383         The parser now accepts ISO 8601 date-time strings with "T" as the
9384         separator.  It has long parsed dates like "2004-02-29 16:21:42"
9385         with a space between the date and time strings.  Now it also parses
9386         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
9387         variants like "2004-02-29T16:21:42.333-07:00"
9388         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
9389         of day representation using the 'T' separator character.
9390         * doc/parse-datetime.texi (General date syntax): replace use of
9391         deprecated --iso-8601 option with --rfc-3339 in example of date
9392         command output formats that can be parsed.
9393         * tests/test-parse-datetime.c (tm_diff): New function, taken from
9394         lib/parse-datetime.y.
9395         (gmt_offset): New function.
9396         (main): Add additional test cases to validate ISO8601 extended
9397         date and time of day parsing.
9398
9399 2011-08-31  Bruno Haible  <bruno@clisp.org>
9400
9401         freopen: Documentation.
9402         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
9403         name.
9404         Reported by Claudio Bley <claudio.bley@gmail.com>.
9405
9406 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
9407
9408         freopen: Don't crash if the filename argument is NULL.
9409         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
9410         NULL.
9411
9412 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
9413
9414         openat: work around AIX 7.1 fstatat bug
9415         Problem reported by Kevin Brott for GNU tar, in the thread containing
9416         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
9417         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
9418         FSTATAT_ST_SIZE_ETC_BROKEN.
9419         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
9420         rpl_fstatat.
9421         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
9422         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
9423         AC_CHECK_FUNCS_ONCE for fstatat.
9424         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
9425         fchmodat, mkdirat, openat and unlinkat.
9426
9427 2011-08-30  Bruno Haible  <bruno@clisp.org>
9428
9429         Avoid endless recursions if config.h includes some header files.
9430         * lib/fopen.c (__need_FILE): Define already before including config.h.
9431         * lib/freopen.c (__need_FILE): Likewise.
9432         * lib/open.c (__need_system_fcntl_h): Likewise.
9433         * lib/stat.c (__need_system_sys_stat_h): Likewise.
9434         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
9435         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
9436
9437 2011-08-25  Karl Berry  <karl@gnu.org>
9438
9439         * config/srclist.txt (ylwrap): new try.
9440         * build-aux/ylwrap: new file.
9441
9442 2011-08-23  Bruno Haible  <bruno@clisp.org>
9443
9444         tmpdir: Use a good default directory on native Windows.
9445         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
9446         (P_tmpdir): Default to _P_tmpdir on native Windows.
9447         (path_search): On native Windows, try the value returned by GetTempPath
9448         before trying P_tmpdir.
9449         * modules/tmpdir (Depends-on): Add pathmax.
9450         Suggested by John Darrington <john@darrington.wattle.id.au>.
9451
9452 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
9453
9454         doc: fix typo in README-release
9455         * top/README-release: Capitalize first word of a sentence.
9456
9457 2011-08-19  Jim Meyering  <meyering@redhat.com>
9458
9459         fts: do not exhaust memory when processing million-entry directories
9460         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
9461         directory would require about 256*N bytes of memory.  Thus, it was
9462         easy to construct a directory too large to be processed by any of
9463         those tools.  With this change, fts' maximum memory utilization is
9464         now limited to around 30MB.
9465         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
9466         (fts_read): When we've processed the final entry (i.e., when
9467         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
9468         using the parent entry to read any remaining entries.  Dispatch
9469         depending on what fts_build returns:
9470         - NULL+stop, aka failure: stop
9471         - NULL otherwise: move up in the dir hierarchy
9472         - non-NULL: handle this new entry
9473         (fts_build): Declare and use new local, continue_readdir.
9474         Prepare to be called from fts_read, when the entries
9475         from a partially-read directory have just been exhausted.
9476         In that case, we'll skip the opendir and instead use the parent's
9477         fts_dirp and derive dir_fd from that.
9478         Finally, in the readdir loop, if we read max_entries entries,
9479         exit the loop ensuring *not* to call closedir.  This is required
9480         so that fts_dirp can be reused on a subsequent call.
9481         Prompted by Ben England's report of memory exhaustion in find
9482         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
9483
9484         maint: fts: move decl of `dp' down into while loop; split a long line
9485         * lib/fts.c (fts_build): No semantic change.
9486
9487         fts: add/use new struct member, fts_dirp
9488         We are about to use this to manage any directory with
9489         too many entries to read all of them into memory at once.
9490         To do that, we'll need to save the DIR* pointer in each
9491         affected FTSENT struct.
9492         * lib/fts_.h: Include <dirent.h>.
9493         (struct FTSENT) [fts_dirp]: New member.
9494         * lib/fts.c (closedir_and_clear): Define.
9495         Use it in place of closedir so that we are sure to
9496         clear the new fts_dirp member when done with it.
9497         (fts_alloc): Initialize the new member.
9498         (fts_lfree): Free, if needed.
9499
9500         maint: fts: give __opendir2 a new parameter and rename
9501         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
9502         than surreptitiously using sole caller's "dir_fd".
9503         (fts_opendir): Rename from __opendir2.
9504
9505         maint: fts.c: remove __opendir2's now-unused parameter, oflag
9506         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
9507
9508         maint: fts.c: correct off-by-one indentation
9509         * lib/fts.c (fts_build): Correct indentation, change style
9510         of a couple of block comments, and bracing style.
9511
9512         maint: fts.c: move __opendir2 #define "up" out of function body
9513         * lib/fts.c (__opendir2): Move "up".  No semantic change.
9514
9515         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
9516         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
9517         out for a long time and besides was useful only on BSD systems.
9518
9519 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
9520
9521         regex: port to Stratus OpenVOS
9522         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
9523         define to empty, rather than attempting nonportable optimizations.
9524         Problem reported by Paul Green in:
9525         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
9526         and fix suggested by Eric Blake in:
9527         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
9528
9529 2011-08-17  Eric Blake  <eblake@redhat.com>
9530
9531         getcwd: fix test failures on mingw
9532         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
9533         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
9534         test if long directory cannot be created, and allow mingw errno.
9535
9536         getcwd-lgpl: fix m4 to match relaxed test for BSD
9537         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
9538         (gl_FUNC_GETCWD_SIGNATURE): New macro.
9539         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
9540         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
9541         signature problem.
9542
9543         getcwd: fix compilation on mingw64
9544         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
9545         getcwd.
9546         Reported by Marc-André Lureau.
9547
9548         pipe2: silence compiler warning
9549         * lib/pipe2.c (pipe2): Hide label if it is not used.
9550
9551 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
9552
9553         relocatable-prog: fix link error
9554         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
9555         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
9556         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
9557         into modules/relocatable-lib without noticing that
9558         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
9559         also needs to build relocatable.c.
9560
9561 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
9562
9563         getaddrinfo: fix sh typo in gai_strerrorA decl checking
9564         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
9565         shell code: it contained a 'break' that was not in a loop.
9566         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
9567         via a shell-language loop; this may have been true in old Autoconf
9568         versions, but it's not true in Autoconf 2.68.  I found this bug
9569         when testing coreutils git on Solaris 8, whose shell complains
9570         about the syntax error.
9571
9572 2011-08-12  Simon Josefsson  <simon@josefsson.org>
9573
9574         * lib/base64.c: Fix comment to reference RFC 4648.
9575         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
9576         <gvtulder@gmail.com>.
9577
9578 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
9579
9580         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
9581
9582         po/Makefile.in.in: fix make -q problem
9583         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
9584         rule, since there's no file named 'check-macro-version' and its
9585         use as a file breaks make -q.
9586         (all): Don't depend on check-macro-version.
9587         (CHECK_MACRO_VERSION): New macro.
9588         (stamp-po): Use it.
9589
9590         configmake: fix make -q problem
9591         * modules/configmake (configmake.h): Update configmake.h's time stamp
9592         even if the file does not change.  Otherwise, 'make -q' fails.
9593         Problem reported by Simon Josefsson in
9594         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
9595
9596 2011-08-11  Jim Meyering  <meyering@redhat.com>
9597
9598         git-version-gen: correct the advice in a comment
9599         * build-aux/git-version-gen: Correct comment.
9600         Don't recommend to list .tarball-version in .gitignore.
9601
9602 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
9603
9604         base64: fix off-by-one buffer size bug
9605         Problem and (trivial) fix reported by Gijs van Tulder in
9606         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
9607         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
9608         * tests/test-base64.c (main): Catch the bug.
9609
9610 2011-08-10  Eric Blake  <eblake@redhat.com>
9611
9612         closein: correct comments
9613         * lib/closein.c (close_stdin): Improve comments.
9614
9615 2011-08-09  Bruno Haible  <bruno@clisp.org>
9616
9617         More tests for 'fseeko'.
9618         * tests/test-fseeko3.c: New file, from Eric Blake.
9619         * tests/test-fseeko3.sh: New file.
9620         * modules/fseeko-tests (Files): Add them.
9621         (TESTS): Add test-fseeko3.sh.
9622         (check_PROGRAMS): Add test-fseeko3.
9623
9624 2011-08-09  Eric Blake  <eblake@redhat.com>
9625
9626         fseeko: remove unneeded hack
9627         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
9628
9629         fseeko: fix bug on glibc
9630         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
9631         Reported by John W. Eaton.
9632
9633 2011-08-08  Bruno Haible  <bruno@clisp.org>
9634
9635         unictype/base: Fix interoperability with preinstalled libunistring.
9636         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
9637         Reported by Simon Josefsson.
9638
9639 2011-08-08  Bruno Haible  <bruno@clisp.org>
9640
9641         iswblank: Detect declaration correctly.
9642         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
9643         AC_CHECK_DECLS invocation.
9644
9645 2011-08-08  Bruno Haible  <bruno@clisp.org>
9646
9647         tcgetsid: Detect declaration correctly.
9648         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
9649         AC_CHECK_DECLS invocation.
9650         Reported by Simon Josefsson.
9651
9652 2011-08-08  Eric Blake  <eblake@redhat.com>
9653
9654         largefile: fix typo that regressed large file support
9655         * modules/largefile (configure.ac-early): Fix section name.
9656
9657 2011-08-06  Karl Berry  <karl@gnu.org>
9658
9659         * MODULES.html.sh (func_all_files): _Noreturn is no longer
9660         a separate module.
9661
9662 2011-08-05  Simon Josefsson  <simon@josefsson.org>
9663
9664         openat: Fix warnings and commens when building unlinkat.c on Hurd.
9665         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
9666         get prototype for free.
9667
9668 2011-08-04  Bruno Haible  <bruno@clisp.org>
9669
9670         Tests for module 'pathmax'.
9671         * modules/pathmax-tests: New file.
9672         * tests/test-pathmax.c: New file.
9673
9674         canonicalize-lgpl: Support larger filenames on the Hurd.
9675         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
9676         Reported by Paul Eggert.
9677
9678         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
9679         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
9680         * lib/chdir-long.h: Include pathmax.h.
9681         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
9682         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
9683         (PATH_MAX): Remove code that is done by pathmax.h.
9684         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
9685         * lib/tmpfile.c: Add a comment.
9686         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
9687         * modules/chdir-long (Depends-on): Add pathmax.
9688         * modules/getcwd (Depends-on): Add pathmax.
9689         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
9690         is not defined.
9691         * doc/posix-headers/limits.texi: Mention the pathmax module.
9692         * NEWS: Mention the change.
9693
9694 2011-08-02  Bruno Haible  <bruno@clisp.org>
9695
9696         pthread_sigmask: Actually use results of gl_THREADLIB.
9697         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
9698         gl_THREADLIB, not gl_[]THREADLIB.
9699         Reported by Eric Blake.
9700
9701 2011-08-02  Jim Meyering  <meyering@redhat.com>
9702
9703         maint.mk: relax the default _gl_TS_function_match regexp
9704         * top/maint.mk (_gl_TS_function_match): Don't require at least one
9705         space between function name and "(" in an "extern" declaration.
9706         That would fail to match a decl with no space there: extern void foo();
9707
9708 2011-07-31  Iain Nicol  <iain@thenicols.net>
9709
9710         git-version-gen: document that EXTRA_DIST must include .version
9711         * build-aux/git-version-gen: In the how-to-use comment, document
9712         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
9713         will fail when run from an unpacked distribution tarball.
9714
9715 2011-08-01  Bruno Haible  <bruno@clisp.org>
9716
9717         wctype-h: Fix last change.
9718         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
9719         REPLACE_TOWLOWER to 0.
9720         Reported by Sam Steingold <sds@gnu.org>.
9721
9722 2011-07-31  Bruno Haible  <bruno@clisp.org>
9723
9724         frexpl: Update autoconf test.
9725         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
9726         according to changes of 2011-06-20.
9727
9728 2011-07-31  Bruno Haible  <bruno@clisp.org>
9729
9730         sys_utsname: Add support for Minix.
9731         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
9732         <sys/utsname.h>.
9733         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
9734         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
9735
9736 2011-07-31  Bruno Haible  <bruno@clisp.org>
9737
9738         strings: Add support for Minix.
9739         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
9740         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
9741         * doc/posix-headers/strings.texi: Document the Minix problem.
9742
9743 2011-07-31  Bruno Haible  <bruno@clisp.org>
9744
9745         wctype-h: Add support for Minix.
9746         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
9747         REPLACE_TOWLOWER.
9748         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
9749         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
9750         REPLACE_ISWCNTRL.
9751
9752 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
9753
9754         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
9755         This is a performance improvement for 64-bit hosts: it causes the
9756         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
9757
9758 2011-07-31  Bruno Haible  <bruno@clisp.org>
9759
9760         stdioext: Add support for Minix.
9761         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
9762         * lib/fpurge.c (fpurge): Likewise.
9763         * lib/freadahead.c (freadahead): Likewise.
9764         * lib/freadable.c (freadable): Likewise.
9765         * lib/freading.c (freading): Likewise.
9766         * lib/freadptr.c (freadptr): Likewise.
9767         * lib/freadseek.c (freadptrinc): Likewise.
9768         * lib/fseeko.c (rpl_fseeko): Likewise.
9769         * lib/fseterr.c (fseterr): Likewise.
9770         * lib/fwritable.c (fwritable): Likewise.
9771         * lib/fwriting.c (fwriting): Likewise.
9772         * lib/fflush.c (clear_ungetc_buffer): Update comment.
9773         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
9774
9775 2011-07-31  Bruno Haible  <bruno@clisp.org>
9776
9777         errno: Port to Minix.
9778         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
9779         ECONNABORTED are defined.
9780         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
9781         GNULIB_defined_ECONNABORTED): New macros.
9782         * lib/strerror-override.h (strerror_override): Test also
9783         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
9784         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
9785         ECONNABORTED.
9786         * doc/posix-headers/errno.texi: Mention the Minix problem.
9787
9788 2011-07-31  Bruno Haible  <bruno@clisp.org>
9789
9790         Work around declaration collisions on Minix.
9791         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
9792         defined, set REPLACE_MBSINIT.
9793         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
9794         defined, set REPLACE_MBRTOWC.
9795         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
9796         set REPLACE_MBRLEN.
9797         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
9798         defined, set REPLACE_MBSRTOWCS.
9799         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
9800         defined, set REPLACE_WCRTOMB.
9801         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
9802         defined, set REPLACE_WCSRTOMBS.
9803
9804 2011-07-31  Bruno Haible  <bruno@clisp.org>
9805
9806         Add support for Minix with ACK compiler.
9807         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
9808         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
9809         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
9810
9811 2011-07-31  Bruno Haible  <bruno@clisp.org>
9812
9813         Documentation about Minix.
9814         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
9815         * doc/glibc-headers/*.texi: Likewise.
9816         * doc/posix-functions/*.texi: Likewise.
9817         * doc/glibc-functions/*.texi: Likewise.
9818
9819 2011-07-31  Bruno Haible  <bruno@clisp.org>
9820
9821         snippet/warn-on-use: Fix indentation.
9822         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
9823
9824 2011-07-25  Jim Meyering  <meyering@redhat.com>
9825
9826         tests: test-update-copyright.sh: remove unnecessary "rm" commands
9827         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
9828         commands.
9829
9830 2011-07-27  Jim Meyering  <meyering@redhat.com>
9831
9832         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
9833         * top/maint.mk (gl_extract_significant_defines_): Now that
9834         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
9835         gnulib/lib/signal.in.h, and now that we recommend to
9836         define-if-undefined those two symbols in application code,
9837         we must filter them out of the "significant" list.
9838         This avoids a "make syntax-check" failure in coreutils.
9839
9840 2011-07-26  Eric Blake  <eblake@redhat.com>
9841
9842         warnings: add comments about previous patch
9843         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
9844         * m4/include_next.m4: Likewise.
9845         * m4/warn-on-use.m4: Likewise.
9846         * m4/warnings.m4: Likewise, and simplify use.
9847         Suggested by Stefano Lattarini.
9848
9849         include-next, warnings: support older autoconf
9850         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
9851         AS_VAR_PUSHDEF in a way that works with older autoconf.
9852         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
9853         Reported by Daniel P. Berrange.
9854
9855 2011-07-25  Bruno Haible  <bruno@clisp.org>
9856
9857         fseek, ftell: Fix doc.
9858         * doc/posix-functions/fseek.texi: Reword statement about
9859         AC_SYS_LARGEFILE.
9860         * doc/posix-functions/ftell.texi: Likewise.
9861
9862 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
9863             Bruno Haible  <bruno@clisp.org>
9864
9865         Add dependencies to the 'largefile' module.
9866         * modules/fopen (Depends-on): Add 'largefile'.
9867         * modules/freopen (Depends-on): Likewise.
9868         * modules/fseeko (Depends-on): Likewise.
9869         * modules/ftello (Depends-on): Likewise.
9870         * modules/glob (Depends-on): Likewise.
9871         * modules/lseek (Depends-on): Likewise.
9872         * modules/lstat (Depends-on): Likewise.
9873         * modules/mkostemp (Depends-on): Likewise.
9874         * modules/mkostemps (Depends-on): Likewise.
9875         * modules/mkstemp (Depends-on): Likewise.
9876         * modules/mkstemps (Depends-on): Likewise.
9877         * modules/open (Depends-on): Likewise.
9878         * modules/openat (Depends-on): Likewise.
9879         * modules/pread (Depends-on): Likewise.
9880         * modules/pwrite (Depends-on): Likewise.
9881         * modules/scandir (Depends-on): Likewise.
9882         * modules/stat (Depends-on): Likewise.
9883         * modules/tmpfile (Depends-on): Likewise.
9884         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
9885         since the containing module now depends on the largefile module.
9886         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
9887         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
9888         off_t is fixed by gnulib.
9889         * doc/posix-functions/freopen.texi: Likewise.
9890         * doc/posix-functions/fseeko.texi: Likewise.
9891         * doc/posix-functions/fstatat.texi: Likewise.
9892         * doc/posix-functions/ftello.texi: Likewise.
9893         * doc/posix-functions/glob.texi: Likewise.
9894         * doc/posix-functions/lseek.texi: Likewise.
9895         * doc/posix-functions/lstat.texi: Likewise.
9896         * doc/posix-functions/mkstemp.texi: Likewise.
9897         * doc/posix-functions/open.texi: Likewise.
9898         * doc/posix-functions/openat.texi: Likewise.
9899         * doc/posix-functions/pread.texi: Likewise.
9900         * doc/posix-functions/pwrite.texi: Likewise.
9901         * doc/posix-functions/scandir.texi: Likewise.
9902         * doc/posix-functions/stat.texi: Likewise.
9903         * doc/posix-functions/tmpfile.texi: Likewise.
9904         * doc/glibc-functions/mkostemp.texi: Likewise.
9905         * doc/glibc-functions/mkostemps.texi: Likewise.
9906         * doc/glibc-functions/mkstemps.texi: Likewise.
9907
9908 2011-07-25  Bruno Haible  <bruno@clisp.org>
9909
9910         fcntl: Move AC_LIBOBJ invocation to module description.
9911         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
9912         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
9913
9914         fcntl: Remove call-in from fchdir.m4.
9915         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
9916         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
9917
9918         dup3: Remove potential call-in from fchdir.m4.
9919         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
9920         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
9921
9922         dup2: Move AC_LIBOBJ invocation to module description.
9923         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
9924         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
9925         Don't invoke AC_LIBOBJ.
9926         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
9927
9928         dup2: Remove call-in from fchdir.m4.
9929         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
9930         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
9931
9932         fclose: Move AC_LIBOBJ invocation to module description.
9933         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
9934         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
9935         to 1.
9936         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
9937
9938         fclose: Remove call-in from close.m4.
9939         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
9940         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
9941
9942         close: Move AC_LIBOBJ invocation to module description.
9943         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
9944         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
9945         1.
9946         * modules/close (configure.ac): Invoke AC_LIBOBJ.
9947
9948         close: Remove call-in from fchdir.m4.
9949         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
9950         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
9951
9952         open: Move AC_LIBOBJ invocation to module description.
9953         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
9954         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
9955         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
9956
9957         open: Remove call-in from fchdir.m4.
9958         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
9959         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
9960
9961         fchdir: Start to remove gl_REPLACE_* idiom.
9962         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
9963         (gl_FUNC_FCHDIR): Invoke it.
9964
9965 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
9966
9967         * lib/ftell.c (ftell): Comment out cast.
9968
9969         close: use gl_REPLACE_FCLOSE only if defined
9970         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
9971         is defined.  The close module doesn't depend on the fclose module
9972         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
9973         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
9974         I reproduced the problem with "./gnulib-tool --test close sys_socket".
9975
9976 2011-07-24  Jim Meyering  <meyering@redhat.com>
9977
9978         test-select.h: avoid warning when using gcc's -Wmissing-declarations
9979         * tests/test-select.h (test_function): Declare as "static".
9980
9981 2011-07-24  Bruno Haible  <bruno@clisp.org>
9982
9983         doc: Mention the effects of AC_SYS_LARGEFILE.
9984         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
9985         on this function.
9986         * doc/posix-functions/aio_error.texi: Likewise.
9987         * doc/posix-functions/aio_fsync.texi: Likewise.
9988         * doc/posix-functions/aio_read.texi: Likewise.
9989         * doc/posix-functions/aio_return.texi: Likewise.
9990         * doc/posix-functions/aio_suspend.texi: Likewise.
9991         * doc/posix-functions/aio_write.texi: Likewise.
9992         * doc/posix-functions/fgetpos.texi: Likewise.
9993         * doc/posix-functions/fopen.texi: Likewise.
9994         * doc/posix-functions/freopen.texi: Likewise.
9995         * doc/posix-functions/fsetpos.texi: Likewise.
9996         * doc/posix-functions/fstatvfs.texi: Likewise.
9997         * doc/posix-functions/ftruncate.texi: Likewise.
9998         * doc/posix-functions/ftw.texi: Likewise.
9999         * doc/posix-functions/getrlimit.texi: Likewise.
10000         * doc/posix-functions/glob.texi: Likewise.
10001         * doc/posix-functions/lio_listio.texi: Likewise.
10002         * doc/posix-functions/lockf.texi: Likewise.
10003         * doc/posix-functions/mkstemp.texi: Likewise.
10004         * doc/posix-functions/mmap.texi: Likewise.
10005         * doc/posix-functions/nftw.texi: Likewise.
10006         * doc/posix-functions/openat.texi: Likewise.
10007         * doc/posix-functions/opendir.texi: Likewise.
10008         * doc/posix-functions/posix_fadvise.texi: Likewise.
10009         * doc/posix-functions/posix_fallocate.texi: Likewise.
10010         * doc/posix-functions/pread.texi: Likewise.
10011         * doc/posix-functions/pwrite.texi: Likewise.
10012         * doc/posix-functions/readdir.texi: Likewise.
10013         * doc/posix-functions/readdir_r.texi: Likewise.
10014         * doc/posix-functions/rewinddir.texi: Likewise.
10015         * doc/posix-functions/scandir.texi: Likewise.
10016         * doc/posix-functions/seekdir.texi: Likewise.
10017         * doc/posix-functions/setrlimit.texi: Likewise.
10018         * doc/posix-functions/statvfs.texi: Likewise.
10019         * doc/posix-functions/telldir.texi: Likewise.
10020         * doc/posix-functions/tmpfile.texi: Likewise.
10021         * doc/posix-functions/truncate.texi: Likewise.
10022         * doc/glibc-functions/fallocate.texi: Likewise.
10023         * doc/glibc-functions/fstatfs.texi: Likewise.
10024         * doc/glibc-functions/fts_children.texi: Likewise.
10025         * doc/glibc-functions/fts_read.texi: Likewise.
10026         * doc/glibc-functions/getdirentries.texi: Likewise.
10027         * doc/glibc-functions/mkostemp.texi: Likewise.
10028         * doc/glibc-functions/mkostemps.texi: Likewise.
10029         * doc/glibc-functions/mkstemps.texi: Likewise.
10030         * doc/glibc-functions/preadv.texi: Likewise.
10031         * doc/glibc-functions/pwritev.texi: Likewise.
10032         * doc/glibc-functions/sendfile.texi: Likewise.
10033         * doc/glibc-functions/statfs.texi: Likewise.
10034
10035 2011-07-24  Bruno Haible  <bruno@clisp.org>
10036
10037         doc: Fix typo.
10038         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
10039
10040 2011-07-24  Bruno Haible  <bruno@clisp.org>
10041
10042         doc: Mention fsusage.
10043         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
10044
10045 2011-07-24  Bruno Haible  <bruno@clisp.org>
10046
10047         doc: Mention new glibc headers and functions.
10048         * doc/glibc-headers/gshadow.texi: New file.
10049         * doc/glibc-functions/endsgent.texi: New file.
10050         * doc/glibc-functions/fgetsgent.texi: New file.
10051         * doc/glibc-functions/fgetsgent_r.texi: New file.
10052         * doc/glibc-functions/getsgent.texi: New file.
10053         * doc/glibc-functions/getsgent_r.texi: New file.
10054         * doc/glibc-functions/getsgnam.texi: New file.
10055         * doc/glibc-functions/getsgnam_r.texi: New file.
10056         * doc/glibc-functions/putsgent.texi: New file.
10057         * doc/glibc-functions/setsgent.texi: New file.
10058         * doc/glibc-functions/sgetsgent.texi: New file.
10059         * doc/glibc-functions/sgetsgent_r.texi: New file.
10060         * doc/glibc-functions/malloc_info.texi: New file.
10061         * doc/glibc-functions/preadv.texi: New file.
10062         * doc/glibc-functions/pwritev.texi: New file.
10063         * doc/glibc-functions/register_printf_modifier.texi: New file.
10064         * doc/glibc-functions/register_printf_specifier.texi: New file.
10065         * doc/glibc-functions/register_printf_type.texi: New file.
10066         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
10067         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
10068         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
10069         * doc/glibc-functions/pthread_getname_np.texi: New file.
10070         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
10071         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
10072         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
10073         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
10074         * doc/glibc-functions/pthread_setname_np.texi: New file.
10075         * doc/glibc-functions/pthread_sigqueue.texi: New file.
10076         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
10077         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
10078         * doc/glibc-functions/qsort_r.texi: New file.
10079         * doc/glibc-functions/quick_exit.texi: New file.
10080         * doc/glibc-functions/syncfs.texi: New file.
10081         * doc/gnulib.texi: Include them.
10082         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
10083         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
10084         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
10085         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
10086         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
10087         * doc/glibc-functions/execvpe.texi: Likewise.
10088
10089 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
10090
10091         ftell: don't include <unistd.h>
10092         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
10093         guaranteed to define off_t, and the ftell module depends on the
10094         stdio module.
10095
10096         ftell: do not assume wraparound signed arithmetic
10097         * lib/ftell.c: Include <limits.h>.
10098         (ftell): Don't assume wraparound signed arithmetic.
10099
10100 2011-07-24  Bruno Haible  <bruno@clisp.org>
10101
10102         close: No longer depend on module 'fclose'.
10103         * modules/close (Depends-on): Remove fclose.
10104         * NEWS: Mention the change.
10105         Suggested by Sam Steingold <sds@gnu.org>.
10106
10107 2011-07-24  Bruno Haible  <bruno@clisp.org>
10108
10109         fsusage: Enable large volume support on AIX >= 5.2.
10110         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
10111         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
10112         instead of STAT_STATVFS.
10113         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
10114
10115         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
10116         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
10117         f_blocks field only on MacOS X.
10118
10119         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
10120         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
10121         * modules/fsusage (Depends-on): Add largefile.
10122
10123 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
10124
10125         * README: Modernize discussion of signed integers.
10126         Assuming overflow wraparound is no longer safe.
10127         Mention ones' complement and signed magnitude.
10128
10129 2011-07-22  Bruno Haible  <bruno@clisp.org>
10130
10131         select tests, pselect tests: Refactor.
10132         * tests/test-select.h: New file, extracted from tests/test-select.c.
10133         (select_fn): New type.
10134         (test, do_select, do_select_nowait, do_select_wait, test_tty,
10135         test_connect_first, test_accept_first, test_pair, test_socket_pair,
10136         test_pipe): Add my_select argument.
10137         (test_function): Renamed from main. Add my_select argument.
10138         * tests/test-select.c: Move most code to tests/test-select.h. Include
10139         test-select.h.
10140         * modules/select-tests (Files): Add tests/test-select.h.
10141         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
10142         (my_select, main): New functions.
10143         * modules/pselect-tests (Files): Add tests/test-select.h,
10144         tests/macros.h, tests/signature.h.
10145         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
10146         (configure.ac): Check for <sys/wait.h>.
10147
10148 2011-07-22  Bruno Haible  <bruno@clisp.org>
10149
10150         sys_select tests: Check the signature of FD_*.
10151         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
10152         signature tests from here...
10153         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
10154         here.
10155         * modules/sys_select-tests (Files): Add tests/signature.h.
10156
10157 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
10158
10159         largefile: new module, replacing large-inode
10160         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
10161         * MODULES.html.sh: Add largefile, remove large-inode.
10162         * modules/largefile, m4/largefile.m4: New files.
10163         * modules/large-inode, m4/large-inode.m4: Remove.
10164
10165         fsusage: port to MacOS X 10.7 with 4 TiB file systems
10166         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
10167         implementations that use only 32 bits to count blocks.
10168         On typical hosts with 1024-byte blocks, this fails with file
10169         systems as small as 4 TiB.  Problem reported by Herb Wartens
10170         <http://debbugs.gnu.org/9140> and this should also fix a similar
10171         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
10172
10173         large-inode: New module
10174         * MODULES.html.sh: Add it.
10175         * modules/large-inode, m4/large-inode.m4: New files.
10176
10177         extensions: Enable extensions on MacOS X 10.5 and later.
10178         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
10179
10180 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
10181
10182         file-has-acl: use acl_extended_file_nofollow if available
10183         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
10184         (acl_extended_file): New macro.
10185         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
10186         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
10187
10188 2011-07-21  Bruno Haible  <bruno@clisp.org>
10189
10190         Declare system functions in a way that works with C++.
10191         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
10192         declare fdopendir as extern "C".
10193         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
10194         declare frexpl as extern "C".
10195         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
10196         declare gai_strerror as extern "C".
10197         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
10198         programs, declare gai_strerror as extern "C".
10199         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
10200         declare getlogin_r as extern "C".
10201         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
10202         as extern "C".
10203         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
10204         declare ldexpl as extern "C".
10205         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
10206         as extern "C".
10207         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
10208         program, declare getmntinfo as extern "C".
10209         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
10210         stpncpy as extern "C".
10211         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
10212         program, declare __xpg_strerror_r as extern "C".
10213         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
10214         strndup as extern "C".
10215         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
10216         declare memset and bzero as extern "C".
10217         Reported by Sam Steingold <sds@gnu.org>.
10218
10219 2011-07-12  Jim Meyering  <meyering@redhat.com>
10220
10221         maint.mk: prohibit inclusion of "verify.h" without use
10222         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
10223
10224 2011-07-19  Pádraig Brady  <P@draigBrady.com>
10225
10226         timer-time: A new module to check for timer_settime()
10227         * m4/timer_time.m4: Check for the posix function.
10228         * modules/timer-time: Add the new module.
10229         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
10230         Mention it.
10231
10232 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
10233             Bruno Haible  <bruno@clisp.org>
10234
10235         pthread_sigmask: assume POSIX threads if --avoid=threadlib
10236         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
10237         not defined, assume POSIX threads and look for pthread_sigmask in
10238         $LIBS, without changing $CPPFLAGS.
10239
10240 2011-07-19  Bruno Haible  <bruno@clisp.org>
10241
10242         strstr: Update cross-compilation guess.
10243         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
10244         CPUs, guess no, in view of glibc
10245         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
10246         Suggested by Eric Blake. Reported by Reuben Thomas.
10247
10248 2011-07-19  Pádraig Brady  <P@draigBrady.com>
10249
10250         getopt-gnu: suppress core dumps from detection code
10251         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
10252         to suppress core dumps that may well occur on glibc systems.
10253         * modules/getopt-gnu: Depend on nocrash.
10254
10255 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
10256
10257         pthread_sigmask: ensure usleep is declared
10258         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
10259         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
10260
10261 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
10262
10263         doc: Document NonStop portability issues.
10264         * doc/posix-functions/sigaction.texi (sigaction):
10265         * doc/posix-headers/signal.texi (signal.h):
10266         Document NonStop.  See Joachim Schmitz in
10267         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
10268
10269 2011-07-15  Bruno Haible  <bruno@clisp.org>
10270
10271         ffsl, ffsll: Avoid unportable behaviour.
10272         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
10273
10274 2011-07-15  Bruno Haible  <bruno@clisp.org>
10275
10276         ffs: More tests.
10277         * tests/test-ffs.c (NBITS): New macro.
10278         (main): Add more tests.
10279         * tests/test-ffsl.c (NBITS): New macro.
10280         (main): Add more tests.
10281         * tests/test-ffsll.c (NBITS): New macro.
10282         (main): Add more tests.
10283
10284 2011-07-15  Eric Blake  <eblake@redhat.com>
10285
10286         ffsl, ffsll: new modules
10287         * modules/ffsl: New file.
10288         * modules/ffsll: Likewise.
10289         * m4/ffsl.m4: Likewise.
10290         * m4/ffsll.m4: Likewise.
10291         * lib/ffsl.c: Likewise.
10292         * lib/ffsl.h: Likewise.
10293         * lib/ffsll.c: Likewise.
10294         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
10295         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
10296         * modules/string (Makefile.am): Substitute witnesses.
10297         * lib/strings.in.h (ffsl, ffsll): Declare.
10298         * modules/ffsl-tests: New test file.
10299         * modules/ffsll-tests: Likewise.
10300         * tests/test-ffsl.c: Likewise.
10301         * tests/test-ffsll.c: Likewise.
10302         * MODULES.html.sh (Integer arithmetic functions): Mention it.
10303         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
10304         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
10305
10306         ffs: fix m4 prerequisite
10307         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
10308
10309         ffs: avoid undefined behavior
10310         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
10311         * tests/test-ffs.c (naive, main): Avoid signed shifts.
10312         Reported by Bruno Haible.
10313
10314 2011-07-12  Bruno Haible  <bruno@clisp.org>
10315
10316         pthread_sigmask: Rely on module 'threadlib'.
10317         * modules/pthread_sigmask (Depends-on): Add threadlib.
10318         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
10319         is defined.
10320
10321 2011-07-12  Bruno Haible  <bruno@clisp.org>
10322
10323         regex: Depend on module 'strcase'.
10324         * modules/regex (Depends-on): Add strcase, for strcasecmp().
10325
10326 2011-07-12  Jim Meyering  <meyering@redhat.com>
10327
10328         warn-on-use: fix typo in file name
10329         * modules/snippet/warn-on-use (Files): Correct file name:
10330         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
10331
10332 2011-07-12  Bruno Haible  <bruno@clisp.org>
10333
10334         strings: Document module.
10335         * doc/posix-headers/strings.texi: Mention module 'strings'.
10336
10337 2011-07-12  Bruno Haible  <bruno@clisp.org>
10338
10339         Rename module '_Noreturn' to 'snippet/_Noreturn'.
10340         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
10341         (Files, Makefile.am): Update.
10342         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
10343         * modules/stdlib (Depends-on): Update.
10344
10345 2011-07-12  Bruno Haible  <bruno@clisp.org>
10346
10347         * NEWS: Mention the changes.
10348
10349         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
10350         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
10351         (Files, Makefile.am): Update.
10352         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
10353         * modules/arpa_inet (Depends-on): Update.
10354         * modules/ctype (Depends-on): Update.
10355         * modules/dirent (Depends-on): Update.
10356         * modules/fcntl-h (Depends-on): Update.
10357         * modules/glob (Depends-on): Update.
10358         * modules/iconv-h (Depends-on): Update.
10359         * modules/inttypes-incomplete (Depends-on): Update.
10360         * modules/langinfo (Depends-on): Update.
10361         * modules/locale (Depends-on): Update.
10362         * modules/math (Depends-on): Update.
10363         * modules/netdb (Depends-on): Update.
10364         * modules/poll-h (Depends-on): Update.
10365         * modules/pty (Depends-on): Update.
10366         * modules/search (Depends-on): Update.
10367         * modules/signal (Depends-on): Update.
10368         * modules/spawn (Depends-on): Update.
10369         * modules/stdio (Depends-on): Update.
10370         * modules/stdlib (Depends-on): Update.
10371         * modules/string (Depends-on): Update.
10372         * modules/strings (Depends-on): Update.
10373         * modules/sys_file (Depends-on): Update.
10374         * modules/sys_ioctl (Depends-on): Update.
10375         * modules/sys_select (Depends-on): Update.
10376         * modules/sys_socket (Depends-on): Update.
10377         * modules/sys_stat (Depends-on): Update.
10378         * modules/sys_time (Depends-on): Update.
10379         * modules/sys_times (Depends-on): Update.
10380         * modules/sys_utsname (Depends-on): Update.
10381         * modules/sys_wait (Depends-on): Update.
10382         * modules/termios (Depends-on): Update.
10383         * modules/time (Depends-on): Update.
10384         * modules/unistd (Depends-on): Update.
10385         * modules/wchar (Depends-on): Update.
10386         * modules/wctype-h (Depends-on): Update.
10387         * MODULES.html.sh (Support for building libraries and executables):
10388         Update.
10389
10390         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
10391         * modules/snippet/unused-parameter: Renamed from
10392         modules/unused-parameter.
10393         (Files, Makefile.am): Update.
10394         * build-aux/snippet/unused-parameter.h: Renamed from
10395         build-aux/unused-parameter.h.
10396         * modules/selinux-h (Depends-on): Update.
10397         * modules/unistr/base (Depends-on): Update.
10398         * MODULES.html.sh (Core language properties): Update.
10399
10400         Rename module 'link-warning' to 'snippet/link-warning'.
10401         * modules/snippet/link-warning: Renamed from modules/link-warning.
10402         (Files, Makefile.am): Update.
10403         * build-aux/snippet/link-warning.h: Renamed from
10404         build-aux/link-warning.h.
10405         * MODULES.html.sh (Support for building libraries and executables):
10406         Update.
10407
10408         Rename module 'c++defs' to 'snippet/c++defs'.
10409         * modules/snippet/c++defs: Renamed from modules/c++defs.
10410         (Files, Makefile.am): Update.
10411         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
10412         * modules/arpa_inet (Depends-on): Update.
10413         * modules/ctype (Depends-on): Update.
10414         * modules/dirent (Depends-on): Update.
10415         * modules/fcntl-h (Depends-on): Update.
10416         * modules/glob (Depends-on): Update.
10417         * modules/iconv-h (Depends-on): Update.
10418         * modules/langinfo (Depends-on): Update.
10419         * modules/locale (Depends-on): Update.
10420         * modules/math (Depends-on): Update.
10421         * modules/netdb (Depends-on): Update.
10422         * modules/poll-h (Depends-on): Update.
10423         * modules/pty (Depends-on): Update.
10424         * modules/search (Depends-on): Update.
10425         * modules/signal (Depends-on): Update.
10426         * modules/spawn (Depends-on): Update.
10427         * modules/stdio (Depends-on): Update.
10428         * modules/stdlib (Depends-on): Update.
10429         * modules/string (Depends-on): Update.
10430         * modules/strings (Depends-on): Update.
10431         * modules/sys_ioctl (Depends-on): Update.
10432         * modules/sys_select (Depends-on): Update.
10433         * modules/sys_socket (Depends-on): Update.
10434         * modules/sys_stat (Depends-on): Update.
10435         * modules/sys_time (Depends-on): Update.
10436         * modules/sys_wait (Depends-on): Update.
10437         * modules/termios (Depends-on): Update.
10438         * modules/time (Depends-on): Update.
10439         * modules/unistd (Depends-on): Update.
10440         * modules/wchar (Depends-on): Update.
10441         * modules/wctype-h (Depends-on): Update.
10442
10443         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
10444         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
10445         (Files, Makefile.am): Update.
10446         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
10447         * modules/argv-iter (Depends-on): Update.
10448         * modules/arpa_inet (Depends-on): Update.
10449         * modules/dirent (Depends-on): Update.
10450         * modules/fcntl-h (Depends-on): Update.
10451         * modules/fnmatch (Depends-on): Update.
10452         * modules/getopt-posix (Depends-on): Update.
10453         * modules/glob (Depends-on): Update.
10454         * modules/iconv-h (Depends-on): Update.
10455         * modules/inttypes-incomplete (Depends-on): Update.
10456         * modules/locale (Depends-on): Update.
10457         * modules/math (Depends-on): Update.
10458         * modules/netdb (Depends-on): Update.
10459         * modules/search (Depends-on): Update.
10460         * modules/signal (Depends-on): Update.
10461         * modules/spawn (Depends-on): Update.
10462         * modules/stdio (Depends-on): Update.
10463         * modules/stdlib (Depends-on): Update.
10464         * modules/string (Depends-on): Update.
10465         * modules/strings (Depends-on): Update.
10466         * modules/sys_socket (Depends-on): Update.
10467         * modules/sys_stat (Depends-on): Update.
10468         * modules/sys_time (Depends-on): Update.
10469         * modules/sys_times (Depends-on): Update.
10470         * modules/sys_utsname (Depends-on): Update.
10471         * modules/time (Depends-on): Update.
10472         * modules/unistd (Depends-on): Update.
10473         * modules/wchar (Depends-on): Update.
10474         * MODULES.html.sh (Support for building libraries and executables):
10475         Update.
10476
10477 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
10478
10479         Improvements on _Noreturn and related modules.
10480
10481         modules/_Exit-tests: test _Noreturn too
10482         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
10483         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
10484         (main): Use them.
10485
10486         stdnoreturn, stdnoreturn-tests: remove modules
10487         They're not needed here and a bit premature for use elsewhere.  See
10488         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
10489         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
10490         * tests/test-stdnoreturn.c: Remove files.
10491         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
10492         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
10493         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
10494         and using noreturn.
10495         * modules/openat, modules/sigpipe-die, modules/xalloc:
10496         * modules/xmemdup0, modules/xstrtol:
10497         Remove dependency on stdnoreturn.
10498
10499         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
10500         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
10501         Reparenthesize to avoid GCC warning.
10502         Support Microsoft's syntax.
10503         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
10504
10505         _Noreturn-tests: remove module
10506         * modules/_Noreturn-tests: Remove.
10507         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
10508         * tests/test-_Noreturn.c: Remove.
10509         * tests/test-stdnoreturn.c: Merge from the old
10510         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
10511
10512 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
10513
10514         _Noreturn, stdnoreturn, and related modules.
10515
10516         * top/maint.mk: Adjust to new noreturn support.
10517         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
10518         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
10519
10520         xalloc: use stdnoreturn.h
10521         * lib/xalloc.h: Include <stdnoreturn.h>.
10522         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10523         * modules/xalloc (Depends-on): Add stdnoreturn.
10524
10525         xstrtol: use stdnoreturn.h
10526         * lib/xstrtol.h: Include <stdnoreturn.h>.
10527         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10528         * modules/xstrtol (Depends-on): Add stdnoreturn.
10529
10530         xmemdup0: use stdnoreturn.h
10531         * lib/xmemdup0.h: Include <stdnoreturn.h>.
10532         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10533         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
10534
10535         sigpipe-die: use stdnoreturn.h
10536         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
10537         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10538         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
10539
10540         openat: use stdnoreturn.h
10541         * lib/openat.h: Include <stdnoreturn.h>.
10542         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10543         * modules/openat (Depends-on): Add stdnoreturn.
10544
10545         * lib/openat-die.c (openat_save_fail): Modernize comment.
10546
10547         * lib/xalloc-die.c (xalloc_die): Modernize comment.
10548
10549         * lib/glthread/thread.h: Modernize comment.
10550
10551         obstack: use _Noreturn
10552         * lib/obstack.c (__attribute__): Remove macro.
10553         (print_and_abort): Use _Noreturn.
10554
10555         c-stack: use _Noreturn
10556         * lib/c-stack.c (die, overflow_handler, segv_handler):
10557         Use _Noreturn rather than __attribute__((noreturn)).
10558
10559         argmatch-tests, exclude_tests: use _Noreturn
10560         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
10561         Remove.
10562         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
10563
10564         stdlib: use _Noreturn
10565         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
10566         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
10567         * modules/stdlib (Depends-on): Add _Noreturn.
10568         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
10569
10570         stdnoreturn-tests: new module
10571         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
10572
10573         stdnoreturn: new module
10574         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
10575         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
10576
10577         _Noreturn-tests: new module
10578         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
10579
10580         _Noreturn: new module
10581         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
10582         New section, mentioning it.
10583         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
10584
10585         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
10586
10587 2011-07-11  Eric Blake  <eblake@redhat.com>
10588
10589         ffs: new module
10590         * modules/ffs: New file.
10591         * m4/ffs.m4: Likewise.
10592         * lib/ffs.c: Likewise.
10593         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
10594         * modules/strings (Makefile.am): Substitute witness.
10595         (Depends-on): Add c++defs.
10596         * lib/strings.in.h (ffs): Declare.
10597         * modules/ffs-tests: New test file.
10598         * tests/test-ffs.c: Test new module.
10599         * MODULES.html.sh (Integer arithmetic functions): Mention it.
10600         * doc/posix-functions/ffs.texi (ffs): Likewise.
10601
10602         regex: avoid compiler warning
10603         * lib/regex.c (includes): Include <strings.h>, for use of
10604         strcasecmp in regcomp.c.
10605         Reported by Joachim Schmitz.
10606
10607 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
10608
10609         stdint: respect system's intmax_t if INTMAX_MAX
10610         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
10611         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
10612         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
10613         long but int64_t is long long, and where we will clash with the
10614         system intmax_t if we override it.  See
10615         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
10616         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
10617         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
10618         similarly for UINTMAX_C.
10619
10620 2011-07-08  Bruno Haible  <bruno@clisp.org>
10621
10622         pthread_sigmask tests: Avoid a compiler warning.
10623         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
10624         non-zero.
10625
10626         sigprocmask tests: A better way to avoid a compiler warning.
10627         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
10628         (main): Complain if system() returns non-zero.
10629         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
10630
10631 2011-07-08  Bruno Haible  <bruno@clisp.org>
10632
10633         pthread_sigmask: Work around IRIX bug.
10634         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
10635         bug.
10636         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
10637         there may be unblocked pending signals.
10638         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
10639
10640 2011-07-08  Bruno Haible  <bruno@clisp.org>
10641
10642         pthread_sigmask: Work around Cygwin bug.
10643         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
10644         bug.
10645         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
10646         the system's pthread_sigmask function.
10647         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
10648
10649 2011-07-08  Bruno Haible  <bruno@clisp.org>
10650
10651         pthread_sigmask: Work around bug in single-threaded implementation.
10652         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
10653         FreeBSD, HP-UX, Solaris bug.
10654         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
10655         * lib/pthread_sigmask.c: Include <stddef.h>.
10656         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
10657         the system's pthread_sigmask function.
10658         * modules/pthread_sigmask (configure.ac): Invoke
10659         gl_PREREQ_PTHREAD_SIGMASK.
10660         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
10661         HP-UX, Solaris.
10662
10663 2011-07-08  Eric Blake  <eblake@redhat.com>
10664
10665         test-sigprocmask: avoid compiler warning
10666         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
10667         * tests/test-sigprocmask.c (main): Use it to silence warning.
10668         Reported by Jim Meyering.
10669
10670         test-snprintf: avoid compiler warning
10671         * tests/test-snprintf.c (main): Avoid shadowed declaration.
10672         * tests/test-vsnprintf.c (main): Likewise.
10673         Reported by Jim Meyering.
10674
10675 2011-07-08  Bruno Haible  <bruno@clisp.org>
10676
10677         Tests for module 'pthread_sigmask'.
10678         * modules/pthread_sigmask-tests: New file.
10679         * tests/test-pthread_sigmask1.c: New file, based on
10680         tests/test-sigprocmask.c.
10681         * tests/test-pthread_sigmask2.c: New file.
10682
10683 2011-07-08  Jim Meyering  <meyering@redhat.com>
10684
10685         test-getopt.h: avoid warning about an unused variable
10686         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
10687
10688 2011-07-07  Jim Meyering  <meyering@redhat.com>
10689
10690         maint: reduce list of files exempt from sc_prohibit_leading_TABs
10691         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
10692         now that it no longer contains leading TABs.
10693         Remove unused "url=FIXME" statement.
10694
10695 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
10696
10697         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
10698         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
10699         When gl_THREADLIB is not in use, assume that the POSIX sematics
10700         are desired.  This is better for Emacs, which uses POSIX semantics
10701         on GNUish and/or POSIXish platforms, and does not use threads at
10702         all otherwise.
10703
10704         pthread_sigmask: fix typo when testing for libraries
10705         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
10706         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
10707
10708 2011-07-08  Eric Blake  <eblake@redhat.com>
10709
10710         fts: introduce FTS_NOATIME
10711         * lib/fts_.h (FTS_NOATIME): New bit flag.
10712         (FTS_OPTIONMASK): Adjust.
10713         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
10714         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
10715
10716 2011-07-08  Bruno Haible  <bruno@clisp.org>
10717
10718         Tests for module 'thread'.
10719         * modules/thread-tests: New file.
10720         * tests/test-thread_self.c: New file.
10721         * tests/test-thread_create.cc: New file.
10722
10723 2011-07-08  Bruno Haible  <bruno@clisp.org>
10724
10725         thread: Avoid gcc warnings when using gl_thread_self().
10726         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
10727         'void *'.
10728         (gl_thread_self_pointer): Update.
10729
10730 2011-07-07  Bruno Haible  <bruno@clisp.org>
10731
10732         signal-c++-tests: Check declaration of pthread_sigmask.
10733         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
10734         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
10735         $(LIB_PTHREAD_SIGMASK).
10736
10737 2011-07-07  Bruno Haible  <bruno@clisp.org>
10738
10739         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
10740         * lib/signal.in.h (pthread_sigmask): Override if
10741         REPLACE_PTHREAD_SIGMASK is 1.
10742         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
10743         REPLACE_PTHREAD_SIGMASK.
10744         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
10745         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
10746         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
10747         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
10748         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
10749
10750 2011-07-07  Bruno Haible  <bruno@clisp.org>
10751
10752         pthread_sigmask: Ensure declaration in <signal.h>.
10753         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
10754         include <pthread.h>.
10755         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
10756         problem.
10757
10758 2011-07-07  Bruno Haible  <bruno@clisp.org>
10759
10760         pthread_sigmask: Document the module.
10761         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
10762
10763 2011-07-07  Bruno Haible  <bruno@clisp.org>
10764
10765         pthread_sigmask: Follow gnulib conventions.
10766         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
10767         gl_PTHREAD_SIGMASK.
10768         * modules/pthread_sigmask (configure.ac): Update.
10769
10770 2011-07-07  Bruno Haible  <bruno@clisp.org>
10771
10772         pthread_sigmask: Make declaration C++ safe.
10773         * lib/signal.in.h: In two special conditions, just do an #include_next.
10774         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
10775         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
10776         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
10777         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
10778         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
10779         not REPLACE_PTHREAD_MASK.
10780         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
10781         not REPLACE_PTHREAD_MASK.
10782         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
10783
10784 2011-07-07  Bruno Haible  <bruno@clisp.org>
10785
10786         pthread_sigmask: Fix return value.
10787         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
10788         * lib/pthread_sigmask.c: New file.
10789         * modules/pthread_sigmask (Files): Add it.
10790         (configure.ac): Invoke AC_LIBOBJ.
10791
10792 2011-07-07  Eric Blake  <eblake@redhat.com>
10793
10794         getopt: more portable argv creation
10795         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
10796         const, use char arrays rather than strings.
10797         Suggested by Paul Eggert.
10798
10799 2011-07-07  Bruno Haible  <bruno@clisp.org>
10800
10801         Tests for module 'sigprocmask'.
10802         * modules/sigprocmask-tests: New file.
10803         * tests/test-sigprocmask.c: New file.
10804
10805 2011-07-07  Bruno Haible  <bruno@clisp.org>
10806
10807         float tests: Tweak.
10808         * tests/test-float.c (main): Tweak skip message.
10809
10810 2011-07-07  Eric Blake  <eblake@redhat.com>
10811
10812         getopt: avoid compiler warning during configure
10813         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
10814         assigning string literals to non-const pointer.
10815
10816         getopt-gnu: avoid crash in glibc getopt
10817         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
10818         * tests/test-getopt.h (test_getopt): Enhance test.
10819         * tests/test-getopt_long.h (test_getopt_long): Likewise.
10820         * doc/posix-functions/getopt.texi (getopt): Document it.
10821         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
10822         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
10823         Likewise.
10824
10825 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
10826
10827         getopt: handle W; without long options in getopt [BZ #12922]
10828         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
10829         but no long options are defined, just return 'W'.
10830
10831 2011-07-07  Bruno Haible  <bruno@clisp.org>
10832
10833         Avoid literal tabs.
10834         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
10835         variable containing a tab instead of a literal tab.
10836         Reported by Jim Meyering.
10837
10838 2011-07-07  Bruno Haible  <bruno@clisp.org>
10839
10840         Comments.
10841         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
10842
10843 2011-07-06  Bruno Haible  <bruno@clisp.org>
10844
10845         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
10846         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
10847         <winsock2.h>.
10848         (rpl_fd_isset, FD_ISSET): New definitions, copied from
10849         lib/sys_socket.in.h.
10850         (close, gethostname): Hide declarations from <winsock2.h>.
10851         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
10852         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
10853         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
10854         (select): Don't override if gnulib's <sys/select.h> was already
10855         included.
10856         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
10857         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
10858         setsockopt, shutdown, select): Tweak indentation.
10859
10860 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
10861
10862         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
10863         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
10864         in an application that does not use the sys_select module.
10865
10866 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
10867
10868         poll: do not return 0 on timeout=-1
10869         * lib/poll.c: Loop with yield if no events occured
10870
10871 2011-07-06  Eric Blake  <eblake@redhat.com>
10872
10873         pthread_sigmask: always replace when not using pthread
10874         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
10875         replacement when using some threading other than pthread.  Fix
10876         logic bug.
10877
10878 2011-07-06  Bruno Haible  <bruno@clisp.org>
10879
10880         Comments.
10881         * m4/printf.m4: Update comments about mingw.
10882
10883 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
10884
10885         sys_select: define sigset_t more portably
10886         * lib/sys_select.in.h: Always include <sys/types.h>, since
10887         we now need sigset_t and mingw defines it there.
10888         Include <signal.h> before split inclusion guard, to avoid
10889         mishaps on Solaris, whose <signal.h> eventually includes us.
10890         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
10891         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
10892         which come from ...
10893         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
10894         gl_CHECK_TYPE_SIGSET_T.
10895         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
10896         does the real work.
10897         * modules/sys_select (Depends-on): Add 'signal'.
10898
10899         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
10900         Suggested by Bruno Haible.
10901
10902         pselect: Use pthread_sigmask, not sigprocmask.
10903         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
10904         multithreaded apps better than sigprocmask does.
10905         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
10906         sigprocmask directly.
10907
10908 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
10909
10910         * lib/pselect.c (pselect): Use plain name, without "rpl_".
10911         Don't #undef,  since we don't need any underlying pselect.
10912         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
10913         (Depends-on): Add select.
10914         (Link): Add $(LIBSOCKET).
10915         These changes suggested by Bruno Haible.
10916
10917         pselect: document better
10918         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
10919         * doc/posix-functions/pselect.texi (pselect): Document new module.
10920
10921         pthread_sigmask: new module
10922         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
10923         * doc/posix-functions/pthread_sigmask.texi: Document new module.
10924         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
10925         This is done only as a macro; I don't know how well that'll
10926         work for C++.  Move <sys/types.h> include before the include_next,
10927         to avoid mishap on Solaris.
10928         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
10929         * modules/signal (Makefile.am): Substitute the check's results.
10930         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
10931
10932         test-pselect: new module
10933         * modules/pselect-tests, tests/test-pselect.c: New files.
10934         * tests/test-select.c, tests/test-sys_select-c++.cc:
10935         If TEST_PSELECT is defined, test pselect instead of testing select.
10936
10937         * tests/test-sys_select.c (sigset_t): Test for it, too.
10938         Suggested by Bruno Haible.
10939
10940 2011-07-05  Eric Blake  <eblake@redhat.com>
10941
10942         snprintf: guarantee %1$d, for libintl
10943         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
10944         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
10945         * doc/posix-functions/snprintf.texi (snprintf): Update.
10946         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
10947         * tests/test-snprintf.c (main): Enhance test.
10948         * tests/test-vsnprintf.c (main): Likewise.
10949
10950 2011-07-05  Jim Meyering  <meyering@redhat.com>
10951
10952         maint: exempt stdio-read.c and stdio-write.c from the cppi check
10953         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
10954         per Bruno's request, to accommodate this idiom (no space after "#")
10955         even when the function is inside an #if block:
10956         char *
10957         gets (char *s)
10958         #undef gets
10959         {
10960           ...
10961         }
10962
10963 2011-07-04  Jim Meyering  <meyering@redhat.com>
10964
10965         maint: indent with spaces, not TABs, and add a rule to check this
10966         * tests/test-userspec.c: Indent with spaces, not TABs.
10967         * tests/test-argp.c: Likewise.
10968         * tests/test-c-stack2.sh: Likewise.
10969         * tests/test-parse-duration.sh: Likewise
10970         * m4/strtod.m4: Likewise.
10971         * m4/alloca.m4: Likewise.
10972         * m4/pselect.m4: Likewise.
10973         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
10974
10975 2011-07-03  Jim Meyering  <meyering@redhat.com>
10976
10977         maint.mk: correct omissions in prohibit_argmatch_without_use check
10978         This rule would mistakenly report that argmatch.h is included without
10979         use even when both the argmatch and invalid_arg macro were used.
10980         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
10981         of argmatch and invalid_arg.
10982
10983 2011-07-03  Bruno Haible  <bruno@clisp.org>
10984
10985         Comments about EINTR.
10986         * lib/safe-read.h: Explain the purpose of this module.
10987         * lib/safe-write.h: Likewise.
10988         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
10989         module.
10990         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
10991         module.
10992         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10993
10994 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
10995
10996         xnanosleep: Rewrite to use new dtotimespec module.
10997         It has the conversion code that used to be in xnanosleep.
10998         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
10999         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
11000         (TIME_T_MAX): Remove.
11001         (xnanosleep): Rewrite in terms of dtotimespec.
11002         * modules/xnanosleep (Depends-on): Add dtotimespec.
11003         Remove intprops, stdbool.
11004
11005         timespec-add, timespec-sub: new modules
11006         * lib/timespec.h (timespec_add, timespec_sub): New decls.
11007         * lib/timespec-add.c, lib/timespec-sub.c:
11008         * modules/timespec-add, modules/timespec-sub: New files.
11009
11010         dtotimespec: new module
11011         * lib/timespec.h (dtotimespec): New decl.
11012         * lib/dtotimespec.c, modules/dtotimespec: New files.
11013
11014         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
11015
11016         pselect: new module
11017         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
11018         (pselect): New decls.
11019         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
11020         since the standard pselect decl uses 'restrict'.
11021         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
11022         HAVE_PSELECT, REPLACE_PSELECT.
11023         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
11024         HAVE_PSELECT, REPLACE_PSELECT.
11025         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
11026
11027         sys_select: don't depend on sys_socket
11028         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
11029         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
11030         This fix works on GNU and GNU-like platforms, but has not been tested
11031         on native Windows.
11032         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
11033         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
11034         gl_HEADER_SYS_SOCKET.
11035         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
11036         gl_PREREQ_SYS_H_WINSOCK2.
11037
11038 2011-06-29  Eric Blake  <eblake@redhat.com>
11039
11040         pipe2: fix C89 compile problem
11041         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
11042         Reported by Bruno Haible.
11043
11044         pipe, pipe2: don't corrupt fd on error
11045         * lib/pipe.c (pipe): Leave fd unchanged on error.
11046         * lib/pipe2.c (pipe2): Likewise.
11047         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
11048         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
11049
11050 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
11051
11052         mmap-anon: do not use regular expressions inadvertently
11053         * m4/mmap-anon.m4: Remove trailing period from strings sought
11054         in the output.
11055
11056 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
11057
11058         nanosleep: fix integer overflow problem
11059         * lib/nanosleep.c (my_usleep): Don't assume signed integer
11060         arithmetic wraps around on overflow.
11061
11062         nanosleep: simplify carrying
11063         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
11064         first call to the underyling nanosleep, not for the last one.
11065         This doesn't fix any bugs, but it simplifies the computation of
11066         the remaining delay.  Found while auditing integer overflow issues.
11067
11068         dup2: remove test for existence of fcntl
11069         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
11070         "#if HAVE_FCNTL", in the configure-time test program.
11071         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
11072         and therefore speeds up "configure" a bit.  Found while
11073         adding the dup2 module to Emacs.
11074
11075 2011-06-24  Eric Blake  <eblake@redhat.com>
11076
11077         maint.mk: enhance useless header checks
11078         * top/maint.mk (_sc_header_without_use): Check both include
11079         styles.
11080         (sc_prohibit_assert_without_use)
11081         (sc_prohibit_close_stream_without_use)
11082         (sc_prohibit_getopt_without_use)
11083         (sc_prohibit_quotearg_without_use)
11084         (sc_prohibit_quote_without_use)
11085         (sc_prohibit_long_options_without_use)
11086         (sc_prohibit_inttostr_without_use)
11087         (sc_prohibit_ignore_value_without_use)
11088         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
11089         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
11090         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
11091         (sc_prohibit_hash_pjw_without_use)
11092         (sc_prohibit_safe_read_without_use)
11093         (sc_prohibit_argmatch_without_use)
11094         (sc_prohibit_canonicalize_without_use)
11095         (sc_prohibit_root_dev_ino_without_use)
11096         (sc_prohibit_openat_without_use)
11097         (sc_prohibit_c_ctype_without_use)
11098         (sc_prohibit_signal_without_use)
11099         (sc_prohibit_stdio--_without_use)
11100         (sc_prohibit_stdio-safer_without_use)
11101         (sc_prohibit_strings_without_use)
11102         (sc_prohibit_intprops_without_use)
11103         (sc_prohibit_stddef_without_use)
11104         (sc_prohibit_xfreopen_without_use): Update clients.
11105
11106 2011-06-24  Jim Meyering  <meyering@redhat.com>
11107
11108         syntax-check: keep one maint.mk rule in sync with its header
11109         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
11110         of the bug Eric has just fixed, with today's commit 25e4c2ec.
11111         I prefer to avoid temporary files here, so use <(...), but that
11112         is not supported by /bin/sh, so...
11113         (SHELL): Define to /bin/bash.
11114
11115 2011-06-24  Eric Blake  <eblake@redhat.com>
11116
11117         maint.mk: update sc_prohibit_intprops_without_use
11118         * top/maint.mk (_intprops_names): Match recent changes.
11119
11120 2011-06-24  Bruno Haible  <bruno@clisp.org>
11121
11122         strerror-override: No-op tweak.
11123         * lib/strerror-override.h (strerror_override): Reorder conditions,
11124         for consistency with lib/strerror-override.c.
11125
11126 2011-06-23  Eric Blake  <eblake@redhat.com>
11127
11128         maint.mk: test further PATH_MAX issues
11129         * top/maint.mk (sc_prohibit_path_max_array): Rename...
11130         (sc_prohibit_path_max_allocation): ...and also test alloca.
11131         Suggested by Jim Meyering.
11132
11133 2011-06-22  Eric Blake  <eblake@redhat.com>
11134
11135         maint.mk: add syntax-check to avoid char[PATH_MAX]
11136         * top/maint.mk (sc_prohibit_path_max_array): New rule.
11137
11138         stat: be robust to PATH_MAX definition
11139         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
11140         * modules/stat (Depends-on): Add verify.
11141
11142         link: work around IRIX bug
11143         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
11144         * lib/link.c (rpl_link): Work around it.
11145         * tests/test-link.h (test_link): Enhance test.
11146         * doc/posix-functions/link.texi (link): Document the bug.
11147
11148         getopt: silence clang warning
11149         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
11150         dereference.
11151         Reported by Gustavo Martin Domato.
11152
11153 2011-06-22  Jim Meyering  <meyering@redhat.com>
11154
11155         bootstrap: do not insert a blank line into each .gitignore file
11156         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
11157
11158 2011-06-21  Eric Blake  <eblake@redhat.com>
11159
11160         perror: test for output mismatch
11161         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
11162         perror on IRIX.
11163
11164         strerror_r: fix OpenBSD behavior on out-of-range
11165         * lib/strerror_r.c (strerror_r): Always use maximal string.
11166         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11167
11168         strerror_r: fix OpenBSD behavior on 0
11169         * lib/strerror-override.c (strerror_override): Also override 0
11170         when needed.
11171         * lib/strerror-override.h (strerror_override): Likewise.
11172         * lib/strerror.c (strerror): Simplify, now that 0 override is done
11173         earlier.
11174         * lib/strerror_r.c (strerror_r): Likewise.
11175         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
11176         behavior...
11177         (gl_FUNC_STRERROR_0): ...into new macro.
11178         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
11179         is overridden.
11180         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
11181         * modules/strerror-override (Files): Add strerror.m4.
11182         (configure.ac): Also provide override for 0 when needed.
11183         * doc/posix-functions/strerror.texi (strerror): Document this.
11184         * doc/posix-functions/perror.texi (perror): Likewise.
11185
11186         perror: adjust array size
11187         * modules/perror (Depends-on): Add strerror-override.
11188         * lib/perror.c (perror): Use it to avoid magic number.
11189
11190         strerror-override: reduce size
11191         * lib/strerror-override.c (strerror_override): Use fewer lines.
11192
11193 2011-06-20  Bruno Haible  <bruno@clisp.org>
11194
11195         pathmax: Ensure correct value for PATH_MAX on HP-UX.
11196         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
11197
11198 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
11199
11200         alloca: port to compilers that can optimize like GCC 4.6.0
11201         * lib/alloca.c (find_stack_direction): New signature, taken from
11202         Autoconf git.  This works with GCC 4.6.0.  This code should never
11203         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
11204         be used with other compilers that optimize as well as GCC 4.6.0 does.
11205         (alloca): Adjust to new signature.
11206         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
11207         New macro, which patches Autoconf in a similar way.
11208
11209         c-stack: stop worrying about stack direction
11210         * lib/c-stack.c (find_stack_direction): Remove.
11211         (segv_handler): Don't worry about stack direction growth, as it's
11212         too much of a pain to configure this correctly, given how compilers
11213         are optimizing-away our stack-growth detection code.  Instead, assume
11214         that any access to just before or just after the stack is OK.
11215         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
11216         Don't require AC_FUNC_ALLOCA; no longer needed.
11217
11218 2011-06-20  Eric Blake  <eblake@redhat.com>
11219
11220         test-stat: don't allocate PATH_MAX bytes
11221         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
11222         PATH_MAX-sized buffer.
11223         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
11224         * modules/stat-tests (Depends-on): Likewise.
11225         * tests/test-fstatat.c (includes): Drop pathmax.h.
11226         * tests/test-stat.c (includes): Likewise.
11227         Reported by Bruno Haible.
11228
11229 2011-06-20  Bruno Haible  <bruno@clisp.org>
11230
11231         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
11232         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
11233         * lib/float.c: New file.
11234         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
11235         REPLACE_FLOAT_LDBL.
11236         * modules/float (Files): Add lib/float.c.
11237         (configure.ac): Invoke AC_LIBOBJ.
11238         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
11239
11240 2011-06-20  Bruno Haible  <bruno@clisp.org>
11241
11242         Tests for module 'float'.
11243         * modules/float-tests: New file.
11244         * tests/test-float.c: New file.
11245
11246 2011-06-19  Bruno Haible  <bruno@clisp.org>
11247
11248         isinf: Coding style.
11249         * lib/isinf.c: Use GNU coding style.
11250
11251 2011-06-19  Bruno Haible  <bruno@clisp.org>
11252
11253         linkat test: Avoid test failure on AIX 7.1.
11254         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
11255         * tests/test-link.h (test_link): Likewise.
11256
11257 2011-06-19  Bruno Haible  <bruno@clisp.org>
11258
11259         pread test: Avoid test failure on OpenBSD 4.9.
11260         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
11261
11262 2011-06-19  Bruno Haible  <bruno@clisp.org>
11263
11264         sprintf-posix: Fix test failure on AIX 7.1.
11265         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
11266         * doc/posix-functions/dprintf.texi: Mention limited precision problem
11267         on AIX.
11268         * doc/posix-functions/fprintf.texi: Likewise.
11269         * doc/posix-functions/printf.texi: Likewise.
11270         * doc/posix-functions/snprintf.texi: Likewise.
11271         * doc/posix-functions/sprintf.texi: Likewise.
11272         * doc/posix-functions/vdprintf.texi: Likewise.
11273         * doc/posix-functions/vfprintf.texi: Likewise.
11274         * doc/posix-functions/vprintf.texi: Likewise.
11275         * doc/posix-functions/vsnprintf.texi: Likewise.
11276         * doc/posix-functions/vsprintf.texi: Likewise.
11277
11278 2011-06-19  Bruno Haible  <bruno@clisp.org>
11279
11280         roundl-ieee: Fix test failure on AIX 7.1.
11281         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
11282         * doc/posix-functions/roundl.texi: Mention problem with negative
11283         arguments.
11284
11285 2011-06-19  Bruno Haible  <bruno@clisp.org>
11286
11287         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
11288         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
11289         * doc/posix-functions/round.texi: Mention problem with negative
11290         arguments.
11291         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
11292
11293 2011-06-19  Bruno Haible  <bruno@clisp.org>
11294
11295         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
11296         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
11297         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
11298         * doc/posix-functions/roundf.texi: Mention problem with negative
11299         arguments.
11300         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
11301
11302 2011-06-19  Bruno Haible  <bruno@clisp.org>
11303
11304         ceilf-ieee: Work around bug on MacOS X 10.5.
11305         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
11306
11307         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
11308         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
11309         IEEE compliant, avoid compiler optimizations.
11310         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
11311         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
11312         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
11313         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
11314         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11315         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11316         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11317         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11318         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
11319         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
11320
11321 2011-06-19  Bruno Haible  <bruno@clisp.org>
11322
11323         ceilf-ieee: Work around bug on AIX 7.1.
11324         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
11325         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
11326
11327 2011-06-19  Bruno Haible  <bruno@clisp.org>
11328
11329         ceil-ieee: Work around bug on AIX 7.1.
11330         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
11331         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
11332
11333 2011-06-18  Bruno Haible  <bruno@clisp.org>
11334
11335         fsync test: Avoid test failure on MacOS X and AIX.
11336         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
11337         EINVAL.
11338
11339 2011-06-18  Bruno Haible  <bruno@clisp.org>
11340
11341         openat, fdopendir tests: Fix link errors.
11342         * modules/openat-tests (Depends-on): Add progname.
11343         * modules/fdopendir-tests (Depends-on): Likewise.
11344         * tests/test-fchownat.c: Include progname.h.
11345         (main): Call set_program_name.
11346         * tests/test-fstatat.c: Include progname.h.
11347         (main): Call set_program_name.
11348         * tests/test-mkdirat.c: Include progname.h.
11349         (main): Call set_program_name.
11350         * tests/test-openat.c: Include progname.h.
11351         (main): Call set_program_name.
11352         * tests/test-unlinkat.c: Include progname.h.
11353         (main): Call set_program_name.
11354         * tests/test-fdopendir.c: Include progname.h.
11355         (main): Call set_program_name.
11356
11357 2011-06-18  Bruno Haible  <bruno@clisp.org>
11358
11359         Doc update.
11360         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
11361         HP-UX.
11362         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
11363
11364 2011-06-18  Bruno Haible  <bruno@clisp.org>
11365
11366         getcwd tests: Avoid compilation error on HP-UX 11.31.
11367         * modules/getcwd-tests (Depends-on): Add pathmax.
11368         * tests/test-getcwd.c: Include pathmax.h.
11369
11370 2011-06-18  Bruno Haible  <bruno@clisp.org>
11371
11372         isfinite, isinf: Fix link error on AIX 6 and 7.
11373         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
11374         needed, also test the macro with a 'float' argument.
11375         * m4/isinf.m4 (gl_ISINF): Likewise.
11376
11377 2011-06-18  Bruno Haible  <bruno@clisp.org>
11378
11379         getloadavg: Don't clobber LIBS. Regression from previous commit.
11380         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
11381         AC_CHECK_LIB from here...
11382         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
11383         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
11384         gl_func_getloadavg_done.
11385         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11386
11387 2011-06-18  Bruno Haible  <bruno@clisp.org>
11388
11389         clean-temp: Improve documentation.
11390         * lib/clean-temp.h: Explain better how to use this module.
11391         Reported by John Darrington <john@darrington.wattle.id.au>.
11392
11393 2011-06-17  Bruno Haible  <bruno@clisp.org>
11394
11395         pread, pwrite: Avoid cc warning on AIX.
11396         * lib/unistd.in.h (pread): Undefine before defining as a macro.
11397         (pwrite): Likewise.
11398
11399 2011-06-17  Bruno Haible  <bruno@clisp.org>
11400
11401         spawn-pipe tests: Fix link error.
11402         * tests/test-spawn-pipe-child.c: Undefine fprintf.
11403         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11404
11405 2011-06-17  Bruno Haible  <bruno@clisp.org>
11406
11407         Tests: Remove unnecessary dependency.
11408         * modules/canonicalize-tests (Depends-on): Remove progname.
11409         * modules/chown-tests (Depends-on): Likewise.
11410         * modules/dirname-tests (Depends-on): Likewise.
11411         * modules/fdopendir-tests (Depends-on): Likewise.
11412         * modules/fdutimensat-tests (Depends-on): Likewise.
11413         * modules/hash-tests (Depends-on): Likewise.
11414         * modules/lchown-tests (Depends-on): Likewise.
11415         * modules/linkat-tests (Depends-on): Likewise.
11416         * modules/renameat-tests (Depends-on): Likewise.
11417         * modules/spawn-pipe-tests (Depends-on): Likewise.
11418         * modules/utimensat-tests (Depends-on): Likewise.
11419
11420 2011-06-17  Bruno Haible  <bruno@clisp.org>
11421
11422         spawn-pipe tests: Fix link error.
11423         * tests/test-spawn-pipe-child.c: Undefine fflush.
11424
11425 2011-06-17  Bruno Haible  <bruno@clisp.org>
11426
11427         Fix tests link errors.
11428         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
11429         * modules/chown-tests (Makefile.am): Don't link test-chown with
11430         LIBINTL.
11431         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
11432         LIBINTL.
11433         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
11434         LIBINTL.
11435         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
11436         LIBINTL.
11437
11438 2011-06-16  Bruno Haible  <bruno@clisp.org>
11439
11440         crypto/gc-sha1: Fix recent regression.
11441         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
11442         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
11443
11444         crypto/gc-md5: Fix recent regression.
11445         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
11446
11447         crypto/gc-md4: Fix recent regression.
11448         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
11449         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
11450
11451         crypto/gc-arctwo: Fix recent regression.
11452         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
11453         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
11454
11455         crypto/gc-rijndael: Fix recent regression.
11456         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
11457         (configure.ac): Invoke AC_LIBOBJ here.
11458         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
11459         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11460
11461         crypto/gc-hmac-sha1: Fix recent regression.
11462         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
11463         (configure.ac): Invoke AC_LIBOBJ here.
11464         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
11465         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11466
11467         crypto/gc-hmac-md5: Fix recent regression.
11468         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
11469         (configure.ac): Invoke AC_LIBOBJ here.
11470         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
11471         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11472
11473         crypto/gc-des: Fix recent regression.
11474         * modules/crypto/gc-des (Files): Remove m4/des.m4.
11475         (configure.ac): Invoke AC_LIBOBJ here.
11476         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
11477         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11478
11479         crypto/gc-arcfour: Fix recent regression.
11480         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
11481         (configure.ac): Invoke AC_LIBOBJ here.
11482         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
11483         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11484
11485 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
11486
11487         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
11488         After the 2011-05-21 change, this macro requires
11489         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
11490         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
11491
11492 2011-06-16  Bruno Haible  <bruno@clisp.org>
11493
11494         fprintftime: Move AC_LIBOBJ invocations to module description.
11495         * m4/fprintftime.m4: Remove file.
11496         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
11497         (configure.ac): Remove gl_FPRINTFTIME call.
11498         (Makefile.am): Augment lib_SOURCES.
11499         Reported by Jim Meyering.
11500
11501 2011-06-16  Bruno Haible  <bruno@clisp.org>
11502
11503         tmpfile-safer: Finish 2011-05-23 commit.
11504         * m4/stdio-safer.m4: Really remove file.
11505         Reported by Jim Meyering.
11506
11507 2011-06-16  Bruno Haible  <bruno@clisp.org>
11508
11509         syntax-check: Fix typo.
11510         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
11511         printf-posix.m4.
11512         Reported by Jim Meyering.
11513
11514 2011-06-13  Jim Meyering  <meyering@redhat.com>
11515
11516         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
11517         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
11518
11519 2011-05-23  Bruno Haible  <bruno@clisp.org>
11520
11521         yesno: Move AC_LIBOBJ invocations to module description.
11522         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
11523         * modules/yesno (Makefile.am): Augment lib_SOURCES.
11524
11525 2011-05-23  Bruno Haible  <bruno@clisp.org>
11526
11527         xstrtol: Move AC_LIBOBJ invocations to module description.
11528         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
11529         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
11530
11531 2011-05-23  Bruno Haible  <bruno@clisp.org>
11532
11533         xstrtold: Move AC_LIBOBJ invocations to module description.
11534         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
11535         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
11536
11537 2011-05-23  Bruno Haible  <bruno@clisp.org>
11538
11539         xstrtod: Move AC_LIBOBJ invocations to module description.
11540         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
11541         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
11542
11543 2011-05-23  Bruno Haible  <bruno@clisp.org>
11544
11545         xnanosleep: Move AC_LIBOBJ invocations to module description.
11546         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
11547         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
11548
11549 2011-05-23  Bruno Haible  <bruno@clisp.org>
11550
11551         xgetcwd: Move AC_LIBOBJ invocations to module description.
11552         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
11553         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
11554
11555 2011-05-23  Bruno Haible  <bruno@clisp.org>
11556
11557         xalloc: Move AC_LIBOBJ invocations to module description.
11558         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
11559         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
11560
11561 2011-05-23  Bruno Haible  <bruno@clisp.org>
11562
11563         write-any-file: Move AC_LIBOBJ invocations to module description.
11564         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
11565         invocation.
11566         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
11567
11568 2011-05-23  Bruno Haible  <bruno@clisp.org>
11569
11570         utimens: Move AC_LIBOBJ invocations to module description.
11571         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
11572         * modules/utimens (Makefile.am): Augment lib_SOURCES.
11573
11574 2011-05-23  Bruno Haible  <bruno@clisp.org>
11575
11576         utimecmp: Move AC_LIBOBJ invocations to module description.
11577         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
11578         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
11579
11580 2011-05-23  Bruno Haible  <bruno@clisp.org>
11581
11582         userspec: Move AC_LIBOBJ invocations to module description.
11583         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
11584         * modules/userspec (Makefile.am): Augment lib_SOURCES.
11585
11586 2011-05-23  Bruno Haible  <bruno@clisp.org>
11587
11588         unlinkdir: Move AC_LIBOBJ invocations to module description.
11589         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
11590         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
11591
11592 2011-05-23  Bruno Haible  <bruno@clisp.org>
11593
11594         unistd-safer: Move AC_LIBOBJ invocations to module description.
11595         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
11596         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
11597
11598 2011-05-23  Bruno Haible  <bruno@clisp.org>
11599
11600         tempname: Move AC_LIBOBJ invocations to module description.
11601         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
11602         * modules/tempname (Makefile.am): Augment lib_SOURCES.
11603
11604 2011-05-23  Bruno Haible  <bruno@clisp.org>
11605
11606         strftime: Move AC_LIBOBJ invocations to module description.
11607         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
11608         * modules/strftime (Makefile.am): Augment lib_SOURCES.
11609
11610 2011-05-23  Bruno Haible  <bruno@clisp.org>
11611
11612         stdlib-safer: Move AC_LIBOBJ invocations to module description.
11613         * m4/stdlib-safer.m4: Remove file.
11614         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
11615         (configure.ac): Remove gl_STDLIB_SAFER call.
11616         (Makefile.am): Augment lib_SOURCES.
11617
11618 2011-05-23  Bruno Haible  <bruno@clisp.org>
11619
11620         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
11621         * m4/stdio-safer.m4: Remove file.
11622         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
11623         (configure.ac): Remove gl_TMPFILE_SAFER call.
11624         (Makefile.am): Augment lib_SOURCES.
11625
11626 2011-05-23  Bruno Haible  <bruno@clisp.org>
11627
11628         popen-safer: Move AC_LIBOBJ invocations to module description.
11629         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
11630         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
11631         (configure.ac): Remove gl_POPEN_SAFER call.
11632         (Makefile.am): Augment lib_SOURCES.
11633
11634 2011-05-23  Bruno Haible  <bruno@clisp.org>
11635
11636         freopen-safer: Move AC_LIBOBJ invocations to module description.
11637         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
11638         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
11639         (configure.ac): Remove gl_FREOPEN_SAFER call.
11640         (Makefile.am): Augment lib_SOURCES.
11641
11642 2011-05-23  Bruno Haible  <bruno@clisp.org>
11643
11644         fopen-safer: Move AC_LIBOBJ invocations to module description.
11645         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
11646         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
11647         (configure.ac): Remove gl_FOPEN_SAFER call.
11648         (Makefile.am): Augment lib_SOURCES.
11649
11650 2011-05-23  Bruno Haible  <bruno@clisp.org>
11651
11652         crypto/sha512: Move AC_LIBOBJ invocations to module description.
11653         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
11654         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
11655
11656 2011-05-23  Bruno Haible  <bruno@clisp.org>
11657
11658         crypto/sha256: Move AC_LIBOBJ invocations to module description.
11659         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
11660         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
11661
11662 2011-05-23  Bruno Haible  <bruno@clisp.org>
11663
11664         crypto/sha1: Move AC_LIBOBJ invocations to module description.
11665         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
11666         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
11667
11668 2011-05-23  Bruno Haible  <bruno@clisp.org>
11669
11670         settime: Move AC_LIBOBJ invocations to module description.
11671         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
11672         * modules/settime (Makefile.am): Augment lib_SOURCES.
11673
11674 2011-05-23  Bruno Haible  <bruno@clisp.org>
11675
11676         savedir: Move AC_LIBOBJ invocations to module description.
11677         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
11678         * modules/savedir (Makefile.am): Augment lib_SOURCES.
11679
11680 2011-05-23  Bruno Haible  <bruno@clisp.org>
11681
11682         save-cwd: Move AC_LIBOBJ invocations to module description.
11683         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
11684         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
11685
11686 2011-05-23  Bruno Haible  <bruno@clisp.org>
11687
11688         same: Move AC_LIBOBJ invocations to module description.
11689         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
11690         * modules/same (Makefile.am): Augment lib_SOURCES.
11691
11692 2011-05-23  Bruno Haible  <bruno@clisp.org>
11693
11694         safe-write: Move AC_LIBOBJ invocations to module description.
11695         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
11696         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
11697         instead of gl_SAFE_WRITE.
11698         (Makefile.am): Augment lib_SOURCES.
11699
11700 2011-05-23  Bruno Haible  <bruno@clisp.org>
11701
11702         safe-read: Move AC_LIBOBJ invocations to module description.
11703         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
11704         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
11705         of gl_SAFE_READ.
11706         (Makefile.am): Augment lib_SOURCES.
11707
11708 2011-05-23  Bruno Haible  <bruno@clisp.org>
11709
11710         safe-alloc: Move AC_LIBOBJ invocations to module description.
11711         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
11712         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
11713
11714 2011-05-23  Bruno Haible  <bruno@clisp.org>
11715
11716         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
11717         * m4/rijndael.m4: Remove file.
11718         * modules/crypto/rijndael (Files): Remove it.
11719         (configure.ac): Remove gl_RIJNDAEL call.
11720         (Makefile.am): Augment lib_SOURCES.
11721
11722 2011-05-23  Bruno Haible  <bruno@clisp.org>
11723
11724         readtokens: Move AC_LIBOBJ invocations to module description.
11725         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
11726         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
11727
11728 2011-05-23  Bruno Haible  <bruno@clisp.org>
11729
11730         read-file: Move AC_LIBOBJ invocations to module description.
11731         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
11732         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
11733         of gl_FUNC_READ_FILE.
11734         (Makefile.am): Augment lib_SOURCES.
11735
11736 2011-05-23  Bruno Haible  <bruno@clisp.org>
11737
11738         quotearg: Move AC_LIBOBJ invocations to module description.
11739         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
11740         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
11741
11742 2011-05-23  Bruno Haible  <bruno@clisp.org>
11743
11744         quote: Move AC_LIBOBJ invocations to module description.
11745         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
11746         * modules/quote (Makefile.am): Augment lib_SOURCES.
11747
11748 2011-05-23  Bruno Haible  <bruno@clisp.org>
11749
11750         posixver: Move AC_LIBOBJ invocations to module description.
11751         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
11752         * modules/posixver (Makefile.am): Augment lib_SOURCES.
11753
11754 2011-05-23  Bruno Haible  <bruno@clisp.org>
11755
11756         posixtm: Move AC_LIBOBJ invocations to module description.
11757         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
11758         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
11759
11760 2011-05-23  Bruno Haible  <bruno@clisp.org>
11761
11762         physmem: Move AC_LIBOBJ invocations to module description.
11763         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
11764         * modules/physmem (Makefile.am): Augment lib_SOURCES.
11765
11766 2011-05-23  Bruno Haible  <bruno@clisp.org>
11767
11768         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
11769         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
11770         invocation.
11771         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
11772
11773 2011-05-23  Bruno Haible  <bruno@clisp.org>
11774
11775         mpsort: Move AC_LIBOBJ invocations to module description.
11776         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
11777         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
11778
11779 2011-05-23  Bruno Haible  <bruno@clisp.org>
11780
11781         modechange: Move AC_LIBOBJ invocations to module description.
11782         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
11783         * modules/modechange (Makefile.am): Augment lib_SOURCES.
11784
11785 2011-05-23  Bruno Haible  <bruno@clisp.org>
11786
11787         mkdir-p: Move AC_LIBOBJ invocations to module description.
11788         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
11789         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
11790
11791 2011-05-23  Bruno Haible  <bruno@clisp.org>
11792
11793         mkancesdirs: Move AC_LIBOBJ invocations to module description.
11794         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
11795         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
11796
11797 2011-05-23  Bruno Haible  <bruno@clisp.org>
11798
11799         mgetgroups: Move AC_LIBOBJ invocations to module description.
11800         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
11801         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
11802
11803 2011-05-23  Bruno Haible  <bruno@clisp.org>
11804
11805         memxor: Move AC_LIBOBJ invocations to module description.
11806         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
11807         * modules/memxor (Makefile.am): Augment lib_SOURCES.
11808
11809 2011-05-23  Bruno Haible  <bruno@clisp.org>
11810
11811         memcoll: Move AC_LIBOBJ invocations to module description.
11812         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
11813         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
11814
11815 2011-05-23  Bruno Haible  <bruno@clisp.org>
11816
11817         memcasecmp: Move AC_LIBOBJ invocations to module description.
11818         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
11819         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
11820
11821 2011-05-23  Bruno Haible  <bruno@clisp.org>
11822
11823         crypto/md5: Move AC_LIBOBJ invocations to module description.
11824         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
11825         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
11826
11827 2011-05-23  Bruno Haible  <bruno@clisp.org>
11828
11829         crypto/md4: Move AC_LIBOBJ invocations to module description.
11830         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
11831         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
11832
11833 2011-05-23  Bruno Haible  <bruno@clisp.org>
11834
11835         crypto/md2: Move AC_LIBOBJ invocations to module description.
11836         * m4/md2.m4: Remove file.
11837         * modules/crypto/md2 (Files): Remove it.
11838         (configure.ac): Remove gl_MD2 call.
11839         (Makefile.am): Augment lib_SOURCES.
11840
11841 2011-05-23  Bruno Haible  <bruno@clisp.org>
11842
11843         long-options: Move AC_LIBOBJ invocations to module description.
11844         * m4/long-options.m4: Remove file.
11845         * modules/long-options (Files): Remove it.
11846         (configure.ac): Remove gl_LONG_OPTIONS call.
11847         (Makefile.am): Augment lib_SOURCES.
11848
11849 2011-05-23  Bruno Haible  <bruno@clisp.org>
11850
11851         i-ring: Move AC_LIBOBJ invocations to module description.
11852         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
11853         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
11854
11855 2011-05-23  Bruno Haible  <bruno@clisp.org>
11856
11857         idcache: Move AC_LIBOBJ invocations to module description.
11858         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
11859         * modules/idcache (Makefile.am): Augment lib_SOURCES.
11860
11861 2011-05-23  Bruno Haible  <bruno@clisp.org>
11862
11863         human: Move AC_LIBOBJ invocations to module description.
11864         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
11865         * modules/human (Makefile.am): Augment lib_SOURCES.
11866
11867 2011-05-23  Bruno Haible  <bruno@clisp.org>
11868
11869         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
11870         * m4/hmac-sha1.m4: Remove file.
11871         * modules/crypto/hmac-sha1 (Files): Remove it.
11872         (configure.ac): Remove gl_HMAC_SHA1 call.
11873         (Makefile.am): Augment lib_SOURCES.
11874
11875 2011-05-23  Bruno Haible  <bruno@clisp.org>
11876
11877         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
11878         * m4/hmac-md5.m4: Remove file.
11879         * modules/crypto/hmac-md5 (Files): Remove it.
11880         (configure.ac): Remove gl_HMAC_MD5 call.
11881         (Makefile.am): Augment lib_SOURCES.
11882
11883 2011-05-23  Bruno Haible  <bruno@clisp.org>
11884
11885         hash: Move AC_LIBOBJ invocations to module description.
11886         * m4/hash.m4: Remove file.
11887         * modules/hash (Files): Remove it.
11888         (configure.ac): Remove gl_HASH call.
11889         (Makefile.am): Augment lib_SOURCES.
11890
11891 2011-05-23  Bruno Haible  <bruno@clisp.org>
11892
11893         hard-locale: Move AC_LIBOBJ invocations to module description.
11894         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
11895         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
11896
11897 2011-05-23  Bruno Haible  <bruno@clisp.org>
11898
11899         getugroups: Move AC_LIBOBJ invocations to module description.
11900         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
11901         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
11902
11903 2011-05-23  Bruno Haible  <bruno@clisp.org>
11904
11905         gettime: Move AC_LIBOBJ invocations to module description.
11906         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
11907         * modules/gettime (Makefile.am): Augment lib_SOURCES.
11908
11909 2011-05-23  Bruno Haible  <bruno@clisp.org>
11910
11911         getndelim2: Move AC_LIBOBJ invocations to module description.
11912         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
11913         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
11914
11915 2011-05-23  Bruno Haible  <bruno@clisp.org>
11916
11917         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
11918         * m4/gc-pbkdf2-sha1.m4: Remove file.
11919         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
11920         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
11921         (Makefile.am): Augment lib_SOURCES.
11922
11923 2011-05-23  Bruno Haible  <bruno@clisp.org>
11924
11925         fts: Move AC_LIBOBJ invocations to module description.
11926         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
11927         * modules/fts (configure.ac): ... to here.
11928
11929 2011-05-23  Bruno Haible  <bruno@clisp.org>
11930
11931         file-type: Move AC_LIBOBJ invocations to module description.
11932         * m4/file-type.m4: Remove file.
11933         * modules/file-type (Files): Remove it.
11934         (configure.ac): Remove gl_FILE_TYPE call.
11935         (Makefile.am): Augment lib_SOURCES.
11936
11937 2011-05-23  Bruno Haible  <bruno@clisp.org>
11938
11939         filenamecat*: Respect rules for use of AC_LIBOBJ.
11940         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
11941         Remove AC_LIBOBJ invocation.
11942         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
11943         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
11944
11945 2011-05-23  Bruno Haible  <bruno@clisp.org>
11946
11947         filemode: Move AC_LIBOBJ invocations to module description.
11948         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
11949         * modules/filemode (Makefile.am): Augment lib_SOURCES.
11950
11951 2011-05-23  Bruno Haible  <bruno@clisp.org>
11952
11953         openat-safer: Move AC_LIBOBJ invocations to module description.
11954         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
11955         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
11956
11957 2011-05-23  Bruno Haible  <bruno@clisp.org>
11958
11959         fcntl-safer: Move AC_LIBOBJ invocations to module description.
11960         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
11961         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
11962
11963 2011-05-23  Bruno Haible  <bruno@clisp.org>
11964
11965         exclude: Move AC_LIBOBJ invocations to module description.
11966         * m4/exclude.m4: Remove file.
11967         * modules/exclude (Files): Remove it.
11968         (configure.ac): Remove gl_EXCLUDE call.
11969         (Makefile.am): Augment lib_SOURCES.
11970
11971 2011-05-23  Bruno Haible  <bruno@clisp.org>
11972
11973         dirname*: Respect rules for use of AC_LIBOBJ.
11974         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
11975         invocations.
11976         * modules/dirname (Makefile.am): Augment lib_SOURCES.
11977         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
11978
11979 2011-05-23  Bruno Haible  <bruno@clisp.org>
11980
11981         dirent-safer: Move AC_LIBOBJ invocations to module description.
11982         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
11983         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
11984
11985 2011-05-23  Bruno Haible  <bruno@clisp.org>
11986
11987         crypto/des: Move AC_LIBOBJ invocations to module description.
11988         * m4/des.m4: Remove file.
11989         * modules/crypto/des (Files): Remove it.
11990         (configure.ac): Remove gl_DES call.
11991         (Makefile.am): Augment lib_SOURCES.
11992
11993 2011-05-23  Bruno Haible  <bruno@clisp.org>
11994
11995         cycle-check: Move AC_LIBOBJ invocations to module description.
11996         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
11997         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
11998
11999 2011-05-23  Bruno Haible  <bruno@clisp.org>
12000
12001         c-strtold: Move AC_LIBOBJ invocations to module description.
12002         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
12003         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
12004
12005 2011-05-23  Bruno Haible  <bruno@clisp.org>
12006
12007         c-strtod: Move AC_LIBOBJ invocations to module description.
12008         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
12009         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
12010
12011 2011-05-23  Bruno Haible  <bruno@clisp.org>
12012
12013         crc: Move AC_LIBOBJ invocations to module description.
12014         * m4/crc.m4: Remove file.
12015         * modules/crc (Files): Remove it.
12016         (configure.ac): Remove gl_CRC call.
12017         (Makefile.am): Augment lib_SOURCES.
12018
12019 2011-05-23  Bruno Haible  <bruno@clisp.org>
12020
12021         close-stream: Move AC_LIBOBJ invocations to module description.
12022         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
12023         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
12024
12025 2011-05-23  Bruno Haible  <bruno@clisp.org>
12026
12027         closeout: Move AC_LIBOBJ invocations to module description.
12028         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
12029         * modules/closeout (Makefile.am): Augment lib_SOURCES.
12030
12031 2011-05-23  Bruno Haible  <bruno@clisp.org>
12032
12033         closein: Move AC_LIBOBJ invocations to module description.
12034         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
12035         * modules/closein (Makefile.am): Augment lib_SOURCES.
12036
12037 2011-05-23  Bruno Haible  <bruno@clisp.org>
12038
12039         cloexec: Move AC_LIBOBJ invocations to module description.
12040         * m4/cloexec.m4: Remove file.
12041         * modules/cloexec (Files): Remove it.
12042         (configure.ac): Remove gl_CLOEXEC call.
12043         (Makefile.am): Augment lib_SOURCES.
12044
12045 2011-05-23  Bruno Haible  <bruno@clisp.org>
12046
12047         check-version: Move AC_LIBOBJ invocations to module description.
12048         * m4/check-version.m4: Remove file.
12049         * modules/check-version (Files): Remove it.
12050         (configure.ac): Remove gl_CHECK_VERSION call.
12051         (Makefile.am): Augment lib_SOURCES.
12052
12053 2011-05-23  Bruno Haible  <bruno@clisp.org>
12054
12055         chdir-safer: Move AC_LIBOBJ invocations to module description.
12056         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
12057         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
12058
12059 2011-05-23  Bruno Haible  <bruno@clisp.org>
12060
12061         canonicalize: Move AC_LIBOBJ invocations to module description.
12062         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
12063         AC_LIBOBJ invocation.
12064         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
12065
12066 2011-05-23  Bruno Haible  <bruno@clisp.org>
12067
12068         canon-host: Move AC_LIBOBJ invocations to module description.
12069         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
12070         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
12071         instead of gl_CANON_HOST.
12072         (Makefile.am): Augment lib_SOURCES.
12073
12074 2011-05-23  Bruno Haible  <bruno@clisp.org>
12075
12076         backupfile: Move AC_LIBOBJ invocations to module description.
12077         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
12078         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
12079
12080 2011-05-23  Bruno Haible  <bruno@clisp.org>
12081
12082         argmatch: Move AC_LIBOBJ invocations to module description.
12083         * m4/argmatch.m4: Remove file.
12084         * modules/argmatch (Files): Remove it.
12085         (configure.ac): Remove gl_ARGMATCH call.
12086         (Makefile.am): Augment lib_SOURCES.
12087
12088 2011-05-23  Bruno Haible  <bruno@clisp.org>
12089
12090         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
12091         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
12092         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
12093
12094 2011-05-23  Bruno Haible  <bruno@clisp.org>
12095
12096         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
12097         * m4/arcfour.m4: Remove file.
12098         * modules/crypto/arcfour (Files): Remove it.
12099         (configure.ac): Remove gl_ARCFOUR call.
12100         (Makefile.am): Augment lib_SOURCES.
12101
12102 2011-05-22  Bruno Haible  <bruno@clisp.org>
12103
12104         write: Move AC_LIBOBJ invocations to module description.
12105         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
12106         * modules/write (configure.ac): ... to here.
12107
12108 2011-05-22  Bruno Haible  <bruno@clisp.org>
12109
12110         wmemset: Move AC_LIBOBJ invocations to module description.
12111         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
12112         here...
12113         * modules/wmemset (configure.ac): ... to here.
12114
12115 2011-05-22  Bruno Haible  <bruno@clisp.org>
12116
12117         wmemmove: Move AC_LIBOBJ invocations to module description.
12118         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
12119         here...
12120         * modules/wmemmove (configure.ac): ... to here.
12121
12122 2011-05-22  Bruno Haible  <bruno@clisp.org>
12123
12124         wmemcpy: Move AC_LIBOBJ invocations to module description.
12125         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
12126         here...
12127         * modules/wmemcpy (configure.ac): ... to here.
12128
12129 2011-05-22  Bruno Haible  <bruno@clisp.org>
12130
12131         wmemcmp: Move AC_LIBOBJ invocations to module description.
12132         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
12133         here...
12134         * modules/wmemcmp (configure.ac): ... to here.
12135
12136 2011-05-22  Bruno Haible  <bruno@clisp.org>
12137
12138         wmemchr: Move AC_LIBOBJ invocations to module description.
12139         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
12140         here...
12141         * modules/wmemchr (configure.ac): ... to here.
12142
12143 2011-05-22  Bruno Haible  <bruno@clisp.org>
12144
12145         wcswidth: Move AC_LIBOBJ invocations to module description.
12146         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
12147         here...
12148         * modules/wcswidth (configure.ac): ... to here.
12149
12150 2011-05-22  Bruno Haible  <bruno@clisp.org>
12151
12152         wcwidth: Respect rules for use of AC_LIBOBJ.
12153         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
12154         invocation from here...
12155         * modules/wcwidth (configure.ac): ... to here.
12156         (Depends-on): Update conditions.
12157
12158 2011-05-22  Bruno Haible  <bruno@clisp.org>
12159
12160         wctype: Move AC_LIBOBJ invocations to module description.
12161         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
12162         invocation from here...
12163         * modules/wctype (configure.ac): ... to here.
12164         (Depends-on): Update conditions.
12165
12166 2011-05-22  Bruno Haible  <bruno@clisp.org>
12167
12168         wctrans: Move AC_LIBOBJ invocations to module description.
12169         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
12170         invocation from here...
12171         * modules/wctrans (configure.ac): ... to here.
12172
12173 2011-05-22  Bruno Haible  <bruno@clisp.org>
12174
12175         wctomb: Move AC_LIBOBJ invocations to module description.
12176         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
12177         invocations from here...
12178         * modules/wctomb (configure.ac): ... to here.
12179
12180 2011-05-22  Bruno Haible  <bruno@clisp.org>
12181
12182         wctob: Move AC_LIBOBJ invocations to module description.
12183         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
12184         gl_PREREQ_WCTOB invocations from here...
12185         * modules/wctob (configure.ac): ... to here.
12186         (Depends-on): Update conditions.
12187
12188 2011-05-22  Bruno Haible  <bruno@clisp.org>
12189
12190         wcsxfrm: Move AC_LIBOBJ invocations to module description.
12191         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
12192         here...
12193         * modules/wcsxfrm (configure.ac): ... to here.
12194
12195 2011-05-22  Bruno Haible  <bruno@clisp.org>
12196
12197         wcstok: Move AC_LIBOBJ invocations to module description.
12198         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
12199         * modules/wcstok (configure.ac): ... to here.
12200
12201 2011-05-22  Bruno Haible  <bruno@clisp.org>
12202
12203         wcsstr: Move AC_LIBOBJ invocations to module description.
12204         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
12205         * modules/wcsstr (configure.ac): ... to here.
12206
12207 2011-05-22  Bruno Haible  <bruno@clisp.org>
12208
12209         wcsspn: Move AC_LIBOBJ invocations to module description.
12210         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
12211         * modules/wcsspn (configure.ac): ... to here.
12212
12213 2011-05-22  Bruno Haible  <bruno@clisp.org>
12214
12215         wcsrtombs: Move AC_LIBOBJ invocations to module description.
12216         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
12217         gl_PREREQ_WCSRTOMBS invocations from here...
12218         * modules/wcsrtombs (configure.ac): ... to here.
12219
12220 2011-05-22  Bruno Haible  <bruno@clisp.org>
12221
12222         wcsrchr: Move AC_LIBOBJ invocations to module description.
12223         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
12224         here...
12225         * modules/wcsrchr (configure.ac): ... to here.
12226
12227 2011-05-22  Bruno Haible  <bruno@clisp.org>
12228
12229         wcspbrk: Move AC_LIBOBJ invocations to module description.
12230         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
12231         here...
12232         * modules/wcspbrk (configure.ac): ... to here.
12233
12234 2011-05-22  Bruno Haible  <bruno@clisp.org>
12235
12236         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
12237         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
12238         gl_PREREQ_WCSNRTOMBS invocations from here...
12239         * modules/wcsnrtombs (configure.ac): ... to here.
12240
12241 2011-05-22  Bruno Haible  <bruno@clisp.org>
12242
12243         wcsnlen: Move AC_LIBOBJ invocations to module description.
12244         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
12245         here...
12246         * modules/wcsnlen (configure.ac): ... to here.
12247
12248 2011-05-22  Bruno Haible  <bruno@clisp.org>
12249
12250         wcsncpy: Move AC_LIBOBJ invocations to module description.
12251         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
12252         here...
12253         * modules/wcsncpy (configure.ac): ... to here.
12254
12255 2011-05-22  Bruno Haible  <bruno@clisp.org>
12256
12257         wcsncmp: Move AC_LIBOBJ invocations to module description.
12258         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
12259         here...
12260         * modules/wcsncmp (configure.ac): ... to here.
12261
12262 2011-05-22  Bruno Haible  <bruno@clisp.org>
12263
12264         wcsncat: Move AC_LIBOBJ invocations to module description.
12265         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
12266         here...
12267         * modules/wcsncat (configure.ac): ... to here.
12268
12269 2011-05-22  Bruno Haible  <bruno@clisp.org>
12270
12271         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
12272         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
12273         from here...
12274         * modules/wcsncasecmp (configure.ac): ... to here.
12275
12276 2011-05-22  Bruno Haible  <bruno@clisp.org>
12277
12278         wcslen: Move AC_LIBOBJ invocations to module description.
12279         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
12280         * modules/wcslen (configure.ac): ... to here.
12281
12282 2011-05-22  Bruno Haible  <bruno@clisp.org>
12283
12284         wcsdup: Move AC_LIBOBJ invocations to module description.
12285         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
12286         * modules/wcsdup (configure.ac): ... to here.
12287
12288 2011-05-22  Bruno Haible  <bruno@clisp.org>
12289
12290         wcscspn: Move AC_LIBOBJ invocations to module description.
12291         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
12292         here...
12293         * modules/wcscspn (configure.ac): ... to here.
12294
12295 2011-05-22  Bruno Haible  <bruno@clisp.org>
12296
12297         wcscpy: Move AC_LIBOBJ invocations to module description.
12298         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
12299         * modules/wcscpy (configure.ac): ... to here.
12300
12301 2011-05-22  Bruno Haible  <bruno@clisp.org>
12302
12303         wcscoll: Move AC_LIBOBJ invocations to module description.
12304         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
12305         here...
12306         * modules/wcscoll (configure.ac): ... to here.
12307
12308 2011-05-22  Bruno Haible  <bruno@clisp.org>
12309
12310         wcscmp: Move AC_LIBOBJ invocations to module description.
12311         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
12312         * modules/wcscmp (configure.ac): ... to here.
12313
12314 2011-05-22  Bruno Haible  <bruno@clisp.org>
12315
12316         wcschr: Move AC_LIBOBJ invocations to module description.
12317         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
12318         * modules/wcschr (configure.ac): ... to here.
12319
12320 2011-05-22  Bruno Haible  <bruno@clisp.org>
12321
12322         wcscat: Move AC_LIBOBJ invocations to module description.
12323         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
12324         * modules/wcscat (configure.ac): ... to here.
12325
12326 2011-05-22  Bruno Haible  <bruno@clisp.org>
12327
12328         wcscasecmp: Move AC_LIBOBJ invocations to module description.
12329         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
12330         here...
12331         * modules/wcscasecmp (configure.ac): ... to here.
12332
12333 2011-05-22  Bruno Haible  <bruno@clisp.org>
12334
12335         wcrtomb: Move AC_LIBOBJ invocations to module description.
12336         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
12337         invocations from here...
12338         * modules/wcrtomb (configure.ac): ... to here.
12339
12340 2011-05-22  Bruno Haible  <bruno@clisp.org>
12341
12342         wcpncpy: Move AC_LIBOBJ invocations to module description.
12343         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
12344         here...
12345         * modules/wcpncpy (configure.ac): ... to here.
12346
12347 2011-05-22  Bruno Haible  <bruno@clisp.org>
12348
12349         wcpcpy: Move AC_LIBOBJ invocations to module description.
12350         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
12351         * modules/wcpcpy (configure.ac): ... to here.
12352
12353 2011-05-22  Bruno Haible  <bruno@clisp.org>
12354
12355         waitpid: Move AC_LIBOBJ invocations to module description.
12356         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
12357         invocation from here...
12358         * modules/waitpid (configure.ac): ... to here.
12359
12360 2011-05-22  Bruno Haible  <bruno@clisp.org>
12361
12362         utimensat: Move AC_LIBOBJ invocations to module description.
12363         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
12364         here...
12365         * modules/utimensat (configure.ac): ... to here.
12366
12367 2011-05-22  Bruno Haible  <bruno@clisp.org>
12368
12369         usleep: Move AC_LIBOBJ invocations to module description.
12370         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
12371         here...
12372         * modules/usleep (configure.ac): ... to here.
12373
12374 2011-05-22  Bruno Haible  <bruno@clisp.org>
12375
12376         unlockpt: Move AC_LIBOBJ invocations to module description.
12377         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
12378         gl_PREREQ_UNLOCKPT invocations from here...
12379         * modules/unlockpt (configure.ac): ... to here.
12380
12381 2011-05-22  Bruno Haible  <bruno@clisp.org>
12382
12383         unlink: Respect rules for use of AC_LIBOBJ.
12384         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
12385         * modules/unlink (configure.ac): ... to here.
12386
12387 2011-05-22  Bruno Haible  <bruno@clisp.org>
12388
12389         uname: Move AC_LIBOBJ invocations to module description.
12390         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
12391         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
12392         here...
12393         * modules/uname (configure.ac): ... to here.
12394
12395 2011-05-22  Bruno Haible  <bruno@clisp.org>
12396
12397         ttyname_r: Move AC_LIBOBJ invocations to module description.
12398         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
12399         gl_PREREQ_TTYNAME_R invocations from here...
12400         * modules/ttyname_r (configure.ac): ... to here.
12401
12402 2011-05-22  Bruno Haible  <bruno@clisp.org>
12403
12404         tsearch: Move AC_LIBOBJ invocations to module description.
12405         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
12406         invocations from here...
12407         * modules/tsearch (configure.ac): ... to here.
12408
12409 2011-05-22  Bruno Haible  <bruno@clisp.org>
12410
12411         towctrans: Move AC_LIBOBJ invocations to module description.
12412         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
12413         AC_LIBOBJ invocation from here...
12414         * modules/towctrans (configure.ac): ... to here.
12415
12416 2011-05-22  Bruno Haible  <bruno@clisp.org>
12417
12418         tmpfile: Move AC_LIBOBJ invocations to module description.
12419         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
12420         invocations from here...
12421         * modules/tmpfile (configure.ac): ... to here.
12422
12423 2011-05-22  Bruno Haible  <bruno@clisp.org>
12424
12425         times: Move AC_LIBOBJ invocations to module description.
12426         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
12427         * modules/times (configure.ac): ... to here.
12428
12429 2011-05-22  Bruno Haible  <bruno@clisp.org>
12430
12431         time_r: Move AC_LIBOBJ invocations to module description.
12432         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
12433         invocations from here...
12434         * modules/time_r (configure.ac): ... to here.
12435
12436 2011-05-22  Bruno Haible  <bruno@clisp.org>
12437
12438         timegm: Move AC_LIBOBJ invocations to module description.
12439         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
12440         invocations from here...
12441         * modules/timegm (configure.ac): ... to here.
12442
12443 2011-05-22  Bruno Haible  <bruno@clisp.org>
12444
12445         tcgetsid: Move AC_LIBOBJ invocations to module description.
12446         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
12447         and gl_PREREQ_TCGETSID invocations from here...
12448         * modules/tcgetsid (configure.ac): ... to here.
12449         (Depends-on): Update conditions.
12450
12451 2011-05-22  Bruno Haible  <bruno@clisp.org>
12452
12453         symlinkat: Move AC_LIBOBJ invocations to module description.
12454         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
12455         here...
12456         * modules/symlinkat (configure.ac): ... to here.
12457
12458 2011-05-22  Bruno Haible  <bruno@clisp.org>
12459
12460         symlink: Move AC_LIBOBJ invocations to module description.
12461         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
12462         here...
12463         * modules/symlink (configure.ac): ... to here.
12464
12465 2011-05-22  Bruno Haible  <bruno@clisp.org>
12466
12467         strverscmp: Move AC_LIBOBJ invocations to module description.
12468         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
12469         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
12470         from here...
12471         * modules/strverscmp (configure.ac): ... to here.
12472
12473 2011-05-22  Bruno Haible  <bruno@clisp.org>
12474
12475         strtok_r: Move AC_LIBOBJ invocations to module description.
12476         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
12477         and gl_PREREQ_STRTOK_R invocations from here...
12478         * modules/strtok_r (configure.ac): ... to here.
12479         (Depends-on): Update conditions.
12480
12481 2011-05-22  Bruno Haible  <bruno@clisp.org>
12482
12483         strtoumax: Move AC_LIBOBJ invocations to module description.
12484         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
12485         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
12486         from here...
12487         * modules/strtoumax (configure.ac): ... to here.
12488
12489 2011-05-22  Bruno Haible  <bruno@clisp.org>
12490
12491         strtoimax: Move AC_LIBOBJ invocations to module description.
12492         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
12493         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
12494         from here...
12495         * modules/strtoimax (configure.ac): ... to here.
12496
12497 2011-05-22  Bruno Haible  <bruno@clisp.org>
12498
12499         strtoull: Move AC_LIBOBJ invocations to module description.
12500         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
12501         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
12502         from here...
12503         * modules/strtoull (configure.ac): ... to here.
12504
12505 2011-05-22  Bruno Haible  <bruno@clisp.org>
12506
12507         strtoll: Move AC_LIBOBJ invocations to module description.
12508         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
12509         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
12510         here...
12511         * modules/strtoll (configure.ac): ... to here.
12512
12513 2011-05-22  Bruno Haible  <bruno@clisp.org>
12514
12515         strtoul: Move AC_LIBOBJ invocations to module description.
12516         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
12517         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
12518         * modules/strtoul (configure.ac): ... to here.
12519
12520 2011-05-22  Bruno Haible  <bruno@clisp.org>
12521
12522         strtol: Move AC_LIBOBJ invocations to module description.
12523         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
12524         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
12525         * modules/strtol (configure.ac): ... to here.
12526
12527 2011-05-22  Bruno Haible  <bruno@clisp.org>
12528
12529         strtod: Move AC_LIBOBJ invocations to module description.
12530         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
12531         invocations from here...
12532         * modules/strtod (configure.ac): ... to here.
12533
12534 2011-05-22  Bruno Haible  <bruno@clisp.org>
12535
12536         strstr*: Move AC_LIBOBJ invocations to module description.
12537         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
12538         invocations from here...
12539         * modules/strstr-simple (configure.ac): ... to here.
12540         * modules/strstr (configure.ac): ... and here.
12541
12542 2011-05-22  Bruno Haible  <bruno@clisp.org>
12543
12544         strsignal: Move AC_LIBOBJ invocations to module description.
12545         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
12546         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
12547         * modules/strsignal (configure.ac): ... to here.
12548         (Depends-on): Update conditions.
12549
12550 2011-05-22  Bruno Haible  <bruno@clisp.org>
12551
12552         strsep: Move AC_LIBOBJ invocations to module description.
12553         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
12554         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
12555         here...
12556         * modules/strsep (configure.ac): ... to here.
12557
12558 2011-05-22  Bruno Haible  <bruno@clisp.org>
12559
12560         strptime: Move AC_LIBOBJ invocations to module description.
12561         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
12562         gl_PREREQ_STRPTIME invocations from here...
12563         * modules/strptime (configure.ac): ... to here.
12564
12565 2011-05-22  Bruno Haible  <bruno@clisp.org>
12566
12567         strpbrk: Move AC_LIBOBJ invocations to module description.
12568         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
12569         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
12570         here...
12571         * modules/strpbrk (configure.ac): ... to here.
12572
12573 2011-05-22  Bruno Haible  <bruno@clisp.org>
12574
12575         strnlen: Move AC_LIBOBJ invocations to module description.
12576         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
12577         invocations from here...
12578         * modules/strnlen (configure.ac): ... to here.
12579
12580 2011-05-22  Bruno Haible  <bruno@clisp.org>
12581
12582         strndup: Move AC_LIBOBJ invocations to module description.
12583         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
12584         invocations from here...
12585         * modules/strndup (configure.ac): ... to here.
12586         (Depends-on): Update conditions.
12587
12588 2011-05-22  Bruno Haible  <bruno@clisp.org>
12589
12590         strncat: Move AC_LIBOBJ invocations to module description.
12591         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
12592         invocations from here...
12593         * modules/strncat (configure.ac): ... to here.
12594
12595 2011-05-22  Bruno Haible  <bruno@clisp.org>
12596
12597         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
12598         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
12599         invocations from here...
12600         * modules/strdup (configure.ac): ... to here.
12601         * modules/strdup-posix (configure.ac): ... and here.
12602
12603 2011-05-22  Bruno Haible  <bruno@clisp.org>
12604
12605         strcspn: Move AC_LIBOBJ invocations to module description.
12606         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
12607         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
12608         here...
12609         * modules/strcspn (configure.ac): ... to here.
12610
12611 2011-05-22  Bruno Haible  <bruno@clisp.org>
12612
12613         strchrnul: Move AC_LIBOBJ invocations to module description.
12614         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
12615         gl_PREREQ_STRCHRNUL invocations from here...
12616         * modules/strchrnul (configure.ac): ... to here.
12617
12618 2011-05-22  Bruno Haible  <bruno@clisp.org>
12619
12620         strcasestr*: Move AC_LIBOBJ invocations to module description.
12621         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
12622         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
12623         * modules/strcasestr-simple (configure.ac): ... to here.
12624         * modules/strcasestr (configure.ac): ... and here.
12625
12626 2011-05-22  Bruno Haible  <bruno@clisp.org>
12627
12628         strcase: Move AC_LIBOBJ invocations to module description.
12629         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
12630         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
12631         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
12632         gl_PREREQ_STRNCASECMP invocations from here...
12633         * modules/strcase (configure.ac): ... to here.
12634
12635 2011-05-22  Bruno Haible  <bruno@clisp.org>
12636
12637         stpncpy: Move AC_LIBOBJ invocations to module description.
12638         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
12639         here...
12640         * modules/stpncpy (configure.ac): ... to here.
12641
12642 2011-05-22  Bruno Haible  <bruno@clisp.org>
12643
12644         stpcpy: Move AC_LIBOBJ invocations to module description.
12645         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
12646         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
12647         here...
12648         * modules/stpcpy (configure.ac): ... to here.
12649
12650 2011-05-21  Bruno Haible  <bruno@clisp.org>
12651
12652         stat: Move AC_LIBOBJ invocations to module description.
12653         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
12654         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
12655         here...
12656         * modules/stat (configure.ac): ... to here.
12657
12658 2011-05-21  Bruno Haible  <bruno@clisp.org>
12659
12660         sleep: Move AC_LIBOBJ invocations to module description.
12661         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
12662         * modules/sleep (configure.ac): ... to here.
12663
12664 2011-05-21  Bruno Haible  <bruno@clisp.org>
12665
12666         signbit: Move AC_LIBOBJ invocations to module description.
12667         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
12668         * modules/signbit (configure.ac): ... to here.
12669
12670 2011-05-21  Bruno Haible  <bruno@clisp.org>
12671
12672         sigprocmask: Move AC_LIBOBJ invocations to module description.
12673         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
12674         gl_PREREQ_SIGPROMASK invocations from here...
12675         * modules/sigprocmask (configure.ac): ... to here.
12676
12677 2011-05-21  Bruno Haible  <bruno@clisp.org>
12678
12679         sigaction: Move AC_LIBOBJ invocations to module description.
12680         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
12681         gl_PREREQ_SIGACTION invocations from here...
12682         * modules/sigaction (configure.ac): ... to here.
12683
12684 2011-05-21  Bruno Haible  <bruno@clisp.org>
12685
12686         sig2str: Move AC_LIBOBJ invocations to module description.
12687         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
12688         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
12689         here...
12690         * modules/sig2str (configure.ac): ... to here.
12691
12692 2011-05-21  Bruno Haible  <bruno@clisp.org>
12693
12694         setlocale: Move AC_LIBOBJ invocations to module description.
12695         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
12696         gl_PREREQ_SETLOCALE invocations from here...
12697         * modules/setlocale (configure.ac): ... to here.
12698
12699 2011-05-21  Bruno Haible  <bruno@clisp.org>
12700
12701         unsetenv: Move AC_LIBOBJ invocations to module description.
12702         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
12703         and gl_PREREQ_UNSETENV invocations from here...
12704         * modules/unsetenv (configure.ac): ... to here.
12705         (Depends-on): Update.
12706
12707 2011-05-21  Bruno Haible  <bruno@clisp.org>
12708
12709         setenv: Move AC_LIBOBJ invocations to module description.
12710         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
12711         here...
12712         * modules/setenv (configure.ac): ... to here.
12713
12714 2011-05-21  Bruno Haible  <bruno@clisp.org>
12715
12716         selinux-h: Move AC_LIBOBJ invocations to module description.
12717         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
12718         AC_LIBOBJ invocation from here...
12719         * modules/selinux-h (configure.ac): ... to here.
12720
12721 2011-05-21  Bruno Haible  <bruno@clisp.org>
12722
12723         select: Respect rules for use of AC_LIBOBJ.
12724         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
12725         here...
12726         * modules/select (configure.ac): ... to here.
12727
12728 2011-05-21  Bruno Haible  <bruno@clisp.org>
12729
12730         scandir: Move AC_LIBOBJ invocations to module description.
12731         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
12732         invocations from here...
12733         * modules/scandir (configure.ac): ... to here.
12734
12735 2011-05-21  Bruno Haible  <bruno@clisp.org>
12736
12737         rpmatch: Move AC_LIBOBJ invocations to module description.
12738         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
12739         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
12740         here...
12741         * modules/rpmatch (configure.ac): ... to here.
12742
12743 2011-05-21  Bruno Haible  <bruno@clisp.org>
12744
12745         rmdir: Respect rules for use of AC_LIBOBJ.
12746         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
12747         * modules/rmdir (configure.ac): ... to here.
12748
12749 2011-05-21  Bruno Haible  <bruno@clisp.org>
12750
12751         renameat: Move AC_LIBOBJ invocations to module description.
12752         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
12753         here...
12754         * modules/renameat (configure.ac): ... to here.
12755
12756 2011-05-21  Bruno Haible  <bruno@clisp.org>
12757
12758         rename: Respect rules for use of AC_LIBOBJ.
12759         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
12760         here...
12761         * modules/rename (configure.ac): ... to here.
12762
12763 2011-05-21  Bruno Haible  <bruno@clisp.org>
12764
12765         remove: Move AC_LIBOBJ invocations to module description.
12766         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
12767         here...
12768         * modules/remove (configure.ac): ... to here.
12769
12770 2011-05-21  Bruno Haible  <bruno@clisp.org>
12771
12772         relocatable-lib: Move AC_LIBOBJ invocations to module description.
12773         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
12774         macro.
12775         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
12776         * modules/relocatable-lib (configure.ac): ... to here.
12777         * modules/relocatable-prog-wrapper (configure.ac): Invoke
12778         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
12779
12780 2011-05-21  Bruno Haible  <bruno@clisp.org>
12781
12782         relocatable-prog: Move AC_LIBOBJ invocations to module description.
12783         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
12784         here...
12785         * modules/relocatable-prog (configure.ac): ... to here.
12786
12787 2011-05-21  Bruno Haible  <bruno@clisp.org>
12788
12789         regex: Move AC_LIBOBJ invocations to module description.
12790         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
12791         invocations from here...
12792         * modules/regex (configure.ac): ... to here.
12793
12794 2011-05-21  Bruno Haible  <bruno@clisp.org>
12795
12796         realloc-*: Move AC_LIBOBJ invocations to module description.
12797         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
12798         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
12799         AC_LIBOBJ invocations from here...
12800         * modules/realloc-gnu (configure.ac): ... to here.
12801         * modules/realloc-posix (configure.ac): ... and here.
12802
12803 2011-05-21  Bruno Haible  <bruno@clisp.org>
12804
12805         readutmp: Move AC_LIBOBJ invocations to module description.
12806         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
12807         * modules/readutmp (configure.ac): ... to here.
12808
12809 2011-05-21  Bruno Haible  <bruno@clisp.org>
12810
12811         readlinkat: Move AC_LIBOBJ invocations to module description.
12812         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
12813         here...
12814         * modules/readlinkat (configure.ac): ... to here.
12815
12816 2011-05-21  Bruno Haible  <bruno@clisp.org>
12817
12818         readlink: Move AC_LIBOBJ invocations to module description.
12819         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
12820         gl_PREREQ_READLINK invocations from here...
12821         * modules/readlink (configure.ac): ... to here.
12822
12823 2011-05-21  Bruno Haible  <bruno@clisp.org>
12824
12825         readline: Move AC_LIBOBJ invocations to module description.
12826         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
12827         gl_PREREQ_READLINE invocations from here...
12828         * modules/readline (configure.ac): ... to here.
12829
12830 2011-05-21  Bruno Haible  <bruno@clisp.org>
12831
12832         read: Move AC_LIBOBJ invocations to module description.
12833         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
12834         * modules/read (configure.ac): ... to here.
12835
12836 2011-05-21  Bruno Haible  <bruno@clisp.org>
12837
12838         rawmemchr: Move AC_LIBOBJ invocations to module description.
12839         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
12840         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
12841         from here...
12842         * modules/rawmemchr (configure.ac): ... to here.
12843
12844 2011-05-21  Bruno Haible  <bruno@clisp.org>
12845
12846         random_r: Move AC_LIBOBJ invocations to module description.
12847         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
12848         gl_PREREQ_RANDOM_R invocations from here...
12849         * modules/random_r (configure.ac): ... to here.
12850
12851 2011-05-21  Bruno Haible  <bruno@clisp.org>
12852
12853         pwrite: Move AC_LIBOBJ invocations to module description.
12854         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
12855         * modules/pwrite (configure.ac): ... to here.
12856
12857 2011-05-21  Bruno Haible  <bruno@clisp.org>
12858
12859         putenv: Move AC_LIBOBJ invocations to module description.
12860         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
12861         * modules/putenv (configure.ac): ... to here.
12862
12863 2011-05-21  Bruno Haible  <bruno@clisp.org>
12864
12865         login_tty: Move AC_LIBOBJ invocations to module description.
12866         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
12867         * modules/login_tty (configure.ac): ... to here.
12868
12869 2011-05-21  Bruno Haible  <bruno@clisp.org>
12870
12871         openpty: Move AC_LIBOBJ invocations to module description.
12872         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
12873         * modules/openpty (configure.ac): ... to here.
12874
12875 2011-05-21  Bruno Haible  <bruno@clisp.org>
12876
12877         forkpty: Move AC_LIBOBJ invocations to module description.
12878         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
12879         * modules/forkpty (configure.ac): ... to here.
12880
12881 2011-05-21  Bruno Haible  <bruno@clisp.org>
12882
12883         ptsname: Move AC_LIBOBJ invocations to module description.
12884         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
12885         invocations from here...
12886         * modules/ptsname (configure.ac): ... to here.
12887
12888 2011-05-21  Bruno Haible  <bruno@clisp.org>
12889
12890         pread: Move AC_LIBOBJ invocations to module description.
12891         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
12892         * modules/pread (configure.ac): ... to here.
12893
12894 2011-05-21  Bruno Haible  <bruno@clisp.org>
12895
12896         posix_spawn*: Move AC_LIBOBJ invocations to module description.
12897         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
12898         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
12899         * modules/posix_spawn (configure.ac): ... to here.
12900         * modules/posix_spawnp (configure.ac): ... and here.
12901
12902 2011-05-21  Bruno Haible  <bruno@clisp.org>
12903
12904         popen: Move AC_LIBOBJ invocations to module description.
12905         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
12906         invocations from here...
12907         * modules/popen (configure.ac): ... to here.
12908
12909 2011-05-21  Bruno Haible  <bruno@clisp.org>
12910
12911         poll: Move AC_LIBOBJ invocations to module description.
12912         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
12913         invocations from here...
12914         * modules/poll (configure.ac): ... to here.
12915
12916 2011-05-21  Bruno Haible  <bruno@clisp.org>
12917
12918         pipe-posix: Move AC_LIBOBJ invocations to module description.
12919         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
12920         * modules/pipe-posix (configure.ac): ... to here.
12921
12922 2011-05-21  Bruno Haible  <bruno@clisp.org>
12923
12924         openat: Respect rules for use of AC_LIBOBJ.
12925         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
12926         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
12927         * modules/openat (configure.ac): ... to here.
12928
12929 2011-05-21  Bruno Haible  <bruno@clisp.org>
12930
12931         obstack-printf*: Move AC_LIBOBJ invocations to module description.
12932         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
12933         invocation from here...
12934         * modules/obstack-printf (configure.ac): ... to here.
12935         * modules/obstack-printf-posix (configure.ac): ... and here.
12936
12937 2011-05-21  Bruno Haible  <bruno@clisp.org>
12938
12939         nl_langinfo: Move AC_LIBOBJ invocations to module description.
12940         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
12941         from here...
12942         * modules/nl_langinfo (configure.ac): ... to here.
12943
12944 2011-05-21  Bruno Haible  <bruno@clisp.org>
12945
12946         nanosleep: Move AC_LIBOBJ invocations to module description.
12947         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
12948         gl_PREREQ_NANOSLEEP invocations from here...
12949         * modules/nanosleep (configure.ac): ... to here.
12950
12951 2011-05-21  Bruno Haible  <bruno@clisp.org>
12952
12953         mountlist: Move AC_LIBOBJ invocations to module description.
12954         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
12955         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
12956         * modules/mountlist (configure.ac): ... to here.
12957
12958 2011-05-21  Bruno Haible  <bruno@clisp.org>
12959
12960         mktime: Respect rules for use of AC_LIBOBJ.
12961         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
12962         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
12963         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
12964         (gl_FUNC_MKTIME_INTERNAL): ... and here...
12965         * modules/mktime (configure.ac): ... to here.
12966         * modules/mktime-internal (configure.ac): ... and here.
12967         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
12968
12969 2011-05-21  Bruno Haible  <bruno@clisp.org>
12970
12971         mkstemps: Move AC_LIBOBJ invocations to module description.
12972         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
12973         here...
12974         * modules/mkstemps (configure.ac): ... to here.
12975
12976 2011-05-21  Bruno Haible  <bruno@clisp.org>
12977
12978         mkstemp: Move AC_LIBOBJ invocations to module description.
12979         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
12980         gl_PREREQ_MKSTEMP invocations from here...
12981         * modules/mkstemp (configure.ac): ... to here.
12982
12983 2011-05-21  Bruno Haible  <bruno@clisp.org>
12984
12985         mkostemps: Move AC_LIBOBJ invocations to module description.
12986         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
12987         here...
12988         * modules/mkostemps (configure.ac): ... to here.
12989
12990 2011-05-21  Bruno Haible  <bruno@clisp.org>
12991
12992         mkostemp: Move AC_LIBOBJ invocations to module description.
12993         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
12994         gl_PREREQ_MKOSTEMP invocations from here...
12995         * modules/mkostemp (configure.ac): ... to here.
12996
12997 2011-05-21  Bruno Haible  <bruno@clisp.org>
12998
12999         mknod: Move AC_LIBOBJ invocations to module description.
13000         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
13001         * modules/mknod (configure.ac): ... to here.
13002
13003 2011-05-21  Bruno Haible  <bruno@clisp.org>
13004
13005         mkfifoat: Move AC_LIBOBJ invocations to module description.
13006         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
13007         here...
13008         * modules/mkfifoat (configure.ac): ... to here.
13009
13010 2011-05-21  Bruno Haible  <bruno@clisp.org>
13011
13012         mkfifo: Respect rules for use of AC_LIBOBJ.
13013         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
13014         here...
13015         * modules/mkfifo (configure.ac): ... to here.
13016
13017 2011-05-21  Bruno Haible  <bruno@clisp.org>
13018
13019         mkdtemp: Move AC_LIBOBJ invocations to module description.
13020         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
13021         invocations from here...
13022         * modules/mkdtemp (configure.ac): ... to here.
13023
13024 2011-05-21  Bruno Haible  <bruno@clisp.org>
13025
13026         mkdir: Move AC_LIBOBJ invocations to module description.
13027         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
13028         * modules/mkdir (configure.ac): ... to here.
13029
13030 2011-05-21  Bruno Haible  <bruno@clisp.org>
13031
13032         memset: Move AC_LIBOBJ invocations to module description.
13033         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
13034         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
13035         here...
13036         * modules/memset (configure.ac): ... to here.
13037
13038 2011-05-21  Bruno Haible  <bruno@clisp.org>
13039
13040         memrchr: Move AC_LIBOBJ invocations to module description.
13041         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
13042         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
13043         here...
13044         * modules/memrchr (configure.ac): ... to here.
13045
13046 2011-05-21  Bruno Haible  <bruno@clisp.org>
13047
13048         mempcpy: Move AC_LIBOBJ invocations to module description.
13049         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
13050         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
13051         here...
13052         * modules/mempcpy (configure.ac): ... to here.
13053
13054 2011-05-21  Bruno Haible  <bruno@clisp.org>
13055
13056         memmove: Move AC_LIBOBJ invocations to module description.
13057         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
13058         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
13059         here...
13060         * modules/memmove (configure.ac): ... to here.
13061
13062 2011-05-21  Bruno Haible  <bruno@clisp.org>
13063
13064         memmem*: Move AC_LIBOBJ invocations to module description.
13065         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
13066         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
13067         here...
13068         (gl_FUNC_MEMMEM): ... and here...
13069         * modules/memmem-simple (configure.ac): ... to here.
13070         * modules/memmem (configure.ac): ... and here.
13071
13072 2011-05-21  Bruno Haible  <bruno@clisp.org>
13073
13074         memcpy: Move AC_LIBOBJ invocations to module description.
13075         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
13076         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
13077         here...
13078         * modules/memcpy (configure.ac): ... to here.
13079
13080 2011-05-21  Bruno Haible  <bruno@clisp.org>
13081
13082         memcmp: Simplify autoconf macro.
13083         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
13084         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
13085         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
13086
13087 2011-05-21  Bruno Haible  <bruno@clisp.org>
13088
13089         memcmp: Move AC_LIBOBJ invocations to module description.
13090         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
13091         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
13092         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
13093         * modules/memcmp (configure.ac): ... to here.
13094         (Depends-on): Update conditions.
13095
13096 2011-05-21  Bruno Haible  <bruno@clisp.org>
13097
13098         memchr: Respect rules for use of AC_LIBOBJ.
13099         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
13100         invocations from here...
13101         * modules/memchr (configure.ac): ... to here.
13102
13103 2011-05-21  Bruno Haible  <bruno@clisp.org>
13104
13105         mbtowc: Move AC_LIBOBJ invocations to module description.
13106         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
13107         invocations from here...
13108         * modules/mbtowc (configure.ac): ... to here.
13109
13110 2011-05-21  Bruno Haible  <bruno@clisp.org>
13111
13112         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
13113         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
13114         gl_PREREQ_MBSRTOWCS invocations from here...
13115         * modules/mbsrtowcs (configure.ac): ... to here.
13116
13117 2011-05-21  Bruno Haible  <bruno@clisp.org>
13118
13119         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
13120         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
13121         gl_PREREQ_MBSNRTOWCS invocations from here...
13122         * modules/mbsnrtowcs (configure.ac): ... to here.
13123
13124 2011-05-21  Bruno Haible  <bruno@clisp.org>
13125
13126         mbsinit: Move AC_LIBOBJ invocations to module description.
13127         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
13128         invocations from here...
13129         * modules/mbsinit (configure.ac): ... to here.
13130
13131 2011-05-21  Bruno Haible  <bruno@clisp.org>
13132
13133         mbrlen: Move AC_LIBOBJ invocations to module description.
13134         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
13135         invocations from here...
13136         * modules/mbrlen (configure.ac): ... to here.
13137
13138 2011-05-21  Bruno Haible  <bruno@clisp.org>
13139
13140         mbrtowc: Respect rules for use of AC_LIBOBJ.
13141         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
13142         invocations from here...
13143         * modules/mbrtowc (configure.ac): ... to here.
13144
13145 2011-05-21  Bruno Haible  <bruno@clisp.org>
13146
13147         malloc-*: Move AC_LIBOBJ invocations to module description.
13148         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
13149         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
13150         AC_LIBOBJ invocations from here...
13151         * modules/malloc-gnu (configure.ac): ... to here.
13152         * modules/malloc-posix (configure.ac): ... and here.
13153
13154 2011-05-21  Bruno Haible  <bruno@clisp.org>
13155
13156         lstat, openat: Respect rules for use of AC_LIBOBJ.
13157         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
13158         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
13159         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
13160         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
13161         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
13162         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
13163         here.
13164         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
13165
13166 2011-05-21  Bruno Haible  <bruno@clisp.org>
13167
13168         lseek: Move AC_LIBOBJ invocations to module description.
13169         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
13170         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
13171         * modules/lseek (configure.ac): ... to here.
13172
13173 2011-05-21  Bruno Haible  <bruno@clisp.org>
13174
13175         linkat: Move AC_LIBOBJ invocations to module description.
13176         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
13177         here...
13178         * modules/linkat (configure.ac): ... to here.
13179
13180 2011-05-21  Bruno Haible  <bruno@clisp.org>
13181
13182         link: Respect rules for use of AC_LIBOBJ.
13183         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
13184         * modules/link (configure.ac): ... to here.
13185
13186 2011-05-21  Bruno Haible  <bruno@clisp.org>
13187
13188         lchown: Move AC_LIBOBJ invocations to module description.
13189         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
13190         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
13191         * modules/lchown (configure.ac): ... to here.
13192
13193 2011-05-21  Bruno Haible  <bruno@clisp.org>
13194
13195         iswctype: Move AC_LIBOBJ invocations to module description.
13196         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
13197         here...
13198         * modules/iswctype (configure.ac): ... to here.
13199
13200 2011-05-21  Bruno Haible  <bruno@clisp.org>
13201
13202         iswblank: Move AC_LIBOBJ invocations to module description.
13203         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
13204         here...
13205         * modules/iswblank (configure.ac): ... to here.
13206
13207 2011-05-21  Bruno Haible  <bruno@clisp.org>
13208
13209         atanl: Move AC_LIBOBJ invocations to module description.
13210         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
13211         * modules/atanl (configure.ac): ... to here.
13212
13213 2011-05-21  Bruno Haible  <bruno@clisp.org>
13214
13215         acosl: Move AC_LIBOBJ invocations to module description.
13216         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
13217         * modules/acosl (configure.ac): ... to here.
13218
13219 2011-05-21  Bruno Haible  <bruno@clisp.org>
13220
13221         asinl: Respect rules for use of AC_LIBOBJ.
13222         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
13223         * modules/asinl (configure.ac): ... to here.
13224
13225 2011-05-21  Bruno Haible  <bruno@clisp.org>
13226
13227         tanl: Move AC_LIBOBJ invocations to module description.
13228         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
13229         * modules/tanl (configure.ac): ... to here.
13230
13231 2011-05-21  Bruno Haible  <bruno@clisp.org>
13232
13233         cosl: Move AC_LIBOBJ invocations to module description.
13234         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
13235         * modules/cosl (configure.ac): ... to here.
13236
13237 2011-05-21  Bruno Haible  <bruno@clisp.org>
13238
13239         sinl: Move AC_LIBOBJ invocations to module description.
13240         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
13241         * modules/sinl (configure.ac): ... to here.
13242
13243 2011-05-21  Bruno Haible  <bruno@clisp.org>
13244
13245         logl: Move AC_LIBOBJ invocations to module description.
13246         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
13247         * modules/logl (configure.ac): ... to here.
13248
13249 2011-05-21  Bruno Haible  <bruno@clisp.org>
13250
13251         expl: Move AC_LIBOBJ invocations to module description.
13252         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
13253         * modules/expl (configure.ac): ... to here.
13254
13255 2011-05-21  Bruno Haible  <bruno@clisp.org>
13256
13257         roundl: Move AC_LIBOBJ invocations to module description.
13258         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
13259         * modules/roundl (configure.ac): ... to here.
13260
13261 2011-05-21  Bruno Haible  <bruno@clisp.org>
13262
13263         round: Move AC_LIBOBJ invocations to module description.
13264         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
13265         * modules/round (configure.ac): ... to here.
13266
13267 2011-05-21  Bruno Haible  <bruno@clisp.org>
13268
13269         roundf: Move AC_LIBOBJ invocations to module description.
13270         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
13271         * modules/roundf (configure.ac): ... to here.
13272
13273 2011-05-21  Bruno Haible  <bruno@clisp.org>
13274
13275         truncl: Move AC_LIBOBJ invocations to module description.
13276         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
13277         * modules/truncl (configure.ac): ... to here.
13278
13279 2011-05-21  Bruno Haible  <bruno@clisp.org>
13280
13281         trunc: Move AC_LIBOBJ invocations to module description.
13282         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
13283         * modules/trunc (configure.ac): ... to here.
13284
13285 2011-05-21  Bruno Haible  <bruno@clisp.org>
13286
13287         truncf: Move AC_LIBOBJ invocations to module description.
13288         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
13289         * modules/truncf (configure.ac): ... to here.
13290
13291 2011-05-21  Bruno Haible  <bruno@clisp.org>
13292
13293         ceill: Move AC_LIBOBJ invocations to module description.
13294         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
13295         * modules/ceill (configure.ac): ... to here.
13296
13297 2011-05-21  Bruno Haible  <bruno@clisp.org>
13298
13299         ceil: Move AC_LIBOBJ invocations to module description.
13300         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
13301         * modules/ceil (configure.ac): ... to here.
13302
13303 2011-05-21  Bruno Haible  <bruno@clisp.org>
13304
13305         ceilf: Move AC_LIBOBJ invocations to module description.
13306         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
13307         * modules/ceilf (configure.ac): ... to here.
13308
13309 2011-05-21  Bruno Haible  <bruno@clisp.org>
13310
13311         floorl: Respect rules for use of AC_LIBOBJ.
13312         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
13313         * modules/floorl (configure.ac): ... to here.
13314
13315 2011-05-21  Bruno Haible  <bruno@clisp.org>
13316
13317         floor: Respect rules for use of AC_LIBOBJ.
13318         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
13319         * modules/floor (configure.ac): ... to here.
13320
13321 2011-05-21  Bruno Haible  <bruno@clisp.org>
13322
13323         floorf: Move AC_LIBOBJ invocations to module description.
13324         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
13325         * modules/floorf (configure.ac): ... to here.
13326
13327 2011-05-20  Bruno Haible  <bruno@clisp.org>
13328
13329         sqrtl: Respect rules for use of AC_LIBOBJ.
13330         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
13331         * modules/sqrtl (configure.ac): ... to here.
13332
13333 2011-05-20  Bruno Haible  <bruno@clisp.org>
13334
13335         ldexpl: Respect rules for use of AC_LIBOBJ.
13336         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
13337         * modules/ldexpl (configure.ac): ... to here.
13338
13339 2011-05-20  Bruno Haible  <bruno@clisp.org>
13340
13341         frexpl*: Respect rules for use of AC_LIBOBJ.
13342         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
13343         invocation from here...
13344         * modules/frexpl (configure.ac): ... to here.
13345         * modules/frexpl-nolibm (configure.ac): ... and here.
13346
13347 2011-05-20  Bruno Haible  <bruno@clisp.org>
13348
13349         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
13350         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
13351         invocation from here...
13352         * modules/frexp (configure.ac): ... to here.
13353         * modules/frexp-nolibm (configure.ac): ... and here.
13354
13355 2011-05-20  Bruno Haible  <bruno@clisp.org>
13356
13357         isnan: Respect rules for use of AC_LIBOBJ.
13358         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
13359         invocations here.
13360         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
13361         REPLACE_ISNAN.
13362         * modules/isnand (configure.ac): Likewise.
13363         * modules/isnanl (configure.ac): Likewise.
13364
13365 2011-05-20  Bruno Haible  <bruno@clisp.org>
13366
13367         isnanl*: Respect rules for use of AC_LIBOBJ.
13368         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
13369         invocation from here...
13370         * modules/isnanl (configure.ac): ... to here.
13371         * modules/isnanl-nolibm (configure.ac): ... and here.
13372
13373 2011-05-20  Bruno Haible  <bruno@clisp.org>
13374
13375         isnand*: Move AC_LIBOBJ invocations to module description.
13376         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
13377         invocation from here...
13378         * modules/isnand (configure.ac): ... to here.
13379         * modules/isnand-nolibm (configure.ac): ... and here.
13380
13381 2011-05-20  Bruno Haible  <bruno@clisp.org>
13382
13383         isnanf*: Move AC_LIBOBJ invocations to module description.
13384         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
13385         invocation from here...
13386         * modules/isnanf (configure.ac): ... to here.
13387         * modules/isnanf-nolibm (configure.ac): ... and here.
13388
13389 2011-05-20  Bruno Haible  <bruno@clisp.org>
13390
13391         isnan*: Separate the AC_LIBOBJ invocations.
13392         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
13393         AC_LIBOBJ invocation.
13394         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
13395         here.
13396         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
13397         AC_LIBOBJ invocation.
13398         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
13399         here.
13400         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
13401         AC_LIBOBJ invocation.
13402         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
13403         here.
13404         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
13405
13406 2011-05-08  Bruno Haible  <bruno@clisp.org>
13407
13408         isinf: Move AC_LIBOBJ invocations to module description.
13409         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
13410         * modules/isinf (configure.ac): ... to here.
13411
13412 2011-05-08  Bruno Haible  <bruno@clisp.org>
13413
13414         isfinite: Move AC_LIBOBJ invocations to module description.
13415         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
13416         * modules/isfinite (configure.ac): ... to here.
13417
13418 2011-05-08  Bruno Haible  <bruno@clisp.org>
13419
13420         isblank: Move AC_LIBOBJ invocations to module description.
13421         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
13422         here...
13423         * modules/isblank (configure.ac): ... to here.
13424
13425 2011-05-08  Bruno Haible  <bruno@clisp.org>
13426
13427         isapipe: Move AC_LIBOBJ invocations to module description.
13428         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
13429         gl_PREREQ_ISAPIPE invocations from here...
13430         * modules/isapipe (configure.ac): ... to here.
13431         (Depends-on): Update condition.
13432
13433 2011-05-08  Bruno Haible  <bruno@clisp.org>
13434
13435         ioctl: Move AC_LIBOBJ invocations to module description.
13436         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
13437         invocations from here...
13438         * modules/ioctl (configure.ac): ... to here.
13439         (Depends-on): Update condition.
13440
13441 2011-05-08  Bruno Haible  <bruno@clisp.org>
13442
13443         imaxdiv: Move AC_LIBOBJ invocations to module description.
13444         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
13445         invocations from here...
13446         * modules/imaxdiv (configure.ac): ... to here.
13447
13448 2011-05-08  Bruno Haible  <bruno@clisp.org>
13449
13450         imaxabs: Move AC_LIBOBJ invocations to module description.
13451         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
13452         invocations from here...
13453         * modules/imaxabs (configure.ac): ... to here.
13454
13455 2011-05-08  Bruno Haible  <bruno@clisp.org>
13456
13457         getaddrinfo: Move AC_LIBOBJ invocations to module description.
13458         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
13459         AC_LIBOBJ invocations from here...
13460         * modules/getaddrinfo (configure.ac): ... to here.
13461         (Depends-on): Add conditions.
13462
13463 2011-05-08  Bruno Haible  <bruno@clisp.org>
13464
13465         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
13466         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
13467         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
13468         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
13469         (gl_PREREQ_INET_PTON): ... from here.
13470         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
13471         gl_PREREQ_INET_PTON here.
13472         (Depends-on): Update condition.
13473
13474 2011-05-08  Bruno Haible  <bruno@clisp.org>
13475
13476         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
13477         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
13478         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
13479         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
13480         (gl_PREREQ_INET_NTOP): ... from here.
13481         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
13482         gl_PREREQ_INET_NTOP here.
13483         (Depends-on): Update condition.
13484
13485 2011-05-08  Bruno Haible  <bruno@clisp.org>
13486
13487         iconv_open: Move AC_LIBOBJ invocations to module description.
13488         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
13489         AC_LIBOBJ invocations from here...
13490         * modules/iconv_open (configure.ac): ... to here.
13491
13492 2011-05-08  Bruno Haible  <bruno@clisp.org>
13493
13494         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
13495         If module 'iconv_open' is among the main modules and module
13496         'iconv_open-utf' is among the tests dependencies, then
13497         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
13498         return the special iconv_t values. Therefore iconv() and iconv_close()
13499         must support these special iconv_t values, already in lib, not only in
13500         tests.
13501         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
13502         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
13503         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
13504         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
13505         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
13506         (Depends-on): Add the dependencies of iconv_open-utf.
13507         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
13508         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
13509         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
13510
13511 2011-05-08  Bruno Haible  <bruno@clisp.org>
13512
13513         group-member: Move AC_LIBOBJ invocations to module description.
13514         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
13515         gl_PREREQ_GROUP_MEMBER invocations from here...
13516         * modules/group-member (configure.ac): ... to here.
13517
13518 2011-05-08  Bruno Haible  <bruno@clisp.org>
13519
13520         grantpt: Move AC_LIBOBJ invocations to module description.
13521         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
13522         invocations from here...
13523         * modules/grantpt (configure.ac): ... to here.
13524
13525 2011-05-08  Bruno Haible  <bruno@clisp.org>
13526
13527         glob: Move AC_LIBOBJ invocations to module description.
13528         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
13529         from here...
13530         * modules/glob (configure.ac): ... to here.
13531
13532 2011-05-08  Bruno Haible  <bruno@clisp.org>
13533
13534         getusershell: Move AC_LIBOBJ invocations to module description.
13535         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
13536         Move AC_LIBOBJ invocation from here...
13537         * modules/getusershell (configure.ac): ... to here.
13538         (Depends-on): Update condition.
13539
13540 2011-05-08  Bruno Haible  <bruno@clisp.org>
13541
13542         gettimeofday: Move AC_LIBOBJ invocations to module description.
13543         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
13544         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
13545         gl_PREREQ_GETTIMEOFDAY invocations from here...
13546         * modules/gettimeofday (configure.ac): ... to here.
13547
13548 2011-05-08  Bruno Haible  <bruno@clisp.org>
13549
13550         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
13551         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
13552         just gl_FUNC_TZSET.
13553         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
13554         (gl_FUNC_TZSET_CLOBBER): Remove actions.
13555         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
13556         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
13557
13558 2011-05-08  Bruno Haible  <bruno@clisp.org>
13559
13560         getsubopt: Move AC_LIBOBJ invocations to module description.
13561         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
13562         gl_PREREQ_GETSUBOPT invocations from here...
13563         * modules/getsubopt (configure.ac): ... to here.
13564
13565 2011-05-08  Bruno Haible  <bruno@clisp.org>
13566
13567         getpass-gnu: Move AC_LIBOBJ invocations to module description.
13568         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
13569         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
13570         * modules/getpass-gnu (configure.ac): ... to here.
13571
13572 2011-05-08  Bruno Haible  <bruno@clisp.org>
13573
13574         getpass: Move AC_LIBOBJ invocations to module description.
13575         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
13576         gl_PREREQ_GETPASS invocations from here...
13577         * modules/getpass (configure.ac): ... to here.
13578
13579 2011-05-08  Bruno Haible  <bruno@clisp.org>
13580
13581         getpagesize: Move AC_LIBOBJ invocations to module description.
13582         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
13583         from here...
13584         * modules/getpagesize (configure.ac): ... to here.
13585
13586 2011-05-08  Bruno Haible  <bruno@clisp.org>
13587
13588         getopt: Move AC_LIBOBJ invocations to module description.
13589         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
13590         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
13591         invocations from here...
13592         * modules/getopt-gnu (configure.ac): ... to here.
13593         * modules/getopt-posix (configure.ac): ... and here.
13594         (Depends-on): Update condition.
13595
13596 2011-05-08  Bruno Haible  <bruno@clisp.org>
13597
13598         getopt, argp: Respect rules for use of AC_LIBOBJ.
13599         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
13600         (gl_REPLACE_GETOPT_ALWAYS): New macro.
13601         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
13602         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
13603
13604 2011-05-08  Bruno Haible  <bruno@clisp.org>
13605
13606         getlogin_r: Move AC_LIBOBJ invocations to module description.
13607         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
13608         gl_PREREQ_GETLOGIN_R invocations from here...
13609         * modules/getlogin_r (configure.ac): ... to here.
13610
13611 2011-05-08  Bruno Haible  <bruno@clisp.org>
13612
13613         getlogin: Move AC_LIBOBJ invocations to module description.
13614         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
13615         here...
13616         * modules/getlogin (configure.ac): ... to here.
13617
13618 2011-05-08  Bruno Haible  <bruno@clisp.org>
13619
13620         getloadavg: Move AC_LIBOBJ invocations to module description.
13621         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
13622         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
13623         * modules/getloadavg (configure.ac): ... to here.
13624
13625 2011-05-08  Bruno Haible  <bruno@clisp.org>
13626
13627         gethrxtime: Move AC_LIBOBJ invocations to module description.
13628         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
13629         LIB_GETHRXTIME from here...
13630         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
13631         invocations from here...
13632         * modules/gethrxtime (configure.ac): ... to here.
13633
13634 2011-05-08  Bruno Haible  <bruno@clisp.org>
13635
13636         gethostname: Move AC_LIBOBJ invocations to module description.
13637         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
13638         gl_PREREQ_GETHOSTNAME invocations from here...
13639         * modules/gethostname (configure.ac): ... to here.
13640
13641 2011-05-08  Bruno Haible  <bruno@clisp.org>
13642
13643         getgroups: Move AC_LIBOBJ invocations to module description.
13644         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
13645         here...
13646         * modules/getgroups (configure.ac): ... to here.
13647
13648 2011-05-08  Bruno Haible  <bruno@clisp.org>
13649
13650         getdtablesize: Move AC_LIBOBJ invocations to module description.
13651         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
13652         invocation from here...
13653         * modules/getdtablesize (configure.ac): ... to here.
13654
13655 2011-05-08  Bruno Haible  <bruno@clisp.org>
13656
13657         getdomainname: Move AC_LIBOBJ invocations to module description.
13658         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
13659         gl_PREREQ_GETDOMAINNAME invocations from here...
13660         * modules/getdomainname (configure.ac): ... to here.
13661
13662 2011-05-08  Bruno Haible  <bruno@clisp.org>
13663
13664         getline: Move AC_LIBOBJ invocations to module description.
13665         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
13666         invocations from here...
13667         * modules/getline (configure.ac): ... to here.
13668
13669 2011-05-08  Bruno Haible  <bruno@clisp.org>
13670
13671         getline: Simplify.
13672         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
13673         It's already handled through the module dependency.
13674
13675 2011-05-08  Bruno Haible  <bruno@clisp.org>
13676
13677         getdelim: Move AC_LIBOBJ invocations to module description.
13678         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
13679         and gl_PREREQ_GETDELIM invocations from here...
13680         * modules/getdelim (configure.ac): ... to here.
13681         (Depends-on): Fix condition.
13682
13683 2011-05-08  Bruno Haible  <bruno@clisp.org>
13684
13685         getcwd: Move AC_LIBOBJ invocations to module description.
13686         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
13687         invocations from here...
13688         * modules/getcwd (configure.ac): ... to here.
13689
13690 2011-05-08  Bruno Haible  <bruno@clisp.org>
13691
13692         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
13693         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
13694         here...
13695         * modules/getcwd-lgpl (configure.ac): ... to here.
13696
13697 2011-05-07  Bruno Haible  <bruno@clisp.org>
13698
13699         crypto/gc: Move AC_LIBOBJ invocations to module description.
13700         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
13701         * modules/crypto/gc (configure.ac): ... to here.
13702
13703 2011-05-07  Bruno Haible  <bruno@clisp.org>
13704
13705         fwriting: Move AC_LIBOBJ invocations to module description.
13706         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
13707         here...
13708         * modules/fwriting (configure.ac): ... to here.
13709
13710 2011-05-07  Bruno Haible  <bruno@clisp.org>
13711
13712         fwritable: Move AC_LIBOBJ invocations to module description.
13713         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
13714         here...
13715         * modules/fwritable (configure.ac): ... to here.
13716
13717 2011-05-07  Bruno Haible  <bruno@clisp.org>
13718
13719         futimens: Move AC_LIBOBJ invocations to module description.
13720         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
13721         here...
13722         * modules/futimens (configure.ac): ... to here.
13723
13724 2011-05-07  Bruno Haible  <bruno@clisp.org>
13725
13726         ftruncate: Move AC_LIBOBJ invocations to module description.
13727         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
13728         gl_PREREQ_FTRUNCATE invocations from here...
13729         * modules/ftruncate (configure.ac): ... to here.
13730
13731 2011-05-07  Bruno Haible  <bruno@clisp.org>
13732
13733         fsync: Move AC_LIBOBJ invocations to module description.
13734         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
13735         invocations from here...
13736         * modules/fsync (configure.ac): ... to here.
13737
13738 2011-05-07  Bruno Haible  <bruno@clisp.org>
13739
13740         fsusage: Move AC_LIBOBJ invocations to module description.
13741         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
13742         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
13743         * modules/fsusage (configure.ac): ... to here.
13744
13745 2011-05-07  Bruno Haible  <bruno@clisp.org>
13746
13747         freopen: Move AC_LIBOBJ invocations to module description.
13748         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
13749         invocations from here...
13750         * modules/freopen (configure.ac): ... to here.
13751
13752 2011-05-07  Bruno Haible  <bruno@clisp.org>
13753
13754         free: Move AC_LIBOBJ invocations to module description.
13755         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
13756         invocations from here...
13757         * modules/free (configure.ac): ... to here.
13758
13759 2011-05-07  Bruno Haible  <bruno@clisp.org>
13760
13761         freadable: Move AC_LIBOBJ invocations to module description.
13762         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
13763         here...
13764         * modules/freadable (configure.ac): ... to here.
13765
13766 2011-05-07  Bruno Haible  <bruno@clisp.org>
13767
13768         fpurge: Move AC_LIBOBJ invocations to module description.
13769         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
13770         invocations from here...
13771         * modules/fpurge (configure.ac): ... to here.
13772
13773 2011-05-07  Bruno Haible  <bruno@clisp.org>
13774
13775         fpending: Move AC_LIBOBJ invocations to module description.
13776         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
13777         gl_FUNC_FPENDING.
13778         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
13779         invocations from here...
13780         * modules/fpending (configure.ac): ... to here.
13781
13782 2011-05-07  Bruno Haible  <bruno@clisp.org>
13783
13784         fopen: Move AC_LIBOBJ invocations to module description.
13785         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
13786         invocations from here...
13787         * modules/fopen (configure.ac): ... to here.
13788
13789 2011-05-07  Bruno Haible  <bruno@clisp.org>
13790
13791         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
13792         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
13793         gl_FUNC_FNMATCH_POSIX.
13794         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
13795         invocations from here...
13796         * modules/fnmatch (configure.ac): ... to here.
13797         * modules/fnmatch-gnu (configure.ac): ... and here.
13798
13799 2011-05-07  Bruno Haible  <bruno@clisp.org>
13800
13801         flock: Move AC_LIBOBJ invocations to module description.
13802         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
13803         invocations from here...
13804         * modules/flock (configure.ac): ... to here.
13805
13806 2011-05-07  Bruno Haible  <bruno@clisp.org>
13807
13808         fileblocks: Move AC_LIBOBJ invocations to module description.
13809         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
13810         gl_PREREQ_FILEBLOCKS invocations from here...
13811         * modules/fileblocks (configure.ac): ... to here.
13812
13813 2011-05-06  Bruno Haible  <bruno@clisp.org>
13814
13815         fflush: Move AC_LIBOBJ invocations to module description.
13816         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
13817         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
13818         invocations from here...
13819         * modules/fflush (configure.ac): ... to here.
13820
13821 2011-05-06  Bruno Haible  <bruno@clisp.org>
13822
13823         fdopendir: Move AC_LIBOBJ invocations to module description.
13824         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
13825         here...
13826         * modules/fdopendir (configure.ac): ... to here.
13827         (Depends-on): Improve conditions.
13828
13829 2011-05-06  Bruno Haible  <bruno@clisp.org>
13830
13831         _Exit: Move AC_LIBOBJ invocations to module description.
13832         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
13833         invocations from here...
13834         * modules/_Exit (configure.ac): ... to here.
13835
13836 2011-05-21  Bruno Haible  <bruno@clisp.org>
13837
13838         euidaccess: Respect rules for use of AC_LIBOBJ.
13839         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
13840         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
13841         from here...
13842         * modules/euidaccess (configure.ac): ... to here.
13843
13844 2011-05-06  Bruno Haible  <bruno@clisp.org>
13845
13846         error: Move AC_LIBOBJ invocations to module description.
13847         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
13848         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
13849         invocations from here...
13850         * modules/error (configure.ac): ... to here.
13851
13852 2011-05-06  Bruno Haible  <bruno@clisp.org>
13853
13854         duplocale: Move AC_LIBOBJ invocations to module description.
13855         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
13856         gl_PREREQ_DUPLOCALE invocations from here...
13857         * modules/duplocale (configure.ac): ... to here.
13858
13859 2011-05-05  Bruno Haible  <bruno@clisp.org>
13860
13861         dirfd: Move AC_LIBOBJ invocations to module description.
13862         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
13863         gl_FUNC_DIRFD.
13864         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
13865         here...
13866         * modules/dirfd (configure.ac): ... to here.
13867         (Depends-on): Fix condition.
13868
13869 2011-05-05  Bruno Haible  <bruno@clisp.org>
13870
13871         chown: Respect rules for use of AC_LIBOBJ.
13872         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
13873         * modules/chown (configure.ac): ... to here.
13874
13875 2011-05-05  Bruno Haible  <bruno@clisp.org>
13876
13877         chdir-long: Move AC_LIBOBJ invocations to module description.
13878         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
13879         gl_PREREQ_CHDIR_LONG invocations from here...
13880         * modules/chdir-long (configure.ac): ... to here.
13881
13882 2011-05-05  Bruno Haible  <bruno@clisp.org>
13883
13884         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
13885         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
13886         from here...
13887         * modules/canonicalize-lgpl (configure.ac): ... to here.
13888
13889 2011-05-05  Bruno Haible  <bruno@clisp.org>
13890
13891         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
13892         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
13893         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
13894         REPLACE_CALLOC.
13895         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
13896         * modules/calloc-gnu (configure.ac): Likewise.
13897
13898 2011-05-05  Bruno Haible  <bruno@clisp.org>
13899
13900         btowc: Move AC_LIBOBJ invocations to module description.
13901         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
13902         invocations from here...
13903         * modules/btowc (configure.ac): ... to here.
13904
13905 2011-05-21  Bruno Haible  <bruno@clisp.org>
13906
13907         atexit: Move AC_LIBOBJ invocations to module description.
13908         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
13909         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
13910         here...
13911         * modules/atexit (configure.ac): ... to here.
13912
13913 2011-05-05  Bruno Haible  <bruno@clisp.org>
13914
13915         atoll: Move AC_LIBOBJ invocations to module description.
13916         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
13917         invocations from here...
13918         * modules/atoll (configure.ac): ... to here.
13919
13920 2011-05-05  Bruno Haible  <bruno@clisp.org>
13921
13922         argz: Move AC_LIBOBJ invocations to module description.
13923         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
13924         * modules/argz (configure.ac): ... to here.
13925
13926 2011-05-05  Bruno Haible  <bruno@clisp.org>
13927
13928         alphasort: Move AC_LIBOBJ invocations to module description.
13929         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
13930         gl_PREREQ_ALPHASORT invocations from here...
13931         * modules/alphasort (configure.ac): ... to here.
13932
13933 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
13934
13935         verify: new macro verify_expr; verify_true deprecated
13936         * NEWS: Mention this.
13937         * doc/verify.texi (Compile-time Assertions): Document this.
13938         * lib/verify.h (verify_true): Deprecate.
13939         (verify_expr): New macro.
13940         * tests/test-verify.c (function): Test verify_expr.
13941
13942 2011-06-14  Jim Meyering  <meyering@redhat.com>
13943
13944         init.sh: give more portable redirection-related advice in a comment
13945         * tests/init.sh (stderr_fileno_): Update the advice in comments.
13946         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
13947         for lots of discussion.  Stefano Lattarini suggested the solution
13948         of putting "9>&2" after the command.  Reported by Bruno Haible.
13949
13950 2011-06-13  Bruno Haible  <bruno@clisp.org>
13951
13952         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
13953         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
13954         'none'.
13955
13956 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
13957
13958         ftoastr: use strtof only if HAVE_STRTOF
13959         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
13960         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
13961         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
13962         * modules/ftoastr (configure.ac): Check for strtof.
13963
13964 2011-06-13  Bruno Haible  <bruno@clisp.org>
13965
13966         gnulib-tool: Addendum to 2011-06-08 commit.
13967         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
13968         and --witness-c-macro have been given, augment AM_CPPFLAGS.
13969
13970 2011-06-13  Bruno Haible  <bruno@clisp.org>
13971
13972         fseeko: Provide a non-inline replacement of fseek().
13973         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
13974         * modules/fseeko (Depends-on): Add fseek.
13975         * modules/fseek (License): Change to LGPLv2+.
13976
13977 2011-06-13  Bruno Haible  <bruno@clisp.org>
13978
13979         ftello: Provide a non-inline replacement of ftell().
13980         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
13981         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
13982         not have ftello() (such as on mingw).
13983         * modules/ftello (Depends-on): Add ftell.
13984         * modules/ftell (License): Change to LGPLv2+.
13985
13986 2011-05-07  Bruno Haible  <bruno@clisp.org>
13987
13988         ftell: Move AC_LIBOBJ invocations to module description.
13989         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
13990         * modules/ftell (configure.ac): ... to here.
13991
13992 2011-05-07  Bruno Haible  <bruno@clisp.org>
13993
13994         ftello: Respect rules for use of AC_LIBOBJ.
13995         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
13996         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
13997         here...
13998         * modules/ftello (configure.ac): ... to here.
13999
14000 2011-05-07  Bruno Haible  <bruno@clisp.org>
14001
14002         fseeko: Simplify.
14003         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
14004         (gl_FUNC_FSEEKO): Inline it here.
14005
14006 2011-05-07  Bruno Haible  <bruno@clisp.org>
14007
14008         fseek: Move AC_LIBOBJ invocations to module description.
14009         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
14010         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
14011         * modules/fseek (configure.ac): ... to here.
14012
14013 2011-05-07  Bruno Haible  <bruno@clisp.org>
14014
14015         fseek: Respect rules for use of AC_LIBOBJ.
14016         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
14017         here...
14018         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
14019
14020 2011-05-07  Bruno Haible  <bruno@clisp.org>
14021
14022         fseeko: Respect rules for use of AC_LIBOBJ.
14023         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
14024         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
14025         here...
14026         * modules/fseeko (configure.ac): ... to here.
14027
14028 2011-06-13  Bruno Haible  <bruno@clisp.org>
14029
14030         gnulib-tool: Allow comments in the 'Depends-on' section.
14031         * doc/gnulib.texi (Module description): Mention comment syntax in the
14032         Depends-on section.
14033         * gnulib-tool (func_get_dependencies): Filter out comment lines.
14034
14035 2011-06-13  Bruno Haible  <bruno@clisp.org>
14036
14037         file-set.h: guard __attibute__ use, now that it's not always defined
14038         * lib/file-set.h (record_file): Use __attribute__ only with compiler
14039         versions that support it.  This fixes a coreutils build failure with
14040         the vendor cc on HP-UX 11.31.
14041
14042 2011-06-12  Bruno Haible  <bruno@clisp.org>
14043
14044         acl: Add support for HP-UX >= 11.11 JFS ACLs.
14045         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
14046         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
14047         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
14048         (acl, aclsort): New declarations.
14049         (aclv_nontrivial): New declaration.
14050         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
14051         (file_has_acl): Read also the second kind of HP-UX ACLs.
14052         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
14053         kind of HP-UX ACLs if the first kind fails.
14054         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
14055         second kind of HP-UX ACLs.
14056         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
14057         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
14058         agree.
14059         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
14060         hpuxjfs.
14061         Handle hpuxjfs.
14062         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
14063         hpuxjfs.
14064         Handle hpuxjfs.
14065         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
14066         (func_test_same_acls): Use both lsacl and getacl.
14067         Handle hpuxjfs.
14068         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
14069         (func_test_same_acls): Use both lsacl and getacl.
14070         Handle hpuxjfs.
14071
14072 2011-06-12  Bruno Haible  <bruno@clisp.org>
14073
14074         acl: Complete the 2010-08-10 fix.
14075         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
14076         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
14077         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
14078         explicitly.
14079         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
14080         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
14081
14082 2011-06-12  Bruno Haible  <bruno@clisp.org>
14083
14084         spawn-pipe tests: Comments.
14085         * tests/test-spawn-pipe-child.c (main): Update comment.
14086         Reported by James Youngman <jay@gnu.org>.
14087
14088 2011-06-11  James Youngman  <jay@gnu.org>
14089
14090         New module 'stat-size'.
14091         * modules/stat-size: New module.  Provides macros for accessing
14092         file size information in instances of struct stat.  Depends on the
14093         fileblocks module because it calls st_blocks.
14094         * lib/stat-size.h: New file, adapted from coreutils' system.h.
14095         * doc/gnulib.texi: Include stat-size.texi.
14096         * doc/stat-size.texi: Documentation for this module.
14097         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
14098         * m4/fileblocks.m4: Mention that stat-size depends on the call to
14099         AC_STRUCT_ST_BLOCKS.
14100
14101 2011-06-09  Bruno Haible  <bruno@clisp.org>
14102
14103         thread: Support pthreads-win32.
14104         * lib/glthread/thread.h (gl_thread_self): Define differently on
14105         pthreads-win32.
14106         (gl_null_thread): New declaration.
14107         (gl_thread_self_pointer): New macro.
14108         * lib/glthread/thread.c (gl_null_thread): New constant.
14109         * tests/test-lock.c: Use gl_thread_self_pointer instead of
14110         gl_thread_self.
14111         * tests/test-tls.c: Likewise.
14112         Suggested by Paul Eggert. Reported by Eric Blake.
14113
14114 2011-06-09  Bruno Haible  <bruno@clisp.org>
14115
14116         thread: Fix confusion between NULL and 0.
14117         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
14118         Reported by Paul Eggert.
14119
14120 2011-06-09  Bruno Haible  <bruno@clisp.org>
14121
14122         spawn-pipe tests: Avoid test failure on HP-UX 11.
14123         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
14124         is closed.
14125
14126 2011-06-09  Bruno Haible  <bruno@clisp.org>
14127
14128         acl tests: Fix compilation error on HP-UX 11.
14129         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
14130
14131 2011-06-09  Bruno Haible  <bruno@clisp.org>
14132
14133         rmdir: Avoid test failure on HP-UX 10.20.
14134         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
14135         EEXIST.
14136
14137 2011-06-08  Eric Blake  <eblake@redhat.com>
14138
14139         perror: fix test on mingw
14140         * modules/perror-tests (Depends-on): Add dup2.
14141
14142         strerror_r-posix: fix on MacOS
14143         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
14144         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
14145         logic bug.
14146         * lib/strerror_r.c (strerror_r): Fix the bug.
14147         * lib/strerror.c (strerror): Likewise.
14148         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
14149         problem.
14150         * doc/posix-functions/strerror.texi (strerror): Likewise.
14151         * doc/posix-functions/perror.texi (perror): Likewise.
14152         * tests/test-strerror.c (main): Enhance test.
14153         * tests/test-strerror_r.c (main): Likewise.
14154
14155 2011-06-08  Bruno Haible  <bruno@clisp.org>
14156
14157         gnulib-tool: Better isolation between different gnulib-tool invocations.
14158         * gnulib-tool: New option --witness-c-macro.
14159         (witness_c_macro): New variable.
14160         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
14161         AM_CPPFLAGS define it as a C macro.
14162         (func_emit_tests_Makefile_am): Likewise.
14163         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
14164         read it from there.
14165         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
14166         m4_define, not AC_DEFUN.
14167         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
14168         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
14169         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
14170         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
14171         s|...|...|, to substitute the values of the GNULIB_* module indicator
14172         variables.
14173         * modules/dirent (Makefile.am): Likewise.
14174         * modules/fcntl-h (Makefile.am): Likewise.
14175         * modules/iconv-h (Makefile.am): Likewise.
14176         * modules/langinfo (Makefile.am): Likewise.
14177         * modules/locale (Makefile.am): Likewise.
14178         * modules/math (Makefile.am): Likewise.
14179         * modules/netdb (Makefile.am): Likewise.
14180         * modules/poll-h (Makefile.am): Likewise.
14181         * modules/pty (Makefile.am): Likewise.
14182         * modules/search (Makefile.am): Likewise.
14183         * modules/signal (Makefile.am): Likewise.
14184         * modules/spawn (Makefile.am): Likewise.
14185         * modules/stdio (Makefile.am): Likewise.
14186         * modules/stdlib (Makefile.am): Likewise.
14187         * modules/string (Makefile.am): Likewise.
14188         * modules/sys_ioctl (Makefile.am): Likewise.
14189         * modules/sys_select (Makefile.am): Likewise.
14190         * modules/sys_socket (Makefile.am): Likewise.
14191         * modules/sys_stat (Makefile.am): Likewise.
14192         * modules/sys_times (Makefile.am): Likewise.
14193         * modules/sys_utsname (Makefile.am): Likewise.
14194         * modules/sys_wait (Makefile.am): Likewise.
14195         * modules/termios (Makefile.am): Likewise.
14196         * modules/time (Makefile.am): Likewise.
14197         * modules/unistd (Makefile.am): Likewise.
14198         * modules/wchar (Makefile.am): Likewise.
14199
14200 2011-06-08  Eric Blake  <eblake@redhat.com>
14201
14202         strerror: simplify replacement
14203         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
14204         * modules/strerror (configure.ac): No prereqs needed here...
14205         * modules/strerror-override (configure.ac): ...but this needs it.
14206         (Files): Add file for needed prereq macro.
14207
14208 2011-06-08  Bruno Haible  <bruno@clisp.org>
14209
14210         strerror_r-posix: Tweaks.
14211         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
14212         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
14213         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
14214         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
14215         (gl_FUNC_STRERROR_R): ... to here.
14216         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
14217
14218 2011-06-07  Eric Blake  <eblake@redhat.com>
14219
14220         perror: document fixed bugs
14221         * doc/posix-functions/perror.texi (perror): Document recent
14222         patches.
14223
14224 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
14225
14226         stat-time: get_stat_birthtime failure is better-defined
14227         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
14228         return a timestamp whose tv_sec and tv_nsec values are both -1.
14229         Previously, the spec said only that the tv_nsec value was negative.
14230         This upward-compatible change simplifies GNU tar a bit.
14231
14232 2011-06-07  Eric Blake  <eblake@redhat.com>
14233
14234         strerror_r-posix: work around cygwin 1.7.9
14235         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
14236         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
14237         bug without replacing strerror_r.
14238         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
14239         strerror_r is buggy, but without requiring strerror_r compilation.
14240         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
14241
14242         test-perror: relax test to ignore cygwin bug
14243         * tests/test-perror2.c (main): Relax test on requiring detection
14244         of stream errors, and use unbuffered stream.
14245         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
14246         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
14247         * doc/posix-functions/fputc.texi (fputc): Likewise.
14248         * doc/posix-functions/fputs.texi (fputs): Likewise.
14249         * doc/posix-functions/fputws.texi (fputws): Likewise.
14250         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
14251         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
14252         * doc/posix-functions/getopt.texi (getopt): Likewise.
14253         * doc/posix-functions/perror.texi (perror): Likewise.
14254         * doc/posix-functions/printf.texi (printf): Likewise.
14255         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
14256         * doc/posix-functions/psignal.texi (psignal): Likewise.
14257         * doc/posix-functions/putc.texi (putc): Likewise.
14258         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
14259         Likewise.
14260         * doc/posix-functions/putchar.texi (putchar): Likewise.
14261         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
14262         Likewise.
14263         * doc/posix-functions/puts.texi (puts): Likewise.
14264         * doc/posix-functions/putwc.texi (putwc): Likewise.
14265         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
14266         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
14267         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
14268         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
14269         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
14270         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
14271         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
14272         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
14273
14274 2011-05-22  Bruno Haible  <bruno@clisp.org>
14275
14276         strerror: Move AC_LIBOBJ invocations to module description.
14277         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
14278         gl_PREREQ_STRERROR invocations from here...
14279         * modules/strerror (configure.ac): ... to here.
14280
14281 2011-05-21  Bruno Haible  <bruno@clisp.org>
14282
14283         perror: Use common idiom.
14284         * modules/perror (configure.ac): Reorder statements.
14285
14286 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
14287
14288         tests: fix usage message in 'mktempd_'
14289         * tests/init.sh (mktempd_): In the usage message, use literal
14290         'mktempd_', not '$ME' (which is even undefined), as the name of
14291         the subroutine.
14292
14293 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
14294
14295         tests init: new function 'fatal_', for hard errors
14296         Before this patch, the only way offered by tests/init.sh to
14297         properly signal a hard error was the `framework_failure_'
14298         function.  But the error message issued by that function,
14299         as its name would suggest, refers to a set-up failure in the
14300         testsuite, while hard errors can obviously also be due to
14301         other reasons.  The best way to fix this inconsistency is to
14302         introduce a new function with a more general error message.
14303         * tests/init.sh (fatal_): New function.
14304
14305 2011-06-06  Eric Blake  <eblake@redhat.com>
14306
14307         canonicalize-lgpl: use common idiom
14308         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
14309         over newer POSIX -Rf.
14310         Reported by Bruno Haible.
14311
14312         canonicalize-lgpl: work around AIX realpath bug
14313         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
14314         * doc/posix-functions/realpath.texi (realpath): Document it.
14315         Reported by Bruno Haible.
14316
14317         strerror: work around FreeBSD bug
14318         * lib/strerror.c (strerror): Special case 0.
14319         Reported by Bruno Haible.
14320
14321         strerror-override: avoid bloating errno module
14322         * modules/errno (Files, configure.ac): Move replacement strings...
14323         * modules/strerror-override: ...to new module.
14324         * modules/strerror (Depends-on): Add strerror-override.
14325         * modules/strerror_r-posix (Depends-on): Likewise.
14326         * MODULES.html.sh: Document new module.
14327         Reported by Bruno Haible.
14328
14329 2011-06-06  Bruno Haible  <bruno@clisp.org>
14330
14331         spawn-pipe tests: Rename program.
14332         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
14333         * tests/test-spawn-pipe-child.c: Update comment.
14334         * tests/test-spawn-pipe.sh: Update.
14335         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
14336
14337         spawn-pipe tests: Link the child program only against libc.
14338         * tests/test-spawn-pipe-child.c: New file, extracted from
14339         tests/test-spawn-pipe.c.
14340         (main): Expect only one argument.
14341         (is_open): New function, copied from tests/test-pipe.c.
14342         * tests/test-spawn-pipe.c: Don't include <errno.h>.
14343         (child_main): Remove function.
14344         (test_pipe): Pass only one argument to the child program.
14345         (main): Remove child process code. Expect the child program's name as
14346         first argument.
14347         * tests/test-spawn-pipe.sh: Pass the child program's name as first
14348         argument.
14349         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
14350         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
14351         test-spawn-pipe-child against no libraries.
14352
14353 2011-06-06  Bruno Haible  <bruno@clisp.org>
14354
14355         careadlinkat: Avoid mismatch between ssize_t and int.
14356         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
14357         * lib/careadlinkat.c (careadlinkatcwd): Define always.
14358
14359 2011-06-06  Jim Meyering  <meyering@redhat.com>
14360
14361         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
14362         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
14363         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
14364
14365 2011-06-05  Bruno Haible  <bruno@clisp.org>
14366
14367         ansi-c++-opt: Interoperability with libtool.
14368         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
14369         set the variable to "no", not to ":".
14370         * NEWS: Mention the change.
14371
14372 2011-06-05  Bruno Haible  <bruno@clisp.org>
14373
14374         acl: Fix test failure on AIX 7.
14375         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
14376         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
14377
14378 2011-06-05  Bruno Haible  <bruno@clisp.org>
14379
14380         pipe-filter-ii: Fix test failure on AIX and IRIX.
14381         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
14382         with EAGAIN, retry with a smaller buffer size.
14383
14384 2011-06-05  Bruno Haible  <bruno@clisp.org>
14385
14386         localename: Fix link dependencies.
14387         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
14388         * modules/localename-tests (Makefile.am): Link test-localename with
14389         $(LIBTHREAD).
14390
14391 2011-06-05  Bruno Haible  <bruno@clisp.org>
14392
14393         error: Avoid gcc warning.
14394         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
14395
14396 2011-06-05  Bruno Haible  <bruno@clisp.org>
14397
14398         unsetenv: Avoid gcc warning.
14399         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
14400
14401 2011-06-05  Bruno Haible  <bruno@clisp.org>
14402
14403         setenv: Avoid gcc warning.
14404         * lib/setenv.c (setenv): Provide declaration if system lacks it.
14405
14406 2011-06-05  Bruno Haible  <bruno@clisp.org>
14407
14408         sys_select: Ensure memset is declared also on AIX 7.
14409         * lib/sys_select.in.h: Include <string.h> also on AIX.
14410         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
14411         self-contained also on AIX 7.1.
14412
14413 2011-06-04  Jim Meyering  <meyering@redhat.com>
14414
14415         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
14416         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
14417         function name, "error".
14418         (_gl_translatable_diag_func_re): New configurable variable.
14419
14420 2011-06-04  Bruno Haible  <bruno@clisp.org>
14421
14422         getopt: Avoid gcc warning.
14423         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
14424
14425 2011-06-04  Bruno Haible  <bruno@clisp.org>
14426
14427         strerror_r: Fix comments.
14428         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
14429         commit.
14430
14431 2011-06-04  Bruno Haible  <bruno@clisp.org>
14432
14433         perror: Fix compilation error.
14434         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
14435         Undefine fprintf, not sprintf.
14436         * modules/perror (Depends-on): Remove intprops, verify.
14437
14438 2011-06-04  Bruno Haible  <bruno@clisp.org>
14439
14440         setlocale: Enable replacement on Cygwin 1.5.
14441         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
14442         Cygwin 1.5.x.
14443         * doc/posix-functions/setlocale.texi: Mention that the problem with the
14444         LC_CTYPE category also exists on Cygwin 1.5.x.
14445
14446 2011-06-04  Bruno Haible  <bruno@clisp.org>
14447
14448         strerror-override: Don't disable symbol renamings.
14449         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
14450         * lib/strerror-override.c: Include config.h.
14451         (strerror_override): Don't undefine.
14452
14453 2011-06-03  Bruno Haible  <bruno@clisp.org>
14454
14455         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
14456         * lib/localename.h: Update copyright header.
14457         * lib/localename.c: Likewise.
14458         * lib/relocatable.h: Likewise.
14459         * lib/relocatable.c: Likewise.
14460
14461 2011-06-02  Bruno Haible  <bruno@clisp.org>
14462
14463         doc: Fix a module name.
14464         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
14465
14466 2011-06-02  Bruno Haible  <bruno@clisp.org>
14467
14468         pipe2: Remove dependency on 'nonblocking' module.
14469         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
14470         O_NONBLOCK is defined by gnulib.
14471         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
14472         is zero.
14473         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
14474         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
14475         defined by gnulib.
14476         (get_nonblocking_flag): New function.
14477         (main): Test O_NONBLOCK flag only if it is nonzero.
14478         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
14479
14480 2011-06-03  Jim Meyering  <meyering@redhat.com>
14481
14482         maint: three new prohibit-header-without-use rules
14483         Prohibit use of cloexec.h, posixver.h, same.h without use.
14484         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
14485         (sc_prohibit_posixver_without_use): Likewise.
14486         (sc_prohibit_same_without_use): Likewise.
14487
14488 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
14489
14490         allocator: 'die' routine is now given requested size
14491         * lib/allocator.h (struct allocator.die): New size arg.
14492         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
14493         If the actual problem is an ssize_t limitation, not a size_t or
14494         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
14495
14496 2011-06-01  Eric Blake  <eblake@redhat.com>
14497
14498         strerror: drop strerror_r dependency
14499         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
14500         * lib/strerror-override.c (strerror_override): ...to new file.
14501         * lib/strerror-override.h: Add prototype.
14502         * lib/strerror-impl.h: Delete.
14503         * lib/strerror.c (strerror): New implementation.
14504         * modules/errno (Files): Add new files.
14505         (configure.ac): Compile new file as appropriate.
14506         * modules/strerror (Files): Drop unused file.
14507         (Depends-on): Drop strerror_r-posix.
14508         * MODULES.html.sh: Document strerror_r-posix.
14509         Requested by Sam Steingold.
14510
14511         perror: call strerror_r directly
14512         * modules/perror (Files): Drop strerror-impl.h.
14513         * lib/perror.c (perror): Use our own stack buffer, rather than
14514         calling a wrapper that uses static storage.
14515         * doc/posix-functions/perror.texi (perror): Document a limitation
14516         of our replacement.
14517
14518         strerror_r: fix includes for FreeBSD
14519         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
14520         since we use abort on some platforms.
14521         Reported by Matthias Bolte.
14522
14523 2011-05-31  Bruno Haible  <bruno@clisp.org>
14524
14525         Fix link errors in tests: openat-die uses gettext-h.
14526         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
14527         against $(LIBINTL).
14528         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
14529         against $(LIBINTL).
14530         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
14531         $(LIBINTL).
14532         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
14533         against $(LIBINTL).
14534         * modules/linkat-tests (Makefile.am): Link test-linkat against
14535         $(LIBINTL).
14536         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
14537         $(LIBINTL).
14538         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
14539         against $(LIBINTL).
14540         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
14541         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
14542         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
14543         $(LIBINTL).
14544         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
14545         $(LIBINTL).
14546         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
14547         $(LIBINTL).
14548         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14549
14550 2011-05-31  Bruno Haible  <bruno@clisp.org>
14551
14552         Fix link errors in tests: wait-process uses gettext-h.
14553         * modules/nonblocking-pipe-tests (Makefile.am): Set
14554         test_nonblocking_pipe_main_LDADD.
14555         * modules/nonblocking-socket-tests (Makefile.am): Link
14556         test-nonblocking-socket-main against $(LIBINTL).
14557         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14558
14559 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
14560
14561         assert-h: work around 'verify' incompatibility
14562         * lib/verify.h: Use @...@ directives, not ifdef.
14563         * modules/assert-h (assert.h): Implement the directives.
14564         (assert.h): Substitute the symbol-prefix more consistently.
14565
14566 2011-05-29  Jim Meyering  <meyering@redhat.com>
14567
14568         trim: remove three superfluous assignments
14569         * lib/trim.c (trim2): Remove three superfluous assignments
14570         and correct brace positioning.
14571
14572 2011-05-29  Bruno Haible  <bruno@clisp.org>
14573
14574         wctype-h: Avoid namespace pollution on Solaris 2.6.
14575         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
14576         identifiers.
14577         * doc/posix-headers/wctype.texi: Mention the problem.
14578         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14579
14580 2011-05-28  Jim Meyering  <meyering@redhat.com>
14581
14582         parse-datetime.y: accommodate -Wstrict-overflow
14583         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
14584         placate -Wstrict-overflow.
14585
14586         trim: avoid a warning from -O2 -Wstrict-overflow
14587         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
14588
14589 2011-05-29  Bruno Haible  <bruno@clisp.org>
14590
14591         gnulib-tool: Fix bug in yesterday's commit.
14592         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
14593         twice.
14594
14595 2011-05-29  Bruno Haible  <bruno@clisp.org>
14596
14597         Allow multiple gnulib generated include files to be combined.
14598         * gnulib-tool (func_compute_include_guard_prefix): New function.
14599         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
14600         ${gl_include_guard_prefix} references.
14601         (func_import, func_create_testdir): Invoke
14602         func_compute_include_guard_prefix.
14603         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
14604         * lib/ctype.in.h: Likewise.
14605         * lib/dirent.in.h: Likewise.
14606         * lib/errno.in.h: Likewise.
14607         * lib/fcntl.in.h: Likewise.
14608         * lib/float.in.h: Likewise.
14609         * lib/getopt.in.h: Likewise.
14610         * lib/iconv.in.h: Likewise.
14611         * lib/langinfo.in.h: Likewise.
14612         * lib/locale.in.h: Likewise.
14613         * lib/math.in.h: Likewise.
14614         * lib/netdb.in.h: Likewise.
14615         * lib/netinet_in.in.h: Likewise.
14616         * lib/poll.in.h: Likewise.
14617         * lib/pthread.in.h: Likewise.
14618         * lib/pty.in.h: Likewise.
14619         * lib/sched.in.h: Likewise.
14620         * lib/se-selinux.in.h: Likewise.
14621         * lib/search.in.h: Likewise.
14622         * lib/signal.in.h: Likewise.
14623         * lib/spawn.in.h: Likewise.
14624         * lib/stdarg.in.h: Likewise.
14625         * lib/stddef.in.h: Likewise.
14626         * lib/stdint.in.h: Likewise.
14627         * lib/stdio.in.h: Likewise.
14628         * lib/stdlib.in.h: Likewise.
14629         * lib/string.in.h: Likewise.
14630         * lib/strings.in.h: Likewise.
14631         * lib/sys_file.in.h: Likewise.
14632         * lib/sys_ioctl.in.h: Likewise.
14633         * lib/sys_select.in.h: Likewise.
14634         * lib/sys_socket.in.h: Likewise.
14635         * lib/sys_stat.in.h: Likewise.
14636         * lib/sys_time.in.h: Likewise.
14637         * lib/sys_times.in.h: Likewise.
14638         * lib/sys_uio.in.h: Likewise.
14639         * lib/sys_utsname.in.h: Likewise.
14640         * lib/sys_wait.in.h: Likewise.
14641         * lib/sysexits.in.h: Likewise.
14642         * lib/termios.in.h: Likewise.
14643         * lib/time.in.h: Likewise.
14644         * lib/unistd.in.h: Likewise.
14645         * lib/wchar.in.h: Likewise.
14646         * lib/wctype.in.h: Likewise.
14647         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
14648         * modules/ctype (Makefile.am): Likewise.
14649         * modules/dirent (Makefile.am): Likewise.
14650         * modules/errno (Makefile.am): Likewise.
14651         * modules/fcntl-h (Makefile.am): Likewise.
14652         * modules/float (Makefile.am): Likewise.
14653         * modules/getopt-posix (Makefile.am): Likewise.
14654         * modules/iconv-h (Makefile.am): Likewise.
14655         * modules/langinfo (Makefile.am): Likewise.
14656         * modules/locale (Makefile.am): Likewise.
14657         * modules/math (Makefile.am): Likewise.
14658         * modules/netdb (Makefile.am): Likewise.
14659         * modules/netinet_in (Makefile.am): Likewise.
14660         * modules/poll-h (Makefile.am): Likewise.
14661         * modules/pthread (Makefile.am): Likewise.
14662         * modules/pty (Makefile.am): Likewise.
14663         * modules/sched (Makefile.am): Likewise.
14664         * modules/search (Makefile.am): Likewise.
14665         * modules/selinux-h (Makefile.am): Likewise.
14666         * modules/signal (Makefile.am): Likewise.
14667         * modules/spawn (Makefile.am): Likewise.
14668         * modules/stdarg (Makefile.am): Likewise.
14669         * modules/stddef (Makefile.am): Likewise.
14670         * modules/stdint (Makefile.am): Likewise.
14671         * modules/stdio (Makefile.am): Likewise.
14672         * modules/stdlib (Makefile.am): Likewise.
14673         * modules/string (Makefile.am): Likewise.
14674         * modules/strings (Makefile.am): Likewise.
14675         * modules/sys_file (Makefile.am): Likewise.
14676         * modules/sys_ioctl (Makefile.am): Likewise.
14677         * modules/sys_select (Makefile.am): Likewise.
14678         * modules/sys_socket (Makefile.am): Likewise.
14679         * modules/sys_stat (Makefile.am): Likewise.
14680         * modules/sys_time (Makefile.am): Likewise.
14681         * modules/sys_times (Makefile.am): Likewise.
14682         * modules/sys_uio (Makefile.am): Likewise.
14683         * modules/sys_utsname (Makefile.am): Likewise.
14684         * modules/sys_wait (Makefile.am): Likewise.
14685         * modules/sysexits (Makefile.am): Likewise.
14686         * modules/termios (Makefile.am): Likewise.
14687         * modules/time (Makefile.am): Likewise.
14688         * modules/unistd (Makefile.am): Likewise.
14689         * modules/wchar (Makefile.am): Likewise.
14690         * modules/wctype-h (Makefile.am): Likewise.
14691         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
14692
14693 2011-05-29  Bruno Haible  <bruno@clisp.org>
14694
14695         assert-h: Allow multiple gnulib generated replacements to coexist.
14696         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
14697
14698 2011-05-29  Bruno Haible  <bruno@clisp.org>
14699
14700         argp: Allow coexistence with strerror_r-posix module.
14701         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
14702         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
14703         by gnulib's <string.h> replacement), assume it has the POSIX signature,
14704         not the glibc signature.
14705
14706 2011-05-28  Bruno Haible  <bruno@clisp.org>
14707
14708         gnulib-tool: Alternative structure of testdirs, similar to --import.
14709         * gnulib-tool: New option --single-configure.
14710         (func_usage): Document it.
14711         (single_configure): New variable.
14712         (func_modules_transitive_closure_separately,
14713         func_modules_transitive_closure_separately,
14714         func_determine_use_libtests, func_modules_add_dummy_separately,
14715         func_modules_to_filelist_separately): New functions, extracted from
14716         func_import.
14717         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
14718         (func_import): Use the new functions.
14719         (func_create_testdir): Set final_modules. Handle $single_configure =
14720         true case.
14721
14722 2011-05-28  Bruno Haible  <bruno@clisp.org>
14723
14724         getloadavg: Remove an unreliable safety check.
14725         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
14726         getloadavg.c is in place.
14727         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
14728         Reported by Sam Steingold <sds@gnu.org>.
14729
14730 2011-05-28  Bruno Haible  <bruno@clisp.org>
14731
14732         doc: Cleanup yet another file produced by texinfo.tex.
14733         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
14734
14735 2011-05-28  Bruno Haible  <bruno@clisp.org>
14736
14737         Finish the conditional dependencies mechanism.
14738         * gnulib-tool: New option --no-conditional-dependencies.
14739         (func_usage): Document it. Don't mark --conditional-dependencies as
14740         experimental.
14741         (cond_dependencies): The possible values can now be true, false, empty.
14742         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
14743         (func_import): Store setting in gnulib-cache.m4 and read it from there.
14744         * doc/gnulib-tool.texi (Conditional dependencies): New section.
14745
14746 2011-05-28  Bruno Haible  <bruno@clisp.org>
14747
14748         doc: Use a recent texinfo.tex.
14749         * doc/Makefile (tex_opts): New variable.
14750         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
14751
14752 2011-05-28  Jim Meyering  <meyering@redhat.com>
14753
14754         intprops.h: adjust comment to match code change
14755         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
14756         only once, it *may* have side effects.  Also fix an unrelated typo.
14757         (_GL_INT_SIGNED): Likewise.
14758
14759 2011-05-26  Simon Josefsson  <simon@josefsson.org>
14760
14761         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
14762
14763 2011-05-26  Bruno Haible  <bruno@clisp.org>
14764
14765         mbsrchr: Avoid collision with system function on Interix.
14766         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
14767         Reported by Markus Duft <mduft@gentoo.org>.
14768
14769 2011-05-15  James Youngman  <jay@gnu.org>
14770
14771         getopt: for ambiguous options, enumerate the possibilities.
14772         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
14773         the ambiguous options when an ambiguous prefix is given. This was
14774         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
14775         glibc change was
14776         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
14777
14778 2011-05-25  Eric Blake  <eblake@redhat.com>
14779
14780         getcwd: work around mingw bug
14781         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
14782         * doc/posix-functions/getcwd.texi (getcwd): Document it.
14783         Reported by Matthias Bolte.
14784
14785 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
14786
14787         test-intprops: disable -Wtype-limits diagnostics
14788         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
14789         diagnostics.  Otherwise, the integer overflow macros generate many
14790         diagnostics.  Reported by Jim Meyering in
14791         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
14792
14793         intprops: shorten, to pacify gcc -Woverlength-strings
14794         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
14795         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
14796         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
14797         likely to run afoul of C compiler limits for string constant lengths.
14798         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
14799
14800 2011-05-24  Eric Blake  <eblake@redhat.com>
14801
14802         docs: document recently fixed glibc printf bug
14803         * doc/posix-functions/fprintf.texi (fprintf): Document it.
14804         * doc/posix-functions/printf.texi (printf): Likewise.
14805         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
14806         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
14807
14808         closein-tests: convert to init.sh
14809         * modules/closein-tests (Files): Add init.sh
14810         * tests/test-closein.sh Use it.
14811
14812         yesno-tests: convert to init.sh
14813         * modules/yesno-tests (Files): Add init.sh.
14814         * tests/test-yesno.sh: Use it.
14815
14816         atexit-tests: ensure reliable exit status
14817         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
14818         Reported by Bruno Haible.
14819
14820 2011-05-24  Bruno Haible  <bruno@clisp.org>
14821
14822         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
14823         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
14824         gl_PREREQ_STRERROR_R invocations from here...
14825         * modules/strerror_r-posix (configure.ac): ... to here.
14826
14827 2011-05-24  Eric Blake  <eblake@redhat.com>
14828
14829         strerror_r: fix missing header
14830         * lib/strerror_r.c: Avoid compiler warning about snprintf.
14831
14832         strerror_r: fix AIX test failures
14833         * lib/strerror_r.c (strerror_r): Convert silent truncation to
14834         ERANGE failure.
14835
14836         strerror_r: fix Solaris test failures
14837         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
14838         failures.
14839         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
14840
14841         strerror_r: enforce POSIX recommendations
14842         * lib/strerror_r.c (safe_copy): New helper method.
14843         (strerror_r): Guarantee a non-empty string.
14844         * tests/test-strerror_r.c (main): Enhance tests to incorporate
14845         recent POSIX rulings and to match our strerror guarantees.
14846         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
14847
14848 2011-05-24  Jim Meyering  <meyering@redhat.com>
14849
14850         test-perror2.c: avoid warning about unused variable
14851         * tests/test-perror2.c (main): Remove declaration of unused "fp".
14852
14853 2011-05-24  Eric Blake  <eblake@redhat.com>
14854
14855         perror: avoid spurious test failure on HP-UX
14856         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
14857
14858         tests: fix logic bug in init.sh
14859         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
14860         shell.
14861
14862 2011-05-24  Jim Meyering  <meyering@redhat.com>
14863
14864         utimensat: do not reference an out-of-scope buffer
14865         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
14866         declared in an inner scope, yet "times" would be dereferenced outside
14867         the scope in which "ts" was valid.
14868         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
14869         of ts[2] "out/up", so that the use of aliased "times" (via
14870         "times = ts;") does not end up referencing an out-of-scope "ts"
14871
14872         opendir-safer.c: don't clobber errno; don't close negative FD
14873         * lib/opendir-safer.c (opendir_safer):
14874         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
14875         file descriptor, and more importantly, don't clobber the
14876         offending errno value with EINVAL.  Before, upon failure
14877         of dup_safer, we would pass the negative file descriptor to
14878         fdopendir, which would clobber errno.
14879
14880 2011-05-23  Bruno Haible  <bruno@clisp.org>
14881
14882         idcache: Fix module description.
14883         * modules/idcache (Include): Set to "idcache.h".
14884
14885 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
14886
14887         gnulib-tool: fix portability problem with MacOS sed
14888         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
14889         before the "}".  Problem reported by Leo in
14890         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
14891         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
14892         sed_extract_condition1, sed_extract_condition2.
14893
14894 2011-05-23  Bruno Haible  <bruno@clisp.org>
14895
14896         hash: Simplify autoconf macro.
14897         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
14898
14899 2011-05-23  Bruno Haible  <bruno@clisp.org>
14900
14901         getugroups: Fix module description.
14902         * modules/getugroups (Include): Set to "getugroups.h".
14903
14904 2011-05-23  Bruno Haible  <bruno@clisp.org>
14905
14906         linkat: Simplify autoconf macro.
14907         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
14908
14909 2011-05-23  Bruno Haible  <bruno@clisp.org>
14910             Eric Blake  <eblake@redhat.com>
14911
14912         linkat, renameat: Update dependencies.
14913         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
14914         * modules/linkat (Depends-on): Likewise. Remove also readlink,
14915         symlinkat.
14916
14917 2011-05-23  Jim Meyering  <meyering@redhat.com>
14918
14919         maint.mk: more tight_scope improvements
14920         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
14921         (_gl_TS_headers): Define only in if-0'd block.
14922         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
14923         sometimes we must *not* use it.  Adjust uses accordingly.
14924         (sc_tight_scope): Use much simpler grep-based test to determine
14925         whether we skip this rule.
14926
14927         maint.mk: generalize/improve the tight-scope rule
14928         * top/maint.mk: Emit a warning when the test is skipped.
14929         (_gl_TS_dir): Add $(srcdir)/ prefix.
14930         (_gl_TS_function_match): Simplify, rather than trying
14931         to enumerate common types.  Otherwise, it would fail to match an
14932         "extern unsigned char const *" declaration in idutils.
14933         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
14934         a way to support use of that type of macro.
14935         (_gl_TS_var_match): Simplify regexp.
14936         (_gl_TS_obj_files): New configurable variable.
14937         (_gl_TS_headers): Likewise.
14938
14939 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
14940
14941         verify: fix bug when gnulib <assert.h> is also included
14942         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
14943         is defined, not if _GL_STATIC_ASSERT_H is not defined.
14944         Perhaps there's a better way, but this fixes the immediate problem.
14945         Problem reported by Bruno Haible in
14946         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
14947
14948 2011-05-22  Bruno Haible  <bruno@clisp.org>
14949
14950         xgetcwd: Simplify autoconf macro.
14951         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
14952
14953 2011-05-22  Bruno Haible  <bruno@clisp.org>
14954
14955         New module 'mktime-internal'.
14956         * modules/mktime-internal: New file.
14957         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
14958         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
14959         mktime_internal as a C macro if libc has __mktime_internal.
14960         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
14961         conditions.
14962         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
14963
14964 2011-05-22  Bruno Haible  <bruno@clisp.org>
14965
14966         timegm: Correct mktime replacement statements.
14967         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
14968         defining mktime as a C macro. This completes a 2009-07-28 commit.
14969
14970 2011-05-22  Bruno Haible  <bruno@clisp.org>
14971
14972         timegm: Simplify autoconf macro.
14973         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
14974
14975 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
14976
14977         clock-time: change to LGPLv2+.
14978         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
14979         BSD-like but we have no mark for that; this is good enough for now.
14980
14981 2011-05-21  Bruno Haible  <bruno@clisp.org>
14982
14983         strerror_r: Fix comments.
14984         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
14985
14986 2011-05-21  Bruno Haible  <bruno@clisp.org>
14987
14988         relocatable-prog-wrapper: Fix possible link error.
14989         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
14990         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
14991         (gl_FUNC_SETENV): ... to here.
14992         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
14993         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
14994
14995 2011-05-21  Bruno Haible  <bruno@clisp.org>
14996
14997         relocatable-prog-wrapper: Assume strerror() exists.
14998         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
14999         m4/strerror.m4.
15000         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
15001         * lib/relocwrapper.c: Remove mention of strerror module.
15002         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
15003         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
15004         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
15005         C macro.
15006
15007 2011-05-21  Bruno Haible  <bruno@clisp.org>
15008
15009         select: Simplify replacement idiom.
15010         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
15011         Win32 platforms.
15012         * lib/sys_select.in.h (select): Simplify accordingly.
15013         * modules/select (Depends-on): Likewise.
15014
15015 2011-05-21  Bruno Haible  <bruno@clisp.org>
15016
15017         mkdir-p: Simplify autoconf macro.
15018         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
15019         gl_FUNC_LCHOWN.
15020
15021 2011-05-21  Eric Blake  <eblake@redhat.com>
15022
15023         strerror_r: avoid clobbering strerror on cygwin
15024         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
15025         fall back instead to sys_errlist.
15026         * modules/strerror (configure.ac): Add witness.
15027         * tests/test-strerror_r.c (main): Enhance test.
15028         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15029         * tests/test-perror2.c (main): Free memory before exit.
15030
15031 2011-05-21  Bruno Haible  <bruno@clisp.org>
15032
15033         mkdtemp: Use gnulib naming conventions.
15034         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
15035         * modules/mkdtemp (configure.ac): Update.
15036
15037 2011-05-20  Eric Blake  <eblake@redhat.com>
15038
15039         strerror_r: avoid corrupting errno on Solaris
15040         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
15041         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15042
15043         strerror_r: avoid compiler warning
15044         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
15045
15046         strerror_r: simplify AIX code
15047         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
15048
15049         test-perror: avoid spurious failure on FreeBSD
15050         * modules/perror-tests (Depends-on): Add strerror, now that
15051         strerror_r no longer pulls it in.
15052
15053 2011-05-20  Bruno Haible  <bruno@clisp.org>
15054
15055         strerror_r-posix: Remove unused dependencies.
15056         * modules/strerror_r-posix (Depends-on): Remove strerror.
15057         Reported by Eric Blake.
15058
15059 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
15060
15061         intprops: remove assumption about A|B representation
15062         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
15063         is a valid integer if both A and B are.  Although this is true for
15064         all known practical hosts, the C standard doesn't guarantee it,
15065         and the code need not assume it.  Also, this change may work around
15066         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
15067         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
15068
15069 2011-05-20  Eric Blake  <eblake@redhat.com>
15070
15071         perror: work around FreeBSD bug
15072         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
15073         is broken.  Move AC_LIBOBJ...
15074         * modules/perror (configure.ac): Here.
15075         * doc/posix-functions/perror.texi (perror): Document this.
15076         * tests/test-perror2.c (main): Enhance test.
15077
15078         test-perror: check for strerror interactions
15079         * tests/macros.h (STREQ): Add macro.
15080         * modules/perror-tests (Files): Add second test.
15081         * tests/test-perror2.c (main): New file.
15082         * doc/posix-functions/perror.texi (perror): Document glibc bug.
15083
15084         test-perror: rewrite to use init script
15085         * modules/perror-tests (Files): Add init.sh.
15086         * tests/test-perror.sh: Use temporary directory.
15087
15088 2011-05-20  Jim Meyering  <meyering@redhat.com>
15089
15090         maint: replace misused "a" with "an"
15091         * doc/intprops.texi: "a integer"
15092         * doc/regex.texi: "a explanation"
15093         * lib/alignof.h: "a object"
15094         * lib/argmatch.h: "a explanation"
15095         * lib/argp-help.c: "a option" and "a OPTION_DOC"
15096         * lib/stdint.in.h: "a integer"
15097         * lib/userspec.c: "a owner"
15098         * doc/gnulib.texi: Fix "a idea", and reword.
15099
15100 2011-05-19  Jim Meyering  <meyering@redhat.com>
15101
15102         maint: correct misuse of "a" and "an"
15103         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
15104         * lib/argp-help.c: "an docum...": s/an/a/
15105         * lib/argp-parse.c: "An vector": s/An/A/
15106         * lib/execute.c: "an native": s/an/a/
15107         * lib/spawn-pipe.c: Likewise.
15108         * lib/gc.h: "an Gc_rc": s/an/a/
15109         * lib/unigbrk.in.h: "an grapheme": s/an/a/
15110         * lib/fts.c: "an stat.st_dev": s/an/a/
15111
15112 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
15113
15114         intprops-tests: work around HP-UX 11.23 cc bug with constants
15115         * tests/test-intprops.c (VERIFY): New macro.
15116         (main): Use it, instead of verify, to work around the compiler bug; see
15117         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15118
15119         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
15120         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
15121         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
15122         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
15123         (_GL_REMAINDER_OVERFLOW): Use it.
15124
15125         intprops-tests: revert unsigned part of previous change
15126         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
15127         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
15128         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
15129         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
15130
15131 2011-05-19  Bruno Haible  <bruno@clisp.org>
15132
15133         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
15134         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
15135         strerror_r() returned without filling the buffer.
15136         Reported by Eric Blake.
15137
15138 2011-05-19  Eric Blake  <eblake@redhat.com>
15139
15140         strerror_r: guarantee unchanged errno
15141         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
15142         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
15143         failure.
15144         * tests/test-strerror_r.c (main): Enhance test.
15145
15146 2011-05-19  Bruno Haible  <bruno@clisp.org>
15147
15148         strerror_r: Reorder #if blocks.
15149         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
15150         for consistency with the previous commit.
15151
15152 2011-05-19  Bruno Haible  <bruno@clisp.org>
15153
15154         perror: Avoid clobbering the strerror buffer when possible.
15155         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
15156         * lib/strerror.c: Include it.
15157         * modules/strerror (Files): Add lib/strerror-impl.h.
15158         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
15159         (my_strerror): New function, defined through lib/strerror-impl.h.
15160         (perror): Use it instead of strerror.
15161         * modules/perror (Files): Add lib/strerror-impl.h.
15162         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
15163
15164 2011-05-19  Eric Blake  <eblake@redhat.com>
15165
15166         strerror_r: fix on newer cygwin
15167         * lib/strerror_r.c (strerror_r): Cygwin now has
15168         __xpg_strerror_r, use it.
15169
15170 2011-05-19  Bruno Haible  <bruno@clisp.org>
15171
15172         strerror_r: Avoid clobbering the strerror buffer when possible.
15173         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
15174         (sys_nerr, sys_errlist): New declarations.
15175         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
15176         HP-UX, native Win32, IRIX, and 32-bit Solaris.
15177         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
15178
15179 2011-05-19  Bruno Haible  <bruno@clisp.org>
15180
15181         strerror_r: Fix test failure on mingw.
15182         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
15183         EXTEND_STRERROR_R.
15184         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
15185         macros from errno.in.h instead.
15186
15187 2011-05-19  Eric Blake  <eblake@redhat.com>
15188
15189         strerror: relax test for Solaris
15190         * tests/test-strerror.c (main): Permit Solaris behavior.
15191         * tests/test-strerror_r.c (main): Likewise.
15192
15193         strerror: enforce POSIX ruling on strerror(0)
15194         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
15195         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
15196         * lib/strerror_r.c (rpl_strerror_r): Work around it.
15197         * doc/posix-functions/strerror.texi (strerror): Document it.
15198         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
15199         * tests/test-strerror.c (main): Strengthen test.
15200         * tests/test-strerror_r.c (main): Likewise.
15201
15202 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
15203
15204         intprop-tests: port to older and more-pedantic compilers
15205         * modules/intprops-tests (Files): Add tests/macros.h.
15206         * tests/test-intprops.c: Include macros.h.
15207         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
15208         it's no longer documented to expand to an integer constant expression.
15209         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
15210         argument is floating point, as it's no longer documented to expand
15211         to an integer constant expression in that case.
15212         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
15213         compiler bugs reported by Bruno Haible.  See
15214         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15215         (U0, U1): New constants, to work around the same bugs.  Also,
15216         in tests, use e.g., "(unsigned int) 39" rather than "39u".
15217
15218         intprops: work around C compiler bugs
15219         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
15220         bug in Sun C 5.11 2010/08/13 and other compilers; see
15221         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15222
15223         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
15224         * doc/intprops.texi (Integer Type Determination): Fix
15225         documentation for TYPE_IS_INTEGER: it returns an constant
15226         expression, not an integer constant expression.  Fix doc for
15227         TYPE_SIGNED: it returns an integer constant expression only if its
15228         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
15229         hardly worth documented that way....)
15230
15231 2011-05-18  Bruno Haible  <bruno@clisp.org>
15232
15233         strerror_r: Avoid clobbering the strerror buffer when possible.
15234         * lib/strerror_r.c (strerror_r): Merge the three implementations.
15235         Handle gnulib defined errno values here. When strerror() returns NULL
15236         or an empty string, return EINVAL.
15237         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
15238         gnulib defined errno values here.
15239         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
15240
15241 2011-05-18  Eric Blake  <eblake@redhat.com>
15242
15243         fnmatch: avoid compiler warning
15244         * lib/fnmatch_loop.c (FCT): Use correct type.
15245         Reported by Matthias Bolte.
15246
15247 2011-05-13  Jim Meyering  <meyering@redhat.com>
15248
15249         maint.mk: three new prohibit_<HDR>_without_use rules
15250         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
15251         (sc_prohibit_stdio-safer_without_use): Likewise.
15252         (sc_prohibit_xfreopen_without_use): Likewise.
15253
15254 2011-05-17  Jim Meyering  <meyering@redhat.com>
15255
15256         announce-gen: fail if the NEWS delta is empty
15257         If there's nothing noteworthy in NEWS, then either you forgot
15258         or you shouldn't be releasing.
15259         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
15260
15261 2011-05-17  Pádraig Brady <P@draigBrady.com>
15262
15263         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
15264         reserved symbols starting with double underscore from the check.
15265
15266 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
15267
15268         intprops: add doc
15269         * doc/intprops.texi: New file, documenting intprops.
15270         * doc/gnulib.texi (Particular Modules): Include it.
15271
15272         verify: add doc to gnulib manual and fix example
15273         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
15274         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
15275         (Compile-time Assertions): Fix example so it can't overflow.
15276
15277 2011-05-17  Jim Meyering  <meyering@redhat.com>
15278
15279         warnings.m4: don't usurp save_CPPFLAGS variable name
15280         * m4/warnings.m4: Prefix local temporary variable name with gl_.
15281
15282         doc: fix typo
15283         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
15284
15285 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15286             Bruno Haible  <bruno@clisp.org>
15287
15288         doc: Tweak recent change.
15289         * README (Portability guidelines): Tweak new text.
15290         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
15291         Interix 6.1.
15292
15293 2011-05-16  Eric Blake  <eblake@redhat.com>
15294
15295         inttypes: avoid autoconf warning
15296         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
15297         * m4/stdint.m4 (gl_STDINT_H): Likewise.
15298
15299 2011-05-16  Sam Steingold <sds@gnu.org>
15300         and Eric Blake  <eblake@redhat.com>
15301
15302         vc-list-files: accept multiple directory operands
15303         * build-aux/vc-list-files: Iterate over all remaining operands.
15304
15305 2011-05-16  Bruno Haible  <bruno@clisp.org>
15306
15307         Fix confusion regarding deprecated modules.
15308         * modules/calloc (Status, Notice): Mark module as deprecated, not
15309         obsolete.
15310         * modules/fnmatch-posix (Status, Notice): Likewise.
15311         * modules/getdate (Status, Notice): Likewise.
15312         * modules/getopt (Status, Notice): Likewise.
15313         * modules/malloc (Status, Notice): Likewise.
15314         * modules/pipe (Status, Notice): Likewise.
15315         * modules/realloc (Status, Notice): Likewise.
15316         * modules/rename-dest-slash (Status, Notice): Likewise.
15317         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
15318         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
15319         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
15320         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
15321         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
15322
15323 2011-05-16  Bruno Haible  <bruno@clisp.org>
15324
15325         doc: List the target platforms.
15326         * doc/gnulib-intro.texi (Target Platforms): New section.
15327         * doc/gnulib.texi (Introduction): Update menu.
15328         * README (Portability guidelines): Refer to the new section. Update
15329         statement about oldest supported environment. Remove rationale why
15330         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
15331         unportable C89 function.
15332         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
15333         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
15334
15335 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15336
15337         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
15338
15339 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
15340
15341         intprops-tests: new module
15342         * modules/intprops-tests, tests/test-intprops.c: New files.
15343
15344         intprops: add safe, portable integer overflow checking
15345         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
15346         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
15347         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
15348         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
15349         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
15350         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
15351         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
15352         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
15353         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
15354         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
15355         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
15356
15357 2011-05-12  James Youngman  <jay@gnu.org>
15358
15359         Add a test for glibc's Bugzilla bug #12378.
15360         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
15361         doesn't allow the literal matching of a lone "[" (which is
15362         required by POSIX).
15363         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
15364
15365 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
15366
15367         Sync glibc change fixing Bugzilla bug #12378.
15368         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
15369         beginning and fall back to matching as normal character if the
15370         string ends before the matching ']' is found.  This is what POSIX
15371         requires.
15372
15373 2011-05-13  Eric Blake  <eblake@redhat.com>
15374
15375         getcwd-lgpl: relax test for FreeBSD
15376         * doc/posix-functions/getcwd.texi (getcwd): Document portability
15377         issue.
15378         * tests/test-getcwd-lgpl.c (main): Relax test.
15379         Reported by Matthias Bolte.
15380
15381 2011-05-11  Eric Blake  <eblake@redhat.com>
15382
15383         test-fflush: silence compiler warning
15384         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
15385
15386 2011-05-11  Bruno Haible  <bruno@clisp.org>
15387
15388         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
15389         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
15390         * modules/canonicalize (Depends-on): Add 'nocrash'.
15391         * modules/canonicalize-lgpl (Depends-on): Likewise.
15392         * doc/posix-functions/realpath.texi: Update platforms list.
15393         Reported by Ryan Schmidt <ryandesign@macports.org>.
15394
15395 2011-05-11  Bruno Haible  <bruno@clisp.org>
15396
15397         group-member: Declare function in <unistd.h>.
15398         * lib/unistd.in.h (group_member): New declaration.
15399         * lib/group-member.h: Remove file.
15400         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
15401         * tests/test-unistd-c++.cc: Check signature of group_member.
15402         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
15403         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
15404         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
15405         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
15406         HAVE_GROUP_MEMBER.
15407         * modules/group-member (Files): Remove lib/group-member.h.
15408         (Depends-on): Add unistd. Specify conditions.
15409         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15410         (Include): Change to <unistd.h>.
15411         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
15412         HAVE_GROUP_MEMBER.
15413         * NEWS: Mention the change.
15414         * lib/euidaccess.c: Don't include group-member.h.
15415
15416 2011-05-11  Bruno Haible  <bruno@clisp.org>
15417
15418         group-member: Document module.
15419         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
15420         module.
15421
15422 2011-05-11  Bruno Haible  <bruno@clisp.org>
15423
15424         fclose: Fix mistake earlier today.
15425         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
15426
15427 2011-05-11  Eric Blake  <eblake@redhat.com>
15428
15429         fclose: preserve fflush errors
15430         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
15431         Reported by Jim Meyering.
15432
15433         bootstrap: support a prereq of 'rpcgen -' on RHEL5
15434         * build-aux/bootstrap (check_versions): When no specific version
15435         is required, merely check that the app produces an exit status
15436         that indicates its existence.
15437
15438         maint.mk: drop redundant check
15439         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
15440         the same but better.
15441
15442 2011-05-11  Bruno Haible  <bruno@clisp.org>
15443
15444         fclose: Fix possible link error.
15445         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
15446         unregister_shadow_fd. Improve comments.
15447         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
15448         Eric Blake.
15449
15450 2011-05-11  Jim Meyering  <meyering@redhat.com>
15451
15452         maint.mk: improve "can not" detection and generalize rule name
15453         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
15454         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
15455         Use the same technique as in sc_prohibit_doubled_word, so that
15456         we recognize "can not" also when the words are separated by a newline.
15457         Suggested by Eric Blake.
15458         (perl_filename_lineno_text_): Define.  Factored out of...
15459         (prohibit_doubled_word_): ...here.  Use the new definition.
15460         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
15461         (prohibit_undesirable_word_seq_RE_): New overridable variable.
15462         (ignore_undesirable_word_sequence_RE_): New overridable variable.
15463
15464 2011-05-10  Eric Blake  <eblake@redhat.com>
15465
15466         fclose: avoid double close race when possible
15467         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
15468         all but WINDOWS_SOCKETS.
15469
15470 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
15471
15472         openat: correct new comment
15473         * lib/openat-proc.c (openat_proc_name): Correct the comment.
15474
15475 2011-05-10  Jim Meyering  <meyering@redhat.com>
15476
15477         openat: add comments
15478         * lib/openat-proc.c (openat_proc_name): Add comments,
15479         mostly from Eric Blake.
15480
15481 2011-05-09  Eric Blake  <eblake@redhat.com>
15482
15483         openat: reduce syscalls in first probe of /proc
15484         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
15485         be a directory.  Simplify the probe for .. bugs.
15486         * modules/openat (Depends-on): Drop same-inode.
15487         Reported by Bastien ROUCARIES.
15488
15489 2011-05-09  Jim Meyering  <meyering@redhat.com>
15490
15491         maint.mk: change semantics/name of tight_scope variables
15492         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
15493         Rename variables to align with semantics that make them more useful.
15494
15495         maint.mk: tweak new rule's name not to impinge
15496         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
15497         (sc_tight_scope): Use new rule name rather than $@-0.
15498
15499         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
15500         * top/maint.mk (sc_tight_scope): New rule.
15501         (sc_tight_scope-0): New rule, ifdef'd out.
15502         (_gl_TS_dir): Default.
15503         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
15504         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
15505
15506 2011-05-09  Simon Josefsson  <simon@josefsson.org>
15507
15508         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
15509         Haible <bruno@clisp.org>.
15510
15511 2011-05-08  Bruno Haible  <bruno@clisp.org>
15512
15513         Comments.
15514         * m4/isnanf.m4: Add comment.
15515         * m4/isnanl.m4: Likewise.
15516
15517 2011-05-08  Bruno Haible  <bruno@clisp.org>
15518
15519         glob: Remove obsolete macro.
15520         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
15521
15522 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
15523
15524         intprops: Sun C 5.11 supports __typeof__
15525         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
15526         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
15527         which is new.
15528         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
15529
15530         intprops: switch to usual gnulib indenting and naming
15531         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
15532         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
15533
15534         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
15535
15536 2011-05-08  Jim Meyering  <meyering@redhat.com>
15537
15538         maint.mk: suppress "Entering/Leaving directory" diag in announcement
15539         * top/maint.mk (release-prep): Use make's --no-print-directory
15540         option when generating the announcement.  This eliminates the
15541         pesky "make[2]: Entering/Leaving directory" diagnostics in the
15542         generated announcement template.
15543
15544 2011-05-08  Bruno Haible  <bruno@clisp.org>
15545
15546         tzset: Fix gettimeofday wrapper on Solaris 2.6.
15547         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
15548         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
15549
15550 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
15551
15552         ignore-value, verify: Omit include files from lib_SOURCES.
15553         * modules/ignore-value, modules/verify (Makefile.am):
15554         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
15555         that leads Automake to duplicate use of am__objects_... variables
15556         in Makefile.in.  See
15557         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
15558
15559 2011-05-07  Bruno Haible  <bruno@clisp.org>
15560
15561         fclose: Simplify autoconf macro.
15562         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
15563         defined.
15564
15565 2011-05-07  Bruno Haible  <bruno@clisp.org>
15566
15567         canonicalize-lgpl: Fix autoconf macro ordering bug.
15568         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
15569         gl_STDLIB_H_DEFAULTS.
15570
15571 2011-05-06  Eric Blake  <eblake@redhat.com>
15572
15573         maintainer-makefile: make sc_po_check easier to tune
15574         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
15575         to probe for strings, such as an alternate location for gnulib.
15576
15577         fclose: guarantee behavior on seekable stdin
15578         * modules/fclose (Depends-on): Add fflush.
15579         * doc/posix-functions/fclose.texi (fclose): Document this.
15580         * tests/test-fclose.c (main): Make test for this unconditional.
15581
15582 2011-05-06  Bruno Haible  <bruno@clisp.org>
15583
15584         fflush, fpurge: Relicense under LGPLv2+.
15585         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
15586         * modules/fpurge (License): Likewise.
15587         With permission from Eric Blake and Jim Meyering.
15588         Suggested by Eric Blake.
15589
15590 2011-05-06  Karl Berry  <karl@gnu.org>
15591
15592         * MODULES.html.sh (func_all_modules): remove exit.
15593
15594 2011-05-06  Jim Meyering  <meyering@redhat.com>
15595
15596         maint.mk: use info-gnu@ as the default only for a stable release
15597         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
15598         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
15599         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
15600         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
15601
15602 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
15603
15604         assert-h: new module, which supports C1X-style static_assert
15605         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
15606         * lib/verify.h: Revamp so that this can be copied into assert.h,
15607         while retaining the ability to use it standalone as before.
15608         Rename private identifiers so as not to encroach on the
15609         standard C namespace, since this is now used by assert.h.
15610         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
15611         the old verify_true.
15612         (_GL_VERIFY_TRUE): New macro, with much of the contents of
15613         the old verify_true.  Use _GL_VERIFY_TYPE.
15614         (_GL_VERIFY): New macro, with much of the contents of the old verify.
15615         (static_assert): New macro, if _GL_STATIC_ASSERT_H
15616         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
15617         defined when this file is copied into the replacement assert.h.
15618         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
15619         and _Static_assert is not built in.
15620         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
15621         defined, and use the new macros mentioned above.
15622         * doc/posix-headers/assert.texi: Document this.
15623
15624 2011-05-05  Bruno Haible  <bruno@clisp.org>
15625
15626         fclose, fflush: Respect rules for use of AC_LIBOBJ.
15627         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
15628         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
15629         gl_REPLACE_FCLOSE here.
15630         * modules/fflush (Depends-on): Remove fclose.
15631         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
15632         combination with module 'fclose'.
15633
15634 2011-05-05  Bruno Haible  <bruno@clisp.org>
15635
15636         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
15637         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
15638         gl_FUNC_FFLUSH.
15639         (gl_FUNC_FFLUSH): Use it.
15640         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
15641         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
15642         gl_REPLACE_FSEEKO here.
15643
15644 2011-05-05  Bruno Haible  <bruno@clisp.org>
15645
15646         tzset: Relicense under LGPL.
15647         * modules/tzset (License): Change to LGPL.
15648         No agreement needed; it's a no-op.
15649
15650         strtoimax, strtoumax: Relicense under LGPL.
15651         * modules/strtoimax (License): Change to LGPL.
15652         * modules/strtoumax (License): Likewise.
15653         With permission from Jim Meyering, Paul Eggert:
15654         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
15655         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
15656
15657         getgroups: Relicense under LGPL.
15658         * modules/getgroups (License): Change to LGPL.
15659         With permission from Jim Meyering, Paul Eggert, Eric Blake:
15660         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
15661         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
15662         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
15663
15664         nanosleep: Relicense under LGPL.
15665         * modules/nanosleep (License): Change to LGPL.
15666         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
15667         Haible:
15668         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
15669         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
15670         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
15671         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
15672
15673         futimens: Relicense under LGPL.
15674         * modules/futimens (License): Change to LGPL.
15675         With permission from Eric Blake:
15676         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
15677
15678         fflush: Relicense under LGPL.
15679         * modules/fflush (License): Change to LGPL.
15680         With permission from Eric Blake, Bruno Haible, Jim Meyering:
15681         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
15682         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
15683         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
15684
15685         tmpfile: Relicense under LGPL.
15686         * modules/tmpfile (License): Change to LGPL.
15687         With permission from Ben Pfaff:
15688         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
15689
15690         isfinite: Relicense under LGPL.
15691         * modules/isfinite (License): Change to LGPL.
15692         With permission from Ben Pfaff, Bruno Haible:
15693         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
15694         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
15695
15696         acosl..tanl: Relicense under LGPL.
15697         * modules/acosl (License): Change to LGPL.
15698         * modules/asinl (License): Likewise.
15699         * modules/atanl (License): Likewise.
15700         * modules/cosl (License): Likewise.
15701         * modules/expl (License): Likewise.
15702         * modules/logl (License): Likewise.
15703         * modules/sinl (License): Likewise.
15704         * modules/sqrtl (License): Likewise.
15705         * modules/tanl (License): Likewise.
15706         Source code originally from glibc and Paolo Bonzini. Agreements:
15707         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
15708         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
15709
15710 2011-05-05  Bruno Haible  <bruno@clisp.org>
15711
15712         signal: Define sighandler_t.
15713         * lib/signal.in.h (sighandler_t): New type.
15714         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
15715         whether sighandler_t is defined.
15716         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
15717         * modules/signal (Depends-on): Add extensions.
15718         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
15719         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
15720         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
15721
15722 2011-05-05  Eric Blake  <eblake@redhat.com>
15723
15724         maint: remove useless REPLACE_*_H macros
15725         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
15726         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
15727         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
15728         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
15729         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
15730         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
15731         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
15732         * m4/btowc.m4: Update callers.
15733         * m4/dirfd.m4: Likewise.
15734         * m4/duplocale.m4: Likewise.
15735         * m4/fchdir.m4: Likewise.
15736         * m4/fdopendir.m4: Likewise.
15737         * m4/inet_ntop.m4: Likewise.
15738         * m4/inet_pton.m4: Likewise.
15739         * m4/ioctl.m4: Likewise.
15740         * m4/mbrlen.m4: Likewise.
15741         * m4/mbrtowc.m4: Likewise.
15742         * m4/mbsinit.m4: Likewise.
15743         * m4/mbsnrtowcs.m4: Likewise.
15744         * m4/mbsrtowcs.m4: Likewise.
15745         * m4/poll.m4: Likewise.
15746         * m4/setlocale.m4: Likewise.
15747         * m4/wcrtomb.m4: Likewise.
15748         * m4/wcsnrtombs.m4: Likewise.
15749         * m4/wcsrtombs.m4: Likewise.
15750         * m4/wctob.m4: Likewise.
15751         * m4/wcwidth.m4: Likewise.
15752         * modules/posix_spawn: Likewise.
15753         * modules/posix_spawn_file_actions_addclose: Likewise.
15754         * modules/posix_spawn_file_actions_adddup2: Likewise.
15755         * modules/posix_spawn_file_actions_addopen: Likewise.
15756         * modules/posix_spawn_file_actions_destroy: Likewise.
15757         * modules/posix_spawn_file_actions_init: Likewise.
15758         * modules/posix_spawnattr_destroy: Likewise.
15759         * modules/posix_spawnattr_getflags: Likewise.
15760         * modules/posix_spawnattr_getpgroup: Likewise.
15761         * modules/posix_spawnattr_getschedparam: Likewise.
15762         * modules/posix_spawnattr_getschedpolicy: Likewise.
15763         * modules/posix_spawnattr_getsigdefault: Likewise.
15764         * modules/posix_spawnattr_getsigmask: Likewise.
15765         * modules/posix_spawnattr_init: Likewise.
15766         * modules/posix_spawnattr_setflags: Likewise.
15767         * modules/posix_spawnattr_setpgroup: Likewise.
15768         * modules/posix_spawnattr_setschedparam: Likewise.
15769         * modules/posix_spawnattr_setschedpolicy: Likewise.
15770         * modules/posix_spawnattr_setsigdefault: Likewise.
15771         * modules/posix_spawnattr_setsigmask: Likewise.
15772         * modules/posix_spawnp: Likewise.
15773
15774 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
15775
15776         Add option to do-release-commit-and-tag to specify branch.
15777         * build-aux/do-release-commit-and-tag: Add --branch.
15778
15779 2011-05-03  Bruno Haible  <bruno@clisp.org>
15780
15781         Avoid unnecessary compilation units, through conditional dependencies.
15782         * modules/accept (Depends-on): Add conditions to the dependencies.
15783         * modules/acosl (Depends-on): Likewise.
15784         * modules/argz (Depends-on): Likewise.
15785         * modules/asinl (Depends-on): Likewise.
15786         * modules/atanl (Depends-on): Likewise.
15787         * modules/atoll (Depends-on): Likewise.
15788         * modules/bind (Depends-on): Likewise.
15789         * modules/btowc (Depends-on): Likewise.
15790         * modules/canonicalize-lgpl (Depends-on): Likewise.
15791         * modules/ceil (Depends-on): Likewise.
15792         * modules/ceilf (Depends-on): Likewise.
15793         * modules/ceill (Depends-on): Likewise.
15794         * modules/chdir-long (Depends-on): Likewise.
15795         * modules/chown (Depends-on): Likewise.
15796         * modules/close (Depends-on): Likewise.
15797         * modules/connect (Depends-on): Likewise.
15798         * modules/cosl (Depends-on): Likewise.
15799         * modules/dirfd (Depends-on): Likewise.
15800         * modules/dprintf (Depends-on): Likewise.
15801         * modules/dprintf-posix (Depends-on): Likewise.
15802         * modules/error (Depends-on): Likewise.
15803         * modules/euidaccess (Depends-on): Likewise.
15804         * modules/expl (Depends-on): Likewise.
15805         * modules/faccessat (Depends-on): Likewise.
15806         * modules/fchdir (Depends-on): Likewise.
15807         * modules/fclose (Depends-on): Likewise.
15808         * modules/fcntl (Depends-on): Likewise.
15809         * modules/fdopendir (Depends-on): Likewise.
15810         * modules/fflush (Depends-on): Likewise.
15811         * modules/floor (Depends-on): Likewise.
15812         * modules/floorf (Depends-on): Likewise.
15813         * modules/floorl (Depends-on): Likewise.
15814         * modules/fnmatch (Depends-on): Likewise.
15815         * modules/fopen (Depends-on): Likewise.
15816         * modules/fprintf-posix (Depends-on): Likewise.
15817         * modules/frexp (Depends-on): Likewise.
15818         * modules/frexp-nolibm (Depends-on): Likewise.
15819         * modules/frexpl (Depends-on): Likewise.
15820         * modules/frexpl-nolibm (Depends-on): Likewise.
15821         * modules/fseek (Depends-on): Likewise.
15822         * modules/fsusage (Depends-on): Likewise.
15823         * modules/ftell (Depends-on): Likewise.
15824         * modules/ftello (Depends-on): Likewise.
15825         * modules/futimens (Depends-on): Likewise.
15826         * modules/getcwd (Depends-on): Likewise.
15827         * modules/getcwd-lgpl (Depends-on): Likewise.
15828         * modules/getdelim (Depends-on): Likewise.
15829         * modules/getdomainname (Depends-on): Likewise.
15830         * modules/getgroups (Depends-on): Likewise.
15831         * modules/gethostname (Depends-on): Likewise.
15832         * modules/getline (Depends-on): Likewise.
15833         * modules/getlogin_r (Depends-on): Likewise.
15834         * modules/getopt-posix (Depends-on): Likewise.
15835         * modules/getpeername (Depends-on): Likewise.
15836         * modules/getsockname (Depends-on): Likewise.
15837         * modules/getsockopt (Depends-on): Likewise.
15838         * modules/getsubopt (Depends-on): Likewise.
15839         * modules/getusershell (Depends-on): Likewise.
15840         * modules/glob (Depends-on): Likewise.
15841         * modules/grantpt (Depends-on): Likewise.
15842         * modules/iconv_open (Depends-on): Likewise.
15843         * modules/iconv_open-utf (Depends-on): Likewise.
15844         * modules/inet_ntop (Depends-on): Likewise.
15845         * modules/inet_pton (Depends-on): Likewise.
15846         * modules/ioctl (Depends-on): Likewise.
15847         * modules/isapipe (Depends-on): Likewise.
15848         * modules/isfinite (Depends-on): Likewise.
15849         * modules/isinf (Depends-on): Likewise.
15850         * modules/lchown (Depends-on): Likewise.
15851         * modules/ldexpl (Depends-on): Likewise.
15852         * modules/link (Depends-on): Likewise.
15853         * modules/linkat (Depends-on): Likewise.
15854         * modules/listen (Depends-on): Likewise.
15855         * modules/logl (Depends-on): Likewise.
15856         * modules/lstat (Depends-on): Likewise.
15857         * modules/mbrlen (Depends-on): Likewise.
15858         * modules/mbrtowc (Depends-on): Likewise.
15859         * modules/mbsinit (Depends-on): Likewise.
15860         * modules/mbsnrtowcs (Depends-on): Likewise.
15861         * modules/mbsrtowcs (Depends-on): Likewise.
15862         * modules/mbtowc (Depends-on): Likewise.
15863         * modules/memcmp (Depends-on): Likewise.
15864         * modules/mkdir (Depends-on): Likewise.
15865         * modules/mkdtemp (Depends-on): Likewise.
15866         * modules/mkfifo (Depends-on): Likewise.
15867         * modules/mkfifoat (Depends-on): Likewise.
15868         * modules/mknod (Depends-on): Likewise.
15869         * modules/mkostemp (Depends-on): Likewise.
15870         * modules/mkostemps (Depends-on): Likewise.
15871         * modules/mkstemp (Depends-on): Likewise.
15872         * modules/mkstemps (Depends-on): Likewise.
15873         * modules/mktime (Depends-on): Likewise.
15874         * modules/nanosleep (Depends-on): Likewise.
15875         * modules/open (Depends-on): Likewise.
15876         * modules/openat (Depends-on): Likewise.
15877         * modules/perror (Depends-on): Likewise.
15878         * modules/poll (Depends-on): Likewise.
15879         * modules/popen (Depends-on): Likewise.
15880         * modules/posix_spawn (Depends-on): Likewise.
15881         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
15882         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
15883         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
15884         * modules/posix_spawnp (Depends-on): Likewise.
15885         * modules/pread (Depends-on): Likewise.
15886         * modules/printf-posix (Depends-on): Likewise.
15887         * modules/ptsname (Depends-on): Likewise.
15888         * modules/putenv (Depends-on): Likewise.
15889         * modules/pwrite (Depends-on): Likewise.
15890         * modules/readline (Depends-on): Likewise.
15891         * modules/readlink (Depends-on): Likewise.
15892         * modules/readlinkat (Depends-on): Likewise.
15893         * modules/recv (Depends-on): Likewise.
15894         * modules/recvfrom (Depends-on): Likewise.
15895         * modules/regex (Depends-on): Likewise.
15896         * modules/remove (Depends-on): Likewise.
15897         * modules/rename (Depends-on): Likewise.
15898         * modules/renameat (Depends-on): Likewise.
15899         * modules/rmdir (Depends-on): Likewise.
15900         * modules/round (Depends-on): Likewise.
15901         * modules/roundf (Depends-on): Likewise.
15902         * modules/roundl (Depends-on): Likewise.
15903         * modules/rpmatch (Depends-on): Likewise.
15904         * modules/select (Depends-on): Likewise.
15905         * modules/send (Depends-on): Likewise.
15906         * modules/sendto (Depends-on): Likewise.
15907         * modules/setenv (Depends-on): Likewise.
15908         * modules/setlocale (Depends-on): Likewise.
15909         * modules/setsockopt (Depends-on): Likewise.
15910         * modules/shutdown (Depends-on): Likewise.
15911         * modules/sigaction (Depends-on): Likewise.
15912         * modules/signbit (Depends-on): Likewise.
15913         * modules/sigprocmask (Depends-on): Likewise.
15914         * modules/sinl (Depends-on): Likewise.
15915         * modules/sleep (Depends-on): Likewise.
15916         * modules/snprintf (Depends-on): Likewise.
15917         * modules/snprintf-posix (Depends-on): Likewise.
15918         * modules/socket (Depends-on): Likewise.
15919         * modules/sprintf-posix (Depends-on): Likewise.
15920         * modules/sqrtl (Depends-on): Likewise.
15921         * modules/stat (Depends-on): Likewise.
15922         * modules/strchrnul (Depends-on): Likewise.
15923         * modules/strdup-posix (Depends-on): Likewise.
15924         * modules/strerror (Depends-on): Likewise.
15925         * modules/strerror_r-posix (Depends-on): Likewise.
15926         * modules/strndup (Depends-on): Likewise.
15927         * modules/strnlen (Depends-on): Likewise.
15928         * modules/strptime (Depends-on): Likewise.
15929         * modules/strsep (Depends-on): Likewise.
15930         * modules/strsignal (Depends-on): Likewise.
15931         * modules/strstr-simple (Depends-on): Likewise.
15932         * modules/strtod (Depends-on): Likewise.
15933         * modules/strtoimax (Depends-on): Likewise.
15934         * modules/strtok_r (Depends-on): Likewise.
15935         * modules/strtoumax (Depends-on): Likewise.
15936         * modules/symlink (Depends-on): Likewise.
15937         * modules/symlinkat (Depends-on): Likewise.
15938         * modules/tanl (Depends-on): Likewise.
15939         * modules/tcgetsid (Depends-on): Likewise.
15940         * modules/tmpfile (Depends-on): Likewise.
15941         * modules/trunc (Depends-on): Likewise.
15942         * modules/truncf (Depends-on): Likewise.
15943         * modules/truncl (Depends-on): Likewise.
15944         * modules/uname (Depends-on): Likewise.
15945         * modules/unlink (Depends-on): Likewise.
15946         * modules/unlockpt (Depends-on): Likewise.
15947         * modules/unsetenv (Depends-on): Likewise.
15948         * modules/usleep (Depends-on): Likewise.
15949         * modules/utimensat (Depends-on): Likewise.
15950         * modules/vasprintf (Depends-on): Likewise.
15951         * modules/vdprintf (Depends-on): Likewise.
15952         * modules/vdprintf-posix (Depends-on): Likewise.
15953         * modules/vfprintf-posix (Depends-on): Likewise.
15954         * modules/vprintf-posix (Depends-on): Likewise.
15955         * modules/vsnprintf (Depends-on): Likewise.
15956         * modules/vsnprintf-posix (Depends-on): Likewise.
15957         * modules/vsprintf-posix (Depends-on): Likewise.
15958         * modules/wcrtomb (Depends-on): Likewise.
15959         * modules/wcscasecmp (Depends-on): Likewise.
15960         * modules/wcscspn (Depends-on): Likewise.
15961         * modules/wcsdup (Depends-on): Likewise.
15962         * modules/wcsncasecmp (Depends-on): Likewise.
15963         * modules/wcsnrtombs (Depends-on): Likewise.
15964         * modules/wcspbrk (Depends-on): Likewise.
15965         * modules/wcsrtombs (Depends-on): Likewise.
15966         * modules/wcsspn (Depends-on): Likewise.
15967         * modules/wcsstr (Depends-on): Likewise.
15968         * modules/wcstok (Depends-on): Likewise.
15969         * modules/wcswidth (Depends-on): Likewise.
15970         * modules/wctob (Depends-on): Likewise.
15971         * modules/wctomb (Depends-on): Likewise.
15972         * modules/wctype (Depends-on): Likewise.
15973         * modules/wcwidth (Depends-on): Likewise.
15974         * modules/write (Depends-on): Likewise.
15975
15976 2011-05-03  Bruno Haible  <bruno@clisp.org>
15977
15978         Support for conditional dependencies.
15979         * doc/gnulib.texi (Module description): Document the syntax of
15980         conditional dependencies.
15981         * gnulib-tool: New option --conditional-dependencies.
15982         (func_usage): Document it.
15983         (cond_dependencies): New variable.
15984         (func_get_automake_snippet_conditional,
15985         func_get_automake_snippet_unconditional): New functions, extracted from
15986         func_get_automake_snippet.
15987         (func_get_automake_snippet): Use them.
15988         (sed_first_32_chars): New variable.
15989         (func_module_shellfunc_name): New function.
15990         (func_module_shellvar_name): New function.
15991         (func_module_conditional_name): New function.
15992         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
15993         func_cond_module_condition): New functions.
15994         (func_modules_transitive_closure): Add support for conditional
15995         dependencies.
15996         (func_emit_lib_Makefile_am): For a conditional module, enclose the
15997         conditional automake snippet in an automake conditional.
15998         (func_emit_autoconf_snippets): Emit shell functions that contain the
15999         code for conditional modules.
16000         (func_import, func_create_testdir): Update specification.
16001
16002 2011-05-03  Eric Blake  <eblake@redhat.com>
16003
16004         test-getaddrinfo: report error information
16005         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
16006
16007 2011-05-03  Jim Meyering  <meyering@redhat.com>
16008
16009         bootstrap: avoid build failure when $GZIP is set
16010         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
16011         program name.  If defined at all, it is supposed to list gzip options.
16012         Reported by Alan Curry in http://debbugs.gnu.org/8609
16013
16014 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
16015
16016         readme-release: new module with release instructions
16017         * modules/readme-release: New module.
16018         * top/README-release: New file, from coreutils, grep, diffutils.
16019         * MODULES.html.sh (Support for maintaining and releasing): Add it.
16020
16021 2011-05-02  Eric Blake  <eblake@redhat.com>
16022
16023         fflush: also replace fclose when fixing fflush
16024         * modules/fflush (Depends-on): Add fclose.
16025         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
16026         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
16027         memstreams with no backing fd.
16028         * doc/posix-functions/fclose.texi (fclose): Document the use of
16029         fflush module to fix the bug.
16030         * tests/test-fclose.c (main): Relax test when fclose is used in
16031         isolation.
16032
16033         fclose: add some tests
16034         * modules/fclose-tests: New test module.
16035         * tests/test-fclose.c: New file.
16036         * doc/posix-functions/fclose.texi (fclose): Document the bug.
16037
16038         fclose: reduced dependencies
16039         * modules/fclose (Depends-on): Switch from fflush/fseeko to
16040         simpler lseek.
16041         * lib/fclose.c (rpl_fclose): Likewise.
16042         Reported by Simon Josefsson.
16043
16044         exit: drop remaining clients
16045         * modules/argmatch (Depends-on): Replace exit with stdlib.
16046         * modules/copy-file (Depends-on): Likewise.
16047         * modules/execute (Depends-on): Likewise.
16048         * modules/exitfail (Depends-on): Likewise.
16049         * modules/obstack (Depends-on): Likewise.
16050         * modules/pagealign_alloc (Depends-on): Likewise.
16051         * modules/pipe-filter-gi (Depends-on): Likewise.
16052         * modules/pipe-filter-ii (Depends-on): Likewise.
16053         * modules/savewd (Depends-on): Likewise.
16054         * modules/spawn-pipe (Depends-on): Likewise.
16055         * modules/wait-process (Depends-on): Likewise.
16056         * modules/xsetenv (Depends-on): Likewise.
16057         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
16058         * modules/git-merge-changelog (Depends-on): Likewise.
16059         * modules/long-options (Depends-on): Likewise.
16060         * modules/pt_chown (Depends-on): Likewise.
16061         * modules/sysexits (Depends-on): Likewise.
16062
16063         freading: relax license from LGPLv3+ to LGPLv2+
16064         * modules/freading (License): Relax LGPL version.
16065
16066 2011-05-02  Bruno Haible  <bruno@clisp.org>
16067
16068         fchdir: Remove unused dependencies.
16069         * modules/fchdir (Depends-on): Remove include_next.
16070
16071 2011-05-02  Bruno Haible  <bruno@clisp.org>
16072
16073         gnulib-tool: Refactor.
16074         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
16075         from func_emit_autoconf_snippets.
16076         (func_emit_autoconf_snippets): Use it.
16077
16078 2011-05-02  Simon Josefsson  <simon@josefsson.org>
16079
16080         * NEWS: Document removal of 'exit'.
16081         * modules/exit: Remove file.
16082
16083 2011-05-01  Bruno Haible  <bruno@clisp.org>
16084
16085         Update DEPENDENCIES.
16086         * DEPENDENCIES (gettext): Recommend the newest release.
16087         Reported by Simon Josefsson.
16088
16089 2011-05-01  Bruno Haible  <bruno@clisp.org>
16090
16091         gnulib-tool: Reduce code duplication.
16092         * gnulib-tool (func_emit_autoconf_snippets): New function.
16093         (func_import, func_create_testdir): Use it.
16094
16095 2011-04-30  Eric Blake  <eblake@redhat.com>
16096
16097         fclose: don't fail on non-seekable input stream
16098         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
16099         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
16100         since fflush is allowed to fail in that case.
16101
16102 2011-04-30  Bruno Haible  <bruno@clisp.org>
16103
16104         dup3: cleanup
16105         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
16106
16107 2011-04-30  Bruno Haible  <bruno@clisp.org>
16108
16109         netdb: Make it work in C++ mode.
16110         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
16111         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
16112         module.
16113         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
16114         gl_MODULE_INDICATOR_FOR_TESTS.
16115         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
16116         * modules/netdb-c++-tests: New file.
16117         * tests/test-netdb-c++.cc: New file.
16118
16119 2011-04-30  Bruno Haible  <bruno@clisp.org>
16120
16121         New modules 'vfscanf', 'vscanf'.
16122         * modules/vfscanf: New file.
16123         * modules/vscanf: New file.
16124         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
16125         here.
16126         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
16127         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
16128
16129 2011-04-30  Bruno Haible  <bruno@clisp.org>
16130
16131         passfd: Add comments.
16132         * lib/passfd.c: Add comments about platforms.
16133
16134 2011-04-30  Bruno Haible  <bruno@clisp.org>
16135
16136         sys_uio: Make <sys/uio.h> self-contained.
16137         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
16138         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
16139
16140 2011-04-30  Bruno Haible  <bruno@clisp.org>
16141
16142         sys_socket: Ensure 'struct iovec' definition.
16143         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
16144         <sys/socket.h>.
16145         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
16146
16147 2011-04-30  Bruno Haible  <bruno@clisp.org>
16148
16149         sys_uio: Protect definition of 'struct iovec'.
16150         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
16151         it as a C struct.
16152
16153 2011-04-30  Bruno Haible  <bruno@clisp.org>
16154
16155         manywarnings: fix indentation
16156         * m4/manywarnings.m4: Indent by 2 spaces consistently.
16157
16158 2011-04-30  Pádraig Brady <P@draigBrady.com>
16159
16160         manywarnings: add -Wno-missing-field-initializers if needed.
16161         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
16162         option if it's needed to allow initialization with { 0, }
16163
16164 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
16165
16166         announce-gen: cosmetic improvement
16167         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
16168
16169 2011-04-29  Jim Meyering  <meyering@redhat.com>
16170
16171         vc-list-files: indent with spaces, not TABs
16172         * build-aux/vc-list-files: Convert leading TABs to spaces,
16173         to match the style of most other files in gnulib.
16174
16175         announce-gen: indent with spaces, not TABs
16176         * build-aux/announce-gen: Convert all TABs to spaces, to match
16177         the style of most other files in gnulib.
16178
16179 2011-04-29  Eric Blake  <eblake@redhat.com>
16180
16181         quotearg: avoid uninitialized variable use
16182         * lib/quotearg.c (quoting_options_from_style): Initialize
16183         remaining fields, and ensure that custom styles are only used via
16184         quoting_options rather than quoting_style.
16185
16186 2011-04-29  Jim Meyering  <meyering@redhat.com>
16187
16188         maint.mk: remove unused VC-tag variable
16189         * top/maint.mk (VC-tag): Remove unused variable.
16190
16191 2011-04-29  Bruno Haible  <bruno@clisp.org>
16192
16193         netdb: fix gai_strerror replacements
16194         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
16195         * modules/netdb: Substitute it.
16196
16197 2011-04-29  Jim Meyering  <meyering@redhat.com>
16198
16199         test-getcwd.c: avoid new set-but-not-used warning
16200         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
16201         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
16202         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
16203         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
16204
16205         test-hash.c: avoid a new shadowing warning
16206         * tests/test-hash.c (main): Don't shadow "dup".
16207
16208 2011-04-28  Eric Blake  <eblake@redhat.com>
16209
16210         getaddrinfo: fix gai_strerror signature
16211         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
16212         and work around mingw with UNICODE defined.
16213         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
16214         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
16215         * modules/netdb (Makefile.am): Substitute it.
16216         * lib/netdb.in.h (gai_strerror): Declare replacement.
16217         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
16218         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
16219         the fix.
16220
16221         getsockopt: avoid compiler warning
16222         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
16223         Reported by Matthias Bolte.
16224
16225         tests: drop unused link dependency
16226         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
16227         * modules/dirent-safer-tests (Makefile.am): Likewise.
16228         * modules/fdopendir-tests (Makefile.am): Likewise.
16229         * modules/mkfifoat-tests (Makefile.am): Likewise.
16230         * modules/openat-safer-tests (Makefile.am): Likewise.
16231         * modules/openat-tests (Makefile.am): Likewise.
16232         * modules/readlinkat-tests (Makefile.am): Likewise.
16233         * modules/symlinkat-tests (Makefile.am): Likewise.
16234         * modules/linkat-tests (Makefile.am): Likewise.
16235         (Depends-on): Switch to filenamecat-lgpl.
16236         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
16237         LIBINTL.
16238         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
16239         * tests/test-linkat.c (main): Don't require xalloc.
16240
16241         hash, mgetgroups: drop xalloc dependency
16242         * lib/hash.c (includes): Adjust includes.
16243         * lib/mgetgroups.c (includes): Likewise.
16244         (xgetgroups): Move...
16245         * lib/xgetgroups.c: ...to new file.
16246         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
16247         * modules/xgetgroups: New file, split from...
16248         * modules/mgetgroups: ...here.
16249         (Depends-on): Add xalloc-oversized.
16250         * modules/hash (Depends-on): Likewise.
16251         * modules/hash-tests (Depends-on): Drop xalloc.
16252         (test_hash_LDADD): Drop unused library.
16253         * tests/test-hash.c (main): Break xalloc dependency.
16254         (includes): Drop unused include.
16255
16256         xalloc-oversized: new module
16257         * modules/xalloc-oversized: New module.
16258         * modules/xalloc (Depends-on): Add it.
16259         * lib/xalloc.h (xalloc_oversized): Move...
16260         * lib/xalloc-oversized.h: ...into new file.
16261
16262         utimecmp: drop dependency on xmalloc
16263         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
16264         due to memory pressure.
16265         * modules/utimecmp (Depends-on): Drop xalloc.
16266
16267 2011-04-27  Eric Blake  <eblake@redhat.com>
16268
16269         getcwd: fix mingw bugs
16270         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
16271         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
16272         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
16273
16274 2011-04-27  Bruno Haible  <bruno@clisp.org>
16275
16276         mkstemps: Ensure declaration on MacOS X 10.5.
16277         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
16278         * doc/glibc-functions/mkstemps.texi: Document header file problem on
16279         MacOS X.
16280
16281 2011-04-27  Bruno Haible  <bruno@clisp.org>
16282
16283         mkstemp: More documentation.
16284         * doc/posix-functions/mkstemp.texi: Document header file problem on
16285         MacOS X.
16286
16287 2011-04-27  Bruno Haible  <bruno@clisp.org>
16288
16289         mkstemp: Tweak configure message when cross-compiling.
16290         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
16291         result as a guess.
16292
16293 2011-04-27  Bruno Haible  <bruno@clisp.org>
16294
16295         clean-temp: Clarify what it does.
16296         * lib/clean-temp.h: Add more comments.
16297         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
16298         module.
16299         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
16300         * doc/glibc-functions/mkstemps.texi: Likewise.
16301         * doc/glibc-functions/mkostemps.texi: Likewise.
16302
16303 2011-04-27  Eric Blake  <eblake@redhat.com>
16304
16305         fchdir: avoid extra chdir and fix test
16306         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
16307         getcwd-lgpl.
16308         * lib/fchdir.c (get_name): Any absolute name will do; it does not
16309         have to be canonical.
16310         (canonicalize_file_name): Drop unused macro.
16311         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
16312
16313         filenamecat-lgpl: fix licence
16314         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
16315         when it was first created.
16316
16317         linkat, renameat: add missing dependency
16318         * modules/linkat (Depends-on): Require getcwd-lgpl.
16319         * modules/renameat (Depends-on): Likewise.
16320
16321         tests: reduce dependencies
16322         * tests/test-linkat.c (main): Use lighter-weight getcwd.
16323         * tests/test-renameat.c (main): Likewise.
16324         * modules/linkat-tests (Depends-on): Relax dependency.
16325         * modules/renameat-tests (Depends-on): Likewise.
16326         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
16327         dependency explicit.
16328
16329         save-cwd: reduce default dependency
16330         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
16331         * lib/save-cwd.c: Update comments.
16332         * NEWS: Document the semantic change.
16333
16334         getcwd: enhance tests
16335         * tests/test-getcwd-lgpl.c: New file, taken from...
16336         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
16337         repeat long path stress tests from m4 probe.
16338         * modules/getcwd-lgpl-tests: New module.
16339         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
16340         * m4/getcwd-abort-bug.m4: Update comment.
16341         * m4/getcwd-path-max.m4: Likewise.
16342
16343         getcwd-lgpl: new module
16344         * modules/getcwd-lgpl: New module.
16345         * lib/getcwd-lgpl.c: New file.
16346         * doc/posix-functions/getcwd.texi (getcwd): Document it.
16347         * MODULES.html.sh (lacking POSIX:2008): Likewise.
16348         * modules/getcwd (configure.ac): Set C witness.
16349         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
16350
16351         getcwd: tweak comments
16352         * m4/getcwd-abort-bug.m4: Fix comments.
16353         * m4/getcwd-path-max.m4: Likewise.
16354         * m4/getcwd.m4: Likewise.
16355
16356 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
16357         and Eric Blake  <eblake@redhat.com>
16358
16359         mkstemp: replace if system version uses wrong permissions
16360         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
16361         read/write mode bits set in file created by mkstemp.
16362         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
16363
16364 2011-04-27  Eric Blake  <eblake@redhat.com>
16365
16366         passfd: avoid compiler warning
16367         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
16368         Reported by Laine Stump.
16369
16370 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
16371
16372         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
16373         required by the NetBSD (and perhaps other 4.4BSD derived) join.
16374
16375 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
16376         and Eric Blake  <eblake@redhat.com>
16377
16378         mkstemp: mention clean-temp module
16379         * lib/mkstemp.c: Add comment.
16380         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
16381
16382 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
16383
16384         inttypes: also provide default values for 32-bit tests
16385         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
16386         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
16387
16388 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
16389
16390         strtoumax: remove dependency on strtoimax
16391         This is like the strtoull change of yesterday.
16392         * modules/strtoumax (Files): Add lib/strtoimax.c.
16393         (Depends-on): Remove strtoimax and add verify.
16394
16395         inttypes-incomplete: new module
16396         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
16397         all but the PRI* and SCN* parts of gl_INTTYPES_H.
16398         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
16399         of gl_INTTYPES_H.
16400         (gl_INTTYPES_H): Rewrite in terms of these new macros.
16401         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
16402         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
16403         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
16404         * modules/strtoumax, modules/xstrtol (Depends-on):
16405         Depend on inttypes-incomplete, not inttypes.
16406         * modules/inttypes-incomplete: New module, containing the contents
16407         of the old modules/inttypes module, except that the Files: section
16408         omits m4/inttypes-pri.m4, and the configure.ac section invokes
16409         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
16410         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
16411         (Depends-on): Depend only on inttypes-incomplete.
16412         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
16413
16414         inttypes: omit now-redundant strtoimax and strtoumax work
16415         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
16416         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
16417
16418         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
16419         This supports apps that need pointers to strtoimax and strtoumax,
16420         and ports to HP-UX 11.00 64.bit, which has macros that expand to
16421         nonexistent functions.  See
16422         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
16423         et seq.
16424         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
16425         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
16426         a macro.
16427         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
16428
16429 2011-04-25  Simon Josefsson  <simon@josefsson.org>
16430
16431         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
16432
16433 2011-04-25  Bruno Haible  <bruno@clisp.org>
16434
16435         strtol, strtoul: Mark modules as obsolete.
16436         * modules/strtol (Status, Notice): New sections.
16437         * modules/strtoul (Status, Notice): New sections.
16438
16439 2011-04-25  Bruno Haible  <bruno@clisp.org>
16440
16441         strtod: Remove check for strtod, unless supporting old platforms.
16442         * modules/strtod-obsolete: New file.
16443         * m4/strtod-obsolete.m4: New file.
16444         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
16445         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
16446         * modules/strtod (Depends-on): Add strtod-obsolete.
16447         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
16448
16449 2011-04-25  Bruno Haible  <bruno@clisp.org>
16450
16451         strcase: Make module obsolete.
16452         * modules/strcase (Status, Notice): New sections.
16453
16454 2011-04-25  Bruno Haible  <bruno@clisp.org>
16455
16456         dup2: Remove check for dup2, unless supporting old obsolete platforms.
16457         * modules/dup2-obsolete: New file.
16458         * m4/dup2-obsolete.m4: New file.
16459         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
16460         gl_FUNC_DUP2_OBSOLETE is not also defined.
16461         * modules/dup2 (Depends-on): Add dup2-obsolete.
16462         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
16463
16464 2011-04-25  Bruno Haible  <bruno@clisp.org>
16465
16466         strnlen: Avoid memchr related link error on old obsolete platforms.
16467         * modules/memchr-obsolete: New file.
16468         * m4/memchr-obsolete.m4: New file.
16469         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
16470         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
16471         * modules/memchr (Depends-on): Add memchr-obsolete.
16472         * modules/strnlen (Depends-on): Likewise.
16473         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
16474
16475 2011-04-25  Jim Meyering  <meyering@redhat.com>
16476
16477         maint.mk: makefile_at_at_check extend and clean up
16478         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
16479         in addition to */Makefile.am.
16480         Exempt legitimate uses of @VAR@ notation, e.g.,
16481         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
16482         Remove obsolete coreutils-specific comment.
16483         Prompted by discussion here:
16484         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
16485
16486 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
16487
16488         strtoul: remove dependency on strtol
16489         This is so that 'configure' need not check for strtol merely because
16490         the application needs strtoul.
16491         * modules/strtoul (Files): Add lib/strtol.c.
16492         (Depends-on): Remove strtol.
16493
16494         strtoull: remove dependency on strtoul
16495         This is like the strtoll change.
16496         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
16497         (Depends-on): Remove strtoul.
16498
16499         strtoll: remove dependency on strtol
16500         This is so that 'configure' need not check for strtol merely because
16501         the application needs strtoll.
16502         * modules/strtoll (Files): Add lib/strtol.c.
16503         (Depends-on): Remove strtol.
16504
16505 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16506
16507         inttypes: Move some configure check to module 'imaxdiv'.
16508         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
16509         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
16510         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
16511
16512 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16513
16514         inttypes: Move some configure check to module 'imaxabs'.
16515         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
16516         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
16517         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
16518
16519 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16520
16521         inttypes: Remove configure tests that are not needed since 2009-12-31.
16522         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
16523         gl_cv_header_working_inttypes_h.
16524
16525 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16526
16527         * modules/strnlen (Depends-on): Remove memchr.
16528         The strnlen implementation doesn't need the memchr module's fixes; see
16529         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
16530
16531         strtol: remove dependency on wchar
16532         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
16533         * modules/strtol (Depends-on): Remove wchar.
16534
16535 2011-04-21  Eric Blake  <eblake@redhat.com>
16536
16537         passfd: fix test regression on Linux
16538         * modules/passfd-tests (configure.ac): Correct socketpair check.
16539
16540         passfd: speed up configure and drop unused code
16541         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
16542         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
16543         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
16544         Instead of probing at configure for unix_scm_rights_bsd44_way,
16545         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
16546         check to a struct member probe.
16547         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
16548         (sendfd, recvfd): Update preprocessor checks.
16549         * modules/passfd (Files): Reflect rename, and drop unused file.
16550         (Depends-on): Drop unused dependency.
16551
16552         passfd: allow compilation on mingw
16553         * modules/sys_socket (Depends-on): Add sys_uio.
16554         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
16555         iovec and a minimal struct msghdr.
16556         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
16557         * tests/test-sys_socket.c (main): Enhance test.
16558         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
16559         guaranteed to provide what we need.
16560         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
16561         * modules/passfd-tests (Depends-on): Add sys_wait.
16562         * tests/test-passfd.c (main): Skip test on mingw, for now.
16563         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
16564         partial 'struct msghdr' implementation.
16565
16566         sys_uio: new module
16567         * modules/sys_uio: New module.
16568         * modules/sys_uio-tests: Likewise.
16569         * lib/sys_uio.in.h: New file.
16570         * m4/sys_uio_h.m4: Likewise.
16571         * tests/test-sys_uio.c: Likewise.
16572         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
16573         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
16574
16575 2011-04-20  Jim Meyering  <meyering@redhat.com>
16576
16577         useless-if-before-free: avoid false-positive
16578         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
16579         disjunct so that it too requires a terminating ";".  Without that,
16580         this script would identify as useless one statement from gcc that
16581         was not:
16582           if (aligned_ptr)
16583             free (((void **) aligned_ptr) [-1]);
16584
16585 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
16586
16587         doc: update users.txt.
16588         * users.txt: Add barcode.
16589
16590 2011-04-19  Bruno Haible  <bruno@clisp.org>
16591
16592         ioctl: Remove link dependency on native Windows.
16593         * lib/fd-hook.h: Renamed from lib/close-hook.h.
16594         (gl_close_fn, gl_ioctl_fn): New types.
16595         (struct fd_hook): Renamed from struct close_hook. Change type of
16596         private_close_fn field. Add private_ioctl_fn field.
16597         (close_hook_fn): Add parameter for primary close method.
16598         (execute_close_hooks, execute_all_close_hooks): Likewise.
16599         (ioctl_hook_fn): New type.
16600         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
16601         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
16602         argument.
16603         (unregister_fd_hook): Renamed from unregister_close_hook.
16604         * lib/fd-hook.c: Renamed from lib/close-hook.c.
16605         Don't include <unistd.h>.
16606         (close): Remove undef.
16607         (anchor): Update.
16608         (execute_close_hooks): Add argument for primary close method.
16609         (execute_all_close_hooks): Likewise.
16610         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
16611         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
16612         argument. Allow each argument to be NULL.
16613         (unregister_fd_hook): Renamed from unregister_close_hook.
16614         * lib/close.c (rpl_close): Pass 'close' function pointer to
16615         execute_all_close_hooks.
16616         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
16617         (primary_ioctl): New function.
16618         (ioctl): Don't call ioctlsocket here. Instead, call
16619         execute_all_ioctl_hooks.
16620         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
16621         close method.
16622         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
16623         (fd_sockets_hook): Renamed from close_sockets_hook.
16624         (gl_sockets_startup, gl_sockets_cleanup): Update.
16625         * modules/fd-hook: Renamed from modules/close-hook. Update.
16626         * modules/close (Depends-on): Add fd-hook, remove close-hook.
16627         * modules/sockets (Depends-on): Likewise.
16628         * modules/ioctl (Depends-on): Add fd-hook.
16629         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
16630         GNULIB_SOCKET.
16631
16632 2011-04-19  Bruno Haible  <bruno@clisp.org>
16633
16634         Move the support of O_NONBLOCK in open() to the 'open' module.
16635         * modules/nonblocking (Depends-on): Remove 'open'.
16636         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
16637         gl_cv_have_open_O_NONBLOCK.
16638         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
16639         O_NONBLOCK support.
16640         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
16641
16642 2011-04-17  Bruno Haible  <bruno@clisp.org>
16643
16644         pipe2: Simplify code.
16645         * lib/pipe2.c (pipe2): Reduce code duplication.
16646
16647 2011-04-17  Bruno Haible  <bruno@clisp.org>
16648
16649         nonblocking: Add comment.
16650         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
16651
16652 2011-04-17  Bruno Haible  <bruno@clisp.org>
16653
16654         nonblocking: Add tests for sockets.
16655         * tests/test-nonblocking-socket.sh: New file.
16656         * tests/test-nonblocking-socket-main.c: New file.
16657         * tests/test-nonblocking-socket-child.c: New file.
16658         * tests/test-nonblocking-socket.h: New file.
16659         * tests/socket-server.h: New file.
16660         * tests/socket-client.h: New file.
16661         * modules/nonblocking-socket-tests: New file.
16662         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
16663
16664 2011-04-17  Bruno Haible  <bruno@clisp.org>
16665
16666         nonblocking: Add tests for pipes.
16667         * tests/test-nonblocking-pipe.sh: New file.
16668         * tests/test-nonblocking-pipe-main.c: New file.
16669         * tests/test-nonblocking-pipe-child.c: New file.
16670         * tests/test-nonblocking-pipe.h: New file.
16671         * tests/test-nonblocking-writer.h: New file.
16672         * tests/test-nonblocking-reader.h: New file.
16673         * tests/test-nonblocking-misc.h: New file.
16674         * modules/nonblocking-pipe-tests: New file.
16675         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
16676
16677 2011-04-16  Bruno Haible  <bruno@clisp.org>
16678
16679         gettext: Clarify the needed programmer actions.
16680         * modules/gettext (Notice): New field.
16681         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
16682
16683 2011-04-16  Bruno Haible  <bruno@clisp.org>
16684
16685         strchrnul: Tweak last commit.
16686         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
16687         bug.
16688         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
16689         as in _GL_FUNCDECL_SYS.
16690         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
16691         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
16692
16693 2011-04-15  Eric Blake  <eblake@redhat.com>
16694
16695         strchrnul: work around cygwin bug
16696         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
16697         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
16698         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
16699         * modules/string (Makefile.am): Substitute it.
16700         * lib/string.in.h (strchrnul): Use it.
16701
16702 2011-04-15  Bruno Haible  <bruno@clisp.org>
16703
16704         Don't require lib/stdio-write.c when only module 'stdio' is used.
16705         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
16706         invocation.
16707         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
16708
16709 2011-04-14  Bruno Haible  <bruno@clisp.org>
16710
16711         Support non-blocking pipe I/O in read() on native Windows.
16712         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
16713         (read): New declaration.
16714         * lib/read.c: New file.
16715         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
16716         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
16717         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
16718         vscanf): New declarations.
16719         * lib/stdio-read.c: New file.
16720         * m4/read.m4: New file.
16721         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
16722         REPLACE_READ.
16723         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
16724         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
16725         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
16726         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
16727         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
16728         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
16729         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
16730         * modules/read: New file.
16731         * modules/nonblocking (Files): Add lib/stdio-read.c.
16732         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
16733         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
16734         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
16735         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
16736         * modules/pread (Depends-on): Add read.
16737         * modules/safe-read (Depends-on): Likewise.
16738         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
16739         gets, scanf, vfscanf, vscanf): Verify signatures.
16740         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
16741         problem with non-blocking pipes.
16742         * doc/posix-functions/fgetc.texi: Likewise.
16743         * doc/posix-functions/fgets.texi: Likewise.
16744         * doc/posix-functions/fread.texi: Likewise.
16745         * doc/posix-functions/fscanf.texi: Likewise.
16746         * doc/posix-functions/getc.texi: Likewise.
16747         * doc/posix-functions/getchar.texi: Likewise.
16748         * doc/posix-functions/gets.texi: Likewise.
16749         * doc/posix-functions/scanf.texi: Likewise.
16750         * doc/posix-functions/vfscanf.texi: Likewise.
16751         * doc/posix-functions/vscanf.texi: Likewise.
16752
16753 2011-04-14  Bruno Haible  <bruno@clisp.org>
16754
16755         Support non-blocking pipe I/O in write() on native Windows.
16756         * lib/write.c (rpl_write): Split a write request that failed merely
16757         because the byte count was larger than the pipe buffer's size.
16758         * doc/posix-functions/write.texi: Mention the problem with large byte
16759         counts.
16760
16761 2011-04-14  Bruno Haible  <bruno@clisp.org>
16762
16763         wchar: Ensure that wchar_t gets defined on uClibc.
16764         * lib/wchar.in.h: On uClibc, include <stddef.h>.
16765         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
16766
16767 2011-04-13  Bruno Haible  <bruno@clisp.org>
16768
16769         safe-write, full-read: Avoid unnecessary compilation units.
16770         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
16771         (Depends-on): Remove safe-read. Add ssize_t.
16772         * modules/full-read (Files): Add lib/full-write.c.
16773         (Depends-on): Add full-write.
16774
16775 2011-04-13  Bruno Haible  <bruno@clisp.org>
16776
16777         Support non-blocking pipe I/O and SIGPIPE in pwrite().
16778         * modules/pwrite (Depends-on): Add 'write'.
16779
16780 2011-04-13  Bruno Haible  <bruno@clisp.org>
16781
16782         Support non-blocking pipe I/O in write() on native Windows.
16783         * lib/unistd.in.h (write): Enable replacement also if
16784         GNULIB_UNISTD_H_NONBLOCKING is 1.
16785         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
16786         (rpl_write): When failing to write on a non-blocking pipe, change
16787         errno from ENOSPC to EAGAIN.
16788         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
16789         putchar, puts, vfprintf, vprintf): Enable replacement also if
16790         GNULIB_STDIO_H_NONBLOCKING is 1.
16791         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
16792         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
16793         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
16794         CALL_WITH_SIGPIPE_EMULATION.
16795         (CALL_WITH_SIGPIPE_EMULATION): Use them.
16796         * m4/nonblocking.m4: New file.
16797         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
16798         for non-blocking I/O support.
16799         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16800         GNULIB_UNISTD_H_NONBLOCKING.
16801         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
16802         required for non-blocking I/O support.
16803         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
16804         * modules/nonblocking (Files): Add m4/nonblocking.m4,
16805         lib/stdio-write.c, m4/asm-underscore.m4.
16806         (Depends-on): Add stdio, unistd.
16807         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
16808         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
16809         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
16810         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
16811         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
16812         problem with non-blocking pipes.
16813         * doc/posix-functions/fputc.texi: Likewise.
16814         * doc/posix-functions/fputs.texi: Likewise.
16815         * doc/posix-functions/fwrite.texi: Likewise.
16816         * doc/posix-functions/printf.texi: Likewise.
16817         * doc/posix-functions/putc.texi: Likewise.
16818         * doc/posix-functions/putchar.texi: Likewise.
16819         * doc/posix-functions/puts.texi: Likewise.
16820         * doc/posix-functions/vfprintf.texi: Likewise.
16821         * doc/posix-functions/vprintf.texi: Likewise.
16822         * doc/posix-functions/write.texi: Likewise.
16823
16824 2011-04-10  Jim Meyering  <meyering@redhat.com>
16825
16826         maint.mk: prohibit doubled words
16827         Detect them also when they're separated by a newline.
16828         There are 3 ways to customize it:
16829           - disable the test on a per file basis, as usual with rules using
16830             $(VC_LIST_EXCEPT)
16831           - replace the default doubled-word-selecting regexp (affects all files)
16832           - ignore a particular file-vs-doubled-word match
16833         I nearly used that last one to ignore the "is is" match in
16834         coreutils' NEWS file, since the text was "ls -is is ..."
16835         To do that, I would have added this line to cfg.mk:
16836           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
16837         but it would have ignored any "is is" match in NEWS.
16838         Low probability, but still...
16839         Instead, I changed the text, slightly:
16840           -  ls -is is now consistent with ls -lis in ignoring values returned
16841           +  "ls -is" is now consistent with ls -lis in ignoring values returned
16842         * top/maint.mk (prohibit_double_word_RE_): Provide default.
16843         (prohibit_doubled_word_): Define.
16844         (sc_prohibit_doubled_word): New rule.
16845         (sc_prohibit_the_the): Remove.  Subsumed by the above.
16846
16847 2011-04-10  Jim Meyering  <meyering@redhat.com>
16848
16849         maint: fix doubled-word typo in comment
16850         * m4/gethostname.m4: s/is is/it is/
16851         * m4/getdomainname.m4: Likewise.
16852
16853 2011-04-10  Jim Meyering  <meyering@redhat.com>
16854
16855         maint: remove doubled word: s/it it/it/
16856         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
16857
16858 2011-04-10  Jim Meyering  <meyering@redhat.com>
16859
16860         maint.mk: remove useless semicolon and backslash
16861         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
16862         semicolon and backslash.
16863
16864 2011-04-10  Bruno Haible  <bruno@clisp.org>
16865
16866         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
16867         * modules/stdint-tests (Depends-on): Add wchar.
16868
16869 2011-04-10  Jim Meyering  <meyering@redhat.com>
16870
16871         maint: remove doubled words in comments, e.g., s/a a/a/
16872         * lib/strptime.c (day_of_the_week): s/the the/the/
16873         * tests/test-chown.h (test_chown): s/a a/a/
16874
16875         test-chown.h: correct a cast
16876         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
16877         when the destination is a stat.st_gid.
16878
16879 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
16880
16881         getaddrinfo: Fix test for sa_len member.
16882         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
16883         include <sys/types.h> before <sys/socket.h>.
16884
16885 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
16886
16887         maint: change "can not" to "cannot"
16888         * doc/posix-functions/iconv.texi (iconv): This one crossed line
16889         boundaries.
16890
16891 2011-04-09  Jim Meyering  <meyering@redhat.com>
16892
16893         maint: change "a a" to "a"
16894         * tests/test-lchown.h (test_lchown): s/a a/a/
16895
16896         maint.mk: prohibit \<the the\>
16897         * top/maint.mk (sc_prohibit_the_the): New rule.
16898
16899         maint: fix "the the" in comment
16900         * lib/count-one-bits.h: s/the the/the/
16901
16902         maint: change "can not" to "cannot"
16903         But do not change the occurrences in maintain.texi or in
16904         build-aux/po/Makefile.in.in, which I presume comes from gettext.
16905         * doc/gnulib-tool.texi: s/can not/cannot/
16906         * doc/posix-functions/accept.texi (accept): Likewise.
16907         * doc/posix-functions/socket.texi (socket): Likewise.
16908         * lib/mbrtowc.c: Likewise.
16909
16910         maint.mk: prohibit use of "can not"
16911         * top/maint.mk (sc_prohibit_can_not): New rule.
16912         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
16913
16914 2011-04-09  Bruno Haible  <bruno@clisp.org>
16915
16916         careadlinkat: Guard against misuse of careadlinkatcwd.
16917         * lib/careadlinkat.c: Include <stdlib.h>.
16918         (careadlinkatcwd): Check that the fd argument is as expected.
16919
16920 2011-04-09  Bruno Haible  <bruno@clisp.org>
16921
16922         careadlinkat: Use common coding style.
16923         * lib/careadlinkat.c: Move gnulib includes after system includes.
16924
16925 2011-04-09  Bruno Haible  <bruno@clisp.org>
16926
16927         careadlinkat: Clarify specification.
16928         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
16929         (careadlinkatcwd): Add comment.
16930         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
16931
16932 2011-04-09  Bruno Haible  <bruno@clisp.org>
16933
16934         areadlinkat: Avoid link error on many platforms.
16935         * modules/areadlinkat (Depends-on): Add areadlink.
16936
16937 2011-04-09  Bruno Haible  <bruno@clisp.org>
16938
16939         allocator, careadlinkat: Fix double-inclusion guard.
16940         * lib/allocator.h: Fix double-inclusion guard.
16941         * lib/careadlinkat.h: Likewise.
16942
16943 2011-04-09  Bruno Haible  <bruno@clisp.org>
16944
16945         relocatable-prog-wrapper: Update after module 'areadlink' changed.
16946         * lib/relocwrapper.c: Update dependencies hierarchy.
16947         * build-aux/install-reloc: Update list of files to be compiled.
16948         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
16949         lib/allocator.[hc].
16950
16951 2011-04-08  Eric Blake  <eblake@redhat.com>
16952
16953         strftime: silence gnulib-tool warning
16954         * modules/strftime-tests (Depends-on): Drop automatic dependency.
16955
16956 2011-04-08  Bruno Haible  <bruno@clisp.org>
16957
16958         verify: Fix syntax error with GCC 4.6 in C++ mode.
16959         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
16960         (HAVE_STATIC_ASSERT): New macro.
16961         (verify_true, verify): Use 'static_assert' if it is supported and
16962         '_Static_assert' is not supported.
16963
16964 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
16965
16966         allocator: New module.
16967         * modules/allocator, lib/allocator.c: New files.
16968         * lib/allocator.h (stdlib_allocator): New decl.
16969         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
16970         Remove.  Do not include <stdlib.h>.
16971         (careadlinkat): Use stdlib_allocator instead of rolling our own.
16972         * modules/careadlinkat (Files): Remove lib/allocator.h.
16973         (Depends-on): Add allocator.
16974
16975         stdlib: let modules use system malloc, realloc
16976         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
16977         if !_GL_USE_STDLIB_ALLOC.
16978         (malloc, realloc): Limit this change to a smaller scope.
16979
16980         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
16981         (malloc, realloc): Don't #undef; no longer needed.
16982         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
16983         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
16984         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
16985         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
16986         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
16987         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
16988         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
16989         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
16990
16991         careadlinkat: rename members to avoid problem
16992         * lib/allocator.h (struct allocator): Rename members from
16993         malloc/realloc to allocate/reallocate, to avoid problems if malloc
16994         and realloc are #define'd.  Reported by Eric Blake in
16995         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
16996         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
16997
16998 2011-04-08  Eric Blake  <eblake@redhat.com>
16999
17000         nonblocking: reduce dependency
17001         * tests/test-nonblocking.c: Only test sockets when in use.
17002         * modules/nonblocking-tests (Depends-on): Drop socket.
17003         (Makefile.am): Link even if sockets are not present.
17004         * modules/pipe2-tests (Makefile.am): Likewise.
17005         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
17006
17007         pipe2: fix O_NONBLOCK support on mingw
17008         * modules/pipe2 (Depends-on): Add nonblocking.
17009         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
17010         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
17011         * tests/test-nonblocking.c (main): Likewise.
17012         * modules/pipe2-tests (Makefile.am): Avoid link failure.
17013
17014         fcntl-h: fix O_ACCMODE on cygwin
17015         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
17016         * lib/fcntl.in.h (O_ACCMODE): Fix it.
17017
17018         pipe-filter: drop O_NONBLOCK workarounds
17019         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
17020         * modules/pipe-filter-ii (Depends-on): Likewise.
17021         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
17022
17023         nonblocking: provide O_NONBLOCK for mingw
17024         * modules/nonblocking (Depends-on): Add open.
17025         (configure.ac): Set new witness macro.
17026         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
17027         * modules/fcntl-h (Makefile.am): Substitute it.
17028         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
17029         nonblocking module is in use.
17030         * lib/nonblocking.c: Adjust portability test.
17031         * lib/open.c (open): Don't let native open see gnulib flag.
17032         * tests/test-fcntl-h.c (main): Enhance test.
17033         * tests/test-open.h (test_open): Likewise.
17034         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
17035
17036         careadlinkat: fix compilation error on mingw
17037         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
17038         within struct allocator.
17039
17040 2011-04-06  Eric Blake  <eblake@redhat.com>
17041
17042         binary-io: relicense under LGPLv2+
17043         * modules/binary-io (License): Relax to LGPLv2+.
17044         Requested for libvirt, and required by pipe2.
17045
17046 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
17047
17048         verify: use _Static_assert if available
17049         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
17050         (verify_true, verify): Use it if available.  This generates better
17051         diagnostics with GCC 4.6.0 and later.
17052
17053 2011-04-05  Bruno Haible  <bruno@clisp.org>
17054
17055         Remove leftover generated .h files after config.status changed.
17056
17057         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
17058         GL_GENERATE_ALLOCA_H.
17059         * modules/alloca-opt (Makefile.am): Remove alloca.h if
17060         GL_GENERATE_ALLOCA_H evaluates to false.
17061
17062         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
17063         GL_GENERATE_ARGZ_H.
17064         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
17065         evaluates to false.
17066
17067         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
17068         GL_GENERATE_BYTESWAP_H.
17069         * modules/byteswap (Makefile.am): Remove byteswap.h if
17070         GL_GENERATE_BYTESWAP_H evaluates to false.
17071
17072         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
17073         GL_GENERATE_ERRNO_H.
17074         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
17075         evaluates to false.
17076
17077         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
17078         GL_GENERATE_FLOAT_H.
17079         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
17080         evaluates to false.
17081
17082         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
17083         GL_GENERATE_FNMATCH_H.
17084         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
17085         GL_GENERATE_FNMATCH_H evaluates to false.
17086
17087         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
17088         GL_GENERATE_GLOB_H.
17089         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
17090         evaluates to false.
17091
17092         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
17093         automake conditional GL_GENERATE_ICONV_H.
17094         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
17095         evaluates to false.
17096
17097         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
17098         GL_GENERATE_NETINET_IN_H.
17099         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
17100         GL_GENERATE_NETINET_IN_H evaluates to false.
17101
17102         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
17103         conditional GL_GENERATE_PTHREAD_H.
17104         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
17105         * modules/pthread (Makefile.am): Remove pthread.h if
17106         GL_GENERATE_PTHREAD_H evaluates to false.
17107
17108         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
17109         GL_GENERATE_SCHED_H.
17110         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
17111         evaluates to false.
17112
17113         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
17114         conditional GL_GENERATE_SELINUX_CONTEXT_H.
17115         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
17116         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
17117
17118         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
17119         GL_GENERATE_STDARG_H.
17120         * modules/stdarg (Makefile.am): Remove stdarg.h if
17121         GL_GENERATE_STDARG_H evaluates to false.
17122
17123         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
17124         GL_GENERATE_STDBOOL_H.
17125         * modules/stdbool (Makefile.am): Remove stdbool.h if
17126         GL_GENERATE_STDBOOL_H evaluates to false.
17127
17128         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
17129         conditional GL_GENERATE_STDDEF_H.
17130         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
17131         * modules/stddef (Makefile.am): Remove stddef.h if
17132         GL_GENERATE_STDDEF_H evaluates to false.
17133
17134         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
17135         GL_GENERATE_STDINT_H.
17136         * modules/stdint (Makefile.am): Remove stdint.h if
17137         GL_GENERATE_STDINT_H evaluates to false.
17138
17139         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
17140         GL_GENERATE_SYSEXITS_H.
17141         * modules/sysexits (Makefile.am): Remove sysexits.h if
17142         GL_GENERATE_SYSEXITS_H evaluates to false.
17143
17144         Reported by Karl Berry and Ralf Wildenhues.
17145
17146 2011-04-05  Bruno Haible  <bruno@clisp.org>
17147
17148         Ensure to rebuild generated .h files when config.status has changed.
17149         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
17150         config.status.
17151         * modules/ctype (Makefile.am): Likewise.
17152         * modules/dirent (Makefile.am): Likewise.
17153         * modules/errno (Makefile.am): Likewise.
17154         * modules/fcntl-h (Makefile.am): Likewise.
17155         * modules/float (Makefile.am): Likewise.
17156         * modules/getopt-posix (Makefile.am): Likewise.
17157         * modules/glob (Makefile.am): Likewise.
17158         * modules/iconv-h (Makefile.am): Likewise.
17159         * modules/inttypes (Makefile.am): Likewise.
17160         * modules/langinfo (Makefile.am): Likewise.
17161         * modules/locale (Makefile.am): Likewise.
17162         * modules/math (Makefile.am): Likewise.
17163         * modules/netdb (Makefile.am): Likewise.
17164         * modules/netinet_in (Makefile.am): Likewise.
17165         * modules/poll-h (Makefile.am): Likewise.
17166         * modules/pthread (Makefile.am): Likewise.
17167         * modules/pty (Makefile.am): Likewise.
17168         * modules/sched (Makefile.am): Likewise.
17169         * modules/search (Makefile.am): Likewise.
17170         * modules/selinux-h (Makefile.am): Likewise.
17171         * modules/signal (Makefile.am): Likewise.
17172         * modules/spawn (Makefile.am): Likewise.
17173         * modules/stdarg (Makefile.am): Likewise.
17174         * modules/stdbool (Makefile.am): Likewise.
17175         * modules/stddef (Makefile.am): Likewise.
17176         * modules/stdint (Makefile.am): Likewise.
17177         * modules/stdio (Makefile.am): Likewise.
17178         * modules/stdlib (Makefile.am): Likewise.
17179         * modules/string (Makefile.am): Likewise.
17180         * modules/strings (Makefile.am): Likewise.
17181         * modules/sys_file (Makefile.am): Likewise.
17182         * modules/sys_ioctl (Makefile.am): Likewise.
17183         * modules/sys_select (Makefile.am): Likewise.
17184         * modules/sys_socket (Makefile.am): Likewise.
17185         * modules/sys_stat (Makefile.am): Likewise.
17186         * modules/sys_time (Makefile.am): Likewise.
17187         * modules/sys_times (Makefile.am): Likewise.
17188         * modules/sys_utsname (Makefile.am): Likewise.
17189         * modules/sys_wait (Makefile.am): Likewise.
17190         * modules/sysexits (Makefile.am): Likewise.
17191         * modules/termios (Makefile.am): Likewise.
17192         * modules/time (Makefile.am): Likewise.
17193         * modules/unistd (Makefile.am): Likewise.
17194         * modules/wchar (Makefile.am): Likewise.
17195         * modules/wctype-h (Makefile.am): Likewise.
17196         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
17197
17198 2011-04-05  Bruno Haible  <bruno@clisp.org>
17199
17200         pipe2: Relicense under LGPLv2+.
17201         * modules/pipe2 (License): Change to LGPLv2+.
17202         Requested by Eric Blake, for libvirt.
17203
17204 2011-04-05  Bruce Korb  <bkorb@gnu.org>
17205
17206         bootstrap: compute gnulib_extra_files after updating build_aux
17207         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
17208         change build_aux or also supply gnulib_extra_files.  Handle correctly.
17209
17210 2011-04-05  Eric Blake  <eblake@redhat.com>
17211
17212         bootstrap: preserve git whitelist item sorting
17213         * build-aux/bootstrap (sort_patterns): New function.
17214         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
17215
17216 2011-04-05  Simon Josefsson  <simon@josefsson.org>
17217
17218         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
17219         sc_space_tab check.
17220
17221 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
17222
17223         areadlink, areadlinkat: rewrite in terms of careadlinkat
17224         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
17225         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
17226         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
17227         (malloc, realloc): Remove #undefs.
17228         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
17229         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
17230         readlink, ssize_t, stdint, unistd.
17231         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
17232         areadlink, stdint.
17233
17234         careadlinkat: new module
17235         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
17236         * modules/careadlinkat: New files, written by me with
17237         a review and feedback from Ben Pfaff in
17238         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
17239
17240 2011-04-01  Bruno Haible  <bruno@clisp.org>
17241
17242         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
17243         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
17244         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
17245         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
17246         Reported by Bruce Korb <bruce.korb@gmail.com>.
17247
17248 2011-04-01  Bruno Haible  <bruno@clisp.org>
17249
17250         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
17251         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
17252         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
17253         * modules/wcpcpy (Depends-on): Add extensions.
17254         * modules/wcpncpy (Depends-on): Likewise.
17255         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
17256         systems.
17257         * doc/posix-functions/wcpncpy.texi: Likewise.
17258         * doc/posix-functions/wcwidth.texi: Likewise.
17259
17260 2011-03-31  Eric Blake  <eblake@redhat.com>
17261
17262         nonblocking: fix mingw test failures
17263         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
17264         non-blocking flag on regular file.
17265         (get_nonblocking_flag): Set errno on invalid fd.
17266         * tests/test-nonblocking.c (main): Avoid test failure on
17267         directories if fchdir is not active.
17268         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
17269
17270 2011-03-31  Bruno Haible  <bruno@clisp.org>
17271
17272         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
17273         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
17274         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
17275         Reported by Simon Josefsson <simon@josefsson.org>.
17276
17277 2011-03-31  Bruno Haible  <bruno@clisp.org>
17278         and Eric Blake  <eblake@redhat.com>
17279
17280         nonblocking: new module
17281         * modules/nonblocking: New module.
17282         * modules/nonblocking-tests: Likewise.
17283         * lib/nonblocking.h: New file.
17284         * lib/nonblocking.c: Likewise.
17285         * tests/test-nonblocking.c: New test.
17286         * lib/ioctl.c (ioctl) [mingw]: Update comment.
17287
17288 2011-03-30  Bruno Haible  <bruno@clisp.org>
17289
17290         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
17291         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
17292         instead of 'printf' format for GCC >= 4.4.
17293         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
17294         (fprintf, printf, vfprintf, vprintf): Declare with
17295         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
17296         the system's vfprintf() function.
17297         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
17298
17299 2011-03-30  Eric Blake  <eblake@redhat.com>
17300
17301         passfd: fix scoping bug
17302         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
17303         before sendmsg/recvmsg.
17304
17305         passfd: standardize coding conventions
17306         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
17307         can be learned at compile time.
17308         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
17309         ifdefs.
17310         (sendfd, recvfd): Follow gnulib code conventions.
17311
17312         passfd: fix incorrect sendmsg arguments
17313         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
17314         incorrect msg_controllen value.
17315         * modules/passfd-tests (Depends-on): Check for alarm.
17316         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
17317         Reported by Bastien ROUCARIES.
17318
17319 2011-03-30  Bruno Haible  <bruno@clisp.org>
17320
17321         c-strcasestr: Relicense under LGPLv2+.
17322         * modules/c-strcasestr (License): Change to LGPLv2+.
17323         Requested by Eric Blake, for libvirt.
17324
17325 2011-03-30  Simon Josefsson  <simon@josefsson.org>
17326
17327         * users.txt: Add libidn2.  Fix libtasn1 link.
17328
17329 2011-03-30  Jim Meyering  <meyering@redhat.com>
17330
17331         tests: readlink* ("",... fails with EINVAL on newer kernels
17332         readlink and readlinkat have typically failed with ENOENT for
17333         the invalid, empty file name,  "".  However, with the advent
17334         of linux-2.6.39, they fail with EINVAL.
17335         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
17336         when operating on the empty file name.
17337         * tests/test-readlink.h (test_readlink): Likewise.
17338
17339 2011-03-29  Bruno Haible  <bruno@clisp.org>
17340
17341         Relicense some modules under LGPLv2+, for libidn2.
17342         * modules/array-mergesort (License): Change to LGPLv2+.
17343         * modules/c-strcaseeq (License): Likewise.
17344         * modules/striconveh (License): Likewise.
17345         * modules/striconveha (License): Likewise.
17346         * modules/uniconv/base (License): Likewise.
17347         * modules/uniconv/u8-conv-from-enc (License): Likewise.
17348         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
17349         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
17350         * modules/unictype/base (License): Likewise.
17351         * modules/unictype/bidiclass-of (License): Likewise.
17352         * modules/unictype/category-M (License): Likewise.
17353         * modules/unictype/category-none (License): Likewise.
17354         * modules/unictype/category-of (License): Likewise.
17355         * modules/unictype/category-test (License): Likewise.
17356         * modules/unictype/category-test-withtable (License): Likewise.
17357         * modules/unictype/combining-class (License): Likewise.
17358         * modules/unictype/joiningtype-of (License): Likewise.
17359         * modules/unictype/scripts (License): Likewise.
17360         * modules/uninorm/base (License): Likewise.
17361         * modules/uninorm/canonical-decomposition (License): Likewise.
17362         * modules/uninorm/composition (License): Likewise.
17363         * modules/uninorm/decompose-internal (License): Likewise.
17364         * modules/uninorm/decomposition-table (License): Likewise.
17365         * modules/uninorm/nfc (License): Likewise.
17366         * modules/uninorm/nfd (License): Likewise.
17367         * modules/uninorm/u32-normalize (License): Likewise.
17368         * modules/unistr/base (License): Likewise.
17369         * modules/unistr/u32-cpy (License): Likewise.
17370         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
17371         * modules/unistr/u32-to-u8 (License): Likewise.
17372         * modules/unistr/u32-uctomb (License): Likewise.
17373         * modules/unistr/u8-check (License): Likewise.
17374         * modules/unistr/u8-mblen (License): Likewise.
17375         * modules/unistr/u8-mbtouc (License): Likewise.
17376         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
17377         * modules/unistr/u8-mbtoucr (License): Likewise.
17378         * modules/unistr/u8-prev (License): Likewise.
17379         * modules/unistr/u8-strlen (License): Likewise.
17380         * modules/unistr/u8-to-u32 (License): Likewise.
17381         * modules/unistr/u8-uctomb (License): Likewise.
17382         * modules/unitypes (License): Likewise.
17383         Requested by Simon Josefsson.
17384
17385 2011-03-29  Simon Josefsson  <simon@josefsson.org>
17386
17387         lib-symbol-visibility: Add a notice.
17388         * modules/lib-symbol-visibility (Notice): New field.
17389
17390 2011-03-29  Bruno Haible  <bruno@clisp.org>
17391
17392         getaddrinfo: Doc fix.
17393         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
17394         section "fixed in Gnulib".
17395
17396 2011-03-28  Simon Josefsson  <simon@josefsson.org>
17397
17398         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
17399         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
17400
17401 2011-03-26  Bruno Haible  <bruno@clisp.org>
17402
17403         unictype/property-byname: Reduce the number of load-time relocations.
17404         * lib/unictype/pr_byname.c: Include <stdlib.h>.
17405         (UC_PROPERTY_INDEX_*): New enumeration values.
17406         (uc_property_byname): Convert an index from the lookup table to an
17407         uc_property_t.
17408         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
17409         values.
17410
17411 2011-03-26  Bruno Haible  <bruno@clisp.org>
17412
17413         unictype/property-byname: Allow omitted word separators and aliases.
17414         * lib/unictype/pr_byname.gperf: Add property names without word
17415         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
17416         for 'space'.
17417
17418 2011-03-26  Bruno Haible  <bruno@clisp.org>
17419
17420         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
17421         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
17422         also hyphens to space.
17423         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
17424         without spaces.
17425         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
17426
17427 2011-03-26  Bruno Haible  <bruno@clisp.org>
17428
17429         unictype/joiningtype-byname: Recognize long names as well.
17430         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
17431         a long name.
17432         * lib/unictype/joiningtype_byname.c: Include <string.h>,
17433         unictype/joiningtype_byname.h.
17434         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
17435         * lib/unictype/joiningtype_byname.gperf: New file.
17436         * modules/unictype/joiningtype-byname (Files): Add
17437         lib/unictype/joiningtype_byname.gperf.
17438         (Depends-on): Add gperf.
17439         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
17440         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
17441         long names.
17442
17443         Tests for module 'unictype/joiningtype-longname'.
17444         * modules/unictype/joiningtype-longname-tests: New file.
17445         * tests/unictype/test-joiningtype_longname.c: New file.
17446
17447         New module 'unictype/joiningtype-longname'.
17448         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
17449         * lib/unictype/joiningtype_longname.c: New file.
17450         * modules/unictype/joiningtype-longname: New file.
17451         * modules/unictype/joiningtype-all (Depends-on): Add
17452         unictype/joiningtype-longname.
17453
17454 2011-03-26  Bruno Haible  <bruno@clisp.org>
17455
17456         unictype/bidiclass-byname: Recognize long names as well.
17457         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
17458         name.
17459         * lib/unictype/bidi_byname.c: Include <string.h>,
17460         unictype/bidi_byname.h.
17461         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
17462         * lib/unictype/bidi_byname.gperf: New file.
17463         * modules/unictype/bidiclass-byname (Files): Add
17464         lib/unictype/bidi_byname.gperf.
17465         (Depends-on): Add gperf.
17466         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
17467         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
17468         long names.
17469
17470         Tests for module 'unictype/bidiclass-longname'.
17471         * modules/unictype/bidiclass-longname-tests: New file.
17472         * tests/unictype/test-bidi_longname.c: New file.
17473
17474         New module 'unictype/bidiclass-longname'.
17475         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
17476         * lib/unictype/bidi_longname.c: New file.
17477         * modules/unictype/bidiclass-longname: New file.
17478         * modules/unictype/bidiclass-all (Depends-on): Add
17479         unictype/bidiclass-longname.
17480
17481 2011-03-26  Bruno Haible  <bruno@clisp.org>
17482
17483         unictype/bidi*: Rename modules.
17484         * modules/unictype/bidiclass-all: Renamed from
17485         modules/unictype/bidicategory-all.
17486         * modules/unictype/bidiclass-name: Renamed from
17487         modules/unictype/bidiclass-name.
17488         (Description): Update.
17489         * modules/unictype/bidiclass-name-tests: Renamed from
17490         modules/unictype/bidicategory-name-tests.
17491         * modules/unictype/bidiclass-byname: Renamed from
17492         modules/unictype/bidicategory-byname.
17493         (Description): Update.
17494         * modules/unictype/bidiclass-byname-tests: Renamed from
17495         modules/unictype/bidicategory-byname-tests.
17496         * modules/unictype/bidiclass-of: Renamed from
17497         modules/unictype/bidicategory-of.
17498         (Description): Update.
17499         * modules/unictype/bidiclass-of-tests: Renamed from
17500         modules/unictype/bidicategory-of-tests.
17501         * modules/unictype/bidiclass-test: Renamed from
17502         modules/unictype/bidicategory-test.
17503         (Description): Update.
17504         * modules/unictype/bidiclass-test-tests: Renamed from
17505         modules/unictype/bidicategory-test-tests.
17506         * modules/unictype/bidicategory-all: New file, a simple redirection.
17507         * modules/unictype/bidicategory-name: Likewise.
17508         * modules/unictype/bidicategory-byname: Likewise.
17509         * modules/unictype/bidicategory-of: Likewise.
17510         * modules/unictype/bidicategory-test: Likewise.
17511         * modules/unictype/property-bidi-* (Dependencies): Update.
17512         * lib/unictype/bidi_*.c: Update comment.
17513
17514 2011-03-26  Bruno Haible  <bruno@clisp.org>
17515
17516         unictype/bidi*: Rename functions, part 2.
17517         * modules/unictype/bidicategory-name (configure.ac): Update required
17518         libunistring version.
17519         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
17520
17521 2011-03-25  Bruno Haible  <bruno@clisp.org>
17522
17523         New module 'unictype/combining-class-all'.
17524         * modules/unictype/combining-class-all: New file.
17525
17526         Tests for module 'unictype/combining-class-byname'.
17527         * modules/unictype/combining-class-byname-tests: New file.
17528         * tests/unictype/test-combiningclass_byname.c: New file.
17529
17530         New module 'unictype/combining-class-byname'.
17531         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
17532         * lib/unictype/combiningclass_byname.c: New file.
17533         * lib/unictype/combiningclass_byname.gperf: New file.
17534         * modules/unictype/combining-class-byname: New file.
17535
17536         Tests for module 'unictype/combining-class-longname'.
17537         * modules/unictype/combining-class-longname-tests: New file.
17538         * tests/unictype/test-combiningclass_longname.c: New file.
17539
17540         New module 'unictype/combining-class-longname'.
17541         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
17542         * lib/unictype/combiningclass_longname.c: New file.
17543         * modules/unictype/combining-class-longname: New file.
17544
17545         Tests for module 'unictype/combining-class-name'.
17546         * modules/unictype/combining-class-name-tests: New file.
17547         * tests/unictype/test-combiningclass_name.c: New file.
17548
17549         New module 'unictype/combining-class-name'.
17550         * lib/unictype.in.h (uc_combining_class_name): New declaration.
17551         * lib/unictype/combiningclass_name.c: New file.
17552         * modules/unictype/combining-class-name: New file.
17553
17554 2011-03-25  Bruno Haible  <bruno@clisp.org>
17555
17556         unictype/combining-class: Rename source files.
17557         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
17558         of unictype/combining.h.
17559         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
17560         Update.
17561         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
17562         * modules/unictype/combining-class (Description): Fix.
17563         (Files, Makefile.am): Update.
17564         * tests/unictype/test-combiningclass.c: Renamed from
17565         tests/unictype/test-combining.c.
17566         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
17567
17568 2011-03-25  Bruno Haible  <bruno@clisp.org>
17569
17570         unictype: Update list of canonical combining classes.
17571         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
17572
17573 2011-03-25  Bruno Haible  <bruno@clisp.org>
17574
17575         unictype/category-byname: Recognize long names as well.
17576         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
17577         a long name.
17578         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
17579         unictype/categ_byname.h.
17580         (UC_CATEGORY_INDEX_*): New enumeration values.
17581         (uc_general_category_byname): Use uc_general_category_lookup and
17582         convert from index to value.
17583         * lib/unictype/categ_byname.gperf: New file.
17584         * modules/unictype/category-byname (Files): Add
17585         lib/unictype/categ_byname.gperf.
17586         (Depends-on): Add gperf.
17587         (Makefile.am): Add rule for generating unictype/categ_byname.h.
17588         * tests/unictype/test-categ_byname.c (main): Test the recognition of
17589         long names.
17590
17591         Tests for module 'unictype/category-longname'.
17592         * modules/unictype/category-longname-tests: New file.
17593         * tests/unictype/test-categ_longname.c: New file.
17594
17595         New module 'unictype/category-longname'.
17596         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
17597         * lib/unictype/categ_longname.c: New file.
17598         * modules/unictype/category-longname: New file.
17599         * modules/unictype/category-all (Depends-on): Add it.
17600
17601 2011-03-25  Bruno Haible  <bruno@clisp.org>
17602
17603         Tests for module 'unictype/category-LC'.
17604         * modules/unictype/category-LC-tests: New file.
17605         * tests/unictype/test-categ_LC.c: New file, automatically generated.
17606
17607         New module 'unictype/category-LC'.
17608         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
17609         (UC_CATEGORY_LC): New declaration.
17610         (UC_CASED_LETTER): New macro.
17611         * lib/gen-uni-tables.c (is_category_LC): New function.
17612         (output_categories): Also handle category LC.
17613         (UC_CATEGORY_MASK_LC): New enumeration value.
17614         (general_category_byname): Also handle category LC.
17615         * lib/unictype/categ_LC.c: New file.
17616         * lib/unictype/categ_LC.h: New file, automatically generated.
17617         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
17618         category LC.
17619         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
17620         * modules/unictype/category-LC: New file.
17621         * modules/unictype/category-byname (Depends-on): Add
17622         unictype/category-LC.
17623         * modules/unictype/category-all (Depends-on): Likewise.
17624
17625 2011-03-25  Eric Blake  <eblake@redhat.com>
17626
17627         xmalloc: revert yesterday's regression
17628         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
17629         realloc's underlying behavior (allowing allocation of zero-size
17630         objects, especially if malloc-gnu is also in use).
17631
17632 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
17633
17634         maint.mk: add missing version to VC-tag
17635         * top/maint.mk: git tag was missing actual tag name; add it.
17636
17637         valgrind: do leak checking, and exit with code 1 on error (not 0)
17638         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
17639         to VALGRIND.
17640
17641 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
17642
17643         posix-modules: say what it does.
17644         * posix-modules: Add a line to the --help output saying what it does.
17645
17646 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
17647
17648         xmalloc: Do not leak if underlying realloc is C99 compatible.
17649         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
17650         This avoids a leak on C99-based systems.  See
17651         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
17652
17653 2011-03-24  Eric Blake  <eblake@redhat.com>
17654
17655         realloc: document portability problem
17656         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
17657         passing 0 size to realloc.
17658
17659 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
17660
17661         doc: update users.txt
17662         * users.txt: Add cvsps, tmpwatch
17663
17664 2011-03-23  Matt Rice  <ratmice@gmail.com>
17665
17666         doc: update users.txt
17667         * users.txt: Add gdb.
17668
17669 2011-03-23  Jim Meyering  <meyering@redhat.com>
17670
17671         doc: update users.txt
17672         Looking through matches up to the following URL (there are still
17673         several more pages), I found several projects that use gnulib:
17674         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
17675         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
17676         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
17677
17678 2011-03-22  Bruno Haible  <bruno@clisp.org>
17679
17680         unictype/bidi*: Rename functions.
17681         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
17682         uc_bidi_class, uc_is_bidi_class): New declarations.
17683         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
17684         uc_bidi_category_byname.
17685         (uc_bidi_category_byname): New function.
17686         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
17687         u_bidi_category_name.
17688         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
17689         (uc_bidi_category_name): New function.
17690         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
17691         uc_bidi_category.
17692         (uc_bidi_category): New function.
17693         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
17694         uc_is_bidi_category. Invoke uc_bidi_class.
17695         (uc_is_bidi_category): New function.
17696         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
17697         instead of uc_bidi_category_byname.
17698         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
17699         instead of uc_bidi_category_name.
17700         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
17701         uc_bidi_category.
17702         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
17703         instead of uc_is_bidi_category.
17704
17705 2011-03-21  Bruno Haible  <bruno@clisp.org>
17706
17707         New module 'unictype/joininggroup-all'.
17708         * modules/unictype/joininggroup-all: New file.
17709
17710         Tests for module 'unictype/joininggroup-of'.
17711         * modules/unictype/joininggroup-of-tests: New file.
17712         * tests/unictype/test-joininggroup_of.c: New file.
17713         * tests/unictype/test-joininggroup_of.h: New file, automatically
17714         generated by gen-uni-tables.
17715
17716         New module 'unictype/joininggroup-of'.
17717         * modules/unictype/joininggroup-of: New file.
17718         * lib/unictype/joininggroup_of.c: New file.
17719         * lib/unictype/joininggroup_of.h: New file, automatically generated by
17720         gen-uni-tables.
17721
17722         Tests for module 'unictype/joininggroup-byname'.
17723         * modules/unictype/joininggroup-byname-tests: New file.
17724         * tests/unictype/test-joininggroup_byname.c: New file.
17725
17726         New module 'unictype/joininggroup-byname'.
17727         * modules/unictype/joininggroup-byname: New file.
17728         * lib/unictype/joininggroup_byname.c: New file.
17729         * lib/unictype/joininggroup_byname.gperf: New file.
17730
17731         Tests for module 'unictype/joininggroup-name'.
17732         * modules/unictype/joininggroup-name-tests: New file.
17733         * tests/unictype/test-joininggroup_name.c: New file.
17734
17735         New module 'unictype/joininggroup-name'.
17736         * modules/unictype/joininggroup-name: New file.
17737         * lib/unictype/joininggroup_name.c: New file.
17738         * lib/unictype/joininggroup_name.h: New file.
17739
17740         New module 'unictype/joiningtype-all'.
17741         * modules/unictype/joiningtype-all: New file.
17742
17743         Tests for module 'unictype/joiningtype-of'.
17744         * modules/unictype/joiningtype-of-tests: New file.
17745         * tests/unictype/test-joiningtype_of.c: New file.
17746         * tests/unictype/test-joiningtype_of.h: New file, automatically
17747         generated by gen-uni-tables.
17748
17749         New module 'unictype/joiningtype-of'.
17750         * modules/unictype/joiningtype-of: New file.
17751         * lib/unictype/joiningtype_of.c: New file.
17752         * lib/unictype/joiningtype_of.h: New file, automatically generated by
17753         gen-uni-tables.
17754
17755         Tests for module 'unictype/joiningtype-byname'.
17756         * modules/unictype/joiningtype-byname-tests: New file.
17757         * tests/unictype/test-joiningtype_byname.c: New file.
17758
17759         New module 'unictype/joiningtype-byname'.
17760         * modules/unictype/joiningtype-byname: New file.
17761         * lib/unictype/joiningtype_byname.c: New file.
17762
17763         Tests for module 'unictype/joiningtype-name'.
17764         * modules/unictype/joiningtype-name-tests: New file.
17765         * tests/unictype/test-joiningtype_name.c: New file.
17766
17767         New module 'unictype/joiningtype-name'.
17768         * modules/unictype/joiningtype-name: New file.
17769         * lib/unictype/joiningtype_name.c: New file.
17770
17771         unictype: Add support for Arabic shaping properties.
17772         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
17773         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
17774         declarations.
17775         (UC_JOINING_GROUP_*): New enumeration values.
17776         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
17777         declarations.
17778         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
17779         (unicode_joining_type): New variable.
17780         (UC_JOINING_GROUP_*): New enumeration values.
17781         (unicode_joining_group): New variable.
17782         (fill_arabicshaping, joining_type_as_c_identifier,
17783         output_joining_type_test, output_joining_type,
17784         joining_group_as_c_identifier, output_joining_group_test,
17785         output_joining_group): New functions.
17786         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
17787         fill_arabicshaping and output_joining_type_test, output_joining_type,
17788         output_joining_group_test, output_joining_group.
17789         Reported by Simon Josefsson.
17790
17791 2011-03-21  Jim Meyering  <meyering@redhat.com>
17792
17793         strftime: fix a bug in yesterday's change
17794         * lib/strftime.c (add): Accommodate width's initial value of -1.
17795         Otherwise, nstrftime would copy uninitialized data into
17796         the result buffer.
17797
17798 2011-03-21  Jim Meyering  <meyering@redhat.com>
17799
17800         tests: add strftime-tests module
17801         * tests/test-strftime.c: New file.
17802         * modules/strftime-tests: New module.
17803
17804 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
17805
17806         strftime: don't assume a byte count fits in 'int'
17807         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
17808         found this problem by static analysis, using gcc -Wstrict-overflow
17809         (GCC 4.5.2, x86-64).  This reported an optimization that depended
17810         on an integer overflow having undefined behavior, but it turns out
17811         that the argument is a size, which might not fit in 'int' anyway,
17812
17813 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
17814
17815         stdio: don't require ignore_value around fwrite
17816
17817         This patch works around libc bug 11959
17818         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
17819         Without this patch, applications must often write
17820         ignore_value (fwrite (...)) even though the ignore_value is
17821         not helpful here.  It's common to write many objects, using
17822         fwrite/printf/etc., and then use ferror to detect output error.
17823
17824         I considered making this patch optional, but decided against it,
17825         because libc is obviously being inconsistent here: there is no
17826         reason libc should insist that user code must inspect fwrite
17827         return's value without also insisting that it inspect printf's,
17828         putchar's, etc.  If user code wants to have a strict style where
17829         all these functions' values are checked (so that ferror need not
17830         be checked), we could add support for that style in a new gnulib
17831         module, but in the meantime it's better to be consistent and to
17832         support common usage.
17833
17834         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
17835         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
17836         that we are compiling in checking mode, and if not C++, and
17837         if not already wrapping fwrite for some other reason.
17838         (fwrite): #define to rpl_fwrite if the latter is defined.
17839
17840 2011-03-20  Bruno Haible  <bruno@clisp.org>
17841
17842         verror: Fix compilation error introduced on 2011-02-13.
17843         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
17844         instead of __attribute__.
17845         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17846
17847 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
17848             Bruno Haible  <bruno@clisp.org>
17849
17850         socklen: do not depend on sys_socket
17851         While trying to modify Emacs to use gnulib's socklen module,
17852         I discovered a circular dependency: socklen depends on sys_socket
17853         and vice versa.  Emacs can use socklen, but it does not need
17854         sys_socket because it has its own substitute for sys/socket.h.
17855         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
17856         gl_TYPE_SOCKLEN_T.
17857         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
17858         gl_PREREQ_SYS_H_SOCKET.
17859         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
17860         gl_PREREQ_SYS_H_SOCKET.
17861         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
17862         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
17863         * modules/socklen (Depends-on): Do not depend on sys_socket.
17864         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
17865
17866 2011-03-20  Jim Meyering  <meyering@redhat.com>
17867
17868         maint.mk: sort file names *after* new transformation
17869         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
17870         prefix would have led to an unwarranted failure in GNU parted.
17871         Sort after that transformation.
17872
17873 2011-03-19  Jim Meyering  <meyering@redhat.com>
17874
17875         maint.mk: fix po-file syntax-check rule
17876         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
17877         Patch by Bruno Haible.
17878
17879 2011-03-19  Bruno Haible  <bruno@clisp.org>
17880
17881         socklen: Update comment.
17882         * m4/socklen.m4: Update comment about platforms.
17883
17884 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
17885             Bruno Haible  <bruno@clisp.org>
17886
17887         inet_ntop, inet_pton: Simplify.
17888         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
17889         documented to provide socklen_t and we already depend on sys_socket.
17890         * modules/inet_pton (Depends-on): Likewise.
17891         * lib/arpa_inet.in.h: Adjust comment.
17892
17893 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
17894             Bruno Haible  <bruno@clisp.org>
17895
17896         netdb: Simplify.
17897         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
17898         documented to provide socklen_t and we already depend on sys_socket.
17899         * lib/netdb.in.h: Adjust comment.
17900
17901 2011-03-19  Bruno Haible  <bruno@clisp.org>
17902
17903         sys_socket, netdb: Document problem with socklen_t.
17904         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
17905         platforms.
17906         * doc/posix-headers/netdb.texi: Likewise.
17907
17908 2011-03-18  Eric Blake  <eblake@redhat.com>
17909
17910         maint.mk: let po check work in VPATH build
17911         * top/maint.mk (po_file): Allow cfg.mk override.
17912         (sc_po_check): Allow VPATH use.
17913         Reported by Jiri Denemark.
17914
17915 2011-03-16  Jim Meyering  <meyering@redhat.com>
17916
17917         maint.mk: allow fine-grained syntax-check exclusion via Make variables
17918         Before, you would have had to create one .x-sc_ file per rule in order
17919         to exempt offending files.  Now, you may instead use a Make variable --
17920         usually defined in cfg.mk -- whose name identifies the affected rule.
17921         * top/maint.mk (_sc_excl): Define.
17922         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
17923         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
17924
17925 2011-03-13  Bruno Haible  <bruno@clisp.org>
17926
17927         ignore-value tests: Avoid warnings.
17928         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
17929         empty for gcc < 3.4.
17930
17931 2011-03-13  Bruno Haible  <bruno@clisp.org>
17932
17933         passfd: Fix link error on Solaris.
17934         * modules/passfd (Description): Correct.
17935         (Depends-on): Add socketlib.
17936         (Link): New section.
17937         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
17938
17939 2011-03-13  Bruno Haible  <bruno@clisp.org>
17940
17941         passfd: Fix link error on AIX 5.2.
17942         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
17943
17944 2011-03-13  Bruno Haible  <bruno@clisp.org>
17945
17946         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
17947         * lib/sys_socket.in.h: Include <stddef.h>.
17948         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
17949         CMSG_FIRSTHDR. Remove unused variable.
17950
17951 2011-03-13  Bruno Haible  <bruno@clisp.org>
17952
17953         passfd: Fix compilation error on OpenBSD.
17954         * lib/passfd.c: Include <sys/uio.h>.
17955
17956 2011-03-13  Bruno Haible  <bruno@clisp.org>
17957
17958         passfd test: Fix warnings.
17959         * tests/test-passfd.c: Include <sys/wait.h>.
17960         (main): Fix typo.
17961
17962 2011-03-13  Bruno Haible  <bruno@clisp.org>
17963
17964         passfd module, part 4, tweaks.
17965         * tests/test-passfd.c: Reorder includes.
17966         (main): Fix perror and printf calls.
17967
17968 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
17969
17970         passfd module, part 4.
17971         * modules/passfd-tests: New file.
17972         * tests/test-passfd.c: New file.
17973
17974 2011-03-13  Jim Meyering  <meyering@redhat.com>
17975
17976         Makefile: rely on GNU make; derive syntax-check rule names
17977         Rather than requiring that each sc_ rule be listed as a dependent
17978         of "check", use features of GNU make to derive the list.
17979         * Makefile (syntax-check-rules): Define.
17980         (check): Depend on the new variable, not the hard-coded list.
17981
17982 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
17983             Bruno Haible  <bruno@clisp.org>
17984
17985         passfd module, part 3.
17986         * lib/passfd.h (recvfd): Add a flags argument.
17987         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
17988         (recvfd): Add a flags argument.
17989         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
17990         exists.
17991         * modules/passfd (Depends-on): Add cloexec.
17992         Suggested by Eric Blake.
17993
17994 2011-03-13  Bruno Haible  <bruno@clisp.org>
17995
17996         passfd module, part 2, tweaks.
17997         * modules/passfd (Files): Reorder.
17998         (Depends-on): Remove errno.
17999         (Include): Remove <sys/socket.h>, <sys/un.h>.
18000         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
18001         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
18002         specification header. Include <sys/socket.h> always. Don't include
18003         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
18004         (sendfd): Clarify that it sets errno when it fails.
18005         (recvfd): Fix specification.
18006
18007 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18008
18009         passfd module, part 2.
18010         * modules/passfd: New file.
18011         * lib/passfd.h: New file.
18012         * lib/passfd.c: New file.
18013
18014 2011-03-12  Bruno Haible  <bruno@clisp.org>
18015
18016         wcswidth, mbswidth: Avoid integer overflow.
18017         * lib/wcswidth.c: Include <limits.h>.
18018         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
18019         * lib/mbswidth.c: Include <limits.h>.
18020         (mbsnwidth): Avoid 'int' overflow.
18021         Reported by Jim Meyering.
18022
18023 2011-03-12  Bruno Haible  <bruno@clisp.org>
18024
18025         futimens, utimensat: Avoid endless recursion on Solaris 10.
18026         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
18027         Solaris.
18028         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
18029         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
18030
18031 2011-03-11  Jim Meyering  <meyering@redhat.com>
18032
18033         maint.mk: relax a regexp to accommodate other formatting styles
18034         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
18035         between "ngettext" and the following "(".
18036
18037 2011-03-11  Pádraig Brady <P@draigBrady.com>
18038
18039         maint.mk: suppress a false positive warning
18040         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
18041         diagnostics are marked with ngettext.
18042
18043 2011-03-10  Eric Blake  <eblake@redhat.com>
18044
18045         wchar: add explicit dependencies, for Tru64
18046         * modules/mbmemcasecoll (Depends-on): Add wchar.
18047         * modules/mbtowc (Depends-on): Likewise.
18048         * modules/vasnprintf (Depends-on): Likewise.
18049         * modules/unistdio/u-printf-args (Depends-on): Likewise.
18050         * modules/wctomb (Depends-on): Likewise.
18051         Reported by Peter O'Gorman.
18052
18053 2011-03-08  Bruno Haible  <bruno@clisp.org>
18054
18055         passfd module, part 1, tweaks.
18056         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
18057         Improve indentation. Improve AC_MSG_CHECKING messages.
18058         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
18059         gl_SOCKET_FAMILIES.
18060
18061 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18062
18063         passfd module, part 1.
18064         * m4/afunix.m4: New file.
18065         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
18066         sockets.
18067
18068 2011-03-08  Bruno Haible  <bruno@clisp.org>
18069
18070         regex-quote: New API.
18071         * lib/regex-quote.h: Include <stdbool.h>.
18072         (struct regex_quote_spec): New type.
18073         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
18074         New declarations.
18075         (regex_quote_length, regex_quote_copy, regex_quote): Take a
18076         'const struct regex_quote_spec *' argument.
18077         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
18078         (pcre_special): New constant.
18079         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
18080         New functions.
18081         (regex_quote_length, regex_quote_copy, regex_quote): Take a
18082         'const struct regex_quote_spec *' argument.
18083         * modules/regex-quote (Depends-on): Add stdbool.
18084         * tests/test-regex-quote.c (check): Update for new API. Add test for
18085         anchored results.
18086         * NEWS: Mention the API change.
18087         Reported by Reuben Thomas and Eric Blake.
18088
18089 2011-03-06  Bruno Haible  <bruno@clisp.org>
18090
18091         regex-quote: Fix creation of POSIX extended regular expressions.
18092         * lib/regex-quote.c (ere_special): Add grouping and alternation
18093         operators.
18094
18095 2011-03-05  Bruno Haible  <bruno@clisp.org>
18096
18097         doc: Improve doc regarding autopoint vs. gnulib.
18098         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
18099         disable autopoint while running autoreconf.
18100         Suggested by Ralf Wildenhues.
18101
18102 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18103
18104         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
18105         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
18106
18107 2011-03-03  Bruce Korb  <bkorb@gnu.org>
18108
18109         parse-duration: remove xalloc.h dependency
18110         * lib/parse-duration.c (parse_period): handle NULL return from
18111         strdup instead of calling xstrdup().
18112         * modules/parse-duration: remove "xalloc" dependency
18113
18114 2011-03-03  Matthew Booth  <mbooth@redhat.com>
18115
18116         bootstrap: honor m4_base when running aclocal
18117         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
18118
18119 2011-03-02  Jim Meyering  <meyering@redhat.com>
18120
18121         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
18122         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
18123         on request from Matt Booth.
18124
18125 2011-03-01  Eric Blake  <eblake@redhat.com>
18126
18127         test-link: work on Hurd
18128         * tests/test-link.h (test_link): Hurd rejects linking directories
18129         with EISDIR instead of the POSIX-mandated EPERM.
18130
18131 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
18132
18133         stdio: simplify by moving files to printf-posix, sigpipe
18134         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
18135         since this symbol is needed only if printf is replaced.
18136         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
18137         Require gl_ASM_SYMBOL_PREFIX.
18138         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
18139         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
18140         (Depends-on): Add 'raise'.
18141         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
18142         * modules/stdio (Files): Remove lib/stdio-write.c,
18143         m4/asm-underscore.m4.
18144         (Depends-on): Remove 'raise'.
18145
18146         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
18147         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
18148         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
18149         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
18150
18151 2011-02-28  Bruno Haible  <bruno@clisp.org>
18152
18153         localcharset: Assume ANSI C behaviour of free().
18154         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
18155         calling free().
18156         Suggested by Simon Josefsson <simon@josefsson.org>.
18157
18158 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
18159             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
18160             Bruno Haible  <bruno@clisp.org>  (tiny change)
18161
18162         On Cygwin, use /proc file system instead of win32 API.
18163         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
18164         Win32 file names.
18165         (DllMain): Simplify by removing Cygwin specific code.
18166         (find_shared_library_fullname): Use Linux specific implementation also
18167         for Cygwin.
18168         (get_shared_library_fullname): Update accordingly.
18169         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
18170         Win32 file names.
18171         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
18172         Cygwin specific code.
18173
18174 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
18175             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
18176
18177         Fix OpenMP flag detection for various Fortran compilers.
18178         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
18179         OpenMP-conditional compilation construct, to force compile
18180         failure with missing OpenMP flag.
18181         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
18182
18183 2011-02-25  Eric Blake  <eblake@redhat.com>
18184
18185         strstr: expand test coverage
18186         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
18187         compilation.
18188         * tests/test-memmem.c (main): Duplicate tests.
18189         * tests/test-strcasestr.c (main): Likewise.
18190         * tests/test-c-strcasestr.c (main): Likewise.
18191
18192 2011-02-25  Jim Meyering  <meyering@redhat.com>
18193
18194         maint.mk: detect missing-NL-at-EOF, too
18195         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
18196         it also detects when a file lacks a newline at EOF.
18197         (require_exactly_one_NL_at_EOF_): Renamed from
18198         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
18199         since people may well have .x-sc_... file names tied to the
18200         existing name.  Suggested by Eric Blake.
18201
18202 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
18203
18204         dirname: move m4/dos.m4 functionality into lib/dosname.h
18205
18206         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
18207         extracts symbols from it, puts them into config.h; but it's much
18208         easier to use the symbols directly.  filename.h already does this,
18209         but it disagrees with dos.m4 in some respects.  This patch
18210         introduces a different include file dosname.h that packages up
18211         dos.m4, and then later we can work on merging filename.h and
18212         dosname.h.  Applications that need only the easy-to-configure
18213         symbols should consider including dosname.h rather than dirname.h.
18214         * NEWS: Mention incompatible changes.
18215         * m4/dos.m4: Remove.
18216         * lib/dosname.h, modules/dosname: New files.
18217         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
18218         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
18219         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
18220         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
18221         Include dosname.h, not dirname.h.
18222         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
18223         Include dosname.h, for definitions of symbols like ISSLASH
18224         that used to be in config.h.
18225         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
18226         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18227         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18228         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18229         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
18230         * modules/rmdir (Files): Likewise.
18231         * modules/stat (Files): Likewise.
18232         * modules/unlink (Files): Likewise.
18233         * modules/dirname-lgpl (Depends-on): Add dosname.
18234         * modules/lstat (Depends-on): Likewise.
18235         * modules/openat (Depends-on): Likewise.
18236         * modules/rmdir (Depends-on): Likewise.
18237         * modules/savewd (Depends-on): Likewise.
18238         * modules/stat (Depends-on): Likewise.
18239         * modules/unlink (Depends-on): Likewise.
18240         * modules/openat (Depends-on): Remove dirname-lgpl.
18241         * modules/savewd (Depends-on): Likewise.
18242         * tests/test-dirname.c: Do not use removed symbols like
18243         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
18244         the remaining symbols, e.g., ISSLASH ('\\').
18245
18246 2011-02-25  Eric Blake  <eblake@redhat.com>
18247
18248         strstr: revert patches that introduced bug and pessimization
18249         * lib/str-two-way.h: Add another reference.
18250         (two_way_short_needle, two_way_long_needle): Revert changes from
18251         2011-02-24; they pessimize search speed.
18252         (critical_factorization): Partially revert changes from
18253         2010-06-22; they violate the requirement that the left half of the
18254         needle be smaller than the period of the needle.
18255
18256 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
18257
18258         filenamecat: remove unnecessary dependency on dirname-lgpl
18259         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
18260         is no direct dependency, just an indirect one via filenamecat-lgpl.
18261
18262         remove: remove unnecessary use of m4/dos.m4
18263         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
18264         * modules/remove (FILES): Remove m4/dos.m4.
18265
18266         * lib/openat-proc.c: Don't include dirname.h; not needed.
18267
18268         backupfile: remove unnecessary use of m4/dos.m4
18269         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
18270         of its symbols are used by the backupfile code.  backupfile.c does
18271         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
18272         for the rare case of programs that want all their backup file
18273         names to live within 8+3 limits, and dos.m4 doesn't address that.
18274         * modules/backupfile (Files): Remove m4/dos.m4.
18275
18276 2011-02-24  Jim Meyering  <meyering@redhat.com>
18277
18278         strstr: fix a bug whereby strstr would mistakenly return NULL
18279         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
18280         in period calculation.
18281         (two_way_long_needle): Likewise.
18282         The original problem was reported by Mike Stump in
18283         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
18284         Ralf Wildenhues provided the short needle and haystack.
18285         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
18286         Add a more involved test to trigger the bug in two_way_long_needle.
18287
18288 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
18289
18290         gnulib-tool: remove use of bold display in help screen
18291         * gnulib-tool (func_usage): Do not use bold display anymore in the
18292         help screen.  That was just meant to be a temporary emphasis for a
18293         backward-incompatible change.
18294
18295 2011-02-23  Bruno Haible  <bruno@clisp.org>
18296
18297         Fix misindentation of preprocessor directives.
18298         * lib/argp-namefrob.h: Reindent preprocessor directives.
18299         * lib/getopt_int.h (struct _getopt_data): Likewise.
18300         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
18301         * lib/vasnprintf.c (decode_long_double): Likewise.
18302         * tests/test-argmatch.c: Insert blank lines, for clarity.
18303         * tests/test-exclude.c: Likewise.
18304
18305 2011-02-22  Bruno Haible  <bruno@clisp.org>
18306
18307         ioctl: Fix for MacOS X in 64-bit mode.
18308         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
18309         value.
18310         Suggested by Eric Blake.
18311         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
18312
18313 2011-02-22  Jim Meyering  <meyering@redhat.com>
18314
18315         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
18316         * Makefile (sc_cpp_indent_check): Don't limit the check to files
18317         in lib/.
18318
18319 2011-02-22  Eric Blake  <eblake@redhat.com>
18320
18321         maint: avoid any CDPATH issue
18322         * Makefile (sc_cpp_indent_check): Anchor cd argument.
18323
18324         maint: adjust cpp indentation for my modules, as well
18325         * Makefile (sc_cpp_indent_check): Add my name.
18326         * lib/fbufmode.c: Filter through cppi.
18327         * lib/fpurge.c: Likewise.
18328         * lib/freadable.c: Likewise.
18329         * lib/freading.c: Likewise.
18330         * lib/fwritable.c: Likewise.
18331         * lib/fwriting.c: Likewise.
18332         * lib/sigaction.c: Likewise.
18333
18334 2011-02-22  Jim Meyering  <meyering@redhat.com>
18335
18336         maint: adjust cpp indentation to reflect nesting depth
18337         I.e., in a block of code that begins with an unnested "#if",
18338         put one space between the "#" in column 1 and following token.
18339         For example,
18340         -#include <sys/vfs.h>
18341         +# include <sys/vfs.h>
18342         Do this only in .c files that are part of a module I maintain.
18343         * lib/linkat.c: Filter through cppi.
18344         * lib/nanosleep.c: Likewise.
18345         * lib/openat.c: Likewise.
18346         * lib/openat-die.c: Likewise.
18347         * lib/dup3.c: Likewise.
18348         * lib/fchownat.c: Likewise.
18349         * lib/flock.c: Likewise.
18350         * lib/fsync.c: Likewise.
18351         * lib/fts.c: Likewise.
18352         * lib/getpass.c: Likewise.
18353         * lib/gettimeofday.c: Likewise.
18354         * lib/userspec.c: Likewise.
18355         * Makefile (sc_cpp_indent_check): New rule, to check this.
18356
18357 2011-02-22  Bruno Haible  <bruno@clisp.org>
18358
18359         New module 'wctomb'.
18360         * lib/stdlib.in.h (wctomb): New declaration.
18361         * lib/wctomb.c: New file.
18362         * lib/wctomb-impl.h: New file.
18363         * m4/wctomb.m4: New file.
18364         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
18365         REPLACE_WCTOMB.
18366         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
18367         REPLACE_WCTOMB.
18368         * modules/wctomb: New file.
18369         * tests/test-stdlib-c++.cc: Test signature of wctomb.
18370         * doc/posix-functions/wctomb.texi: Mention the new module.
18371         * modules/wctob (Depends-on): Add wctomb.
18372
18373 2011-02-22  Bruno Haible  <bruno@clisp.org>
18374
18375         New module 'mbtowc'.
18376         * lib/stdlib.in.h (mbtowc): New declaration.
18377         * lib/mbtowc.c: New file.
18378         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
18379         * m4/mbtowc.m4: New file.
18380         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
18381         REPLACE_MBTOWC.
18382         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
18383         REPLACE_MBTOWC.
18384         * modules/mbtowc: New file.
18385         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
18386         * doc/posix-functions/mbtowc.texi: Mention the new module.
18387         * modules/btowc (Depends-on): Add mbtowc.
18388
18389 2011-02-22  Bruno Haible  <bruno@clisp.org>
18390
18391         wcrtomb: Add more tests for native Windows platforms.
18392         * tests/test-wcrtomb-w32-1.sh: New file.
18393         * tests/test-wcrtomb-w32-2.sh: New file.
18394         * tests/test-wcrtomb-w32-3.sh: New file.
18395         * tests/test-wcrtomb-w32-4.sh: New file.
18396         * tests/test-wcrtomb-w32-5.sh: New file.
18397         * tests/test-wcrtomb-w32.c: New file.
18398         * modules/wcrtomb-tests (Files): Add them.
18399         (Makefile.am): Arrange to run these tests.
18400         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
18401         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
18402
18403 2011-02-20  Bruno Haible  <bruno@clisp.org>
18404
18405         wcrtomb: Enhance test.
18406         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
18407
18408 2011-02-20  Bruno Haible  <bruno@clisp.org>
18409
18410         mbrtowc: Tiny optimization.
18411         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
18412
18413 2011-02-20  Jim Meyering  <meyering@redhat.com>
18414
18415         test-exclude.c: remove unmatched #endif
18416         * tests/test-exclude.c: Remove stray #endif, left over from
18417         the change of a week ago.
18418
18419 2011-02-19  Jim Meyering  <meyering@redhat.com>
18420
18421         git-version-gen: skip "-dirty" check when appropriate
18422         * build-aux/git-version-gen: Don't run any git commands when the
18423         version string comes from .tarball-version.  Prior to this, we
18424         would run git update-index --refresh even from a just-unpacked
18425         tarball directory, and that could affect a .git/ directory in a
18426         parent of the build directory.  Reported by Mike Frysinger.
18427
18428 2011-02-19  Bruno Haible  <bruno@clisp.org>
18429
18430         unictype/property-byname: Reduce the size of the 'data' segment.
18431         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
18432
18433 2011-02-19  Bruno Haible  <bruno@clisp.org>
18434
18435         unictype/scripts: Reduce the size of the 'data' segment.
18436         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
18437         '%pic'.
18438         * lib/unictype/scripts_byname.gperf: Regenerated.
18439
18440 2011-02-19  Bruno Haible  <bruno@clisp.org>
18441
18442         stdint: Update documentation.
18443         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
18444
18445 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
18446
18447         stdint: omit redundant check for wchar.h
18448         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
18449         always tests whether wchar.h exists, so remove the now-redundant test.
18450
18451 2011-02-18  Bruno Haible  <bruno@clisp.org>
18452
18453         stdint: Cut dependency to module 'wchar'.
18454         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
18455         include the necessary prerequisites.
18456         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
18457         * modules/stdint (Depends-on): Remove wchar.
18458         (Makefile.am): Substitute HAVE_WCHAR_H.
18459         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
18460
18461 2011-02-18  Eric Blake  <eblake@redhat.com>
18462
18463         longlong: skip, rather than fail, on cross-compilation
18464         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
18465         when cross-compiling; regression from 2011-02-16.
18466
18467 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
18468
18469         * NEWS: Mention 2011-02-08 change to stdlib.
18470
18471 2011-02-17  Bruno Haible  <bruno@clisp.org>
18472
18473         getloadavg: Add comments about platforms.
18474         * m4/getloadavg.m4: Add comment.
18475         * lib/getloadavg.c: Likewise.
18476
18477 2011-02-17  Bruno Haible  <bruno@clisp.org>
18478
18479         getloadavg: Fix link error on Solaris 2.6.
18480         * modules/getloadavg (Link): New section.
18481         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
18482         linking test-getloadavg.
18483         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
18484         getloadavg.
18485
18486 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
18487
18488         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
18489         It was 'int', but this doesn't match the IRIX 6.5 manual.
18490         Suggested by Bruno Haible in
18491         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
18492
18493 2011-02-17  Bruno Haible  <bruno@clisp.org>
18494
18495         havelib: Fix comments.
18496         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
18497         change.
18498
18499 2011-02-17  Bruno Haible  <bruno@clisp.org>
18500
18501         havelib: Update config.rpath.
18502         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
18503
18504 2011-02-17  Bruno Haible  <bruno@clisp.org>
18505
18506         getloadavg test: Add some plausibility checks.
18507         * tests/test-getloadavg.c (check_avg): Print a warning when the value
18508         is improbable.
18509
18510 2011-02-16  Eric Blake  <eblake@redhat.com>
18511
18512         maintainer-makefile: make syntax-check a no-op from tarballs
18513         * top/maint.mk (no-vc-detected): New rule.
18514         (local-checks-available): Use it to avoid hanging if someone tries
18515         'make syntax-check' from a tarball.  Also append to any non-syntax
18516         checks already defined in cfg.mk.
18517
18518 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
18519
18520         longlong: tune, particularly for common case of c99
18521
18522         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
18523         or running anything if c99, or if unsigned long long int does not
18524         work.  In either case, we know the answer without further tests.
18525         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
18526         it at most once, and use its results for both long long int and
18527         unsigned long long int.  This is more likely to be efficient in
18528         the common case where the program wants to check for both long
18529         long int and unsigned long long int.
18530         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
18531         since the answer is already known.
18532
18533 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
18534
18535         getloadavg: set errno
18536         * lib/getloadavg.c: Set errno when returning -1.  If no other
18537         error number looks appropriate, set it to ENOSYS if the getloadavg
18538         looks like it can't possibly ever work, ENOTSUP otherwise.
18539         Suggested by Bruno Haible in
18540         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
18541
18542         getloadavg: trim unused parts and speed up 'configure'
18543         * NEWS: Document this.
18544         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
18545         always compiled if getloadavg is absent.
18546         Move test code to ...
18547         * tests/test-getloadavg.c: New file, containing previous
18548         contents of test from lib/getloadavg.c.  It also contains
18549         suggestions by Bruno Haible in
18550         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
18551         * modules/getloadavg-tests: New file.
18552         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
18553         Do tests in the same order as they're needed for getloadavg.c.
18554         Omit setgid-related tests that generate symbols KMEM_GROUP,
18555         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
18556         Do only the tests that are needed to see whether the system has
18557         getloadavg, moving the other tests into ...
18558         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
18559         NLIST_NAME_UNION; nobody should be using it.  Do not define
18560         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
18561         relevant, as the user of this module shouldn't care how getloadavg
18562         is implemented.
18563
18564         getloadavg: omit unused var
18565         * lib/getloadavg.c (getloadavg): Omit unused local variable.
18566
18567 2011-02-15  Jim Meyering  <meyering@redhat.com>
18568
18569         doc: update users.txt
18570         * users.txt: Update iwhd's URL.
18571
18572 2011-02-13  Bruno Haible  <bruno@clisp.org>
18573
18574         Consistent macro naming for macros that use GCC __attribute__.
18575         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
18576         _ATTRIBUTE_NONNULL_.
18577         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
18578         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
18579         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
18580         ATTRIBUTE_DEPRECATED.
18581         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
18582         ATTRIBUTE_NORETURN.
18583         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
18584         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
18585         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
18586         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
18587         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
18588         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
18589         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
18590         ATTRIBUTE_SENTINEL.
18591         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
18592         ATTRIBUTE_RETURN_CHECK.
18593         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
18594         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
18595         ATTRIBUTE_NORETURN.
18596         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
18597         Reported by Paul Eggert.
18598
18599 2011-02-13  Bruno Haible  <bruno@clisp.org>
18600
18601         Don't interfere with a program's definition of __attribute__.
18602         * lib/argp.h (__attribute__): Remove definition.
18603         (_GL_ATTRIBUTE_FORMAT): New macro.
18604         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
18605         * lib/argp-fmtstream.h (__attribute__): Remove definition.
18606         (_GL_ATTRIBUTE_FORMAT): New macro.
18607         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
18608         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
18609         GCC 3 or newer.
18610         * lib/error.h (__attribute__): Remove definition.
18611         (_GL_ATTRIBUTE_FORMAT): New macro.
18612         (error, error_at_line): Use it.
18613         * lib/hash.h (__attribute__): Remove definition.
18614         (ATTRIBUTE_WUR): Update definition. Define always.
18615         * lib/openat.h (__attribute__): Remove definition.
18616         (ATTRIBUTE_NORETURN): Update definition. Define always.
18617         * lib/sigpipe-die.h (__attribute__): Remove definition.
18618         (ATTRIBUTE_NORETURN): Update definition. Define always.
18619         * lib/vasnprintf.h (__attribute__): Remove definition.
18620         (_GL_ATTRIBUTE_FORMAT): New macro.
18621         (asnprintf, vasnprintf): Use it.
18622         * lib/xalloc.h (__attribute__): Remove definition.
18623         (ATTRIBUTE_NORETURN): Update definition. Define always.
18624         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
18625         * lib/xmemdup0.h (__attribute__): Remove definition.
18626         (ATTRIBUTE_NORETURN): Update definition. Define always.
18627         * lib/xprintf.h (__attribute__): Remove definition.
18628         (_GL_ATTRIBUTE_FORMAT): New macro.
18629         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
18630         * lib/xstrtol.h (__attribute__): Remove definition.
18631         (ATTRIBUTE_NORETURN): Update definition. Define always.
18632         * lib/xvasprintf.h (__attribute__): Remove definition.
18633         (_GL_ATTRIBUTE_FORMAT): New macro.
18634         (xasprintf, xvasprintf): Use it.
18635         * tests/test-argmatch.c (__attribute__): Remove definition.
18636         (ATTRIBUTE_NORETURN): Update definition. Define always.
18637         * tests/test-exclude.c (__attribute__): Remove definition.
18638         (ATTRIBUTE_NORETURN): Update definition. Define always.
18639         Reported by Paul Eggert.
18640
18641 2011-02-13  Bruno Haible  <bruno@clisp.org>
18642
18643         mbrtowc: Add more tests for native Windows platforms.
18644         * tests/test-mbrtowc-w32-1.sh: New file.
18645         * tests/test-mbrtowc-w32-2.sh: New file.
18646         * tests/test-mbrtowc-w32-3.sh: New file.
18647         * tests/test-mbrtowc-w32-4.sh: New file.
18648         * tests/test-mbrtowc-w32-5.sh: New file.
18649         * tests/test-mbrtowc-w32.c: New file.
18650         * modules/mbrtowc-tests (Files): Add them.
18651         (Makefile.am): Arrange to run these tests.
18652         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
18653         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
18654
18655 2011-02-13  Bruno Haible  <bruno@clisp.org>
18656
18657         mbrtowc: Work around native Windows bug.
18658         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
18659         guess when no suitable locale for testing was found.
18660         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
18661
18662 2011-02-13  Bruno Haible  <bruno@clisp.org>
18663
18664         mbsinit: Work around mingw bug.
18665         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
18666         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
18667         Windows.
18668         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
18669
18670 2011-02-13  Bruno Haible  <bruno@clisp.org>
18671
18672         mbsinit: Don't crash for a NULL argument.
18673         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
18674         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
18675
18676 2011-02-13  Bruno Haible  <bruno@clisp.org>
18677
18678         Don't interfere with a program's definition of __attribute__.
18679         * lib/stdio.in.h (__attribute__): Remove definition.
18680         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
18681         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
18682         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
18683         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
18684         * lib/string.in.h (__attribute__): Remove definition.
18685         Reported by Paul Eggert.
18686
18687 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
18688
18689         stdlib: don't get in the way of non-GCC __attribute__
18690         See thread starting at
18691         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
18692         Revert previous stdlib change, installing the following instead:
18693         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
18694         to get in the way of a non-GCC compiler that supports __attribute__.
18695         (_GL_ATTRIBUTE_RETURN): New macro.
18696         (_Exit): Use it instead of __attribute__.
18697
18698 2011-02-12  Bruno Haible  <bruno@clisp.org>
18699
18700         quotearg test: Avoid test failure on mingw.
18701         * tests/test-quotearg.sh: Convert the locale identifier from native
18702         Windows syntax to Unix syntax.
18703
18704 2011-02-12  Bruno Haible  <bruno@clisp.org>
18705
18706         setlocale: Prefer gnulib's override over libintl's override.
18707         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
18708         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
18709         GNULIB_defined_setlocale is set.
18710
18711 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
18712
18713         stdlib: support non-GCC __attribute__
18714
18715         Fix a serious and tricky problem encountered when attempting to
18716         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
18717         5.5, but it crashed due to memory corruption on Solaris 10 with
18718         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
18719         bits that are otherwise zero.  This tagging is optional inside
18720         Emacs but is preferred and is used when __attribute__ ((__aligned
18721         (8))) works, as it does with both recent-enough GCC and with Sun C
18722         5.11.  However, Sun C 5.11 is not GCC and does not #define
18723         __GNUC__ and __GNUC_MINOR__.
18724
18725         When I added the getloadavg module to Emacs, it brought in
18726         stdlib.in.h, which contained this fragment:
18727
18728            #ifndef __attribute__
18729            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
18730            #  define __attribute__(Spec)   /* empty */
18731            # endif
18732            #endif
18733
18734         When files that include <stdlib.h> were compiled with Sun C 5.11,
18735         the above code disabled __attribute__ ((__aligned (8))), which
18736         caused variables to not be properly aligned, which eventually led
18737         to the pointer corruption mentioned above.  (This was a bit hard
18738         to diagnose, unfortunately.)
18739
18740         Several "#define __attribute__(X) /* empty */" code snippets need
18741         to be eradicated from Gnulib to work with non-GCC compilers that
18742         support __attribute__.  The Autoconf way to do this is to test for
18743         each kind of attribute that we want support for, and selectively
18744         enable that in source code.
18745
18746         Fix this problem just for stdlib.h, by adding a test for the
18747         __noreturn__ attribute, and change stdlib.in.h to use that test
18748         when needed.  This technique can be easily generalized to the
18749         other *.in.h files and attributes, and a similar technique can be
18750         used for *.h and *.c files.  This patch is enough to solve the
18751         problem for Emacs + getloadavg, and I thought I'd publish it for
18752         feedback before undertaking further, similar fixes in other
18753         modules.
18754
18755         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
18756         because it's not needed for stdlib.h.  It merely substitutes the
18757         value directly into stdlib.h.  We may well need to #define it, or
18758         similar symbols, for other modules, but it's nice to also have an
18759         option to not #define it for applications like Emacs that do not
18760         need it.
18761
18762         * lib/stdlib.in.h (__attribute__): Do not #define.
18763         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
18764         be defined only if the _Exit module is also used.
18765         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
18766         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
18767         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
18768         platforms.
18769         * modules/_Exit (Files): Add m4/attribute.m4.
18770         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
18771         * m4/attribute.m4: New file.
18772
18773 2011-02-12  Bruno Haible  <bruno@clisp.org>
18774
18775         wcsrtombs: Work around bug on native Windows.
18776         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
18777         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
18778         instead of len.
18779         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
18780
18781 2011-02-12  Bruno Haible  <bruno@clisp.org>
18782
18783         mbsrtowcs: Work around bug on native Windows.
18784         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
18785         against mingw bug.
18786         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
18787
18788 2011-02-12  Bruno Haible  <bruno@clisp.org>
18789
18790         Avoid setlocale bugs in tests.
18791         * modules/btowc (Dependencies): Add setlocale.
18792         * modules/c-strcase (Dependencies): Likewise.
18793         * modules/mbmemcasecmp (Dependencies): Likewise.
18794         * modules/mbmemcasecoll (Dependencies): Likewise.
18795         * modules/mbrtowc (Dependencies): Likewise.
18796         * modules/mbscasecmp (Dependencies): Likewise.
18797         * modules/mbscasestr (Dependencies): Likewise.
18798         * modules/mbschr (Dependencies): Likewise.
18799         * modules/mbscspn (Dependencies): Likewise.
18800         * modules/mbsinit (Dependencies): Likewise.
18801         * modules/mbsncasecmp (Dependencies): Likewise.
18802         * modules/mbsnrtowcs (Dependencies): Likewise.
18803         * modules/mbspbrk (Dependencies): Likewise.
18804         * modules/mbspcasecmp (Dependencies): Likewise.
18805         * modules/mbsrchr (Dependencies): Likewise.
18806         * modules/mbsrtowcs (Dependencies): Likewise.
18807         * modules/mbsspn (Dependencies): Likewise.
18808         * modules/mbsstr (Dependencies): Likewise.
18809         * modules/nl_langinfo (Dependencies): Likewise.
18810         * modules/quotearg (Dependencies): Likewise.
18811         * modules/unicase/locale-language (Dependencies): Likewise.
18812         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
18813         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
18814         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
18815         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
18816         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
18817         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
18818         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
18819         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
18820         * modules/vasnprintf-posix (Dependencies): Likewise.
18821         * modules/wcrtomb (Dependencies): Likewise.
18822         * modules/wcsnrtombs (Dependencies): Likewise.
18823         * modules/wcsrtombs (Dependencies): Likewise.
18824
18825 2011-02-12  Bruno Haible  <bruno@clisp.org>
18826
18827         setlocale: Workaround native Windows bug.
18828         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
18829         succeeds but sets LC_CTYPE to "C", report a failure.
18830         * tests/test-setlocale2.sh: New file.
18831         * tests/test-setlocale2.c: New file.
18832         * modules/setlocale-tests (Files): Add the new files.
18833         (Makefile.am): Enable test-setlocale2.sh test.
18834         * doc/posix-functions/setlocale.texi: Mention workaround.
18835
18836 2011-02-11  Bruno Haible  <bruno@clisp.org>
18837
18838         Tests for module 'setlocale'.
18839         * modules/setlocale-tests: New file.
18840         * tests/test-setlocale1.sh: New file.
18841         * tests/test-setlocale1.c: New file.
18842
18843         New module 'setlocale'.
18844         * lib/locale.in.h (setlocale): New declaration.
18845         * lib/setlocale.c: New file, based on
18846         gettext/gettext-runtime/intl/setlocale.c.
18847         * m4/setlocale.m4: New file.
18848         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
18849         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
18850         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
18851         REPLACE_SETLOCALE.
18852         * modules/setlocale: New file.
18853         * tests/test-locale-c++.cc: Test the declaration of setlocale.
18854         * doc/posix-functions/setlocale.texi: Mention the new module.
18855
18856 2011-02-11  Bruno Haible  <bruno@clisp.org>
18857
18858         Prepare for locale dependent tests on mingw.
18859         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
18860         because it has the wrong locale encoding.
18861         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
18862         French_France.1252 instead of "fr".
18863         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
18864         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
18865         because it has the wrong locale encoding.
18866         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
18867         native Windows, try Turkish_Turkey.65001.
18868         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
18869         Chinese_China.54936.
18870
18871         Prepare for locale dependent tests on mingw.
18872         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
18873         differently.
18874         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
18875         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
18876         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
18877         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
18878
18879 2011-02-11  Eric Blake  <eblake@redhat.com>
18880
18881         strptime: avoid compiler warnings
18882         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
18883         compiler warnings about dead code.
18884         Reported by Daniel P. Berrange.
18885
18886 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
18887
18888         doc: update users.txt
18889         * users.txt: Add rcs.
18890
18891 2011-02-10  John W. Eaton  <jwe@gnu.org>
18892
18893         doc: update users.txt
18894         * users.txt: Add octave.
18895
18896 2011-02-10  Jim Meyering  <meyering@redhat.com>
18897
18898         doc: update users.txt
18899         * users.txt: Add iwhd.
18900
18901 2011-02-09  Bruno Haible  <bruno@clisp.org>
18902
18903         gnulib-tool: Make copyright notice adjustment more robust.
18904         * gnulib-tool (func_import): In sed_transform_main_lib_file,
18905         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
18906         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
18907         License".
18908         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
18909
18910 2011-02-06  Bruno Haible  <bruno@clisp.org>
18911
18912         New module 'towctrans'.
18913         * modules/towctrans: New file.
18914         * lib/wctype.in.h (towctrans): New declaration.
18915         * lib/towctrans.c: New file.
18916         * lib/towctrans-impl.h: New file.
18917         * m4/towctrans.m4: New file.
18918         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
18919         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
18920         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
18921         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
18922         * doc/posix-functions/towctrans.texi: Mention the new module.
18923
18924 2011-02-06  Bruno Haible  <bruno@clisp.org>
18925
18926         New module 'wctrans'.
18927         * modules/wctrans: New file.
18928         * lib/wctype.in.h (wctrans): New declaration.
18929         * lib/wctrans.c: New file.
18930         * lib/wctrans-impl.h: New file.
18931         * m4/wctrans.m4: New file.
18932         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
18933         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
18934         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
18935         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
18936         * doc/posix-functions/wctrans.texi: Mention the new module.
18937
18938 2011-02-06  Bruno Haible  <bruno@clisp.org>
18939
18940         New module 'iswctype'.
18941         * modules/iswctype: New file.
18942         * lib/wctype.in.h (iswctype): New declaration.
18943         * lib/iswctype.c: New file.
18944         * lib/iswctype-impl.h: New file.
18945         * m4/iswctype.m4: New file.
18946         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
18947         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
18948         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
18949         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
18950         * doc/posix-functions/iswctype.texi: Mention the new module and the
18951         HP-UX 11.00 problem.
18952
18953 2011-02-06  Bruno Haible  <bruno@clisp.org>
18954
18955         New module 'wctype'.
18956         * modules/wctype: Change to represent the wctype() substitute.
18957         * lib/wctype.in.h (wctype): New declaration.
18958         * lib/wctype.c: New file.
18959         * lib/wctype-impl.h: New file.
18960         * m4/wctype.m4: New file.
18961         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
18962         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
18963         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
18964         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
18965         * doc/posix-functions/wctype.texi: Mention the new module and the
18966         HP-UX 11.00 problem.
18967
18968 2011-02-06  Bruno Haible  <bruno@clisp.org>
18969
18970         wctype-h: Ensure wctype_t and wctrans_t are defined.
18971         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
18972         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
18973         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
18974         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
18975         HAVE_WCTRANS_T.
18976         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
18977
18978 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
18979
18980         flock: fix license typo
18981
18982         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
18983         omitted.
18984
18985 2011-02-08  Bruno Haible  <bruno@clisp.org>
18986
18987         Split large sed scripts, for HP-UX sed.
18988         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
18989         to avoid HP-UX limit of 99 commands, in the near future.
18990         * modules/stdlib (Makefile.am): Likewise.
18991         * modules/unistd (Makefile.am): Likewise.
18992         * modules/wchar (Makefile.am): Likewise.
18993         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18994         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
18995         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
18996
18997 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
18998             Bruno Haible  <bruno@clisp.org>
18999
19000         stdlib: improve random_r modularization
19001         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
19002         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
19003         you also need the random_r module to get this material right.
19004         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
19005         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
19006         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
19007
19008 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
19009
19010         stdlib: don't depend on stdint
19011         * lib/stdlib.in.h: Don't include <stdint.h> merely because
19012         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
19013         be independent of whether stdint.h is needed.
19014         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
19015         here, instead of ...
19016         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
19017         struct random_data should be using the random_r module, not just
19018         the stdlib module (which wouldn't make sense: what package needs
19019         just struct random_data without also needing random_r?).
19020         * modules/stdlib (Depends-on): Remove stdint.
19021
19022         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
19023         See the thread rooted at
19024         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
19025         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
19026         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
19027         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
19028         __VMS)); previously it was always included (via fcntl--.h).
19029         (getloadavg): Do not use c_strtod.  Instead, approximate it by
19030         hand; this is good enough for load averages.  Also, do not use
19031         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
19032         flags directly if available and don't bother otherwise.  (Packages
19033         that need the extra reliability should use the modules that define
19034         these flags on older platforms that lack them.)
19035         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
19036         fcntl-safer.
19037
19038 2011-02-08  Jim Meyering  <meyering@redhat.com>
19039
19040         di-set.h, ino-map.h: add multiple-inclusion guard
19041         Technically, the guard is required only for ino-map.h, due to its
19042         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
19043         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
19044         * lib/ino-map.h: Likewise.
19045
19046 2011-02-06  Bruno Haible  <bruno@clisp.org>
19047
19048         iswblank: Ensure declaration on glibc systems.
19049         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
19050         * modules/iswblank (Dependencies): Add 'extensions'.
19051         * doc/posix-functions/iswblank.texi: Document the glibc problem.
19052
19053 2011-02-06  Bruno Haible  <bruno@clisp.org>
19054
19055         New module 'iswblank'.
19056         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
19057         * modules/iswblank: New file.
19058         * modules/wctype-h (Files): Remove lib/iswblank.c.
19059         (Makefile.am): Substitute GNULIB_ISWBLANK.
19060         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
19061         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
19062         (gl_WCTYPE_H_DEFAULTS): New macro.
19063         (gl_WCTYPE_H): Require it. Remove iswblank related code.
19064         * modules/iswblank-tests: New file.
19065         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
19066         * tests/test-wctype-h.c (main): Remove iswblank tests.
19067         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
19068         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
19069         of 'wctype-h'.
19070         * NEWS: Mention the change.
19071         * modules/mbchar (Depends-on): Add iswblank.
19072
19073 2011-02-08  Bruno Haible  <bruno@clisp.org>
19074
19075         di-set tests: Refactor.
19076         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
19077         unnecessary includes.
19078         (ASSERT): Remove macro.
19079         (main): Make C90 compliant by avoiding variable declaration after
19080         statement.
19081         * modules/di-set-tests (Files): Add tests/macros.h.
19082
19083 2011-02-08  Bruno Haible  <bruno@clisp.org>
19084
19085         ino-map tests: Refactor.
19086         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
19087         unnecessary includes.
19088         (ASSERT): Remove macro.
19089         (main): Make C90 compliant by avoiding variable declaration after
19090         statement.
19091         * modules/ino-map-tests (Files): Add tests/macros.h.
19092
19093 2011-02-08  Jim Meyering  <meyering@redhat.com>
19094
19095         di-set: add "const" to a cast
19096         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
19097         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
19098
19099 2011-02-06  Bruno Haible  <bruno@clisp.org>
19100
19101         Rename module 'wctype' to 'wctype-h'.
19102         * modules/wctype-h: Renamed from modules/wctype.
19103         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
19104         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
19105         (Files, Depends-on, Makefile.am): Update.
19106         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
19107         (Files, Makefile.am): Update.
19108         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
19109         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
19110         * doc/posix-headers/wctype.texi: Update.
19111         * doc/posix-functions/iswalnum.texi: Update.
19112         * doc/posix-functions/iswalpha.texi: Update.
19113         * doc/posix-functions/iswblank.texi: Update.
19114         * doc/posix-functions/iswcntrl.texi: Update.
19115         * doc/posix-functions/iswdigit.texi: Update.
19116         * doc/posix-functions/iswgraph.texi: Update.
19117         * doc/posix-functions/iswlower.texi: Update.
19118         * doc/posix-functions/iswprint.texi: Update.
19119         * doc/posix-functions/iswpunct.texi: Update.
19120         * doc/posix-functions/iswspace.texi: Update.
19121         * doc/posix-functions/iswupper.texi: Update.
19122         * doc/posix-functions/iswxdigit.texi: Update.
19123         * doc/posix-functions/towlower.texi: Update.
19124         * doc/posix-functions/towupper.texi: Update.
19125         * NEWS: Mention the change.
19126         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
19127         * modules/mbchar (Dependencies): Likewise.
19128         * modules/mbswidth (Dependencies): Likewise.
19129         * modules/quotearg (Dependencies): Likewise.
19130         * modules/regex (Dependencies): Likewise.
19131         * modules/wcscasecmp (Dependencies): Likewise.
19132         * modules/wcsncasecmp (Dependencies): Likewise.
19133         * modules/wcwidth (Dependencies): Likewise.
19134
19135 2011-02-06  Bruno Haible  <bruno@clisp.org>
19136
19137         New module 'wcswidth'.
19138         * modules/wcswidth: New file.
19139         * lib/wchar.in.h (wcswidth): New declaration.
19140         * lib/wcswidth.c: New file.
19141         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
19142         * m4/wcswidth.m4: New file.
19143         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
19144         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
19145         REPLACE_WCSWIDTH.
19146         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
19147         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
19148         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
19149         * doc/posix-functions/wcswidth.texi: Mention the new module.
19150
19151 2011-02-06  Bruno Haible  <bruno@clisp.org>
19152
19153         New module 'wcstok'.
19154         * modules/wcstok: New file.
19155         * lib/wchar.in.h (wcstok): New declaration.
19156         * lib/wcstok.c: New file.
19157         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
19158         * m4/wcstok.m4: New file.
19159         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
19160         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
19161         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
19162         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
19163         * doc/posix-functions/wcstok.texi: Mention the new module.
19164
19165 2011-02-06  Bruno Haible  <bruno@clisp.org>
19166
19167         New module 'wcsstr'.
19168         * modules/wcsstr: New file.
19169         * lib/wchar.in.h (wcsstr): New declaration.
19170         * lib/wcsstr.c: New file.
19171         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
19172         * m4/wcsstr.m4: New file.
19173         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
19174         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
19175         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
19176         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
19177         * doc/posix-functions/wcsstr.texi: Mention the new module.
19178
19179 2011-02-06  Bruno Haible  <bruno@clisp.org>
19180
19181         New module 'wcspbrk'.
19182         * modules/wcspbrk: New file.
19183         * lib/wchar.in.h (wcspbrk): New declaration.
19184         * lib/wcspbrk.c: New file.
19185         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
19186         * m4/wcspbrk.m4: New file.
19187         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
19188         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
19189         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
19190         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
19191         * doc/posix-functions/wcspbrk.texi: Mention the new module.
19192
19193 2011-02-06  Bruno Haible  <bruno@clisp.org>
19194
19195         New module 'wcsspn'.
19196         * modules/wcsspn: New file.
19197         * lib/wchar.in.h (wcsspn): New declaration.
19198         * lib/wcsspn.c: New file.
19199         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
19200         * m4/wcsspn.m4: New file.
19201         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
19202         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
19203         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
19204         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
19205         * doc/posix-functions/wcsspn.texi: Mention the new module.
19206
19207 2011-02-06  Bruno Haible  <bruno@clisp.org>
19208
19209         New module 'wcscspn'.
19210         * modules/wcscspn: New file.
19211         * lib/wchar.in.h (wcscspn): New declaration.
19212         * lib/wcscspn.c: New file.
19213         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
19214         * m4/wcscspn.m4: New file.
19215         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
19216         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
19217         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
19218         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
19219         * doc/posix-functions/wcscspn.texi: Mention the new module.
19220
19221 2011-02-06  Bruno Haible  <bruno@clisp.org>
19222
19223         New module 'wcsrchr'.
19224         * modules/wcsrchr: New file.
19225         * lib/wchar.in.h (wcsrchr): New declaration.
19226         * lib/wcsrchr.c: New file.
19227         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
19228         * m4/wcsrchr.m4: New file.
19229         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
19230         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
19231         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
19232         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
19233         * doc/posix-functions/wcsrchr.texi: Mention the new module.
19234
19235 2011-02-06  Bruno Haible  <bruno@clisp.org>
19236
19237         New module 'wcschr'.
19238         * modules/wcschr: New file.
19239         * lib/wchar.in.h (wcschr): New declaration.
19240         * lib/wcschr.c: New file.
19241         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
19242         * m4/wcschr.m4: New file.
19243         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
19244         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
19245         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
19246         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
19247         * doc/posix-functions/wcschr.texi: Mention the new module.
19248
19249 2011-02-06  Bruno Haible  <bruno@clisp.org>
19250
19251         New module 'wcsdup'.
19252         * modules/wcsdup: New file.
19253         * lib/wchar.in.h (wcsdup): New declaration.
19254         * lib/wcsdup.c: New file.
19255         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
19256         * m4/wcsdup.m4: New file.
19257         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
19258         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
19259         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
19260         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
19261         * doc/posix-functions/wcsdup.texi: Mention the new module.
19262
19263 2011-02-06  Bruno Haible  <bruno@clisp.org>
19264
19265         New module 'wcsxfrm'.
19266         * modules/wcsxfrm: New file.
19267         * lib/wchar.in.h (wcsxfrm): New declaration.
19268         * lib/wcsxfrm.c: New file.
19269         * lib/wcsxfrm-impl.h: New file.
19270         * m4/wcsxfrm.m4: New file.
19271         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
19272         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
19273         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
19274         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
19275         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
19276
19277 2011-02-06  Bruno Haible  <bruno@clisp.org>
19278
19279         New module 'wcscoll'.
19280         * modules/wcscoll: New file.
19281         * lib/wchar.in.h (wcscoll): New declaration.
19282         * lib/wcscoll.c: New file.
19283         * lib/wcscoll-impl.h: New file.
19284         * m4/wcscoll.m4: New file.
19285         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
19286         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
19287         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
19288         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
19289         * doc/posix-functions/wcscoll.texi: Mention the new module.
19290
19291 2011-02-06  Bruno Haible  <bruno@clisp.org>
19292
19293         New module 'wcsncasecmp'.
19294         * modules/wcsncasecmp: New file.
19295         * lib/wchar.in.h (wcsncasecmp): New declaration.
19296         * lib/wcsncasecmp.c: New file.
19297         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
19298         * m4/wcsncasecmp.m4: New file.
19299         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
19300         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
19301         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
19302         HAVE_WCSNCASECMP.
19303         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
19304         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
19305
19306 2011-02-06  Bruno Haible  <bruno@clisp.org>
19307
19308         New module 'wcscasecmp'.
19309         * modules/wcscasecmp: New file.
19310         * lib/wchar.in.h (wcscasecmp): New declaration.
19311         * lib/wcscasecmp.c: New file.
19312         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
19313         * m4/wcscasecmp.m4: New file.
19314         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
19315         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
19316         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
19317         HAVE_WCSCASECMP.
19318         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
19319         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
19320
19321 2011-02-05  Bruno Haible  <bruno@clisp.org>
19322
19323         New module 'wcsncmp'.
19324         * modules/wcsncmp: New file.
19325         * lib/wchar.in.h (wcsncmp): New declaration.
19326         * lib/wcsncmp.c: New file.
19327         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
19328         * m4/wcsncmp.m4: New file.
19329         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
19330         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
19331         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
19332         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
19333         * doc/posix-functions/wcsncmp.texi: Mention the new module.
19334
19335 2011-02-05  Bruno Haible  <bruno@clisp.org>
19336
19337         New module 'wcscmp'.
19338         * modules/wcscmp: New file.
19339         * lib/wchar.in.h (wcscmp): New declaration.
19340         * lib/wcscmp.c: New file.
19341         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
19342         * m4/wcscmp.m4: New file.
19343         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
19344         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
19345         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
19346         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
19347         * doc/posix-functions/wcscmp.texi: Mention the new module.
19348
19349 2011-02-05  Bruno Haible  <bruno@clisp.org>
19350
19351         New module 'wcsncat'.
19352         * modules/wcsncat: New file.
19353         * lib/wchar.in.h (wcsncat): New declaration.
19354         * lib/wcsncat.c: New file.
19355         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
19356         * m4/wcsncat.m4: New file.
19357         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
19358         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
19359         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
19360         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
19361         * doc/posix-functions/wcsncat.texi: Mention the new module.
19362
19363 2011-02-05  Bruno Haible  <bruno@clisp.org>
19364
19365         New module 'wcscat'.
19366         * modules/wcscat: New file.
19367         * lib/wchar.in.h (wcscat): New declaration.
19368         * lib/wcscat.c: New file.
19369         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
19370         * m4/wcscat.m4: New file.
19371         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
19372         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
19373         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
19374         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
19375         * doc/posix-functions/wcscat.texi: Mention the new module.
19376
19377 2011-02-05  Bruno Haible  <bruno@clisp.org>
19378
19379         New module 'wcpncpy'.
19380         * modules/wcpncpy: New file.
19381         * lib/wchar.in.h (wcpncpy): New declaration.
19382         * lib/wcpncpy.c: New file.
19383         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
19384         * m4/wcpncpy.m4: New file.
19385         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
19386         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
19387         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
19388         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
19389         * doc/posix-functions/wcpncpy.texi: Mention the new module.
19390
19391 2011-02-05  Bruno Haible  <bruno@clisp.org>
19392
19393         New module 'wcsncpy'.
19394         * modules/wcsncpy: New file.
19395         * lib/wchar.in.h (wcsncpy): New declaration.
19396         * lib/wcsncpy.c: New file.
19397         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
19398         * m4/wcsncpy.m4: New file.
19399         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
19400         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
19401         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
19402         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
19403         * doc/posix-functions/wcsncpy.texi: Mention the new module.
19404
19405 2011-02-05  Bruno Haible  <bruno@clisp.org>
19406
19407         New module 'wcpcpy'.
19408         * modules/wcpcpy: New file.
19409         * lib/wchar.in.h (wcpcpy): New declaration.
19410         * lib/wcpcpy.c: New file.
19411         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
19412         * m4/wcpcpy.m4: New file.
19413         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
19414         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
19415         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
19416         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
19417         * doc/posix-functions/wcpcpy.texi: Mention the new module.
19418
19419 2011-02-05  Bruno Haible  <bruno@clisp.org>
19420
19421         New module 'wcscpy'.
19422         * modules/wcscpy: New file.
19423         * lib/wchar.in.h (wcscpy): New declaration.
19424         * lib/wcscpy.c: New file.
19425         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
19426         * m4/wcscpy.m4: New file.
19427         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
19428         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
19429         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
19430         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
19431         * doc/posix-functions/wcscpy.texi: Mention the new module.
19432
19433 2011-02-05  Bruno Haible  <bruno@clisp.org>
19434
19435         New module 'wcsnlen'.
19436         * modules/wcsnlen: New file.
19437         * lib/wchar.in.h (wcsnlen): New declaration.
19438         * lib/wcsnlen.c: New file.
19439         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
19440         * m4/wcsnlen.m4: New file.
19441         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
19442         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
19443         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
19444         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
19445         * doc/posix-functions/wcsnlen.texi: Mention the new module.
19446
19447 2011-02-05  Bruno Haible  <bruno@clisp.org>
19448
19449         New module 'wcslen'.
19450         * modules/wcslen: New file.
19451         * lib/wchar.in.h (wcslen): New declaration.
19452         * lib/wcslen.c: New file.
19453         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
19454         * m4/wcslen.m4: New file.
19455         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
19456         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
19457         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
19458         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
19459         * doc/posix-functions/wcslen.texi: Mention the new module.
19460
19461 2011-02-05  Bruno Haible  <bruno@clisp.org>
19462
19463         New module 'wmemset'.
19464         * modules/wmemset: New file.
19465         * lib/wchar.in.h (wmemset): New declaration.
19466         * lib/wmemset.c: New file.
19467         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
19468         * m4/wmemset.m4: New file.
19469         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
19470         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
19471         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
19472         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
19473         * doc/posix-functions/wmemset.texi: Mention the new module.
19474
19475 2011-02-05  Bruno Haible  <bruno@clisp.org>
19476
19477         New module 'wmemmove'.
19478         * modules/wmemmove: New file.
19479         * lib/wchar.in.h (wmemmove): New declaration.
19480         * lib/wmemmove.c: New file.
19481         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
19482         * m4/wmemmove.m4: New file.
19483         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
19484         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
19485         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
19486         HAVE_WMEMMOVE.
19487         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
19488         * doc/posix-functions/wmemmove.texi: Mention the new module.
19489
19490 2011-02-05  Bruno Haible  <bruno@clisp.org>
19491
19492         New module 'wmemcpy'.
19493         * modules/wmemcpy: New file.
19494         * lib/wchar.in.h (wmemcpy): New declaration.
19495         * lib/wmemcpy.c: New file.
19496         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
19497         * m4/wmemcpy.m4: New file.
19498         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
19499         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
19500         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
19501         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
19502         * doc/posix-functions/wmemcpy.texi: Mention the new module.
19503
19504 2011-02-05  Bruno Haible  <bruno@clisp.org>
19505
19506         New module 'wmemcmp'.
19507         * modules/wmemcmp: New file.
19508         * lib/wchar.in.h (wmemcmp): New declaration.
19509         * lib/wmemcmp.c: New file.
19510         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
19511         * m4/wmemcmp.m4: New file.
19512         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
19513         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
19514         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
19515         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
19516         * doc/posix-functions/wmemcmp.texi: Mention the new module.
19517
19518 2011-02-07  Jim Meyering  <meyering@redhat.com>
19519
19520         di-set, ino-map: new modules, from coreutils
19521         * lib/di-set.c: New file.
19522         * lib/di-set.h: Likewise.
19523         * lib/ino-map.c: Likewise.
19524         * lib/ino-map.h: Likewise.
19525         * modules/di-set: Likewise.
19526         * modules/di-set-tests: Likewise.
19527         * modules/ino-map: Likewise.
19528         * modules/ino-map-tests: Likewise.
19529         * tests/test-di-set.c: Likewise.
19530         * tests/test-ino-map.c: Likewise.
19531
19532 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
19533
19534         getloadavg: merge minor changes from Emacs
19535
19536         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
19537         (getloadavg): Use memset, not bzero.
19538
19539         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
19540         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
19541         clash (bug#86).
19542
19543 2010-11-14  Bruno Haible  <bruno@clisp.org>
19544
19545         Allow multiple gnulib generated replacements to coexist.
19546         * lib/getopt.in.h (struct option): Avoid identical redefinition.
19547         * lib/inttypes.in.h (imaxdiv_t): Likewise.
19548         * lib/langinfo.in.h (nl_item): Likewise.
19549         * lib/math.in.h (_NaN, NAN): Likewise.
19550         * lib/netdb.in.h (struct addrinfo): Likewise.
19551         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
19552         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
19553         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
19554         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
19555         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
19556         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
19557         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
19558         pthread_mutexattr_init, pthread_mutexattr_settype,
19559         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
19560         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
19561         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
19562         pthread_spin_trylock, pthread_spin_unlock): Likewise.
19563         * lib/sched.in.h (struct sched_param): Likewise.
19564         * lib/se-selinux.in.h (security_class_t, security_context_t,
19565         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
19566         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
19567         lsetfilecon, fsetfilecon, security_check_context,
19568         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
19569         Likewise.
19570         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
19571         Likewise.
19572         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
19573         _gl_function_taking_int_returning_void_t, union sigval,
19574         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
19575         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
19576         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
19577         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
19578         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
19579         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
19580         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
19581         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
19582         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
19583         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
19584         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
19585         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
19586         socklen_t, rpl_fd_isset): Likewise.
19587         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
19588         * lib/sys_time.in.h (struct timeval): Likewise.
19589         * lib/sys_times.in.h (struct tms): Likewise.
19590         * lib/sys_utsname.in.h (struct utsname):
19591         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
19592         * lib/unistd.in.h (getpagesize): Likewise.
19593         * lib/wchar.in.h (mbstate_t): Likewise.
19594         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
19595         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
19596         towlower, towupper): Likewise.
19597         Reported by Sam Steingold <sds@gnu.org>.
19598
19599 2011-02-05  Eric Blake  <eblake@redhat.com>
19600
19601         unsetenv: work around Haiku issues
19602         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
19603         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
19604
19605 2010-12-30  Bruce Korb  <bkorb@gnu.org>
19606
19607         libposix: avoid calling error() within libposix
19608         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
19609         is defined.
19610
19611 2011-02-05  Eric Blake  <eblake@redhat.com>
19612
19613         strerror_r-posix: port to cygwin
19614         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
19615         implementation.
19616         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
19617         * tests/test-strerror_r.c (main): Fix test.
19618         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
19619         issue.
19620
19621 2011-02-05  Bruno Haible  <bruno@clisp.org>
19622
19623         New module 'wmemchr'.
19624         * modules/wmemchr: New file.
19625         * lib/wchar.in.h (wmemchr): New declaration.
19626         * lib/wmemchr.c: New file.
19627         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
19628         * m4/wmemchr.m4: New file.
19629         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
19630         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
19631         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
19632         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
19633         * doc/posix-functions/wmemchr.texi: Mention the new module.
19634
19635 2011-02-04  Eric Blake  <eblake@redhat.com>
19636
19637         fdopendir: detect FreeBSD bug
19638         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
19639         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
19640
19641 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
19642
19643         stdbool: do not define HAVE_STDBOOL_H
19644         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
19645         AC_HEADER_STDBOOL.  All uses changed.  Do not define
19646         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
19647         imported from the latest Autoconf git.  It was motivated by Emacs,
19648         which uses gnulib but does not need HAVE_STDBOOL_H.
19649
19650 2011-02-04  Bruno Haible  <bruno@clisp.org>
19651
19652         wcsnrtombs: Prepare for new module wwcsnrtombs.
19653         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
19654         * lib/wcsnrtombs.c: Include it.
19655         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
19656
19657         wcsrtombs: Prepare for new module wwcsrtombs.
19658         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
19659         * lib/wcsrtombs.c: Include it.
19660         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
19661
19662         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
19663         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
19664         * lib/mbsnrtowcs.c: Include it.
19665         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
19666
19667         mbsrtowcs: Prepare for new module mbsrtowwcs.
19668         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
19669         * lib/mbsrtowcs.c: Include it.
19670         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
19671
19672 2011-02-04  Bruno Haible  <bruno@clisp.org>
19673
19674         vasnprintf: Reduce use of malloc for small format strings.
19675         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
19676         (arguments): Add room for the first 7 arguments.
19677         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
19678         (char_directives, u8_directives, u16_directives, u32_directives): Add
19679         room for the first 7 directives.
19680         * lib/printf-parse.c: Include <string.h>.
19681         (PRINTF_PARSE): Change memory handling code so that it uses the first
19682         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
19683         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
19684         Reported by Pádraig Brady <P@draigbrady.com>.
19685
19686 2011-01-31  Eric Blake  <eblake@redhat.com>
19687
19688         dup2: work around Haiku bug
19689         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
19690         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
19691         * doc/posix-functions/dup2.texi (dup2): Document the bug.
19692         * tests/test-dup2.c (main): Enhance test.
19693
19694 2011-01-31  Simon Josefsson  <simon@josefsson.org>
19695
19696         doc: off_t is not available in eglibc 2.11.2 stdio.h.
19697         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
19698         declared by eglibc 2.11.2.
19699         * lib/stdio.in.h: Likewise.
19700
19701 2011-01-31  Eric Blake  <eblake@redhat.com>
19702
19703         ignore-value: add missing test dependency
19704         * tests/test-ignore-value.c: Revert previous change; stdio.h
19705         provides off_t.
19706         * modules/ignore-value-tests (Depends-on): Add missing dependency.
19707
19708 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
19709
19710         mktime: clarify long_int width checking
19711         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
19712         the top level, to make it clearer that the assumption about
19713         long_int width is being checked.  See
19714         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
19715
19716 2011-01-30  Simon Josefsson  <simon@josefsson.org>
19717
19718         ignore-value: Fix self-test.
19719         * tests/test-ignore-value.c: Include sys/types.h for off_t.
19720
19721 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
19722
19723         TYPE_MAXIMUM: avoid theoretically undefined behavior
19724         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
19725         negative number, which the C Standard says has undefined behavior.
19726         In practice this is not a problem, but might as well do it by the book.
19727         Reported by Rich Felker and Eric Blake; see
19728         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
19729         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
19730         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
19731         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19732         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
19733         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19734         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
19735
19736         mktime: #undef mktime before #defining it
19737         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
19738
19739         mktime: systematically normalize tm_isdst comparisons
19740         * lib/mktime.c (isdst_differ): New function.
19741         (__mktime_internal): Use it systematically for all isdst comparisons.
19742         This completes the fix for libc BZ #6723, and removes the need for
19743         normalizing tm_isdst.  See
19744         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
19745         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
19746
19747         mktime: fix some integer overflow issues and sidestep the rest
19748
19749         This was prompted by a bug report by Benjamin Lindner for MinGW
19750         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
19751         His bug is due to signed integer overflow (0 - INT_MIN), and I
19752         I scanned through mktime.c looking for other integer overflow
19753         problems, fixing all the bugs I found.
19754
19755         Although the C Standard says the resulting code is still not safe
19756         in the presence of integer overflow, in practice it should be good
19757         enough for all real-world two's-complement implementations, except
19758         for debugging environments that deliberately trap on integer
19759         overflow (e.g., gcc -ftrapv).
19760
19761         * lib/mktime.c (WRAPV): New macro.
19762         (SHR): Also check that long_int and time_t shift right in the
19763         usual way, before using the fast-but-unportable method.
19764         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
19765         used.  The code already assumed two's complement, so there's
19766         no need to test for alternatives.  All uses removed.
19767         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
19768         the C standard.  Problem reported by Rich Felker in
19769         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
19770         (twos_complement_arithmetic): Also check long_int and time_t.
19771         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
19772         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
19773         (__mktime_internal): Avoid integer overflow with unary subtraction
19774         in two instances where -1 - X is an adequate replacement for -X,
19775         since the calculations are approximate.
19776
19777 2011-01-29  Eric Blake  <eblake@redhat.com>
19778
19779         mktime: avoid infinite loop
19780         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
19781         type; behavior is still undefined but portable to all known targets.
19782         Reported by Rich Felker.
19783
19784 2011-01-29  Simon Josefsson  <simon@josefsson.org>
19785
19786         rename, unlink, same-inode: Relicense.
19787         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
19788         * modules/unlink (License): Likewise.
19789         * modules/same-inode (License): Likewise.
19790
19791 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
19792
19793         mktime: avoid problems on NetBSD 5 / i386
19794         * lib/mktime.c (long_int): New type.  This works around a problem
19795         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
19796         but time_t is 64 bits, and where I expect the existing code is
19797         wrong in some cases.
19798         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
19799         (ydhms_diff): Bring back the compile-time check for wide-enough
19800         year and yday.
19801
19802         mktime: fix misspelling in comment
19803         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
19804         This merges all recent glibc changes of importance.
19805
19806 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19807
19808         move-if-change: cope with concurrent mv of identical file.
19809         * build-aux/move-if-change (CMPPROG): Accept environment
19810         variable as an override for `cmp'.
19811         (usage): Document CMPPROG.
19812         Adjust comparison to drop stdout.  Cope with failure of mv if
19813         the target file exists and is identical to the source, for
19814         parallel builds.
19815         Report from H.J. Lu against binutils in PR binutils/12283.
19816
19817 2011-01-28  Bruce Korb  <bkorb@gnu.org>
19818
19819         * users.txt: Mention sharutils.
19820
19821 2011-01-28  Simon Josefsson  <simon@josefsson.org>
19822
19823         * users.txt: Mention OATH Toolkit.
19824
19825 2011-01-27  Bruno Haible  <bruno@clisp.org>
19826
19827         Prepare for supporting FreeBSD 10.
19828         * build-aux/config.libpath: Remove handling of freebsd1*.
19829
19830 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
19831
19832         Prepare for supporting FreeBSD 10.
19833         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
19834         match FreeBSD 10.0.
19835
19836 2011-01-27  Bruno Haible  <bruno@clisp.org>
19837
19838         vma-iter, get-rusage-as: Add OpenBSD support.
19839         * modules/vma-iter (configure.ac): Test for mquery.
19840         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
19841         * lib/vma-iter.c: Include <sys/mman.h>.
19842         (vma_iterate): Add an implementation based on mquery().
19843         * lib/resource-ext.h (get_rusage_as): Update comments.
19844         * lib/get-rusage-as.c: Likewise.
19845         * lib/get-rusage-data.c: Likewise.
19846
19847 2011-01-26  Karl Berry  <karl@gnu.org>
19848
19849         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
19850         variables to make it easier to override the makeinfo program used.
19851
19852 2011-01-26  Eric Blake  <eblake@redhat.com>
19853
19854         fcntl: work around Haiku F_DUPFD bugs
19855         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
19856         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
19857         cloexec bit on duplication.
19858         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
19859
19860 2011-01-26  Bruno Haible  <bruno@clisp.org>
19861
19862         Enable memory leak tests on AIX.
19863         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
19864         * tests/test-fprintf-posix3.c (main): Likewise.
19865
19866 2011-01-26  Bruno Haible  <bruno@clisp.org>
19867
19868         Tests for module 'get-rusage-data'.
19869         * modules/get-rusage-data-tests: New file.
19870         * tests/test-get-rusage-data.c: New file.
19871
19872         New module 'get-rusage-data'.
19873         * lib/resource-ext.h (get_rusage_data): New declaration.
19874         * lib/get-rusage-data.c: New file.
19875         * modules/get-rusage-data: New file.
19876
19877 2011-01-25  Bruno Haible  <bruno@clisp.org>
19878
19879         get-rusage-as: Allow for easier testing.
19880         * lib/resource-ext.h (get_rusage_as): Add comment.
19881         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
19882         (main): New function for interactive testing.
19883
19884 2011-01-25  Bruno Haible  <bruno@clisp.org>
19885
19886         vma-iter: Treat Haiku like BeOS.
19887         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
19888         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
19889
19890 2011-01-25  Eric Blake  <eblake@redhat.com>
19891
19892         c-stack: fix regression on cygwin when libsigsegv is present
19893         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
19894
19895 2011-01-24  Bruno Haible  <bruno@clisp.org>
19896
19897         vma-iter: Avoid empty intervals.
19898         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
19899         on an empty interval.
19900
19901 2011-01-24  Jim Meyering  <meyering@redhat.com>
19902
19903         u64: remove unnecessary #include
19904         * lib/u64.h: Don't include <stddef.h>.  It was not used.
19905
19906 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
19907
19908         Allow the user to avoid the HAVE_RAW_DECL_* macros.
19909         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
19910
19911 2011-01-23  Bruno Haible  <bruno@clisp.org>
19912
19913         New module 'vma-iter'.
19914         * lib/vma-iter.h: New file.
19915         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
19916         * modules/vma-iter: New file.
19917         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
19918         for get_rusage_as_via_iterator.
19919         (vma_iterate_callback): New function.
19920         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
19921         * modules/get-rusage-as (Depends-on): Add vma-iter.
19922
19923 2011-01-23  Bruno Haible  <bruno@clisp.org>
19924
19925         uninorm: Tweak includes.
19926         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
19927         Reported by Jim Meyering.
19928
19929 2011-01-23  Bruno Haible  <bruno@clisp.org>
19930
19931         get-rusage-as: Improve on NetBSD.
19932         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
19933         /proc, like on FreeBSD.
19934
19935 2011-01-23  Jim Meyering  <meyering@redhat.com>
19936
19937         xreadlink.h: remove unnecessary #include
19938         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
19939
19940         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
19941         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
19942
19943 2011-01-23  Bruno Haible  <bruno@clisp.org>
19944
19945         get-rusage-as: Fix bug.
19946         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
19947         original limit when aborting the first loop.
19948
19949 2011-01-23  Bruno Haible  <bruno@clisp.org>
19950
19951         wctype: Ensure valid C syntax.
19952         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
19953         unconditionally, instead of gl_NEXT_HEADERS conditionally.
19954
19955 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
19956
19957         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
19958         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
19959         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
19960         as they are needed only for configure's test case.
19961         This removes two unnecessary symbols from config.h.
19962
19963         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
19964         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
19965         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
19966         AC_CHECK_HEADERS_ONCE on a header that we also invoke
19967         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
19968         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
19969         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
19970         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
19971         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
19972         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
19973         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
19974         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19975         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19976         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
19977         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
19978         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
19979         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
19980         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
19981
19982 2011-01-21  Eric Blake  <eblake@redhat.com>
19983
19984         maintainer-makefile: work with older git for submodule check
19985         * top/maint.mk (public-submodule-commit): Rewrite to avoid
19986         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
19987         Reported by Matthias Bolte.
19988
19989         bootstrap: minor portability fixes
19990         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
19991         (usage): Omit leading capital and trailing . on help phrases, per
19992         GNU Coding Standards.
19993         (check_versions, top level): Prefix messages with script name.
19994
19995 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
19996
19997         bootstrap: support --no-git option
19998         * build-aux/bootstrap: Add --no-git option, to be used when
19999         --gnulib-srcdir points to the exact desired checkout.
20000
20001 2011-01-21  Eric Blake  <eblake@redhat.com>
20002
20003         strerror_r-posix: work with glibc 2.13
20004         * lib/strerror_r.c (strerror_r): Fix return type.
20005
20006 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20007             Bruno Haible  <bruno@clisp.org>
20008
20009         uN_strstr: New unit tests.
20010         * modules/unistr/u8-strstr-tests: New file.
20011         * modules/unistr/u16-strstr-tests: New file.
20012         * modules/unistr/u32-strstr-tests: New file.
20013         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
20014         * tests/unistr/test-u8-strstr.c: New file.
20015         * tests/unistr/test-u16-strstr.c: New file.
20016         * tests/unistr/test-u32-strstr.c: New file.
20017
20018 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20019             Bruno Haible  <bruno@clisp.org>
20020
20021         Make uN_strstr functions O(n) worst-case.
20022         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
20023         16-bit and 32-bit unit cases, use the unibyte algorithm from
20024         lib/mbsstr.c.
20025         * lib/unistr/u8-strstr.c: Include <string.h>.
20026         (UNIT_IS_UINT8_T): New macro.
20027         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
20028         (U_STRLEN, U_STRNLEN): New macros.
20029         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
20030         (U_STRLEN, U_STRNLEN): New macros.
20031         * modules/unistr/u8-strstr (Depends-on): Add strstr.
20032         (configure.ac): Update required libunistring version.
20033         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
20034         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
20035         malloca.
20036         (configure.ac): Update required libunistring version.
20037         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
20038         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
20039         malloca.
20040         (configure.ac): Update required libunistring version.
20041
20042 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20043             Bruno Haible  <bruno@clisp.org>
20044
20045         Prepare for faster uN_strstr functions.
20046         * lib/str-kmp.h: Support definable UNITs.
20047         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
20048         needle_len argument.
20049         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
20050         * lib/mbscasestr.c (mbscasestr): Likewise.
20051
20052 2011-01-21  Pádraig Brady <P@draigBrady.com>
20053
20054         malloca-tests: make faster by unsetting MALLOC_PERTURB_
20055         * tests/test-malloca.c (main): Unset the environment variable
20056         to greatly speed up the test.
20057         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
20058         * modules/malloca-tests: Depend on unsetenv.
20059
20060 2011-01-21  Pádraig Brady <P@draigBrady.com>
20061
20062         ignore-value: remove stdint dependency
20063         * lib/ignore-value.h: Remove <stdint.h>
20064         * modules/ignore-value: Remove stdint dependency.
20065
20066 2011-01-21  Jim Meyering  <meyering@redhat.com>
20067
20068         maint.mk: adjust variable name to be consistent with other gl_ vars
20069         * top/maint.mk (gl_public_submodule_commit): Rename the variable
20070         to be lower case.
20071
20072 2011-01-20  Jim Meyering  <meyering@redhat.com>
20073
20074         maint.mk: make "check" depend on public-submodule-commit by default
20075         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
20076
20077 2011-01-20  Bruno Haible  <bruno@clisp.org>
20078
20079         mbfile, mbiter: Complete change from 2008-12-21.
20080         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
20081         * m4/mbiter.m4 (gl_MBITER): Likewise.
20082
20083 2011-01-20  Jim Meyering  <meyering@redhat.com>
20084
20085         init.sh: insert space between each function name and "()"
20086         * tests/init.sh: Make it a little easier to see that a function's
20087         name is "warn_", and not "warn" when looking at the first part of
20088         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
20089
20090 2011-01-20  Jim Meyering  <meyering@redhat.com>
20091
20092         mountlist: clean up code formatting
20093         * lib/mountlist.c (read_file_system_list): Split a long line,
20094         correct bracing style, use NULL in place of "(struct statfs *)0",
20095         don't parenthesize return value, add spaces around "=" and after
20096         ";-in-for-stmt".
20097
20098 2011-01-14  Markus Duft <mduft@gentoo.org>
20099
20100         mountlist: add support for Interix
20101         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
20102         Apply statvfs to all entries of /dev/fs.
20103         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
20104         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
20105
20106 2011-01-20  Jim Meyering  <meyering@redhat.com>
20107
20108         maint.mk: improve the public-submodule-commit rule
20109         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
20110         to suppress printing of its commands... unless V=1.
20111         Add git submodule's --quiet option to suppress printing of e.g.,
20112         "Entering gnulib" output.
20113         "cd" into $(srcdir) before running git submodule.
20114
20115 2011-01-20  Bruno Haible  <bruno@clisp.org>
20116
20117         include_next: Fix bug introduced on 2011-01-18.
20118         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
20119         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
20120         ac_cv_header_... variable if the second argument is not 'check'.
20121         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
20122         gl_NEXT_HEADERS_INTERNAL.
20123
20124 2011-01-20  Bruno Haible  <bruno@clisp.org>
20125
20126         Allow the user to avoid the GNULIB_TEST_* macros.
20127         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
20128         Suggested by Paul Eggert.
20129
20130 2011-01-14  Jim Meyering  <meyering@redhat.com>
20131
20132         bootstrap: avoid failure when there is no .gitmodules file
20133         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
20134         has been assigned to, even when its value is the empty string.
20135         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
20136         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
20137         Reported by John W. Eaton <jwe@gnu.org>.
20138
20139 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
20140
20141         assume <ctype.h>, ..., <time.h> exist
20142         For years gnulib has been assuming the existence of the headers
20143         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
20144         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
20145         them, since they don't appear to be needed.
20146         * README (Portability guidelines): Document this.
20147         * lib/flock.c: Assume <fcntl.h> exists.
20148         * lib/regex_internal.h: Assume <locale.h> exists.
20149         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
20150         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
20151         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
20152         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
20153         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
20154         * m4/regex.m4 (gl_REGEX): Likewise.
20155         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
20156         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
20157         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
20158         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
20159         * tests/test-argp.c: Likewise.
20160         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
20161
20162         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
20163         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
20164         AA_APPLE_UNIVERSAL_BUILD.  See
20165         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
20166         * NEWS: Document this.
20167
20168 2011-01-19  Eric Blake  <eblake@redhat.com>
20169
20170         c-stack: assume stack overflow if SA_SIGINFO unsupported
20171         * lib/c-stack.c (SIGACTION_WORKS): Rename...
20172         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
20173         sigaction will work.
20174         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
20175         behavior match Linux.
20176         * tests/test-c-stack.c (main): Prefer NULL for pointers.
20177
20178         stdbool-tests: accomodate Haiku
20179         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
20180
20181         binary-io: fix O_TEXT on Haiku
20182         * modules/binary-io (Depends-on): Add fcntl-h.
20183         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
20184         than blindly undefining O_TEXT.
20185         Reported by Scott McCreary.
20186
20187 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
20188
20189         include_next: do not check for standard headers like stddef.h
20190
20191         I found this problem when modifying Emacs to use gnulib.
20192         I noticed that it added HAVE_STDDEF_H to config.h, even though
20193         gnulib always assumes <stddef.h> exists as per README and this
20194         symbol is unnecessary.
20195         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
20196         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
20197         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
20198         faster for headers like stddef.h that are known to exist.
20199         (gl_CHECK_NEXT_HEADERS): Use it.
20200         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
20201         rather than gl_CHECK_NEXT_HEADERS.
20202         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
20203         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
20204
20205 2011-01-18  Eric Blake  <eblake@redhat.com>
20206
20207         ansi-c++-opt: skip C++ dependency style if C++ is unused
20208         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
20209         tests when we know C++ compilation is not desired.
20210         Reported by Scott McCreary.
20211
20212 2011-01-18  Bruno Haible  <bruno@clisp.org>
20213
20214         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
20215         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
20216         (main): Perform test also when getrlimit and setrlimit don't exist or
20217         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
20218         limiting the address space size using setrlimit, compare the address
20219         space size before and after the the test.
20220         * tests/test-dprintf-posix2.c: Likewise.
20221         * tests/test-fprintf-posix3.sh: Update skip messages.
20222         * tests/test-dprintf-posix2.sh: Likewise.
20223         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
20224         * modules/dprintf-posix-tests (Depends-on): Likewise.
20225         Reported by Bruce Korb <bkorb@gnu.org> and
20226         Gary V. Vaughan <gary@gnu.org>.
20227
20228 2011-01-18  Bruno Haible  <bruno@clisp.org>
20229
20230         get-rusage-as: Improvement for Cygwin.
20231         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
20232         areas that are merely reserved.
20233
20234 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
20235
20236         strftime: remove dependencies on multibyte modules
20237
20238         strftime depended on mbrlen, mbsinit, and wchar, but these modules
20239         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
20240         only if __osf__ is defined, and I suspect OSF doesn't need these
20241         other modules.  If my guess is wrong, we'll need to come up with a
20242         variant of strftime that doesn't need the multibyte modules.
20243
20244         I discovered this problem when attempting modify Emacs to use the
20245         strftime module.  With the previous gnulib, this caused Emacs to
20246         need 31 new files, ranging from lib/config.charset to
20247         m4/wint_t.m4.  This was overkill and I expect would be offputting
20248         to the Emacs maintainers.  After this change, only 6 new files are
20249         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
20250         stdbool.m4, and tm_gmtoff.m4.
20251
20252         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
20253         Suggested by Bruno Haible in
20254         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
20255         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
20256         and do not check for wchar.h.
20257         * modules/strftime (Files): Remove m4/mbstate_t.m4.
20258         (Depends-on): Remove mbrlen, mbsinit, wchar.
20259
20260 2011-01-18  Bruno Haible  <bruno@clisp.org>
20261
20262         Tests for module 'get-rusage-as'.
20263         * modules/get-rusage-as-tests: New file.
20264         * tests/test-get-rusage-as.c: New file.
20265
20266         New module 'get-rusage-as'.
20267         * modules/get-rusage-as: New file.
20268         * lib/resource-ext.h: New file.
20269         * lib/get-rusage-as.c: New file.
20270
20271 2011-01-17  Eric Blake  <eblake@redhat.com>
20272
20273         sigaction: relax license from LGPLv3+ to LGPLv2+
20274         * modules/sigaction (License): Relax to LGPLv2+.
20275
20276 2011-01-14  Bruno Haible  <bruno@clisp.org>
20277
20278         filemode: Make function declarations usable in C++ mode.
20279         * lib/filemode.h: Enclose function declarations in extern "C" block.
20280         Reported by John W. Eaton <jwe@gnu.org>.
20281
20282 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
20283
20284         save-cwd: no longer include "xgetcwd.h"
20285         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
20286         This avoids a compilation failure in projects that use save-cwd
20287         without also using the xgetcwd module.
20288
20289 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
20290
20291         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
20292         This is so that a program like Emacs, which needs only dtoastr,
20293         does not have to bother with distributing and compiling ftoastr
20294         and ldtoastr.
20295         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
20296         * modules/dtoastr, modules/ldtoastr: New files.
20297         * modules/ftoastr: Now works just for 'float'.
20298         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
20299         (Makefile.am): Remove ftoastr.h (not needed and no effect),
20300         dtoastr.c, ldtoastr.c.
20301
20302 2011-01-11  Jim Meyering  <meyering@redhat.com>
20303
20304         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
20305         There is no need to work around the lack of the fchdir function,
20306         since gnulib can now provide a replacement when required.
20307         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
20308         * modules/save-cwd (Depends-on): Add fchdir.
20309
20310 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
20311
20312         openat, save-cwd: avoid xmalloc
20313
20314         This removes a direct (but undocumented) dependency of openat on
20315         xalloc, along with an indirect dependency via save-cwd.  It also
20316         removes a dependency of save-cwd on xgetcwd, and thereby
20317         indirectly on xalloc.  This change causes the openat substitute
20318         to fall back on save_cwd when memory is tight, and for save_cwd to
20319         fail instead of dying when memory is tight, but that's good enough.
20320         Problem and initial idea for fix reported by Bastien Roucaries in
20321         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
20322
20323         * lib/openat-proc.c: Include stdlib.h (for malloc), not
20324         xalloc.h (for xmalloc).
20325         (openat_proc_name): Use malloc, not xmalloc.
20326         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
20327         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
20328
20329         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
20330         This avoids heap allocation for file names whose lengths are in
20331         the range 512..1023, with the upper bound increasing to at most
20332         4031 depending on the platform's PATH_MAX.  (We do not want
20333         pathmax.h here as it might supply a non-constant PATH_MAX.)
20334         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
20335         Perhaps they should be moved to malloca.h?
20336         (OPENAT_BUFFER_SIZE): Use them.
20337
20338 2011-01-10  Bruno Haible  <bruno@clisp.org>
20339
20340         doc: Update users.txt.
20341         * users.txt: Add recutils.
20342
20343 2011-01-09  Karl Berry  <karl@gnu.org>
20344
20345         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
20346
20347         * doc/configmake.texi: New file.
20348         * doc/gnulib.texi: Include it.
20349         * modules/configmake: Move documentation from here.
20350
20351 2011-01-09  Bruno Haible  <bruno@clisp.org>
20352
20353         Update to Unicode 6.0.0.
20354         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
20355         (get_lbp): Update for Unicode 6.0.0.
20356         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
20357         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
20358         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
20359         U+11001, U+11038..U+11046. Remove U+06DE.
20360         (uc_width): Fix bounds of planes.
20361         * tests/uniwidth/test-uc_width2.sh: Same updates as in
20362         lib/uniwidth/width.c.
20363         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
20364         trailing whitespace removed.
20365         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
20366         without comments, but with the original copyright notice.
20367         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
20368         * lib/unicase/ignorable.h: Likewise.
20369         * lib/unicase/tocasefold.h: Likewise.
20370         * lib/unicase/tolower.h: Likewise.
20371         * lib/unicase/totitle.h: Likewise.
20372         * lib/unicase/toupper.h: Likewise.
20373         * lib/unictype/bidi_of.h: Likewise.
20374         * lib/unictype/blocks.h: Likewise.
20375         * lib/unictype/categ_C.h: Likewise.
20376         * lib/unictype/categ_Cn.h: Likewise.
20377         * lib/unictype/categ_L.h: Likewise.
20378         * lib/unictype/categ_Ll.h: Likewise.
20379         * lib/unictype/categ_Lm.h: Likewise.
20380         * lib/unictype/categ_Lo.h: Likewise.
20381         * lib/unictype/categ_Lu.h: Likewise.
20382         * lib/unictype/categ_M.h: Likewise.
20383         * lib/unictype/categ_Mc.h: Likewise.
20384         * lib/unictype/categ_Me.h: Likewise.
20385         * lib/unictype/categ_Mn.h: Likewise.
20386         * lib/unictype/categ_N.h: Likewise.
20387         * lib/unictype/categ_Nd.h: Likewise.
20388         * lib/unictype/categ_No.h: Likewise.
20389         * lib/unictype/categ_P.h: Likewise.
20390         * lib/unictype/categ_Po.h: Likewise.
20391         * lib/unictype/categ_S.h: Likewise.
20392         * lib/unictype/categ_Sc.h: Likewise.
20393         * lib/unictype/categ_Sk.h: Likewise.
20394         * lib/unictype/categ_Sm.h: Likewise.
20395         * lib/unictype/categ_So.h: Likewise.
20396         * lib/unictype/categ_of.h: Likewise.
20397         * lib/unictype/combining.h: Likewise.
20398         * lib/unictype/ctype_alnum.h: Likewise.
20399         * lib/unictype/ctype_alpha.h: Likewise.
20400         * lib/unictype/ctype_graph.h: Likewise.
20401         * lib/unictype/ctype_lower.h: Likewise.
20402         * lib/unictype/ctype_print.h: Likewise.
20403         * lib/unictype/ctype_punct.h: Likewise.
20404         * lib/unictype/ctype_upper.h: Likewise.
20405         * lib/unictype/decdigit.h: Likewise.
20406         * lib/unictype/digit.h: Likewise.
20407         * lib/unictype/numeric.h: Likewise.
20408         * lib/unictype/pr_alphabetic.h: Likewise.
20409         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
20410         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
20411         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
20412         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
20413         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
20414         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
20415         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
20416         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
20417         * lib/unictype/pr_case_ignorable.h: Likewise.
20418         * lib/unictype/pr_cased.h: Likewise.
20419         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
20420         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
20421         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
20422         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
20423         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
20424         * lib/unictype/pr_combining.h: Likewise.
20425         * lib/unictype/pr_composite.h: Likewise.
20426         * lib/unictype/pr_currency_symbol.h: Likewise.
20427         * lib/unictype/pr_decimal_digit.h: Likewise.
20428         * lib/unictype/pr_deprecated.h: Likewise.
20429         * lib/unictype/pr_format_control.h: Likewise.
20430         * lib/unictype/pr_grapheme_base.h: Likewise.
20431         * lib/unictype/pr_grapheme_extend.h: Likewise.
20432         * lib/unictype/pr_grapheme_link.h: Likewise.
20433         * lib/unictype/pr_id_continue.h: Likewise.
20434         * lib/unictype/pr_id_start.h: Likewise.
20435         * lib/unictype/pr_ideographic.h: Likewise.
20436         * lib/unictype/pr_lowercase.h: Likewise.
20437         * lib/unictype/pr_math.h: Likewise.
20438         * lib/unictype/pr_numeric.h: Likewise.
20439         * lib/unictype/pr_other_alphabetic.h: Likewise.
20440         * lib/unictype/pr_other_id_continue.h: Likewise.
20441         * lib/unictype/pr_other_math.h: Likewise.
20442         * lib/unictype/pr_punctuation.h: Likewise.
20443         * lib/unictype/pr_sentence_terminal.h: Likewise.
20444         * lib/unictype/pr_terminal_punctuation.h: Likewise.
20445         * lib/unictype/pr_unassigned_code_value.h: Likewise.
20446         * lib/unictype/pr_unified_ideograph.h: Likewise.
20447         * lib/unictype/pr_uppercase.h: Likewise.
20448         * lib/unictype/pr_xid_continue.h: Likewise.
20449         * lib/unictype/pr_xid_start.h: Likewise.
20450         * lib/unictype/scripts.h: Likewise.
20451         * lib/unictype/scripts_byname.gperf: Likewise.
20452         * lib/unictype/sy_java_ident.h: Likewise.
20453         * lib/unigbrk/gbrkprop.h: Likewise.
20454         * lib/unilbrk/lbrkprop1.h: Likewise.
20455         * lib/unilbrk/lbrkprop2.h: Likewise.
20456         * lib/uninorm/decomposition-table2.h: Likewise.
20457         * lib/uniwbrk/wbrkprop.h: Likewise.
20458         * tests/unicase/test-cased.c: Likewise.
20459         * tests/unicase/test-ignorable.c: Likewise.
20460         * tests/unicase/test-uc_tolower.c: Likewise.
20461         * tests/unicase/test-uc_totitle.c: Likewise.
20462         * tests/unicase/test-uc_toupper.c: Likewise.
20463         * tests/unictype/test-categ_C.c: Likewise.
20464         * tests/unictype/test-categ_Cn.c: Likewise.
20465         * tests/unictype/test-categ_L.c: Likewise.
20466         * tests/unictype/test-categ_Ll.c: Likewise.
20467         * tests/unictype/test-categ_Lm.c: Likewise.
20468         * tests/unictype/test-categ_Lo.c: Likewise.
20469         * tests/unictype/test-categ_Lu.c: Likewise.
20470         * tests/unictype/test-categ_M.c: Likewise.
20471         * tests/unictype/test-categ_Mc.c: Likewise.
20472         * tests/unictype/test-categ_Me.c: Likewise.
20473         * tests/unictype/test-categ_Mn.c: Likewise.
20474         * tests/unictype/test-categ_N.c: Likewise.
20475         * tests/unictype/test-categ_Nd.c: Likewise.
20476         * tests/unictype/test-categ_No.c: Likewise.
20477         * tests/unictype/test-categ_P.c: Likewise.
20478         * tests/unictype/test-categ_Po.c: Likewise.
20479         * tests/unictype/test-categ_S.c: Likewise.
20480         * tests/unictype/test-categ_Sc.c: Likewise.
20481         * tests/unictype/test-categ_Sk.c: Likewise.
20482         * tests/unictype/test-categ_Sm.c: Likewise.
20483         * tests/unictype/test-categ_So.c: Likewise.
20484         * tests/unictype/test-ctype_alnum.c: Likewise.
20485         * tests/unictype/test-ctype_alpha.c: Likewise.
20486         * tests/unictype/test-ctype_graph.c: Likewise.
20487         * tests/unictype/test-ctype_lower.c: Likewise.
20488         * tests/unictype/test-ctype_print.c: Likewise.
20489         * tests/unictype/test-ctype_punct.c: Likewise.
20490         * tests/unictype/test-ctype_upper.c: Likewise.
20491         * tests/unictype/test-decdigit.h: Likewise.
20492         * tests/unictype/test-digit.h: Likewise.
20493         * tests/unictype/test-numeric.h: Likewise.
20494         * tests/unictype/test-pr_alphabetic.c: Likewise.
20495         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
20496         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
20497         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
20498         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
20499         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
20500         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
20501         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
20502         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
20503         * tests/unictype/test-pr_case_ignorable.c: Likewise.
20504         * tests/unictype/test-pr_cased.c: Likewise.
20505         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
20506         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
20507         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
20508         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
20509         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
20510         * tests/unictype/test-pr_combining.c: Likewise.
20511         * tests/unictype/test-pr_composite.c: Likewise.
20512         * tests/unictype/test-pr_currency_symbol.c: Likewise.
20513         * tests/unictype/test-pr_decimal_digit.c: Likewise.
20514         * tests/unictype/test-pr_deprecated.c: Likewise.
20515         * tests/unictype/test-pr_format_control.c: Likewise.
20516         * tests/unictype/test-pr_grapheme_base.c: Likewise.
20517         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
20518         * tests/unictype/test-pr_grapheme_link.c: Likewise.
20519         * tests/unictype/test-pr_id_continue.c: Likewise.
20520         * tests/unictype/test-pr_id_start.c: Likewise.
20521         * tests/unictype/test-pr_ideographic.c: Likewise.
20522         * tests/unictype/test-pr_lowercase.c: Likewise.
20523         * tests/unictype/test-pr_math.c: Likewise.
20524         * tests/unictype/test-pr_numeric.c: Likewise.
20525         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
20526         * tests/unictype/test-pr_other_id_continue.c: Likewise.
20527         * tests/unictype/test-pr_other_math.c: Likewise.
20528         * tests/unictype/test-pr_punctuation.c: Likewise.
20529         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
20530         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
20531         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
20532         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
20533         * tests/unictype/test-pr_uppercase.c: Likewise.
20534         * tests/unictype/test-pr_xid_continue.c: Likewise.
20535         * tests/unictype/test-pr_xid_start.c: Likewise.
20536         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
20537         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
20538         changes.
20539         * lib/unictype/categ_Cc.h: Likewise.
20540         * lib/unictype/categ_Cf.h: Likewise.
20541         * lib/unictype/categ_Co.h: Likewise.
20542         * lib/unictype/categ_Cs.h: Likewise.
20543         * lib/unictype/categ_Lt.h: Likewise.
20544         * lib/unictype/categ_Nl.h: Likewise.
20545         * lib/unictype/categ_Pc.h: Likewise.
20546         * lib/unictype/categ_Pd.h: Likewise.
20547         * lib/unictype/categ_Pe.h: Likewise.
20548         * lib/unictype/categ_Pf.h: Likewise.
20549         * lib/unictype/categ_Pi.h: Likewise.
20550         * lib/unictype/categ_Ps.h: Likewise.
20551         * lib/unictype/categ_Z.h: Likewise.
20552         * lib/unictype/categ_Zl.h: Likewise.
20553         * lib/unictype/categ_Zp.h: Likewise.
20554         * lib/unictype/categ_Zs.h: Likewise.
20555         * lib/unictype/ctype_blank.h: Likewise.
20556         * lib/unictype/ctype_cntrl.h: Likewise.
20557         * lib/unictype/ctype_digit.h: Likewise.
20558         * lib/unictype/ctype_space.h: Likewise.
20559         * lib/unictype/ctype_xdigit.h: Likewise.
20560         * lib/unictype/mirror.h: Likewise.
20561         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
20562         * lib/unictype/pr_bidi_block_separator.h: Likewise.
20563         * lib/unictype/pr_bidi_common_separator.h: Likewise.
20564         * lib/unictype/pr_bidi_control.h: Likewise.
20565         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
20566         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
20567         * lib/unictype/pr_bidi_european_digit.h: Likewise.
20568         * lib/unictype/pr_bidi_pdf.h: Likewise.
20569         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
20570         * lib/unictype/pr_bidi_whitespace.h: Likewise.
20571         * lib/unictype/pr_dash.h: Likewise.
20572         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
20573         * lib/unictype/pr_diacritic.h: Likewise.
20574         * lib/unictype/pr_extender.h: Likewise.
20575         * lib/unictype/pr_hex_digit.h: Likewise.
20576         * lib/unictype/pr_hyphen.h: Likewise.
20577         * lib/unictype/pr_ids_binary_operator.h: Likewise.
20578         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
20579         * lib/unictype/pr_ignorable_control.h: Likewise.
20580         * lib/unictype/pr_iso_control.h: Likewise.
20581         * lib/unictype/pr_join_control.h: Likewise.
20582         * lib/unictype/pr_left_of_pair.h: Likewise.
20583         * lib/unictype/pr_line_separator.h: Likewise.
20584         * lib/unictype/pr_logical_order_exception.h: Likewise.
20585         * lib/unictype/pr_non_break.h: Likewise.
20586         * lib/unictype/pr_not_a_character.h: Likewise.
20587         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
20588         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
20589         * lib/unictype/pr_other_id_start.h: Likewise.
20590         * lib/unictype/pr_other_lowercase.h: Likewise.
20591         * lib/unictype/pr_other_uppercase.h: Likewise.
20592         * lib/unictype/pr_paired_punctuation.h: Likewise.
20593         * lib/unictype/pr_paragraph_separator.h: Likewise.
20594         * lib/unictype/pr_pattern_syntax.h: Likewise.
20595         * lib/unictype/pr_pattern_white_space.h: Likewise.
20596         * lib/unictype/pr_private_use.h: Likewise.
20597         * lib/unictype/pr_quotation_mark.h: Likewise.
20598         * lib/unictype/pr_radical.h: Likewise.
20599         * lib/unictype/pr_soft_dotted.h: Likewise.
20600         * lib/unictype/pr_space.h: Likewise.
20601         * lib/unictype/pr_titlecase.h: Likewise.
20602         * lib/unictype/pr_variation_selector.h: Likewise.
20603         * lib/unictype/pr_white_space.h: Likewise.
20604         * lib/unictype/pr_zero_width.h: Likewise.
20605         * lib/unictype/sy_c_ident.h: Likewise.
20606         * lib/unictype/sy_c_whitespace.h: Likewise.
20607         * lib/unictype/sy_java_whitespace.h: Likewise.
20608         * lib/uninorm/composition-table.gperf: Likewise.
20609         * lib/uninorm/decomposition-table1.h: Likewise.
20610         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
20611         LB8.
20612         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
20613         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
20614         * modules/unictype/*: Bump version number of expected libunistring
20615         version.
20616
20617 2011-01-09  Bruno Haible  <bruno@clisp.org>
20618
20619         Update to Unicode 5.2.0.
20620         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
20621         trailing whitespace removed.
20622
20623 2011-01-09  Bruno Haible  <bruno@clisp.org>
20624
20625         New Unicode character properties, from Unicode 5.2.0.
20626         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
20627         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
20628         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
20629         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
20630         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
20631         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
20632         uc_is_property_cased, uc_is_property_case_ignorable,
20633         uc_is_property_changes_when_lowercased,
20634         uc_is_property_changes_when_uppercased,
20635         uc_is_property_changes_when_titlecased,
20636         uc_is_property_changes_when_casefolded,
20637         uc_is_property_changes_when_casemapped): New declarations.
20638         * lib/unictype/pr_byname.gperf: Add the new properties.
20639         * modules/unictype/property-byname (Depends-on): Depend on the new
20640         properties modules.
20641         * modules/unictype/property-all (Depends-on): Likewise.
20642         * MODULES.html.sh (Unicode string functions): Add
20643         unictype/property-case-ignorable, unictype/property-cased,
20644         unictype/property-changes-when-casefolded,
20645         unictype/property-changes-when-casemapped,
20646         unictype/property-changes-when-lowercased,
20647         unictype/property-changes-when-titlecased,
20648         unictype/property-changes-when-uppercased.
20649
20650         New module 'unictype/property-changes-when-casemapped'.
20651         * modules/unictype/property-changes-when-casemapped: New file.
20652         * lib/unictype/pr_changes_when_casemapped.c: New file.
20653         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
20654         generated by gen-uni-tables.
20655         * modules/unictype/property-changes-when-casemapped-tests: New file.
20656         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
20657         automatically generated by gen-uni-tables.
20658
20659         New module 'unictype/property-changes-when-casefolded'.
20660         * modules/unictype/property-changes-when-casefolded: New file.
20661         * lib/unictype/pr_changes_when_casefolded.c: New file.
20662         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
20663         generated by gen-uni-tables.
20664         * modules/unictype/property-changes-when-casefolded-tests: New file.
20665         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
20666         automatically generated by gen-uni-tables.
20667
20668         New module 'unictype/property-changes-when-titlecased'.
20669         * modules/unictype/property-changes-when-titlecased: New file.
20670         * lib/unictype/pr_changes_when_titlecased.c: New file.
20671         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
20672         generated by gen-uni-tables.
20673         * modules/unictype/property-changes-when-titlecased-tests: New file.
20674         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
20675         automatically generated by gen-uni-tables.
20676
20677         New module 'unictype/property-changes-when-uppercased'.
20678         * modules/unictype/property-changes-when-uppercased: New file.
20679         * lib/unictype/pr_changes_when_uppercased.c: New file.
20680         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
20681         generated by gen-uni-tables.
20682         * modules/unictype/property-changes-when-uppercased-tests: New file.
20683         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
20684         automatically generated by gen-uni-tables.
20685
20686         New module 'unictype/property-changes-when-lowercased'.
20687         * modules/unictype/property-changes-when-lowercased: New file.
20688         * lib/unictype/pr_changes_when_lowercased.c: New file.
20689         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
20690         generated by gen-uni-tables.
20691         * modules/unictype/property-changes-when-lowercased-tests: New file.
20692         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
20693         automatically generated by gen-uni-tables.
20694
20695         New module 'unictype/property-case-ignorable'.
20696         * modules/unictype/property-case-ignorable: New file.
20697         * lib/unictype/pr_case_ignorable.c: New file.
20698         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
20699         by gen-uni-tables.
20700         * modules/unictype/property-case-ignorable-tests: New file.
20701         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
20702         generated by gen-uni-tables.
20703
20704         New module 'unictype/property-cased'.
20705         * modules/unictype/property-cased: New file.
20706         * lib/unictype/pr_cased.c: New file.
20707         * lib/unictype/pr_cased.h: New file, automatically generated by
20708         gen-uni-tables.
20709         * modules/unictype/property-cased-tests: New file.
20710         * tests/unictype/test-pr_cased.c: New file, automatically generated by
20711         gen-uni-tables.
20712
20713 2011-01-09  Bruno Haible  <bruno@clisp.org>
20714
20715         Update to Unicode 5.2.0.
20716         * lib/gen-uni-tables.c (output_predicate, output_category,
20717         output_combclass, output_bidi_category, output_decimal_digit_test,
20718         output_decimal_digit, output_digit_test, output_digit,
20719         output_numeric_test, output_numeric, output_mirror, output_scripts,
20720         output_scripts_byname, output_blocks, output_ident_category): Fix
20721         comment header.
20722         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
20723         get_wbp.
20724         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
20725         items.
20726         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
20727         Changes_When_Lowercased, Changes_When_Uppercased,
20728         Changes_When_Titlecased, Changes_When_Casefolded,
20729         Changes_When_Casemapped.
20730         (is_property_alphabetic, is_property_default_ignorable_code_point):
20731         Update for Unicode 5.2.0.
20732         (is_property_cased, is_property_case_ignorable,
20733         is_property_changes_when_lowercased,
20734         is_property_changes_when_uppercased,
20735         is_property_changes_when_titlecased,
20736         is_property_changes_when_casefolded,
20737         is_property_changes_when_casemapped): New functions.
20738         (output_properties): Output also the properties cased, case_ignorable,
20739         changes_when_lowercased, changes_when_uppercased,
20740         changes_when_titlecased, changes_when_casefolded,
20741         changes_when_casemapped.
20742         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
20743         Unicode TR#11 revision 17 -> 19.
20744         (LBP_CP): New enumeration value.
20745         (LBP_*): Adjust values accordingly.
20746         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
20747         TR#14 revision 22 -> 24.
20748         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
20749         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
20750         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
20751         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
20752         is_WBP_MIDLETTER.
20753         (output_composition_tables): Allow for 24 bits instead of 16 bits in
20754         the code1 and code2 of each composition rule.
20755         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
20756         * lib/unicase/ignorable.h: Likewise.
20757         * lib/unicase/tocasefold.h: Likewise.
20758         * lib/unicase/tolower.h: Likewise.
20759         * lib/unicase/totitle.h: Likewise.
20760         * lib/unicase/toupper.h: Likewise.
20761         * lib/unictype/bidi_of.h: Likewise.
20762         * lib/unictype/blocks.h: Likewise.
20763         * lib/unictype/categ_C.h: Likewise.
20764         * lib/unictype/categ_Cf.h: Likewise.
20765         * lib/unictype/categ_Cn.h: Likewise.
20766         * lib/unictype/categ_L.h: Likewise.
20767         * lib/unictype/categ_Ll.h: Likewise.
20768         * lib/unictype/categ_Lm.h: Likewise.
20769         * lib/unictype/categ_Lo.h: Likewise.
20770         * lib/unictype/categ_Lu.h: Likewise.
20771         * lib/unictype/categ_M.h: Likewise.
20772         * lib/unictype/categ_Mc.h: Likewise.
20773         * lib/unictype/categ_Mn.h: Likewise.
20774         * lib/unictype/categ_N.h: Likewise.
20775         * lib/unictype/categ_Nd.h: Likewise.
20776         * lib/unictype/categ_Nl.h: Likewise.
20777         * lib/unictype/categ_No.h: Likewise.
20778         * lib/unictype/categ_P.h: Likewise.
20779         * lib/unictype/categ_Pd.h: Likewise.
20780         * lib/unictype/categ_Po.h: Likewise.
20781         * lib/unictype/categ_S.h: Likewise.
20782         * lib/unictype/categ_Sc.h: Likewise.
20783         * lib/unictype/categ_So.h: Likewise.
20784         * lib/unictype/categ_of.h: Likewise.
20785         * lib/unictype/combining.h: Likewise.
20786         * lib/unictype/ctype_alnum.h: Likewise.
20787         * lib/unictype/ctype_alpha.h: Likewise.
20788         * lib/unictype/ctype_graph.h: Likewise.
20789         * lib/unictype/ctype_lower.h: Likewise.
20790         * lib/unictype/ctype_print.h: Likewise.
20791         * lib/unictype/ctype_punct.h: Likewise.
20792         * lib/unictype/ctype_upper.h: Likewise.
20793         * lib/unictype/decdigit.h: Likewise.
20794         * lib/unictype/digit.h: Likewise.
20795         * lib/unictype/numeric.h: Likewise.
20796         * lib/unictype/pr_alphabetic.h: Likewise.
20797         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
20798         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
20799         * lib/unictype/pr_bidi_european_digit.h: Likewise.
20800         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
20801         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
20802         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
20803         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
20804         * lib/unictype/pr_combining.h: Likewise.
20805         * lib/unictype/pr_composite.h: Likewise.
20806         * lib/unictype/pr_currency_symbol.h: Likewise.
20807         * lib/unictype/pr_dash.h: Likewise.
20808         * lib/unictype/pr_decimal_digit.h: Likewise.
20809         * lib/unictype/pr_deprecated.h: Likewise.
20810         * lib/unictype/pr_diacritic.h: Likewise.
20811         * lib/unictype/pr_extender.h: Likewise.
20812         * lib/unictype/pr_grapheme_base.h: Likewise.
20813         * lib/unictype/pr_grapheme_extend.h: Likewise.
20814         * lib/unictype/pr_grapheme_link.h: Likewise.
20815         * lib/unictype/pr_id_continue.h: Likewise.
20816         * lib/unictype/pr_id_start.h: Likewise.
20817         * lib/unictype/pr_ideographic.h: Likewise.
20818         * lib/unictype/pr_ignorable_control.h: Likewise.
20819         * lib/unictype/pr_logical_order_exception.h: Likewise.
20820         * lib/unictype/pr_lowercase.h: Likewise.
20821         * lib/unictype/pr_numeric.h: Likewise.
20822         * lib/unictype/pr_other_alphabetic.h: Likewise.
20823         * lib/unictype/pr_punctuation.h: Likewise.
20824         * lib/unictype/pr_sentence_terminal.h: Likewise.
20825         * lib/unictype/pr_terminal_punctuation.h: Likewise.
20826         * lib/unictype/pr_unassigned_code_value.h: Likewise.
20827         * lib/unictype/pr_unified_ideograph.h: Likewise.
20828         * lib/unictype/pr_uppercase.h: Likewise.
20829         * lib/unictype/pr_xid_continue.h: Likewise.
20830         * lib/unictype/pr_xid_start.h: Likewise.
20831         * lib/unictype/pr_zero_width.h: Likewise.
20832         * lib/unictype/scripts.h: Likewise.
20833         * lib/unictype/scripts_byname.gperf: Likewise.
20834         * lib/unictype/sy_java_ident.h: Likewise.
20835         * lib/unigbrk/gbrkprop.h: Likewise.
20836         * lib/unilbrk/lbrkprop1.h: Likewise.
20837         * lib/unilbrk/lbrkprop2.h: Likewise.
20838         * lib/unilbrk/lbrktables.h: Likewise.
20839         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
20840         LBP_CP. Implement rule LB30.
20841         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
20842         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
20843         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
20844         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
20845         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
20846         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
20847         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
20848         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
20849         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
20850         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
20851         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
20852         bits instead of 16 bits in the code1 and code2 of each composition
20853         rule.
20854         (uc_composition): Update for Unicode 5.2.0.
20855         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
20856         * lib/uninorm/decomposition-table2.h: Likewise.
20857         * lib/uniwbrk/wbrkprop.h: Likewise.
20858         * tests/unicase/test-cased.c: Likewise.
20859         * tests/unicase/test-ignorable.c: Likewise.
20860         * tests/unicase/test-uc_tolower.c: Likewise.
20861         * tests/unicase/test-uc_totitle.c: Likewise.
20862         * tests/unicase/test-uc_toupper.c: Likewise.
20863         * tests/unictype/test-categ_C.c: Likewise.
20864         * tests/unictype/test-categ_Cf.c: Likewise.
20865         * tests/unictype/test-categ_Cn.c: Likewise.
20866         * tests/unictype/test-categ_L.c: Likewise.
20867         * tests/unictype/test-categ_Ll.c: Likewise.
20868         * tests/unictype/test-categ_Lm.c: Likewise.
20869         * tests/unictype/test-categ_Lo.c: Likewise.
20870         * tests/unictype/test-categ_Lu.c: Likewise.
20871         * tests/unictype/test-categ_M.c: Likewise.
20872         * tests/unictype/test-categ_Mc.c: Likewise.
20873         * tests/unictype/test-categ_Mn.c: Likewise.
20874         * tests/unictype/test-categ_N.c: Likewise.
20875         * tests/unictype/test-categ_Nd.c: Likewise.
20876         * tests/unictype/test-categ_Nl.c: Likewise.
20877         * tests/unictype/test-categ_No.c: Likewise.
20878         * tests/unictype/test-categ_P.c: Likewise.
20879         * tests/unictype/test-categ_Pd.c: Likewise.
20880         * tests/unictype/test-categ_Po.c: Likewise.
20881         * tests/unictype/test-categ_S.c: Likewise.
20882         * tests/unictype/test-categ_Sc.c: Likewise.
20883         * tests/unictype/test-categ_So.c: Likewise.
20884         * tests/unictype/test-ctype_alnum.c: Likewise.
20885         * tests/unictype/test-ctype_alpha.c: Likewise.
20886         * tests/unictype/test-ctype_graph.c: Likewise.
20887         * tests/unictype/test-ctype_lower.c: Likewise.
20888         * tests/unictype/test-ctype_print.c: Likewise.
20889         * tests/unictype/test-ctype_punct.c: Likewise.
20890         * tests/unictype/test-ctype_upper.c: Likewise.
20891         * tests/unictype/test-decdigit.h: Likewise.
20892         * tests/unictype/test-digit.h: Likewise.
20893         * tests/unictype/test-numeric.h: Likewise.
20894         * tests/unictype/test-pr_alphabetic.c: Likewise.
20895         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
20896         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
20897         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
20898         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
20899         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
20900         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
20901         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
20902         * tests/unictype/test-pr_combining.c: Likewise.
20903         * tests/unictype/test-pr_composite.c: Likewise.
20904         * tests/unictype/test-pr_currency_symbol.c: Likewise.
20905         * tests/unictype/test-pr_dash.c: Likewise.
20906         * tests/unictype/test-pr_decimal_digit.c: Likewise.
20907         * tests/unictype/test-pr_deprecated.c: Likewise.
20908         * tests/unictype/test-pr_diacritic.c: Likewise.
20909         * tests/unictype/test-pr_extender.c: Likewise.
20910         * tests/unictype/test-pr_grapheme_base.c: Likewise.
20911         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
20912         * tests/unictype/test-pr_grapheme_link.c: Likewise.
20913         * tests/unictype/test-pr_id_continue.c: Likewise.
20914         * tests/unictype/test-pr_id_start.c: Likewise.
20915         * tests/unictype/test-pr_ideographic.c: Likewise.
20916         * tests/unictype/test-pr_ignorable_control.c: Likewise.
20917         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
20918         * tests/unictype/test-pr_lowercase.c: Likewise.
20919         * tests/unictype/test-pr_numeric.c: Likewise.
20920         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
20921         * tests/unictype/test-pr_punctuation.c: Likewise.
20922         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
20923         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
20924         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
20925         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
20926         * tests/unictype/test-pr_uppercase.c: Likewise.
20927         * tests/unictype/test-pr_xid_continue.c: Likewise.
20928         * tests/unictype/test-pr_xid_start.c: Likewise.
20929         * tests/unictype/test-pr_zero_width.c: Likewise.
20930         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
20931         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
20932         changed behaviour: line breaking is now disallowed between a letter
20933         or '=' and '('.
20934         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
20935         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
20936         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
20937         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
20938         * tests/uniwidth/test-uc_width2.sh: Same updates as in
20939         lib/uniwidth/width.c.
20940         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
20941         without comments, but with the original copyright notice.
20942         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
20943         changes.
20944         * lib/unictype/categ_Cc.h: Likewise.
20945         * lib/unictype/categ_Co.h: Likewise.
20946         * lib/unictype/categ_Cs.h: Likewise.
20947         * lib/unictype/categ_Lt.h: Likewise.
20948         * lib/unictype/categ_Me.h: Likewise.
20949         * lib/unictype/categ_Pc.h: Likewise.
20950         * lib/unictype/categ_Pe.h: Likewise.
20951         * lib/unictype/categ_Pf.h: Likewise.
20952         * lib/unictype/categ_Pi.h: Likewise.
20953         * lib/unictype/categ_Ps.h: Likewise.
20954         * lib/unictype/categ_Sk.h: Likewise.
20955         * lib/unictype/categ_Sm.h: Likewise.
20956         * lib/unictype/categ_Z.h: Likewise.
20957         * lib/unictype/categ_Zl.h: Likewise.
20958         * lib/unictype/categ_Zp.h: Likewise.
20959         * lib/unictype/categ_Zs.h: Likewise.
20960         * lib/unictype/ctype_blank.h: Likewise.
20961         * lib/unictype/ctype_cntrl.h: Likewise.
20962         * lib/unictype/ctype_digit.h: Likewise.
20963         * lib/unictype/ctype_space.h: Likewise.
20964         * lib/unictype/ctype_xdigit.h: Likewise.
20965         * lib/unictype/mirror.h: Likewise.
20966         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
20967         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
20968         * lib/unictype/pr_bidi_block_separator.h: Likewise.
20969         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
20970         * lib/unictype/pr_bidi_common_separator.h: Likewise.
20971         * lib/unictype/pr_bidi_control.h: Likewise.
20972         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
20973         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
20974         * lib/unictype/pr_bidi_pdf.h: Likewise.
20975         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
20976         * lib/unictype/pr_bidi_whitespace.h: Likewise.
20977         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
20978         * lib/unictype/pr_format_control.h: Likewise.
20979         * lib/unictype/pr_hex_digit.h: Likewise.
20980         * lib/unictype/pr_hyphen.h: Likewise.
20981         * lib/unictype/pr_ids_binary_operator.h: Likewise.
20982         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
20983         * lib/unictype/pr_iso_control.h: Likewise.
20984         * lib/unictype/pr_join_control.h: Likewise.
20985         * lib/unictype/pr_left_of_pair.h: Likewise.
20986         * lib/unictype/pr_line_separator.h: Likewise.
20987         * lib/unictype/pr_math.h: Likewise.
20988         * lib/unictype/pr_non_break.h: Likewise.
20989         * lib/unictype/pr_not_a_character.h: Likewise.
20990         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
20991         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
20992         * lib/unictype/pr_other_id_continue.h: Likewise.
20993         * lib/unictype/pr_other_id_start.h: Likewise.
20994         * lib/unictype/pr_other_lowercase.h: Likewise.
20995         * lib/unictype/pr_other_math.h: Likewise.
20996         * lib/unictype/pr_other_uppercase.h: Likewise.
20997         * lib/unictype/pr_paired_punctuation.h: Likewise.
20998         * lib/unictype/pr_paragraph_separator.h: Likewise.
20999         * lib/unictype/pr_pattern_syntax.h: Likewise.
21000         * lib/unictype/pr_pattern_white_space.h: Likewise.
21001         * lib/unictype/pr_private_use.h: Likewise.
21002         * lib/unictype/pr_quotation_mark.h: Likewise.
21003         * lib/unictype/pr_radical.h: Likewise.
21004         * lib/unictype/pr_soft_dotted.h: Likewise.
21005         * lib/unictype/pr_space.h: Likewise.
21006         * lib/unictype/pr_titlecase.h: Likewise.
21007         * lib/unictype/pr_variation_selector.h: Likewise.
21008         * lib/unictype/pr_white_space.h: Likewise.
21009         * lib/unictype/sy_c_ident.h: Likewise.
21010         * lib/unictype/sy_c_whitespace.h: Likewise.
21011         * lib/unictype/sy_java_whitespace.h: Likewise.
21012         * modules/uni*/*: Bump version number of expected libunistring version.
21013         Reported by Simon Josefsson.
21014
21015 2011-01-09  Karl Heuer  <kwzh@gnu.org>
21016
21017         useless-if-before-free: fix typo in --help and make the internal,
21018         automatic version date update process work once again.
21019         --help output contained a NUL character instead of the
21020         backslash-zero that was intended.  Also, the "must lie within
21021         the first 8 lines" line is on line 9, and hence not getting
21022         automatically updated.
21023         * build-aux/useless-if-before-free: Fix the former by adding a
21024         backslash, and the latter by condensing the three lines of what-it-does
21025         to a single line, leaving one line of slack for the future.
21026
21027 2011-01-09  Bruno Haible  <bruno@clisp.org>
21028
21029         uniwidth/width: Fix width of U+1D173..U+1D17A.
21030         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
21031         symbolic_width, output_width_property_test): New functions.
21032         (main): Invoke output_nonspacing_property, output_width_property_test.
21033         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
21034         U+1D173..U+1D17A.
21035         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
21036         1.
21037         * modules/uniwidth/*: Bump version number of expected libunistring
21038         version.
21039         * modules/unilbrk/*: Likewise.
21040
21041 2011-01-08  Bruno Haible  <bruno@clisp.org>
21042
21043         uninorm tests: Preserve copyright of Unicode data file.
21044         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
21045         Mention modifications.
21046
21047 2011-01-08  Bruno Haible  <bruno@clisp.org>
21048
21049         gen-uni-tables: Prepare for Unicode 5.2.0.
21050         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
21051         (debug_output_lbp, output_lbp): Update.
21052
21053 2011-01-08  Bruno Haible  <bruno@clisp.org>
21054
21055         unilbrk: Clarify gen-uni-tables.c code.
21056         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
21057         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
21058         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
21059
21060 2011-01-07  Bruno Haible  <bruno@clisp.org>
21061
21062         strtod: Restore errno when successfully parsing Infinity or NaN.
21063         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
21064         restore the original errno.
21065
21066 2011-01-07  Bruno Haible  <bruno@clisp.org>
21067
21068         remove test: Avoid failure on HP-UX 11.
21069         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
21070
21071 2011-01-07  Bruno Haible  <bruno@clisp.org>
21072
21073         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
21074         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
21075         error code.
21076
21077 2011-01-07  Pádraig Brady <P@draigBrady.com>
21078
21079         ignore-value: fixup comments, and add Eric Blake
21080         as an author since he rewrote the macros.
21081         * lib/ignore-value.h (ignore_value):  State that
21082         we now support aggregates.  Also specify exactly
21083         when the GCC warn_unused_result feature was added.
21084
21085 2011-01-06  Eric Blake  <eblake@redhat.com>
21086
21087         ignore-value: support aggregate types
21088         * lib/ignore-value.h (ignore_value): Provide separate gcc
21089         definition.
21090         * modules/ignore-value-tests: New test module.
21091         * tests/test-ignore-value.c: New test.
21092
21093         maint.mk: improve sc_prohibit_strcmp regex
21094         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
21095         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
21096         definition of STRNEQ.
21097
21098         signal: work around Haiku issue with SIGBUS
21099         * lib/siglist.h: Add comment.
21100         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
21101         strsignal's favoring of SIGSEGV.
21102         * tests/test-signal.c (main): Avoid test failure.
21103         * doc/posix-headers/signal.texi (signal.h): Document the issue.
21104         Reported by Scott McCreary.
21105
21106         maint.mk: add pre-release check to ensure submodule commits are public
21107         * top/maint.mk (public-submodule-commit): New rule.
21108         (submodule-checks): New variable.
21109         (alpha beta stable): Depend on the variable.
21110
21111 2011-01-05  Pádraig Brady <P@draigBrady.com>
21112         and Jim Meyering  <meyering@redhat.com>
21113
21114         ignore-value: make ignore_value more generic; deprecate ignore_ptr
21115         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
21116         (ATTRIBUTE_DEPRECATED): Define.
21117         (_ignore_case): New function.
21118         (ignore_value): New macro, to replace the old function.
21119         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
21120         * modules/ignore-value (Depends-on): Add stdint.
21121
21122 2011-01-04  Eric Blake  <eblake@redhat.com>
21123
21124         doc: regenerate INSTALL
21125         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
21126         @firstparagraphindent support, now that autoconf dropped it.
21127         (INSTALL_PRELUDE): Reinstate old macro.
21128         * doc/install.texi: Resync from autoconf.
21129         * doc/INSTALL: Reflect recent autoconf update.
21130         * doc/INSTALL.ISO: Likewise.
21131         * doc/INSTALL.UTF-8: Likewise.
21132         Reported by Karl Berry.
21133
21134 2011-01-04  Bruce Korb  <address@hidden>
21135
21136         git-version-gen: avoid a sub-shell
21137         * build-aux/git-version-gen: Redirect stderr in `...` via
21138         "exec 2>...", rather than via an added sub-shell.
21139
21140 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
21141
21142         git-version-gen: use (...) rather than sh -c '...'
21143         * build-aux/git-version-gen: Rather than hard-coding a shell's name
21144         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
21145
21146 2011-01-03  Jim Meyering  <meyering@redhat.com>
21147
21148         git-version-gen: convert leading TABs to spaces
21149         * build-aux/git-version-gen: Expand leading TABs.
21150
21151         git-version-gen: handle failed "git rev-list"
21152         * build-aux/git-version-gen: Rather than leaking a "fatal" error
21153         from git and proceeding as if it had succeeded but printed no SHA1
21154         checksums, suppress the diagnostic and handle the failure.
21155         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
21156
21157         git-version-gen: include command name in one more diagnostic
21158         * build-aux/git-version-gen: When the required .tarball-version file
21159         was missing or unreadable, you might see the diagnostic from "cat",
21160         but no trace of the name of the invoking script.  Now, you still see
21161         the diagnostic from cat, but also get one from "git-version-gen: ".
21162         Inspired by a patch from Bruce Korb.
21163
21164         update-copyright: adjust test to match changed code
21165         * tests/test-update-copyright.sh: Change test's expected output
21166         to match new actual output.
21167
21168 2011-01-02  Bruno Haible  <bruno@clisp.org>
21169
21170         getlogin_r: Avoid test failure on HP-UX 11.
21171         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
21172         ERANGE when the second argument is zero.
21173         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
21174         portability problem.
21175
21176 2011-01-02  Bruce Korb  <bkorb@gnu.org>
21177
21178         * build-aux/update-copyright: doc Simon's changes
21179
21180 2011-01-02  Simon Josefsson  <simon@josefsson.org>
21181
21182         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
21183         environment variable.
21184
21185 2011-01-02  Bruno Haible  <bruno@clisp.org>
21186
21187         unigbrk: Avoid gcc warnings.
21188         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
21189         unused variable.
21190         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
21191         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
21192         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
21193         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
21194         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
21195         Change type of first argument to 'const char *'.
21196         (main): Remove unused variable.
21197         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
21198         type of first argument to 'const char *'.
21199         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
21200         Likewise.
21201         (main): Change type of variable 's'.
21202         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
21203         to 'int'.
21204
21205 2011-01-02  Bruno Haible  <bruno@clisp.org>
21206
21207         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
21208         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
21209         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
21210         bug.
21211         * lib/pwrite.c: Undo 2010-12-31 patch.
21212         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
21213
21214 2011-01-02  Bruno Haible  <bruno@clisp.org>
21215
21216         pread: Fix test whether it works.
21217         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
21218
21219 2011-01-02  Bruno Haible  <bruno@clisp.org>
21220
21221         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
21222         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
21223         ends in "6". Don't require a specific month name. Try also the locale
21224         names found on HP-UX 11 and Solaris 7.
21225
21226 2011-01-02  Bruno Haible  <bruno@clisp.org>
21227
21228         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
21229         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
21230         C linkage.
21231         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
21232
21233 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21234
21235         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
21236         for consistency, since the "cluster" term is not used elsewhere.
21237         * lib/unigbrk.in.h: Update name.
21238         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
21239         * lib/unigbrk/u16-grapheme-next.c: Update name.
21240         * lib/unigbrk/u16-grapheme-prev.c: Update name.
21241         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
21242         * lib/unigbrk/u32-grapheme-next.c: Update name.
21243         * lib/unigbrk/u32-grapheme-prev.c: Update name.
21244         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
21245         * lib/unigbrk/u8-grapheme-next.c: Update name.
21246         * lib/unigbrk/u8-grapheme-prev.c: Update name.
21247         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
21248         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
21249         Suggested by Bruno Haible.
21250
21251 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21252
21253         Remove module 'u8-grapheme-len' as too redundant with
21254         'u8-grapheme-next'.
21255         * modules/unigbrk/u8-grapheme-len: Delete file.
21256         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
21257         * lib/unigbrk.in.h: Remove prototype for deleted function.
21258         * lib/unigbrk/u8-grapheme-len.c: Delete file.
21259         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
21260
21261         Remove module 'u16-grapheme-len' as too redundant with
21262         'u16-grapheme-next'.
21263         * modules/unigbrk/u16-grapheme-len: Delete file.
21264         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
21265         * lib/unigbrk.in.h: Remove prototype for deleted function.
21266         * lib/unigbrk/u16-grapheme-len.c: Delete file.
21267         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
21268
21269         Remove module 'u32-grapheme-len' as too redundant with
21270         'u32-grapheme-next'.
21271         * modules/unigbrk/u32-grapheme-len: Delete file.
21272         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
21273         * lib/unigbrk.in.h: Remove prototype for deleted function.
21274         * lib/unigbrk/u32-grapheme-len.c: Delete file.
21275         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
21276
21277         Suggested by Bruno Haible.
21278
21279 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21280
21281         * unigbrk.in.h: Fix typo: "ben" => "been".
21282         Reported by Bruno Haible.
21283
21284 2011-01-01  Jim Meyering  <meyering@redhat.com>
21285
21286         maint: update almost all copyright ranges to include 2011
21287         Run the new "make update-copyright" rule.
21288
21289 2011-01-01  Jim Meyering  <meyering@redhat.com>
21290
21291         maint: update-copyright: exempt doc/INSTALL*
21292         * Makefile (update-copyright): Also exclude doc/INSTALL*,
21293         since they are generated.  Suggested by Bruno Haible.
21294
21295 2011-01-01  Jim Meyering  <meyering@redhat.com>
21296
21297         maint: refine the update-copyright rule
21298         * Makefile (update-copyright): Also exclude any file that includes
21299         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
21300         code that merely generates the comment.
21301
21302 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
21303
21304         New module 'u8-grapheme-len'.
21305         * modules/unigbrk/u8-grapheme-len: New file.
21306         * modules/unigbrk/u8-grapheme-len-tests: New file.
21307         * lib/unigbrk.in.h: Add prototype for new function.
21308         * lib/unigbrk/u8-grapheme-len.c: New file.
21309         * tests/unigbrk/test-u8-grapheme-len.c: New file.
21310
21311         New module 'u16-grapheme-len'.
21312         * modules/unigbrk/u16-grapheme-len: New file.
21313         * modules/unigbrk/u16-grapheme-len-tests: New file.
21314         * lib/unigbrk.in.h: Add prototype for new function.
21315         * lib/unigbrk/u16-grapheme-len.c: New file.
21316         * tests/unigbrk/test-u16-grapheme-len.c: New file.
21317
21318         New module 'u32-grapheme-len'.
21319         * modules/unigbrk/u32-grapheme-len: New file.
21320         * modules/unigbrk/u32-grapheme-len-tests: New file.
21321         * lib/unigbrk.in.h: Add prototype for new function.
21322         * lib/unigbrk/u32-grapheme-len.c: New file.
21323         * tests/unigbrk/test-u32-grapheme-len.c: New file.
21324
21325         New module 'u8-grapheme-next'.
21326         * modules/unigbrk/u8-grapheme-next: New file.
21327         * modules/unigbrk/u8-grapheme-next-tests: New file.
21328         * lib/unigbrk.in.h: Add prototype for new function.
21329         * lib/unigbrk/u8-grapheme-next.c: New file.
21330         * tests/unigbrk/test-u8-grapheme-next.c: New file.
21331
21332         New module 'u16-grapheme-next'.
21333         * modules/unigbrk/u16-grapheme-next: New file.
21334         * modules/unigbrk/u16-grapheme-next-tests: New file.
21335         * lib/unigbrk.in.h: Add prototype for new function.
21336         * lib/unigbrk/u16-grapheme-next.c: New file.
21337         * tests/unigbrk/test-u16-grapheme-next.c: New file.
21338
21339         New module 'u32-grapheme-next'.
21340         * modules/unigbrk/u32-grapheme-next: New file.
21341         * modules/unigbrk/u32-grapheme-next-tests: New file.
21342         * lib/unigbrk.in.h: Add prototype for new function.
21343         * lib/unigbrk/u32-grapheme-next.c: New file.
21344         * tests/unigbrk/test-u32-grapheme-next.c: New file.
21345
21346         New module 'u8-grapheme-prev'.
21347         * modules/unigbrk/u8-grapheme-prev: New file.
21348         * modules/unigbrk/u8-grapheme-prev-tests: New file.
21349         * lib/unigbrk.in.h: Add prototype for new function.
21350         * lib/unigbrk/u8-grapheme-prev.c: New file.
21351         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
21352
21353         New module 'u16-grapheme-prev'.
21354         * modules/unigbrk/u16-grapheme-prev: New file.
21355         * modules/unigbrk/u16-grapheme-prev-tests: New file.
21356         * lib/unigbrk.in.h: Add prototype for new function.
21357         * lib/unigbrk/u16-grapheme-prev.c: New file.
21358         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
21359
21360         New module 'u32-grapheme-prev'.
21361         * modules/unigbrk/u32-grapheme-prev: New file.
21362         * modules/unigbrk/u32-grapheme-prev-tests: New file.
21363         * lib/unigbrk.in.h: Add prototype for new function.
21364         * lib/unigbrk/u32-grapheme-prev.c: New file.
21365         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
21366
21367         New module 'u8-grapheme-breaks'.
21368         * modules/unigbrk/u8-grapheme-breaks: New file.
21369         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
21370         * lib/unigbrk.in.h: Add prototype for new function.
21371         * lib/unigbrk/u8-grapheme-breaks.c: New file.
21372         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
21373
21374         New module 'u16-grapheme-breaks'.
21375         * modules/unigbrk/u16-grapheme-breaks: New file.
21376         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
21377         * lib/unigbrk.in.h: Add prototype for new function.
21378         * lib/unigbrk/u16-grapheme-breaks.c: New file.
21379         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
21380
21381         New module 'u32-grapheme-breaks'.
21382         * modules/unigbrk/u32-grapheme-breaks: New file.
21383         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
21384         * lib/unigbrk.in.h: Add prototype for new function.
21385         * lib/unigbrk/u32-grapheme-breaks.c: New file.
21386         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
21387
21388         New module 'ulc-grapheme-breaks'.
21389         * modules/unigbrk/ulc-grapheme-breaks: New file.
21390         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
21391         * m4/locale-ar.m4: New file.
21392         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
21393         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
21394         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
21395
21396 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
21397
21398         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
21399         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
21400         modified how this file was generated before I initially submitted
21401         the module, but failed to regenerate it.  This meant that several
21402         of the level2 entries were wrong.
21403         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
21404         Remove the division-by-2 that is folded into the table now that
21405         gbrkprop.h has been regenerated properly.  Now -1 entries are
21406         handled correctly.
21407
21408         New module 'unigbrk/uc-gbrk-prop-tests'.
21409         * modules/unigbrk/uc-gbrk-prop-tests: New file.
21410         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
21411         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
21412         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
21413
21414 2011-01-01  Bruno Haible  <bruno@clisp.org>
21415
21416         Avoid use of hexadecimal escapes.
21417         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
21418         instead of hexadecimal escapes.
21419
21420 2011-01-01  Jim Meyering  <meyering@redhat.com>
21421
21422         maint: new rule to update copyright year ranges
21423         * Makefile (update-copyright): New rule.
21424
21425         maint: indent with TABs in Makefile
21426         * Makefile: Expand leading sequences of spaces to TABs
21427
21428         version-etc: update the copyright year it reports
21429         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
21430
21431 2010-12-31  Bruno Haible  <bruno@clisp.org>
21432
21433         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
21434         * lib/isfinite.c (zerof, zerod, zerol): New variables.
21435         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
21436         zero.
21437
21438 2010-12-31  Bruno Haible  <bruno@clisp.org>
21439
21440         pwrite: Work around HP-UX 11.11 bug.
21441         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
21442         works and set REPLACE_PWRITE if not.
21443         * lib/pwrite.c (pwrite): Add an implementation that uses the system
21444         function.
21445         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
21446
21447 2010-12-31  Bruno Haible  <bruno@clisp.org>
21448
21449         pread: Work around HP-UX 11 bugs.
21450         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
21451         and set REPLACE_PREAD if not.
21452         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
21453
21454 2010-12-31  Eric Blake  <eblake@redhat.com>
21455
21456         nl_langinfo: fix YESEXPR on Irix 6.5
21457         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
21458         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
21459         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
21460         it.
21461
21462 2010-12-31  Bruno Haible  <bruno@clisp.org>
21463
21464         iconv: Document HP-UX 11 bug.
21465         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
21466
21467 2010-12-31  Bruno Haible  <bruno@clisp.org>
21468
21469         ldexpl: Fix link error on HP-UX 11.
21470         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
21471         LDEXPL_LIBM, using $ISNANL_LIBM.
21472
21473 2010-12-31  Eric Blake  <eblake@redhat.com>
21474
21475         ftello: avoid compilation failure with SunStudio c89
21476         * lib/ftello.c (ftello): Use lseek, not llseek.
21477
21478         tests: avoid failing coreutils tests on cygwin
21479         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
21480         (create_exe_shims_): Return 0 when skipping.
21481
21482 2010-12-31  Bruno Haible  <bruno@clisp.org>
21483
21484         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
21485         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
21486
21487 2010-12-31  Bruno Haible  <bruno@clisp.org>
21488
21489         waitpid: Fix link error in C++ mode.
21490         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
21491
21492 2010-12-31  Bruno Haible  <bruno@clisp.org>
21493
21494         isnan: Use GCC built-ins when possible.
21495         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
21496         __builtin_isnan.
21497         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
21498         (isnan): Define using GCC built-ins for GCC >= 4.0.
21499
21500 2010-12-31  Bruno Haible  <bruno@clisp.org>
21501
21502         isnand: Fix mistake.
21503         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
21504         __builtin_isnand.
21505
21506 2010-12-31  Bruno Haible  <bruno@clisp.org>
21507
21508         open: Avoid C++ error on HP-UX 11.
21509         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
21510
21511 2010-12-31  Bruno Haible  <bruno@clisp.org>
21512
21513         time_r: Add missing declarations on HP-UX 11.
21514         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
21515         instead of HAVE_LOCALTIME_R.
21516         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
21517         HAVE_LOCALTIME_R always.
21518         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
21519         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
21520         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
21521         HAVE_LOCALTIME_R.
21522         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
21523         * doc/posix-functions/localtime_r.texi: Likewise.
21524
21525 2010-12-29  Eric Blake  <eblake@redhat.com>
21526
21527         mountlist: tweak previous commit
21528         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
21529         Reported by Paul Eggert.
21530
21531         mountlist: fix local drive detection on cygwin
21532         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
21533         that works for cygwin.
21534
21535 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
21536
21537         ftoastr, snprintf: ftoastr + snprintf module
21538         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
21539         since the snprintf module now should be good enough here.
21540         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
21541         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
21542         and gl_MODULE_INDICATOR([snprintf]), but the former enables
21543         GNULIB_SNPRINTF only for the test directory, and the latter
21544         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
21545         seems to suffice by itself.
21546
21547 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
21548
21549         alloca: one step towards thread-safety
21550         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
21551         need for a static variable.  All callers changed.  This does not
21552         make the alloca replacement thread-safe, but it's one step.
21553
21554         tests: minor indenting change
21555         * tests/init.sh: Sync from coreutils housekeeping patch
21556         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
21557         to keep lines within 80 columns.
21558
21559 2010-12-28  Jim Meyering  <meyering@redhat.com>
21560
21561         regex: don't infloop on persistent failing calloc
21562         * lib/regexec.c (build_trtable): Return failure indication upon
21563         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
21564         In glibc, this was fixed for version 2.13:
21565         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
21566
21567 2010-12-28  Bruno Haible  <bruno@clisp.org>
21568             Paul Eggert <eggert@cs.ucla.edu>
21569
21570         linkat: Make implementation robust against system behaviour variations.
21571         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
21572         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
21573         way, and to -2 if it needs a generic runtime test.
21574         * lib/linkat.c (solaris_optimized_link_immediate,
21575         solaris_optimized_link_follow): New functions.
21576         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
21577         (check_same_link): Use it.
21578
21579 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
21580
21581         New module 'unigbrk/base'.
21582         * modules/unigbrk/base: New file.
21583         * lib/unigbrk.in.h: New file.
21584
21585         New module 'unigbrk/uc-gbrk-prop'.
21586         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
21587         * modules/unigbrk/uc-gbrk-prop: New file.
21588         * lib/unigbrk/gbrkprop.h: New file.
21589         * lib/unigbrk/uc-gbrk-prop.c: New file.
21590
21591         New module 'unigbrk/uc-is-grapheme-break'.
21592         * modules/unigbrk/uc-is-grapheme-break: New file.
21593         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
21594         * lib/unigbrk/uc-is-grapheme-break.c: New file.
21595         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
21596         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
21597         * tests/unigbrk/GraphemeBreakTest.txt: New file.
21598
21599         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
21600
21601 2010-12-27  Bruno Haible  <bruno@clisp.org>
21602
21603         linkat test: Avoid failure on Solaris 11 2010-11.
21604         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
21605
21606 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
21607
21608         utimens: work around glibc rounding bug on more platforms
21609         * lib/utimens.c (fdutimens): Work around rounding bug even if
21610         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
21611         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
21612
21613 2010-12-27  Bruno Haible  <bruno@clisp.org>
21614
21615         select tests: Improve comments.
21616         * tests/test-select.c (do_select): Add comments.
21617
21618 2010-12-27  Bruno Haible  <bruno@clisp.org>
21619
21620         select tests: Safer way of handling timeout.
21621         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
21622         at every invocation.
21623
21624 2010-12-27  Bruno Haible  <bruno@clisp.org>
21625
21626         select tests: Use 'bool' where appropriate.
21627         * tests/test-select.c (connect_to_socket): Change argument type to
21628         'bool'.
21629
21630 2010-12-27  Bruno Haible  <bruno@clisp.org>
21631
21632         select tests: Use existing modules.
21633         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
21634         (configure.ac): Don't test for unistd.h.
21635         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
21636         declared in <unistd.h>.
21637
21638 2010-12-27  Bruno Haible  <bruno@clisp.org>
21639
21640         mbrtowc: Work around a Solaris 7 bug.
21641         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
21642         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
21643         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
21644         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
21645         MBRTOWC_NULL_ARG1_BUG.
21646         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
21647         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
21648         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
21649         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
21650
21651 2010-12-27  Jim Meyering  <meyering@redhat.com>
21652
21653         read-file.c: tweak syntax
21654         * lib/read-file.c (fread_file): Remove space after "*" in function
21655         definitions.
21656
21657 2010-12-27  Bruno Haible  <bruno@clisp.org>
21658
21659         times test: Avoid gcc warnings on OSF/1.
21660         * tests/test-times.c (main): Cast printf arguments from clock_t to
21661         'long int'.
21662
21663 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
21664
21665         utimens: work around glibc rounding bug on older Linux kernels
21666         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
21667         on Linux with a glibc whose utimes might not work, then work
21668         around a longstanding glibc bug involving rounding rather than
21669         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
21670         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
21671
21672 2010-12-26  Bruno Haible  <bruno@clisp.org>
21673
21674         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
21675         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
21676         _GL_CXXALIAS_SYS.
21677         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21678
21679 2010-12-26  Bruno Haible  <bruno@clisp.org>
21680
21681         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
21682         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
21683         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
21684         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
21685         looking for the declaration.
21686         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
21687         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
21688         problem.
21689         * doc/posix-functions/inet_pton.texi: Likewise.
21690
21691 2010-12-26  Bruno Haible  <bruno@clisp.org>
21692
21693         arpa_inet: Use the common idioms with C++ support.
21694         * lib/arpa_inet.in.h: Include c++defs.h.
21695         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
21696         support.
21697         * modules/arpa_inet (Depends-on): Add c++defs.
21698         (Makefile.am): Substitute the contents of c++defs.h.
21699         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
21700         * modules/arpa_inet-c++-tests: New file.
21701         * tests/test-arpa_inet-c++.cc: New file.
21702
21703 2010-12-25  Bruno Haible  <bruno@clisp.org>
21704
21705         Fix more C++ link errors on Solaris 8.
21706         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
21707         $(LIB_EACCESS).
21708         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
21709         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
21710         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
21711         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
21712         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
21713
21714 2010-12-25  Bruno Haible  <bruno@clisp.org>
21715
21716         printf-posix: Fix link error when a non-GCC compiler is used.
21717         * lib/stdio.in.h (printf): When not using GCC, override printf
21718         correctly.
21719         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21720
21721 2010-12-25  Bruno Haible  <bruno@clisp.org>
21722
21723         strerror_r-posix: Update doc.
21724         * doc/posix-functions/strerror_r.texi: Update doc about the return
21725         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
21726
21727 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
21728
21729         utimens: simplify the logic of the previous change
21730         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
21731         This should not affect whether the test succeeds or fails.
21732
21733         utimens: configure better on hosts with NFS clock skew
21734         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
21735         uses the clock of the local host.  It might use the clock of the
21736         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
21737         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
21738
21739 2010-12-25  Bruno Haible  <bruno@clisp.org>
21740
21741         ptsname test: Avoid failure on Solaris.
21742         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
21743         open a pseudo-terminal; don't use BSD-style ptys.
21744         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
21745
21746 2010-12-25  Bruno Haible  <bruno@clisp.org>
21747
21748         ptsname: Avoid ERANGE failure on some systems.
21749         * lib/ptsname.c (buffer): Increase size.
21750
21751 2010-12-25  Bruno Haible  <bruno@clisp.org>
21752
21753         rename, renameat: Avoid test failures at NFS mounted locations.
21754         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
21755         so that subsequent mkdir calls succeed.
21756
21757 2010-12-25  Bruno Haible  <bruno@clisp.org>
21758
21759         iswblank: Fix C++ link error on Solaris 8.
21760         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
21761         _GL_FUNCDECL_SYS.
21762
21763 2010-12-25  Bruno Haible  <bruno@clisp.org>
21764
21765         unistd: Fix C++ link error on Solaris 8.
21766         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
21767
21768 2010-12-25  Bruno Haible  <bruno@clisp.org>
21769
21770         readlink doc: Mention an old glibc bug.
21771         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
21772
21773 2010-12-25  Bruno Haible  <bruno@clisp.org>
21774
21775         fcntl-h: Fix for use of C++ on glibc systems.
21776         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
21777         also on glibc systems in C++ mode.
21778         Reported by Gary V. Vaughan <gary@gnu.org>.
21779
21780 2010-12-25  Bruno Haible  <bruno@clisp.org>
21781
21782         roundl-ieee: Make it work on OSF/1 5.1 with cc.
21783         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
21784
21785 2010-12-25  Bruno Haible  <bruno@clisp.org>
21786
21787         truncl-ieee: Make it work on OSF/1 5.1 with cc.
21788         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
21789         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
21790         test whether truncl works according to ISO C 99 with IEC 60559.
21791         * m4/truncl-ieee.m4: New file.
21792         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
21793         m4/signbit.m4.
21794         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
21795
21796 2010-12-25  Bruno Haible  <bruno@clisp.org>
21797
21798         ceill-ieee: Make it work on OSF/1 5.1 with cc.
21799         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
21800         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
21801         test whether ceill works according to ISO C 99 with IEC 60559.
21802         * m4/ceill-ieee.m4: New file.
21803         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
21804         m4/signbit.m4.
21805         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
21806
21807 2010-12-25  Bruno Haible  <bruno@clisp.org>
21808
21809         Ensure all prerequisites of <wchar.h> are included.
21810         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
21811         before <wchar.h>.
21812         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
21813         gl_MBRLEN_NUL_RETVAL): Likewise.
21814         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
21815         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
21816         AC_FUNC_MBRTOWC): Likewise.
21817         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
21818         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
21819         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
21820         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
21821         Likewise.
21822         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
21823         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
21824         (gl_WCHAR_H): Improve comments.
21825         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
21826
21827 2010-12-25  Bruno Haible  <bruno@clisp.org>
21828
21829         strtok_r: Fix C syntax error in autoconf macro.
21830         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
21831         characters in test program.
21832
21833 2010-12-24  Bruno Haible  <bruno@clisp.org>
21834
21835         ceil, trunc, round: Fix gcc warnings.
21836         * lib/ceil.c (MIN): Undefine before redefining.
21837         * lib/trunc.c (MIN): Likewise.
21838         * lib/round.c (MIN): Likewise.
21839         Include <math.h> first.
21840
21841 2010-12-24  Bruno Haible  <bruno@clisp.org>
21842
21843         select tests: Avoid failures on OSF/1 5.1.
21844         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
21845         failure of closing the last socket; it may fail with ECONNRESET.
21846
21847 2010-12-24  Eric Blake  <eblake@redhat.com>
21848
21849         stdint: avoid HP-UX 10.20 preprocessor bug
21850         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
21851         than #if.
21852         * tests/test-floor2.c (main): Likewise.
21853         Reported by Peter O'Gorman.
21854
21855         pipe: make obsoletion transition easier
21856         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
21857         * modules/pipe (Files): Include revived file.
21858         (Include): Drop reference, to mirror getdate's behavior.
21859
21860 2010-12-24  Bruno Haible  <bruno@clisp.org>
21861
21862         sys_socket: Hide mismatch of declarations on NonStop Kernel.
21863         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
21864         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
21865         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21866
21867 2010-12-24  Bruno Haible  <bruno@clisp.org>
21868
21869         gethostname: Ensure declaration on NonStop Kernel.
21870         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
21871         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21872
21873 2010-12-24  Bruno Haible  <bruno@clisp.org>
21874
21875         sys_select: Ensure all necessary types on NonStop Kernel.
21876         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
21877         include <sys/time.h>.
21878         * doc/posix-headers/sys_select.texi: Mention that it's missing on
21879         NonStop Kernel.
21880         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21881
21882 2010-12-24  Bruno Haible  <bruno@clisp.org>
21883
21884         sys_select: Remove unneeded include.
21885         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
21886         have <sys/select.h>.
21887
21888 2010-12-24  Bruno Haible  <bruno@clisp.org>
21889
21890         gethostname: Provide a fallback for HOST_NAME_MAX.
21891         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
21892         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
21893         instead.
21894         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21895
21896 2010-12-24  Bruno Haible  <bruno@clisp.org>
21897
21898         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
21899         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
21900         (SA_RESTART): Likewise.
21901         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21902
21903 2010-12-24  Bruno Haible  <bruno@clisp.org>
21904
21905         signal: Define NSIG.
21906         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
21907         * tests/test-signal.c (nsig): New variable.
21908         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21909
21910 2010-12-24  Bruno Haible  <bruno@clisp.org>
21911
21912         rename, renameat: Avoid test failures on OSF/1 5.1.
21913         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
21914         alternative error codes.
21915         * tests/test-renameat.c (main): Likewise.
21916
21917 2010-12-24  Bruno Haible  <bruno@clisp.org>
21918
21919         *printf: Detect large precisions bug on Solaris 10/SPARC.
21920         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
21921         by Paul Eggert.
21922         * tests/test-snprintf-posix.h (test_function): Add this test code here
21923         too.
21924         * tests/test-sprintf-posix.h (test_function): Likewise.
21925         * tests/test-vasnprintf-posix.c (test_function): Likewise.
21926         * tests/test-vasprintf-posix.c (test_function): Likewise.
21927         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
21928         around by gnulib.
21929         * doc/posix-functions/printf.texi: Likewise.
21930         * doc/posix-functions/snprintf.texi: Likewise.
21931         * doc/posix-functions/sprintf.texi: Likewise.
21932         * doc/posix-functions/vfprintf.texi: Likewise.
21933         * doc/posix-functions/vprintf.texi: Likewise.
21934         * doc/posix-functions/vsnprintf.texi: Likewise.
21935         * doc/posix-functions/vsprintf.texi: Likewise.
21936         * doc/posix-functions/dprintf.texi: Undo last commit.
21937         * doc/posix-functions/vdprintf.texi: Likewise.
21938
21939 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
21940
21941         tests: port test-fdutimensat.c to Solaris 8
21942         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
21943         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
21944         On Solaris 8, it fails with errno == ENOSYS, because there is no
21945         futimens (so it can't use the fd), and there is no lutimens (so it
21946         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
21947
21948         vsnprintf: make more consistent with snprintf; doc fixes
21949
21950         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
21951         the byte count return problem was promoted from the snprintf-posix
21952         to the snprintf module.
21953         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
21954         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
21955         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
21956         * tests/test-snprintf.c (main): Check the byte count returned.
21957         * tests/test-vsnprintf.c (main): Likewise.
21958
21959 2010-12-23  Eric Blake  <eblake@redhat.com>
21960
21961         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
21962         * modules/sigpipe (License): Relax license.
21963
21964 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
21965
21966         doc: document Solaris printf bug with large float precisions
21967         * doc/posix-functions/dprintf.texi (dprintf):
21968         * doc/posix-functions/fprintf.texi (fprintf):
21969         * doc/posix-functions/printf.texi (printf):
21970         * doc/posix-functions/snprintf.texi (snprintf):
21971         * doc/posix-functions/sprintf.texi (sprintf):
21972         * doc/posix-functions/vdprintf.texi (vdprintf):
21973         * doc/posix-functions/vfprintf.texi (vfprintf):
21974         * doc/posix-functions/vprintf.texi (vprintf):
21975         * doc/posix-functions/vsnprintf.texi (vsnprintf):
21976         * doc/posix-functions/vsprintf.texi (vsprintf):
21977         Mention that these functions mishandle large floating point
21978         precisions on Solaris 10.  The same bug is also present in Solaris
21979         8, and I assume earlier.  This causes "cd gnulib-tests; make
21980         check" to fail on Solaris 8 (and I assume, later) when building
21981         the latest coreutils, in test-vasprintf-posix's call to
21982         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
21983         the wide flavors (e.g., wprintf) so this patch just updates the
21984         documentation for the narrow ones.
21985
21986         test-posixtm.c: add two tests
21987         * tests/test-posixtm.c: Add two tests, to highlight the
21988         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
21989         around this bug; this is merely to document it.
21990
21991 2010-12-22  Bruno Haible  <bruno@clisp.org>
21992
21993         getlogin_r: Work around portability problem on OSF/1.
21994         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
21995         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
21996         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
21997         test for a truncated result.
21998         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
21999         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
22000         * modules/getlogin_r (Depends-on): Add memchr.
22001         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
22002
22003 2010-12-22  Bruno Haible  <bruno@clisp.org>
22004
22005         ptsname: Avoid test failure on OSF/1 5.1.
22006         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
22007         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
22008         (same_slave): New function.
22009         (main): Use it to compare ptsname's result with the expected file name.
22010
22011 2010-12-22  Bruno Haible  <bruno@clisp.org>
22012
22013         Port extended stdio modules to HP NonStop Kernel.
22014         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
22015         macros.
22016         * lib/fbufmode.c: Update comments.
22017         * lib/fflush.c: Likewise.
22018         * lib/fpurge.c: Likewise.
22019         * lib/freadable.c: Likewise.
22020         * lib/freadahead.c: Likewise.
22021         * lib/freading.c: Likewise.
22022         * lib/freadptr.c: Likewise.
22023         * lib/freadseek.c: Likewise.
22024         * lib/fseeko.c: Likewise.
22025         * lib/fseterr.c: Likewise.
22026         * lib/fwritable.c: Likewise.
22027         * lib/fwriting.c: Likewise.
22028         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22029
22030 2010-12-22  Bruno Haible  <bruno@clisp.org>
22031
22032         ttyname_r: Work around bug on OSF/1 5.1.
22033         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
22034         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
22035         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
22036         present.
22037         * lib/ttyname_r.c (ttyname_r): Update comments.
22038
22039 2010-12-22  Bruno Haible  <bruno@clisp.org>
22040
22041         round: Implement result sign according to IEEE 754.
22042         * lib/round.c (MIN, MINUS_ZERO): New macros.
22043         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
22044         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
22045         * tests/test-round-ieee.c (main): Likewise.
22046         * tests/test-roundl-ieee.c (main): Likewise.
22047
22048         trunc: Implement result sign according to IEEE 754.
22049         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
22050         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
22051         * tests/test-trunc2.c: Include minus-zero.h.
22052         (MINUS_ZERO): New macro.
22053         (trunc_reference): Keep in sync with lib/trunc.c.
22054         * tests/test-truncf2.c: Include minus-zero.h.
22055         (MINUS_ZERO): New macro.
22056         (truncf_reference): Keep in sync with lib/trunc.c.
22057         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
22058         * tests/test-trunc-ieee.c (main): Likewise.
22059         * tests/test-truncl-ieee.c (main): Likewise.
22060
22061         ceil: Implement result sign according to IEEE 754.
22062         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
22063         (FUNC): Return -0.0 for -1 < x < 0.
22064         * tests/test-ceil2.c: Include minus-zero.h.
22065         (MINUS_ZERO): New macro.
22066         (ceil_reference): Keep in sync with lib/ceil.c.
22067         * tests/test-ceilf2.c: Include minus-zero.h.
22068         (MINUS_ZERO): New macro.
22069         (ceilf_reference): Keep in sync with lib/ceil.c.
22070         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
22071         * tests/test-ceil-ieee.c (main): Likewise.
22072         * tests/test-ceill-ieee.c (main): Likewise.
22073
22074         floor: Implement result sign according to IEEE 754.
22075         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
22076         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
22077         * tests/test-floorf2.c (floorf_reference): Likewise.
22078         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
22079         * tests/test-floor-ieee.c (main): Likewise.
22080         * tests/test-floorl-ieee.c (main): Likewise.
22081
22082 2010-12-22  Bruno Haible  <bruno@clisp.org>
22083
22084         getaddrinfo: Update doc.
22085         * doc/posix-functions/gai_strerror.texi: Return type is also different
22086         on AIX and HP-UX.
22087
22088 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
22089
22090         getaddrinfo, inet_ntop: Update doc for Solaris.
22091         * doc/posix-functions/gai_strerror.texi: Return type is also an
22092         issue on Solaris 9 and earlier.
22093         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
22094         on Solaris 10 and earlier.
22095
22096 2010-12-21  Bruno Haible  <bruno@clisp.org>
22097
22098         New module 'roundl-ieee'.
22099         * modules/roundl-ieee: New file.
22100         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
22101         test whether roundl works according to ISO C 99 with IEC 60559.
22102         * m4/roundl-ieee.m4: New file.
22103         * modules/roundl-ieee-tests: New file.
22104         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
22105         * tests/test-roundl.c (main): Remove signbit tests.
22106         * modules/roundl-tests (Depends-on): Remove signbit.
22107         * doc/posix-functions/roundl.texi: Mention the new module.
22108
22109 2010-12-21  Bruno Haible  <bruno@clisp.org>
22110
22111         New module 'truncl-ieee'.
22112         * modules/truncl-ieee: New file.
22113         * modules/truncl-ieee-tests: New file.
22114         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
22115         * tests/test-truncl.c (main): Remove signbit tests.
22116         * modules/truncl-tests (Depends-on): Remove signbit.
22117         * doc/posix-functions/truncl.texi: Mention the new module.
22118
22119 2010-12-21  Bruno Haible  <bruno@clisp.org>
22120
22121         New module 'ceill-ieee'.
22122         * modules/ceill-ieee: New file.
22123         * modules/ceill-ieee-tests: New file.
22124         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
22125         * tests/test-ceill.c (main): Remove signbit tests.
22126         * modules/ceill-tests (Depends-on): Remove signbit.
22127         * doc/posix-functions/ceill.texi: Mention the new module.
22128
22129 2010-12-21  Bruno Haible  <bruno@clisp.org>
22130
22131         New module 'floorl-ieee'.
22132         * modules/floorl-ieee: New file.
22133         * modules/floorl-ieee-tests: New file.
22134         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
22135         * tests/test-floorl.c (main): Remove signbit tests.
22136         * modules/floorl-tests (Depends-on): Remove signbit.
22137         * doc/posix-functions/floorl.texi: Mention the new module.
22138
22139 2010-12-21  Bruno Haible  <bruno@clisp.org>
22140
22141         New module 'round-ieee'.
22142         * modules/round-ieee: New file.
22143         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
22144         whether round works according to ISO C 99 with IEC 60559.
22145         * m4/round-ieee.m4: New file.
22146         * modules/round-ieee-tests: New file.
22147         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
22148         * tests/test-round1.c (main): Remove signbit tests.
22149         * modules/round-tests (Depends-on): Remove 'signbit'.
22150         * doc/posix-functions/round.texi: Mention the new module.
22151
22152 2010-12-21  Bruno Haible  <bruno@clisp.org>
22153
22154         New module 'trunc-ieee'.
22155         * modules/trunc-ieee: New file.
22156         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
22157         whether trunc works according to ISO C 99 with IEC 60559.
22158         * m4/trunc-ieee.m4: New file.
22159         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
22160         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
22161         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
22162         * modules/trunc-ieee-tests: New file.
22163         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
22164         * tests/test-trunc1.c (main): Remove signbit tests.
22165         * modules/trunc-tests (Depends-on): Remove 'signbit'.
22166         * doc/posix-functions/trunc.texi: Mention the new module.
22167
22168 2010-12-21  Bruno Haible  <bruno@clisp.org>
22169
22170         New module 'ceil-ieee'.
22171         * modules/ceil-ieee: New file.
22172         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
22173         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
22174         ISO C 99 with IEC 60559.
22175         * m4/ceil-ieee.m4: New file.
22176         * modules/ceil (Files): Add lib/ceil.c.
22177         (Depends-on): Add 'float'.
22178         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
22179         * lib/math.in.h (ceil): New declaration.
22180         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
22181         REPLACE_CEIL.
22182         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
22183         * modules/ceil-ieee-tests: New file.
22184         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
22185         * tests/test-math-c++.cc: Check the signature of 'ceil'.
22186         * doc/posix-functions/ceil.texi: Mention the new module.
22187
22188 2010-12-21  Bruno Haible  <bruno@clisp.org>
22189
22190         New module 'floor-ieee'.
22191         * modules/floor-ieee: New file.
22192         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
22193         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
22194         ISO C 99 with IEC 60559.
22195         * m4/floor-ieee.m4: New file.
22196         * modules/floor (Files): Add lib/floor.c.
22197         (Depends-on): Add 'float'.
22198         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
22199         * lib/math.in.h (floor): New declaration.
22200         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
22201         REPLACE_FLOOR.
22202         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
22203         * modules/floor-ieee-tests: New file.
22204         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
22205         * tests/test-math-c++.cc: Check the signature of 'floor'.
22206         * doc/posix-functions/floor.texi: Mention the new module.
22207
22208 2010-12-21  Bruno Haible  <bruno@clisp.org>
22209
22210         New module 'roundf-ieee'.
22211         * modules/roundf-ieee: New file.
22212         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
22213         test whether roundf works according to ISO C 99 with IEC 60559.
22214         * m4/roundf-ieee.m4: New file.
22215         * modules/roundf-ieee-tests: New file.
22216         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
22217         * tests/test-roundf1.c (main): Remove signbit tests.
22218         * modules/roundf-tests (Depends-on): Remove 'signbit'.
22219         * doc/posix-functions/roundf.texi: Mention the new module.
22220
22221 2010-12-21  Bruno Haible  <bruno@clisp.org>
22222
22223         New module 'truncf-ieee'.
22224         * modules/truncf-ieee: New file.
22225         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
22226         test whether truncf works according to ISO C 99 with IEC 60559.
22227         * m4/truncf-ieee.m4: New file.
22228         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
22229         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
22230         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
22231         * modules/truncf-ieee-tests: New file.
22232         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
22233         * tests/test-truncf1.c (main): Remove signbit tests.
22234         * modules/truncf-tests (Depends-on): Remove 'signbit'.
22235         * doc/posix-functions/truncf.texi: Mention the new module.
22236
22237 2010-12-21  Bruno Haible  <bruno@clisp.org>
22238
22239         New module 'ceilf-ieee'.
22240         * modules/ceilf-ieee: New file.
22241         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
22242         test whether ceilf works according to ISO C 99 with IEC 60559.
22243         * m4/ceilf-ieee.m4: New file.
22244         * modules/ceilf-ieee-tests: New file.
22245         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
22246         * tests/test-ceilf1.c (main): Remove signbit tests.
22247         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
22248         * doc/posix-functions/ceilf.texi: Mention the new module.
22249
22250 2010-12-21  Bruno Haible  <bruno@clisp.org>
22251
22252         New module 'floorf-ieee'.
22253         * modules/floorf-ieee: New file.
22254         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
22255         test whether floorf works according to ISO C 99 with IEC 60559.
22256         * m4/floorf-ieee.m4: New file.
22257         * modules/floorf-ieee-tests: New file.
22258         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
22259         * tests/test-floorf1.c (main): Remove signbit tests.
22260         * modules/floorf-tests (Depends-on): Remove 'signbit'.
22261         * doc/posix-functions/floorf.texi: Mention the new module.
22262
22263 2010-12-21  Bruno Haible  <bruno@clisp.org>
22264
22265         Support for minus zero in autoconf macros.
22266         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
22267         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
22268         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
22269         * tests/minus-zero.h: Update comments.
22270
22271 2010-12-21  Bruno Haible  <bruno@clisp.org>
22272
22273         Tests for module 'ceil'.
22274         * modules/ceil-tests: New file.
22275         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
22276         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
22277
22278 2010-12-21  Bruno Haible  <bruno@clisp.org>
22279
22280         Tests for module 'floor'.
22281         * modules/floor-tests: New file.
22282         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
22283         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
22284
22285 2010-12-21  Bruno Haible  <bruno@clisp.org>
22286
22287         math: Fix indentation.
22288         * lib/math.in.h (floorf): Fix indentation.
22289
22290 2010-12-21  Bruno Haible  <bruno@clisp.org>
22291
22292         Fix cross-compilation guesses on Solaris.
22293         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
22294         not match "solaris2.10".
22295         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
22296         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
22297         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
22298
22299 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
22300
22301         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
22302         This fixes a problem observed with the latest coreutils snapshot
22303         that caused a test to fail on Solaris 8.  src/csplit.c's call
22304         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
22305         earlier, instead of returning the number of bytes that would have
22306         been generated; this causes csplit to incorrectly report memory
22307         exhaustion.
22308         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
22309         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
22310         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
22311         comments to match.
22312         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
22313         Fix typo in matching older versions of Solaris: "solaris2.10"
22314         is matched by the shell pattern "solaris2.[0-9]*".  This matters
22315         only for guessing while cross-compiling.
22316         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
22317
22318 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
22319
22320         ftoastr: fix comment again
22321         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
22322         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
22323         Also, simplify example a bit by using flags = 0.
22324
22325 2010-12-20  Bruno Haible  <bruno@clisp.org>
22326
22327         round*, trunc*: Update documentation regarding glibc.
22328         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
22329         * doc/posix-functions/round.texi: Likewise.
22330         * doc/posix-functions/roundl.texi: Likewise.
22331         * doc/posix-functions/truncf.texi: Likewise.
22332         * doc/posix-functions/trunc.texi: Likewise.
22333         * doc/posix-functions/truncl.texi: Likewise.
22334
22335 2010-12-20  Bruno Haible  <bruno@clisp.org>
22336
22337         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
22338         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
22339         * doc/posix-functions/round.texi: Likewise.
22340         * doc/posix-functions/roundl.texi: Likewise.
22341
22342 2010-12-20  Bruno Haible  <bruno@clisp.org>
22343
22344         ttyname_r: Add missing declaration on HP-UX 11.
22345         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
22346         HAVE_TTYNAME_R.
22347         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
22348         declared. Set HAVE_TTYNAME_R always.
22349         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22350         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
22351         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
22352         HAVE_TTYNAME_R.
22353         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
22354
22355 2010-12-20  Bruno Haible  <bruno@clisp.org>
22356
22357         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
22358         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
22359         * doc/posix-functions/getlogin_r.texi: Likewise.
22360         * tests/test-getlogin.c: Include <errno.h>.
22361         (main): Avoid test failure on HP-UX 11.11.
22362         * tests/test-getlogin_r.c (main): Likewise.
22363
22364 2010-12-20  Bruno Haible  <bruno@clisp.org>
22365
22366         getlogin_r: Add missing declaration on HP-UX 11.
22367         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
22368         declared also when it exists as a function.
22369         * doc/posix-functions/getlogin_r.texi: Document this workaround.
22370
22371 2010-12-20  Bruno Haible  <bruno@clisp.org>
22372
22373         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
22374         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
22375         through wcrtomb.
22376
22377 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
22378
22379         ftoastr: fix comment
22380         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
22381         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
22382
22383 2010-12-19  Bruno Haible  <bruno@clisp.org>
22384
22385         isnan: Ensure it is a macro.
22386         * lib/math.in.h (isnan): Define as a macro if not already a macro.
22387         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
22388         Solaris.
22389
22390 2010-12-19  Bruno Haible  <bruno@clisp.org>
22391
22392         ldexpl test: Fix link error on OSF/1 5.1.
22393         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
22394
22395 2010-12-19  Bruno Haible  <bruno@clisp.org>
22396
22397         wctype: Make it work in C++ mode on OSF/1 5.1.
22398         * lib/wctype.in.h (iswblank): Declare but not define here.
22399         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
22400         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
22401         * modules/wctype (Files): Add lib/iswblank.c.
22402
22403 2010-12-19  Bruno Haible  <bruno@clisp.org>
22404
22405         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
22406         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
22407         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
22408
22409 2010-12-19  Bruno Haible  <bruno@clisp.org>
22410
22411         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
22412         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
22413         _POSIX_PII_SOCKET.
22414         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
22415         * doc/posix-functions/recvfrom.texi: Likewise.
22416         * doc/posix-functions/send.texi: Likewise.
22417         * doc/posix-functions/sendto.texi: Likewise.
22418
22419 2010-12-19  Bruno Haible  <bruno@clisp.org>
22420
22421         tcgetsid: Add missing declaration on OSF/1 5.1.
22422         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
22423         HAVE_TCGETSID.
22424         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
22425         Don't set HAVE_TCGETSID.
22426         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
22427         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
22428         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
22429         HAVE_TCGETSID.
22430         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
22431
22432 2010-12-19  Bruno Haible  <bruno@clisp.org>
22433
22434         stdio: Fix problem with popen() declaration on OSF/1 5.1.
22435         * lib/stdio.in.h: During the include_next statement, let recursive
22436         includes of this file include only the system header file.
22437
22438 2010-12-19  Bruno Haible  <bruno@clisp.org>
22439
22440         iconv_open: Fix regression from 2010-12-04.
22441         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
22442         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
22443
22444 2010-12-19  Bruno Haible  <bruno@clisp.org>
22445
22446         stdbool test: Avoid a gcc warning.
22447         * tests/test-stdbool.c (main): Fail if e1 is false.
22448         Reported by Jim Meyering.
22449
22450 2010-12-19  Jim Meyering  <meyering@redhat.com>
22451
22452         setenv: restore to working order
22453         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
22454         mistakenly removed.
22455         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
22456         HAVE_SETENV.
22457         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
22458         HAVE_SETENV.
22459
22460 2010-12-19  Bruno Haible  <bruno@clisp.org>
22461
22462         Document some different function declarations on OSF/1 5.1.
22463         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
22464         * doc/posix-functions/inet_ntop.texi: Likewise.
22465         * doc/posix-functions/gethostname.texi: Likewise.
22466         * lib/unistd.in.h (gethostname): Update comment.
22467
22468 2010-12-19  Bruno Haible  <bruno@clisp.org>
22469
22470         doc: Mention vasprintf-posix module.
22471         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
22472         the 'vasprintf-posix' module.
22473         * doc/glibc-functions/vasprintf.texi: Likewise.
22474
22475 2010-12-19  Bruno Haible  <bruno@clisp.org>
22476
22477         unsetenv: Add missing declaration on OSF/1 5.1.
22478         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
22479         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
22480         Don't set HAVE_UNSETENV. In the test program, set _BSD.
22481         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
22482         not HAVE_UNSETENV.
22483         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
22484         HAVE_UNSETENV.
22485         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
22486
22487 2010-12-19  Bruno Haible  <bruno@clisp.org>
22488
22489         setenv: Add missing declaration on OSF/1 5.1.
22490         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
22491         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
22492         declared. Don't set HAVE_SETENV.
22493         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
22494         not HAVE_SETENV.
22495         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
22496         HAVE_SETENV.
22497         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
22498
22499 2010-12-19  Bruno Haible  <bruno@clisp.org>
22500
22501         nl_langinfo tests: Avoid gcc warning.
22502         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
22503
22504 2010-12-19  Bruno Haible  <bruno@clisp.org>
22505
22506         mknod: Avoid error in C++ mode on OSF/1 with GCC.
22507         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
22508         _GL_CXXALIAS_SYS.
22509
22510 2010-12-19  Bruno Haible  <bruno@clisp.org>
22511
22512         stdbool: Relax test.
22513         * tests/test-stdbool.c (e): Don't require that casts from a variable's
22514         address to 'bool' work in static initializer, for compilers other than
22515         GCC.
22516
22517 2010-12-19  Bruno Haible  <bruno@clisp.org>
22518
22519         ftello: Add missing declaration on OSF/1 5.1.
22520         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
22521         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
22522         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
22523         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
22524         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
22525
22526 2010-12-19  Bruno Haible  <bruno@clisp.org>
22527
22528         fseeko: Add missing declaration on OSF/1 5.1.
22529         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
22530         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
22531         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
22532         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
22533         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
22534
22535 2010-12-19  Bruno Haible  <bruno@clisp.org>
22536
22537         fchdir: Add missing declaration on OSF/1 5.1.
22538         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
22539         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
22540         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
22541         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
22542         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
22543
22544 2010-12-19  Bruno Haible  <bruno@clisp.org>
22545
22546         relocatable-prog-wrapper: Separate from relocatable-prog.
22547         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
22548         uninstall-relocwrapper rule here.
22549         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
22550         Reported by Ian Beckwith <ianb@erislabs.net>.
22551
22552 2010-12-19  Bruno Haible  <bruno@clisp.org>
22553
22554         unistr/u8-mbsnlen: Add missing dependency.
22555         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
22556         Reported by Ian Beckwith <ianb@erislabs.net>.
22557
22558 2010-12-19  Bruno Haible  <bruno@clisp.org>
22559
22560         iconv: Make it possible again to use this module without 'iconv-h'.
22561         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
22562         if it is not defined.
22563         Reported by Ian Beckwith <ianb@erislabs.net>.
22564
22565 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
22566
22567         acl: port to Solaris 8 when copying from tmpfs to ufs
22568         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
22569         error number.  Problem observed on Solaris 8 with latest
22570         coreutils, with "mv A B", where A is on a tmpfs file system and B
22571         is on a ufs file system.  This caused coreutils' mv/part-symlink
22572         test to fail.
22573
22574         tests: set fail=0 at start
22575         * tests/init.sh (setup_): Move fail=0 initialization here ...
22576         (mktempd_): ... from here, so that tests can rely on fail being
22577         set to 0 initially.  This fixes a problem in coreutils; see:
22578         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
22579
22580 2010-12-18  Bruno Haible  <bruno@clisp.org>
22581
22582         memmem-simple: Stylistic changes.
22583         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
22584         Fix preprocessor directive indentation.
22585
22586 2010-12-15  Pádraig Brady <P@draigBrady.com>
22587
22588         memmem, memmem-simple: reorganize and expand empty needle check
22589         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
22590         functional checks to memmem-simple so that one has a fully functional
22591         memmem by using just this module.
22592         Restrict the performance only check to the memmem module.
22593         Also expand the empty needle check to ensure the correct
22594         pointer is returned, not just a non NULL pointer.
22595         * doc/glibc-functions/memmem.texi: Rearrange the portability
22596         documentation to correlate with the rearranged checks.
22597         Clarify exactly how the memmem and memmem-simple modules
22598         relate to each other.
22599
22600 2010-12-15  Pádraig Brady <P@draigBrady.com>
22601             Bruno Haible  <bruno@clisp.org>
22602
22603         Improve cross-compilation guesses for uClibc.
22604         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
22605         that uClibc does not have the glibc bug.
22606         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
22607         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
22608
22609 2010-12-14  Eric Blake  <eblake@redhat.com>
22610
22611         configmake: provide fallbacks for oldest supported autotools
22612         * m4/configmake.m4: New file.
22613         * modules/configmake (Files): Ship it.
22614         (configure.ac): Use it to guarantee fallbacks.
22615
22616 2010-12-13  Pádraig Brady <P@draigBrady.com>
22617
22618         read-file: Improve handling of large files
22619         * lib/read-file.c (fread_file): Minimize realloc()s
22620         for regular files, and better manage sizes around SIZE_MAX.
22621
22622 2010-12-13  Eric Blake  <eblake@redhat.com>
22623
22624         cloexec, fcntl: relax license
22625         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
22626         consent from all contributors.
22627         * modules/fcntl (License): Likewise.
22628
22629 2010-12-10  Bruno Haible  <bruno@clisp.org>
22630
22631         Tests for module 'pipe-posix'.
22632         * modules/pipe-posix-tests: New file.
22633         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
22634
22635 2010-12-10  Bruno Haible  <bruno@clisp.org>
22636
22637         pipe-posix: Make it work in C++ mode.
22638         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
22639         (pipe): Use common idiom, not a macro definition.
22640         * lib/pipe.c: New file.
22641         * m4/pipe.m4: New file.
22642         * modules/pipe-posix (Description): Enhance.
22643         (Files): Add lib/pipe.c, m4/pipe.m4.
22644         (configure.ac): Invoke gl_FUNC_PIPE.
22645         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
22646         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
22647         * tests/test-unistd-c++.cc: Check the signature of pipe.
22648
22649 2010-12-10  Bruno Haible  <bruno@clisp.org>
22650
22651         Rename module 'pipe' to 'spawn-pipe'.
22652         * modules/spawn-pipe: New file, renamed from modules/pipe.
22653         (Files, configure.ac, Makefile.am): Update.
22654         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
22655         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
22656         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
22657         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
22658         "spawn-pipe.h" instead of "pipe.h".
22659         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
22660         to gl_SPAWN_PIPE.
22661         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
22662         (Files, Makefile.am): Update.
22663         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
22664         Update.
22665         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
22666         Include "spawn-pipe.h" instead of "pipe.h".
22667         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
22668         * lib/javacomp.c: Likewise.
22669         * lib/javaversion.c: Likewise.
22670         * lib/pipe-filter-gi.c: Likewise.
22671         * lib/pipe-filter-ii.c: Likewise.
22672         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
22673         * modules/javacomp (Depends-on): Likewise.
22674         * modules/javaversion (Depends-on): Likewise.
22675         * modules/pipe-filter-gi (Depends-on): Likewise.
22676         * modules/pipe-filter-ii (Depends-on): Likewise.
22677         * MODULES.html.sh (Executing programs): Update.
22678         * NEWS: Mention the change.
22679
22680 2010-12-10  Eric Blake  <eblake@redhat.com>
22681
22682         pipe-posix: new module
22683         * modules/pipe-posix: New file.
22684         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
22685         (gl_UNISTD_H): Check for declaration.
22686         * modules/unistd (Makefile.am): Substitute it.
22687         * lib/unistd.in.h (pipe): Provide it for mingw.
22688         * doc/posix-functions/pipe.texi (pipe): Update documentation.
22689         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
22690
22691 2010-12-07  Bruno Haible  <bruno@clisp.org>
22692
22693         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
22694         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
22695         u8_strcmp_gnu.
22696         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
22697
22698 2010-12-06  Bruno Haible  <bruno@clisp.org>
22699
22700         Update internal documentation.
22701         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
22702
22703 2010-12-04  Bruno Haible  <bruno@clisp.org>
22704
22705         Put more information about failed tests into the test return codes.
22706         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
22707         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
22708         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
22709         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
22710         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
22711         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
22712         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
22713         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
22714         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
22715         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
22716         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
22717         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
22718         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
22719         * m4/stdint.m4 (gl_STDINT_H): Likewise.
22720         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
22721         returns a bit mask.
22722         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
22723         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
22724         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
22725         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
22726         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
22727         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
22728         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
22729         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
22730         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
22731         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
22732         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
22733         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
22734         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
22735         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
22736         * m4/link.m4 (gl_FUNC_LINK): Likewise.
22737         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
22738         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
22739         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
22740         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22741         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
22742         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
22743         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
22744         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
22745         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
22746         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
22747         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
22748         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
22749         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
22750         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
22751         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
22752         gl_PRINTF_PRECISION): Likewise.
22753         * m4/regex.m4 (gl_REGEX): Likewise.
22754         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
22755         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
22756         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
22757         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
22758         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
22759         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22760         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
22761         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
22762         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
22763         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
22764         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
22765         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
22766         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
22767         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
22768         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
22769         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
22770         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
22771         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22772         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
22773         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
22774         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
22775         enumerated value.
22776         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
22777
22778 2010-12-04  Bruno Haible  <bruno@clisp.org>
22779
22780         Update for Solaris 11 2010-11.
22781         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
22782         Express, released in November 2010.
22783
22784 2010-12-04  Bruno Haible  <bruno@clisp.org>
22785
22786         nproc: Relax license.
22787         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
22788         and Paul Eggert.
22789         Requested by Ludovic Courtès <ludo@gnu.org>.
22790
22791 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
22792
22793         utimecmp: fine-grained src to nearby coarse-grained dest
22794
22795         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
22796         and the source is on a file system with higher-resolution time
22797         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
22798         not work, and the time stamps are close together, the algorithm to
22799         determine the exact resolution from the read-back mtime was buggy:
22800         it had a "!=" where it should have had an "==".  This bug has been
22801         in the code ever since it was introduced to gnulib.
22802         Problem reported by Dan Jacobson in
22803         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
22804
22805 2010-11-30  Bruno Haible  <bruno@clisp.org>
22806
22807         strerror_r-posix: Fix autoconf test.
22808         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
22809
22810 2010-11-28  Bruno Haible  <bruno@clisp.org>
22811             Paul Eggert  <eggert@cs.ucla.edu>
22812
22813         Tests for module 'getdomainname'.
22814         * modules/getdomainname-tests: New file.
22815         * tests/test-getdomainname.c: New file, based on
22816         tests/test-gethostname.c.
22817
22818 2010-11-28  Bruno Haible  <bruno@clisp.org>
22819             Paul Eggert  <eggert@cs.ucla.edu>
22820
22821         getdomainname: Use the system function when possible.
22822         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
22823         (getdomainname): Replace if needed. Provide the declaration if it is
22824         missing. Don't use _GL_CXXALIAS_SYS_CAST.
22825         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
22826         (getdomainname): When the system has getdomainname, call the system
22827         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
22828         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
22829         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
22830         found in libnsl. Look for the declaration also in <netdb.h>. Replace
22831         the function if its second argument is of type 'int' or if it is found
22832         in libnsl.
22833         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
22834         <sys/systeminfo.h> and sysinfo().
22835         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
22836         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22837         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
22838         HAVE_GETDOMAINNAME.
22839         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
22840         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
22841         * doc/glibc-functions/getdomainname.texi: Document the problems with
22842         the getdomainname declaration.
22843
22844 2010-11-28  Bruno Haible  <bruno@clisp.org>
22845
22846         sys_socket: Ensure ss_family field on AIX.
22847         * lib/sys_socket.in.h (ss_family): New macro definition.
22848         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
22849         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
22850         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
22851         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
22852         * modules/sys_socket (Makefile.am): Substitute
22853         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
22854         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
22855
22856 2010-11-27  Bruno Haible  <bruno@clisp.org>
22857
22858         readline: Improve configure output.
22859         * m4/readline.m4 (gl_FUNC_READLINE): Make the
22860         "checking for readline..." result understandable.
22861
22862 2010-11-27  Bruno Haible  <bruno@clisp.org>
22863
22864         *printf-posix: Detect a bug on Solaris 10/x86.
22865         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
22866         for floating-point output.
22867         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
22868         directive.
22869         * tests/test-snprintf-posix.h (test_function): Likewise.
22870         * tests/test-sprintf-posix.h (test_function): Likewise.
22871         * tests/test-vasprintf-posix.c (test_function): Likewise.
22872         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
22873         * doc/posix-functions/printf.texi: Likewise.
22874         * doc/posix-functions/snprintf.texi: Likewise.
22875         * doc/posix-functions/sprintf.texi: Likewise.
22876         * doc/posix-functions/vfprintf.texi: Likewise.
22877         * doc/posix-functions/vprintf.texi: Likewise.
22878         * doc/posix-functions/vsnprintf.texi: Likewise.
22879         * doc/posix-functions/vsprintf.texi: Likewise.
22880         * doc/glibc-functions/obstack_printf.texi: Likewise.
22881         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
22882
22883 2010-11-27  Bruno Haible  <bruno@clisp.org>
22884
22885         Fix link error when module libunistring-optional is in use.
22886         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
22887         * modules/striconveha-tests (Makefile.am): Likewise.
22888
22889 2010-11-27  Bruno Haible  <bruno@clisp.org>
22890
22891         regex: Mention link dependencies.
22892         * modules/regex (Link): New section.
22893         * modules/rpmatch (Link): Likewise.
22894         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
22895
22896 2010-11-27  Bruno Haible  <bruno@clisp.org>
22897
22898         ftoastr: Fix compilation error on Solaris.
22899         * lib/ftoastr.c: Include <config.h>.
22900
22901 2010-11-27  Bruno Haible  <bruno@clisp.org>
22902
22903         getloadavg: Update documentation.
22904         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
22905
22906 2010-11-27  Bruno Haible  <bruno@clisp.org>
22907
22908         sys_socket: Fix test whether the functions are declared.
22909         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
22910         not <sys/select.h>.
22911
22912 2010-11-27  Bruno Haible  <bruno@clisp.org>
22913
22914         getpass: Make sure to get system declaration on some platforms.
22915         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
22916         gl_USE_SYSTEM_EXTENSIONS.
22917         * modules/getpass (Depends-on): Add extensions.
22918
22919 2010-11-26  Bruno Haible  <bruno@clisp.org>
22920
22921         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
22922         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
22923         'iconv' module is present.
22924         (ICONV_CONST): New macro.
22925         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
22926         ICONV_CONST.
22927         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
22928         set ICONV_CONST.
22929         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
22930         here.
22931         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
22932         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
22933         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
22934         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
22935         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
22936         present.
22937
22938 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
22939
22940         ftoastr: comment fix
22941         * lib/ftoastr.c: "little" -> "little or no" in comment
22942
22943 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
22944
22945         stdint: port to GCC 4.3 + OSX + Octave
22946         On this platform, stdint.h is buggy and defines int64_t to long
22947         long int.  The replacement defined it to long int, causing
22948         problems with C++ style name mangling.  Instead, trust the system
22949         definition if INT64_MAX is defined, and likewise for the unsigned
22950         variant.   Problem reported by Jarno Rajahalme in
22951         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
22952         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
22953         and don't mess with int64_t and INT64_MAX in this case.
22954         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
22955
22956 2010-11-24  Bruno Haible  <bruno@clisp.org>
22957
22958         doc: Corrections regarding MacOS X 10.4 and 10.5.
22959         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
22960         MacOS X.
22961         Reported by Simon Josefsson.
22962
22963 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
22964
22965         Uninstall ".bin" files installed by relocwrapper.
22966         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
22967         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
22968         unless it is already there.
22969
22970 2010-11-21  Bruno Haible  <bruno@clisp.org>
22971
22972         Update for NetBSD 5.0.
22973         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
22974         NetBSD; the test fails on NetBSD 5.0.
22975         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
22976         about NetBSD.
22977
22978 2010-11-21  Bruno Haible  <bruno@clisp.org>
22979
22980         Update for HP-UX 11.23 and HP-UX 11.31.
22981         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
22982         HP-UX.
22983
22984 2010-11-21  Bruno Haible  <bruno@clisp.org>
22985
22986         Update for MacOS X 10.5.
22987         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
22988         MacOS X; the test fails on MacOS X 10.5.8.
22989         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
22990         about MacOS X.
22991
22992 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
22993
22994         bootstrap: add bootstrap_sync option.
22995         See discussion at
22996         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
22997         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
22998         * build-aux/bootstrap: Accept --bootstrap-sync to update
22999         bootstrap if it is not identical to the local gnulib's
23000         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
23001         enable this by default.  Accept --no-bootstrap-sync to disable
23002         it.
23003
23004 2010-11-20  Bruno Haible  <bruno@clisp.org>
23005
23006         Ensure that <features.h> is included before __GLIBC__ is tested.
23007         * lib/printf-parse.h: Include <features.h>.
23008         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
23009         Reported by Mike Frysinger <vapier@gentoo.org>.
23010
23011         Ensure that <features.h> is included before __GLIBC__ is tested.
23012         * lib/wchar.in.h: Include <features.h>.
23013         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
23014         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
23015         Reported by Mike Frysinger <vapier@gentoo.org>.
23016
23017         Ensure that <features.h> is included before __GLIBC__ is tested.
23018         * lib/arpa_inet.in.h: Include <features.h>.
23019         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
23020         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
23021         Reported by Mike Frysinger <vapier@gentoo.org>.
23022
23023         Ensure that <features.h> is included before __GLIBC__ is tested.
23024         * build-aux/link-warning.h: Include <features.h>.
23025         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
23026         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
23027         Reported by Mike Frysinger <vapier@gentoo.org>.
23028
23029         Ensure that <features.h> is included before __GLIBC__ is tested.
23030         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
23031         Reported by Mike Frysinger <vapier@gentoo.org>.
23032
23033 2010-11-20  Bruno Haible  <bruno@clisp.org>
23034
23035         memmem: Fix autoconf test.
23036         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
23037
23038 2010-11-20  Bruno Haible  <bruno@clisp.org>
23039
23040         Port to uClibc.
23041         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
23042         * lib/fcntl.in.h: Likewise.
23043         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
23044         * lib/mbrtowc.c (mbrtowc): Likewise.
23045         * lib/relocatable.c (find_shared_library_fullname): Likewise.
23046         * lib/strerror_r.c: Likewise.
23047         * lib/unistr/u8-strnlen.c: Likewise.
23048         * lib/vasnprintf.c (decimal_point_char): Likewise.
23049         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
23050         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
23051         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
23052         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
23053         * tests/test-sigaction.c (handler, main): Likewise.
23054         * lib/freading.h: Treat uClibc like a non-glibc platform.
23055         * lib/freading.c: Likewise.
23056         * lib/gettext.h: Likewise.
23057         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
23058         Likewise.
23059         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
23060         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
23061         * lib/propername.c (proper_name_utf8): Likewise.
23062         * lib/spawn.in.h: Likewise.
23063         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
23064         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
23065         mem_cd_iconveh_internal): Likewise.
23066         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
23067         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
23068         strstr, strcasestr): Likewise.
23069         * lib/unicodeio.c (unicode_to_mb): Likewise.
23070         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
23071         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
23072         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
23073         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
23074         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
23075         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
23076         * lib/unistr/u8-stpncpy.c: Likewise.
23077         * lib/vasnprintf.c (VASNPRINTF): Likewise.
23078         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
23079         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
23080         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23081         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
23082         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
23083         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
23084         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
23085         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
23086         Likewise.
23087         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
23088         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23089         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
23090         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23091         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
23092         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23093         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23094         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
23095         * tests/test-getopt.h (OPTIND_MIN): Likewise.
23096         * tests/test-striconveha.c (main): Likewise.
23097         * tests/test-vasnprintf-posix.c (test_function): Likewise.
23098         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
23099         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
23100         * doc/posix-functions/getline.texi: Likewise.
23101         Reported by Mike Frysinger <vapier@gentoo.org>.
23102
23103 2010-11-20  Bruno Haible  <bruno@clisp.org>
23104
23105         nproc: Fix condition.
23106         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
23107         HAVE_PTHREAD_AFFINITY_NP.
23108
23109 2010-11-20  Bruno Haible  <bruno@clisp.org>
23110
23111         Fix a comment.
23112         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
23113
23114 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
23115
23116         ftoastr: don't assume snprintf
23117         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
23118         Implement a subset of snprintf here, by using sprintf safely.
23119         * modules/ftoastr (Depends-on): Remove snprintf.
23120
23121 2010-11-19  Jim Meyering  <meyering@redhat.com>
23122
23123         test-rename.h: fix compilation failure
23124         * tests/test-rename.h (test_rename): Add omitted "}".
23125
23126 2010-11-17  Jim Meyering  <meyering@redhat.com>
23127
23128         maint.mk: add a URL discussing the no-@acronym policy
23129         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
23130
23131 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
23132
23133         ftoastr: depend on snprintf, improve comments
23134         * lib/ftoastr.c: Also mention Loitsch's draft.
23135         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
23136         needed in the current implementation, but it might simplify
23137         speeding up the code later.
23138         * modules/ftoastr: Depend on snprintf; this improves portability.
23139         Suggested by Bruno Haible in the same email.
23140
23141         ftoastr: port to hosts lacking strtof and strtold
23142         Problem reported by Bruno Haible in
23143         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
23144         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
23145         environment and strtold (and presumably strtof) are not available.
23146         * modules/ftoastr (Files): Add m4/c-strtod.m4.
23147         (configure.ac): Require gl_C99_STRTOLD.
23148
23149 2010-11-18  Bruno Haible  <bruno@clisp.org>
23150
23151         c-strtold: Avoid link error on AIX 7.
23152         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
23153         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
23154         (gl_C_STRTOLD): Test whether strtold_l exists.
23155         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23156
23157 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
23158
23159         intprops: new macro INT_BITS_STRLEN_BOUND
23160         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
23161         ftoastr.h.  This exposes an internal of intprops.h that was formerly
23162         not exposed.  Also, it uses a slightly tighter bound than before;
23163         though this makes no practical difference, we might as well be as
23164         tight as we easily can.
23165
23166         ftoastr: new module, for lossless conversion of floats to short strings
23167         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
23168         * modules/ftoastr: New files.
23169
23170 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
23171
23172         bootstrap: port to Solaris sed
23173         * build-aux/bootstrap (get_version): Port to Solaris sed.
23174         See Ralf Wildenhues's note in
23175         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
23176
23177 2010-11-14  Jim Meyering  <meyering@redhat.com>
23178
23179         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
23180         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
23181         and move definition closer to sole use.
23182
23183 2010-11-13  Jim Meyering  <meyering@redhat.com>
23184
23185         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
23186         Now we require at least autoconf-2.59, which means the work-around
23187         is no longer needed.
23188         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
23189         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
23190         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
23191         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
23192         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
23193
23194 2010-11-13  Bruno Haible  <bruno@clisp.org>
23195
23196         rename, renameat: Avoid test failures at NFS mounted locations.
23197         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
23198         functions.
23199         (test_rename): Use assert_nonexistent.
23200         * tests/test-rename.c: Include <dirent.h>.
23201         * tests/test-renameat.c: Likewise.
23202         Reported by Gary V. Vaughan <gary@gnu.org>.
23203
23204         rename, renameat: Document Linux bug with NFS
23205         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
23206         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
23207         * doc/posix-functions/renameat.texi: Likewise.
23208         Suggested by Eric Blake.
23209
23210 2010-11-13  Bruno Haible  <bruno@clisp.org>
23211
23212         rename test: Add comments.
23213         * tests/test-rename.h (test_rename): Add structure and comments.
23214
23215 2010-11-13  Eric Blake  <eblake@redhat.com>
23216
23217         maintainer-makefile: cover a few more files
23218         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
23219         scripts generated within C files, for libvirt.
23220
23221 2010-11-13  Bruno Haible  <bruno@clisp.org>
23222
23223         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
23224         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
23225         character, return the number of bytes that belong together, not always
23226         1.
23227         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
23228         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
23229         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
23230         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
23231         number of bytes of an invalid character.
23232         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
23233         (main): Invoke it.
23234         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
23235         results.
23236         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
23237         malformed byte sequences.
23238         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
23239         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
23240         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
23241         Reported by Ben Pfaff and Paolo Bonzini.
23242
23243 2010-11-13  Bruno Haible  <bruno@clisp.org>
23244
23245         openat: Work around glibc bug with fchownat() and empty file names.
23246         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
23247         (gl_FUNC_FCHOWNAT): Invoke it.
23248         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
23249         * doc/posix-functions/fchownat.texi: Document the glibc bug.
23250         Reported by Gary V. Vaughan <gary@gnu.org>.
23251
23252 2010-11-13  Bruno Haible  <bruno@clisp.org>
23253
23254         openat: Ensure autoconf macro ordering.
23255         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
23256         gl_USE_SYSTEM_EXTENSIONS.
23257         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
23258
23259 2010-11-13  Bruno Haible  <bruno@clisp.org>
23260
23261         Update comments.
23262         * lib/unistr/u8-check.c: Update file name in comments.
23263         * lib/unistr/u8-mblen.c: Likewise.
23264         * lib/unistr/u8-prev.c: Likewise.
23265         * lib/unistr/u8-strmblen.c: Likewise.
23266         * lib/unistr/u8-strmbtouc.c: Likewise.
23267
23268 2010-11-13  Jim Meyering  <meyering@redhat.com>
23269
23270         tests: avoid test failure on Solaris 10 due to lack of PATH export
23271         * tests/test-update-copyright.sh: Don't forget to export PATH.
23272
23273         init.sh: ensure that IFS is defined, just in case...
23274         * tests/init.sh (setup_): Ensure that IFS is defined,
23275         so that saving and restoring it works as expected.  This
23276         appears to be useful at least for an old version of dash
23277         from a long time ago (RH 6).  See here for details:
23278         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
23279
23280         maint.mk: tighten "test a == b" check
23281         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
23282         test to files that contain something like #!/bin/sh.
23283         Without this, coreutils would get two false positives in
23284         the comments of C source files.
23285
23286 2010-11-12  Eric Blake  <eblake@redhat.com>
23287
23288         bootstrap: fix typo in previous attempt
23289         * build-aux/bootstrap (buildreq): Correct the grouping.
23290         Reported by Paul Eggert.
23291
23292         maintainer-makefile: prohibit test x == x
23293         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
23294         Based on a report by Matthias Bolte.
23295
23296         bootstrap: allow FreeBSD gzip
23297         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
23298         which has no '.' and goes to stderr.
23299         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
23300         Reported by Matthias Bolte.
23301
23302         maintainer-makefile: check for i18n setup
23303         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
23304         will likely work.
23305
23306 2010-11-12  Bruno Haible  <bruno@clisp.org>
23307
23308         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
23309         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
23310         * lib/nanosleep.c (nanosleep): Likewise.
23311
23312 2010-11-11  Bruno Haible  <bruno@clisp.org>
23313
23314         fcntl-h: Fix for use of C++ on glibc systems.
23315         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
23316         also on glibc systems in C++ mode.
23317         Reported by Gary V. Vaughan <gary@gnu.org>.
23318
23319 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
23320
23321         mknod: avoid false failure with dash
23322         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
23323
23324 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
23325
23326         unlink: Fix "is it should" typo in diagnostic.
23327         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
23328         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
23329
23330 2010-11-11  Bruno Haible  <bruno@clisp.org>
23331
23332         Tests for module 'strerror_r-posix'.
23333         * modules/strerror_r-posix-tests: New file.
23334         * tests/test-strerror_r.c: New file.
23335         * tests/test-string-c++.cc: Check the signature of strerror_r.
23336
23337         New module 'strerror_r-posix'.
23338         * lib/string.in.h (strerror_r): New declaration.
23339         * lib/strerror_r.c: New file.
23340         * m4/strerror_r.m4: New file.
23341         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
23342         of strerror_r.
23343         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
23344         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
23345         * modules/strerror_r-posix: New file.
23346         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
23347         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
23348         * doc/posix-functions/strerror_r.texi: Mention the new module and the
23349         portability problems.
23350
23351 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
23352
23353         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
23354         line is also considered for output. Quoted function name in shell
23355         command, so temporary files for functions like MyClass::operator()
23356         are removed correctly without errors.
23357
23358 2010-11-09  Bruno Haible  <bruno@clisp.org>
23359
23360         * doc/posix-functions/strerror.texi: List more failing platforms.
23361
23362         * doc/posix-functions/strerror.texi: Add a comment.
23363
23364 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
23365
23366         fdopendir: fix bug on MacOS X when low on file descriptors
23367
23368         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
23369         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
23370         All callers changed.
23371         (fdopendir): Invoke save_cwd at the top level, not after using
23372         multiple dup() calls to use up file descriptors.  Then retry
23373         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
23374         less than the maximum number of open file descriptors, because
23375         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
23376         on Mac OS X 10.6.4 for tar 1.24
23377         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
23378         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
23379         and for tar 1.25
23380         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
23381
23382 2010-11-07  Bruno Haible  <bruno@clisp.org>
23383
23384         vasnprintf: Support I flag on glibc systems.
23385         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
23386         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
23387         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
23388         snprintf function.
23389         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
23390         glibc systems.
23391         * tests/test-vasnprintf-posix3.c: New file.
23392         * modules/vasnprintf-posix-tests (Files): Add it.
23393         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
23394
23395 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
23396
23397         [html] Fix copy/paste bug: Use unique name for compiler warnings.
23398         * MODULES.html.sh: For compiler warnings, use name
23399         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
23400
23401 2010-11-05  Eric Blake  <eblake@redhat.com>
23402
23403         ceil, floor: avoid spurious failure with icc
23404         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
23405         [denormals-as-zero] when optimizing without -mieee-fp option.
23406         * tests/test-floorf2.c (floorf_reference): Likewise.
23407         * tests/test-ceilf1.c (dummy): New function.
23408         (main): Use it to outsmart icc's optimization.
23409         * tests/test-floorf1.c (dummy, main): Likewise.
23410
23411         tests: require working signbit
23412         * modules/ceilf-tests (Depends-on): Add signbit.
23413         * modules/ceill-tests (Depends-on): Likewise.
23414         * modules/floorf-tests (Depends-on): Likewise.
23415         * modules/floorl-tests (Depends-on): Likewise.
23416         * modules/round-tests (Depends-on): Likewise.
23417         * modules/roundf-tests (Depends-on): Likewise.
23418         * modules/roundl-tests (Depends-on): Likewise.
23419         * modules/trunc-tests (Depends-on): Likewise.
23420         * modules/truncf-tests (Depends-on): Likewise.
23421         * modules/truncl-tests (Depends-on): Likewise.
23422
23423         strtod: work around icc bug
23424         * lib/strtod.c (minus_zero): Define to working value.
23425         (strtod): Use it to avoid icc bug.
23426
23427         copysign: enhance tests
23428         * modules/copysign-tests (Files): Add minus-zero.h.
23429         * tests/test-copysign.c (main): Also test zeros.
23430
23431 2010-11-04  Eric Blake  <eblake@redhat.com>
23432
23433         ceil, floor, round, trunc: enhance tests of -0
23434         * tests/test-ceilf1.c (main): Ensure correct sign of result.
23435         * tests/test-ceill.c (main): Likewise.
23436         * tests/test-floorf1.c (main): Likewise.
23437         * tests/test-floorl.c (main): Likewise.
23438         * tests/test-round1.c (main): Likewise.
23439         * tests/test-roundf1.c (main): Likewise.
23440         * tests/test-roundl.c (main): Likewise.
23441         * tests/test-trunc1.c (main): Likewise.
23442         * tests/test-truncf1.c (main): Likewise.
23443         * tests/test-truncl.c (main): Likewise.
23444
23445 2010-11-04  Eric Blake  <eblake@redhat.com>
23446
23447         frexp, tests: work around ICC bug with -zero
23448         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
23449         works with more compilers.
23450         * tests/minus-zero.h: New file.
23451         * modules/ceilf-tests (Files): Include it.
23452         * modules/ceill-tests (Files): Likewise.
23453         * modules/floorf-tests (Files): Likewise.
23454         * modules/floorl-tests (Files): Likewise.
23455         * modules/frexp-nolibm-tests (Files): Likewise.
23456         * modules/frexp-tests (Files): Likewise.
23457         * modules/frexpl-nolibm-tests (Files): Likewise.
23458         * modules/frexpl-tests (Files): Likewise.
23459         * modules/isnan-tests (Files): Likewise.
23460         * modules/isnand-nolibm-tests (Files): Likewise.
23461         * modules/isnand-tests (Files): Likewise.
23462         * modules/isnanf-nolibm-tests (Files): Likewise.
23463         * modules/isnanf-tests (Files): Likewise.
23464         * modules/isnanl-nolibm-tests (Files): Likewise.
23465         * modules/isnanl-tests (Files): Likewise.
23466         * modules/round-tests (Files): Likewise.
23467         * modules/roundf-tests (Files): Likewise.
23468         * modules/roundl-tests (Files): Likewise.
23469         * modules/ldexpl-tests (Files): Likewise.
23470         * modules/signbit-tests (Files): Likewise.
23471         * modules/snprintf-posix-tests (Files): Likewise.
23472         * modules/sprintf-posix-tests (Files): Likewise.
23473         * modules/strtod-tests (Files): Likewise.
23474         * modules/trunc-tests (Files): Likewise.
23475         * modules/truncf-tests (Files): Likewise.
23476         * modules/truncl-tests (Files): Likewise.
23477         * modules/vsnprintf-posix-tests (Files): Likewise.
23478         * modules/vsprintf-posix-tests (Files): Likewise.
23479         * modules/vasnprintf-posix-tests (Files): Likewise.
23480         * modules/vasprintf-posix-tests (Files): Likewise.
23481         * tests/test-ceilf1.c (main): Use it.
23482         * tests/test-ceill.c (main): Likewise.
23483         * tests/test-floorf1.c (main): Likewise.
23484         * tests/test-floorl.c (main): Likewise.
23485         * tests/test-frexp.c (main): Likewise.
23486         * tests/test-frexpl.c (main): Likewise.
23487         * tests/test-isnan.c (main): Likewise.
23488         * tests/test-isnand.h (main): Likewise.
23489         * tests/test-isnanf.h (main): Likewise.
23490         * tests/test-isnanl.h (main): Likewise.
23491         * tests/test-ldexpl.c (main): Likewise.
23492         * tests/test-round.c (main): Likewise.
23493         * tests/test-roundf.c (main): Likewise.
23494         * tests/test-roundl.c (main): Likewise.
23495         * tests/test-signbit.c (test_signbitf, test_signbitd)
23496         (test_signbitl): Likewise.
23497         * tests/test-snprintf-posix.h (test_function): Likewise.
23498         * tests/test-sprintf-posix.h (test_function): Likewise.
23499         * tests/test-strtod.c (main): Likewise.
23500         * tests/test-trunc1.c (main): Likewise.
23501         * tests/test-truncf1.c (main): Likewise.
23502         * tests/test-truncl.c (main): Likewise.
23503
23504         isnanl: work around icc bug
23505         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
23506
23507 2010-11-03  Eric Blake  <eblake@redhat.com>
23508
23509         tests: fix compiler warnings
23510         * tests/test-getopt.h (test_getopt): Fix condition.
23511         * tests/test-getopt_long.h (test_getopt_long): Likewise.
23512         * tests/test-pipe2.c (main): Likewise.
23513         * tests/test-quotearg-simple.c (main): Avoid icc warning.
23514
23515         utimens: fix broken m4 test
23516         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
23517
23518 2010-10-28  Bruno Haible  <bruno@clisp.org>
23519
23520         posix_spawn*, getdtablesize: Relax license.
23521         * modules/posix_spawn (License): Change to LGPLv2+.
23522         * modules/posix_spawnp (License): Likewise.
23523         * modules/posix_spawn-internal (License): Likewise.
23524         * modules/posix_spawnattr_init (License): Likewise.
23525         * modules/posix_spawnattr_getflags (License): Likewise.
23526         * modules/posix_spawnattr_setflags (License): Likewise.
23527         * modules/posix_spawnattr_getpgroup (License): Likewise.
23528         * modules/posix_spawnattr_setpgroup (License): Likewise.
23529         * modules/posix_spawnattr_getschedparam (License): Likewise.
23530         * modules/posix_spawnattr_setschedparam (License): Likewise.
23531         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
23532         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
23533         * modules/posix_spawnattr_getsigdefault (License): Likewise.
23534         * modules/posix_spawnattr_setsigdefault (License): Likewise.
23535         * modules/posix_spawnattr_getsigmask (License): Likewise.
23536         * modules/posix_spawnattr_setsigmask (License): Likewise.
23537         * modules/posix_spawnattr_destroy (License): Likewise.
23538         * modules/posix_spawn_file_actions_init (License): Likewise.
23539         * modules/posix_spawn_file_actions_addclose (License): Likewise.
23540         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
23541         * modules/posix_spawn_file_actions_addopen (License): Likewise.
23542         * modules/posix_spawn_file_actions_destroy (License): Likewise.
23543         * modules/getdtablesize (License): Likewise.
23544         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
23545
23546 2010-10-26  Bruno Haible  <bruno@clisp.org>
23547
23548         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
23549         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
23550         Cygwin and mingw.
23551         Suggested by Eric Blake.
23552
23553 2010-10-26  Bruno Haible  <bruno@clisp.org>
23554
23555         stdio: Work around compilation error due to renameat() on Solaris 10.
23556         * lib/stdio.in.h: Include <unistd.h> on Solaris.
23557         * lib/renameat.c: Don't include <unistd.h> here.
23558         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
23559         Reported by Paul Eggert and Eric Blake.
23560
23561 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
23562
23563         renameat: port to Solaris 10, which declares renameat in unistd.h
23564
23565         * lib/renameat.c: Include unistd.h before stdio.h, because
23566         Solaris 10 declares renameat in unistd.h.  Problem encountered
23567         when building GNU tar 1.24 on Solaris 10.
23568
23569 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
23570
23571         fdopendir: fix C89 compilation
23572         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
23573         compilers.
23574
23575 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
23576
23577         inttostr: simplify by removing unnecessary redundancy
23578         * lib/anytostr.c: Don't include verify.h.
23579         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
23580         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
23581         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
23582         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
23583         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
23584         Likewise.
23585         * modules/inttostr (Depends-on): Remove 'verify'.
23586
23587 2010-10-23  Bruno Haible  <bruno@clisp.org>
23588
23589         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
23590         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
23591         Reported by Eric Blake.
23592
23593 2010-10-23  Bruno Haible  <bruno@clisp.org>
23594
23595         Tests: Fix LOCALE_JA on MirBSD 10.
23596         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
23597         to an UTF-8 locale.
23598         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
23599         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
23600         Reported by Eric Blake.
23601
23602 2010-10-21  Bruno Haible  <bruno@clisp.org>
23603
23604         nl_langinfo test: Avoid test failure on NetBSD 5.
23605         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
23606         Reported by Eric Blake.
23607
23608 2010-10-21  Eric Blake  <eblake@redhat.com>
23609
23610         c-stack: work around libsigsegv 2.8 bug
23611         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
23612         overflow on at least PowerPC64.
23613
23614 2010-10-17  Bruno Haible  <bruno@clisp.org>
23615
23616         userspec: Drop redundant file.
23617         * modules/userspec (Files): Remove lib/inttostr.h.
23618
23619 2010-10-17  Bruno Haible  <bruno@clisp.org>
23620
23621         nl_langinfo tests: Silence some warnings.
23622         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
23623         Reported by Jim Meyering.
23624
23625 2010-10-17  Bruno Haible  <bruno@clisp.org>
23626
23627         Make use of GCC's attribute __alloc_size__.
23628         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
23629         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
23630         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
23631         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
23632         __alloc_size__.
23633         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
23634         Suggested by Jim Meyering.
23635
23636 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
23637
23638         bootstrap: anchor .gitignore entries.
23639         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
23640         with...
23641         (insert_vc_ignore): ... this new function, which prepends `/' to
23642         all .gitignore entries before passing them to
23643         insert_sorted_if_absent.
23644
23645 2010-10-16  Bruno Haible  <bruno@clisp.org>
23646
23647         nextafter: Fix configure check.
23648         * modules/nextafter (configure.ac): Correct expected prototype.
23649
23650 2010-10-16  Bruno Haible  <bruno@clisp.org>
23651
23652         termios: Update documentation.
23653         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
23654
23655 2010-10-16  Bruno Haible  <bruno@clisp.org>
23656
23657         tests: Make them compile with TinyCC.
23658         * tests/test-strstr.c (main): Remove parentheses around array
23659         initializer.
23660
23661 2010-10-15  Eric Blake  <eblake@redhat.com>
23662
23663         ignore-value: make header idempotent
23664         * lib/ignore-value.h: Add double-inclusion guards.
23665         Reported by Stefan Berger.
23666
23667 2010-10-15  Jim Meyering  <meyering@redhat.com>
23668
23669         GNUmakefile: handle "stable" target, not "major"
23670         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
23671         lists in maint.mk and announce-gen.  Without this, "make stable"
23672         would fail to ensure that $(VERSION) is up to date.
23673
23674 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
23675
23676         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
23677         & co.
23678
23679 2010-10-14  Bruno Haible  <bruno@clisp.org>
23680
23681         vasnprintf: Don't set errno to 0.
23682         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
23683         block that sets it to 0.
23684         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
23685
23686 2010-10-14  Bruno Haible  <bruno@clisp.org>
23687
23688         socketlib: Fix.
23689         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
23690         gl_PREREQ_SYS_H_WINSOCK2.
23691         Reported by Ian Beckwith <ianb@erislabs.net>.
23692
23693 2010-10-13  Jim Meyering  <meyering@redhat.com>
23694
23695         test-select-stdin.c: avoid warn_unused_result warnings
23696         * tests/test-select-stdin.c: Include "macros.h".
23697         ASSERT that read and fflush succeed.
23698
23699 2010-10-13  Jim Meyering  <meyering@redhat.com>
23700
23701         git-version-gen: do require git-VC'd files in cwd
23702         * build-aux/git-version-gen: Reject a git version string
23703         if there are no commits associated with the current directory.
23704         This avoids an unlikely false-positive (unrelated dir whose parent
23705         repository also contains a tag matching v*), as pointed out
23706         by Giuseppe Scrivano in
23707         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
23708
23709 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
23710
23711         argv-iter: omit nonconforming declaration
23712         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
23713         enum arg_iter_err declaration, which doesn't conform to C99.
23714         Solaris 10 cc warns about this.
23715
23716 2010-10-13  Eric Blake  <eblake@redhat.com>
23717
23718         termios: fix compilation on mingw
23719         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
23720         (gl_TERMIOS_H): Adjust it on mingw.
23721         * modules/termios (Makefile.am): Substitute new key.
23722         * lib/termios.in.h (includes): Make include_next conditional.
23723         * doc/posix-headers/termios.texi (termios.h): Update
23724         documentation.
23725         Reported by Daniel P. Berrange.
23726
23727 2010-10-13  Jim Meyering  <meyering@redhat.com>
23728
23729         git-version-gen: don't require that .git/ be in the current dir
23730         * build-aux/git-version-gen: Adjust this script so that it works
23731         when run from any working directory beneath the top-level .git/-
23732         containing directory.  Inspired by a patch from Giuseppe Scrivano,
23733         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
23734
23735         test-select: avoid warn_unused_result warnings
23736         * tests/test-select.c: Include "macros.h".
23737         ASSERT that each call to read, write, and pipe succeeds.
23738         While not technically required, also check each "close".
23739         * modules/select-tests (Files): Add tests/macros.h.
23740
23741         test-symlinkat: remove declaration of unused local
23742         * tests/test-symlinkat.c (main): Remove unused local, "buf".
23743
23744         test-inttostr: avoid shadowing warnings
23745         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
23746         and use malloc rather than the stack for the same reason as
23747         mentioned in the comment justifying the other allocation.
23748
23749 2010-10-11  Bruno Haible  <bruno@clisp.org>
23750
23751         stdlib: Allow multiple gnulib generated replacements to coexist.
23752         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
23753         Reported by Sam Steingold <sds@gnu.org>.
23754
23755 2010-10-11  Jim Meyering  <meyering@redhat.com>
23756
23757         fix a documentation typo
23758         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
23759
23760 2010-10-11  Eric Blake  <eblake@redhat.com>
23761
23762         futimens: work around Solaris 11 bug
23763         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
23764         * tests/test-futimens.h (test_futimens): Enhance, rather than
23765         weaken test.
23766         * doc/posix-functions/futimens.texi (futimens): Document the bug.
23767
23768 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
23769
23770         Indentation.
23771         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
23772         higher-level operators more to the left.
23773
23774 2010-10-11  Jim Meyering  <meyering@redhat.com>
23775
23776         test-futimens: avoid unwarranted test failure on Solaris 5.11
23777         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
23778         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
23779         because it tries to dereference the NULL name argument.
23780
23781 2010-10-11  Bruno Haible  <bruno@clisp.org>
23782
23783         Indentation.
23784         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
23785         indentation.
23786
23787 2010-10-11  Jim Meyering  <meyering@redhat.com>
23788
23789         spawn.in.h: make indentation consistent with parentheses
23790         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
23791         Make indentation consistent with parentheses.
23792
23793 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
23794
23795         Fix mismatched parens in previous commit
23796         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
23797         parens.
23798
23799 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
23800
23801         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
23802
23803         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
23804         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
23805         * lib/malloca.c: Include "verify.h".
23806         (verify1): Remove, replacing with a verify call.
23807         * lib/relocwrapper.c (verify1): Likewise.
23808         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
23809         Likewise.
23810         * modules/malloca (Depends-on): Add 'verify'.
23811         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
23812         * modules/vasnprintf (Depends-on): Add 'verify'.
23813         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
23814         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
23815         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
23816         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
23817         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
23818         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
23819         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
23820
23821         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
23822
23823         Formerly the style was sometimes 2*X - 1, because the C standard
23824         was wrongly thought to disallow ?: in integral constant expressions.
23825         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
23826         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
23827         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
23828         * lib/stdint.in.h (_verify_intmax_size): Likewise.
23829         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
23830         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
23831         verify that time_t cannot be floating.
23832
23833 2010-10-08  Eric Blake  <eblake@redhat.com>
23834
23835         time: enforce recent POSIX ruling that time_t is integral
23836         * lib/time.in.h (__time_t_must_be_integral): Detect any
23837         problematic systems, allowing the rest of gnulib to assume POSIX.
23838
23839 2010-10-08  Jim Meyering  <meyering@redhat.com>
23840
23841         fdopendir: fix a bug on systems lacking openat and /proc support
23842         OpenBSD 4.7 is one such system.  The most noticeable effect was
23843         failure of any application making nontrivial use of fts: rm, du,
23844         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
23845           ./rm: traversal failed: `a': Bad file descriptor
23846         Debugging that, you see that even though FD 6 was closed just
23847         prior to the opendir call in fd_clone_opendir, its resulting
23848         dir->dd_fd was 8, rather than the expected value of 6:
23849
23850         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
23851         93                close (fd);
23852         (gdb) n
23853         94                dir = fd_clone_opendir (dupfd);
23854         (gdb) n
23855         95                saved_errno = errno;
23856         (gdb) p dir->dd_fd
23857         $11 = 8
23858
23859         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
23860         The problem is that on OpenBSD, fd_clone_opendir has to resort
23861         to using the old-style save/restore CWD mechanism, due to its
23862         lack of openat/proc support, and *that* would steal the FD (6)
23863         that opendir was supposed to use.
23864
23865         The fix is to squirrel away the desired FD so that save_cwd uses a
23866         different one, and then free the dest FD right before calling opendir.
23867         That guarantees opendir will use the required file descriptor.
23868
23869         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
23870
23871 2010-10-08  Bruno Haible  <bruno@clisp.org>
23872
23873         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
23874         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
23875
23876 2010-10-08  Bruno Haible  <bruno@clisp.org>
23877
23878         nanosleep: Make replacement POSIX compliant.
23879         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
23880         is out of range.
23881         Reported by Jim Meyering.
23882
23883 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
23884
23885         bootstrap: add hook for altering gnulib.mk, for Bison
23886         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
23887         the Bison bootstrapping process can rewrite file names and variables
23888         in this file before later parts of 'bootstrap' use the file.
23889         Bison wants to include lib/gnulib.mk from the top-level makefile,
23890         so it needs the file names in this file to be relative to the top
23891         level, not relative to lib; plus it needs variable names to be
23892         rewritten.
23893         (slurp): Use the new function.
23894
23895         bootstrap: reformat for readability
23896         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
23897
23898 2010-10-08  Eric Blake  <eblake@redhat.com>
23899
23900         docs: update cygwin progress
23901         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
23902         1.7.7.
23903         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
23904         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
23905         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
23906         * doc/posix-functions/carg.texi (carg): Likewise.
23907         * doc/posix-functions/cargf.texi (cargf): Likewise.
23908         * doc/posix-functions/casin.texi (casin): Likewise.
23909         * doc/posix-functions/casinf.texi (casinf): Likewise.
23910         * doc/posix-functions/casinh.texi (casinh): Likewise.
23911         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
23912         * doc/posix-functions/catan.texi (catan): Likewise.
23913         * doc/posix-functions/catanf.texi (catanf): Likewise.
23914         * doc/posix-functions/catanh.texi (catanh): Likewise.
23915         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
23916         * doc/posix-functions/ccos.texi (ccos): Likewise.
23917         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
23918         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
23919         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
23920         * doc/posix-functions/cexp.texi (cexp): Likewise.
23921         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
23922         * doc/posix-functions/cimag.texi (cimag): Likewise.
23923         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
23924         * doc/posix-functions/clog.texi (clog): Likewise.
23925         * doc/posix-functions/clogf.texi (clogf): Likewise.
23926         * doc/posix-functions/conj.texi (conj): Likewise.
23927         * doc/posix-functions/conjf.texi (conjf): Likewise.
23928         * doc/posix-functions/cpow.texi (cpow): Likewise.
23929         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
23930         * doc/posix-functions/cproj.texi (cproj): Likewise.
23931         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
23932         * doc/posix-functions/creal.texi (creal): Likewise.
23933         * doc/posix-functions/crealf.texi (crealf): Likewise.
23934         * doc/posix-functions/csin.texi (csin): Likewise.
23935         * doc/posix-functions/csinf.texi (csinf): Likewise.
23936         * doc/posix-functions/csinh.texi (csinh): Likewise.
23937         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
23938         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
23939         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
23940         * doc/posix-functions/ctan.texi (ctan): Likewise.
23941         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
23942         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
23943         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
23944         * doc/posix-headers/complex.texi (complex.h): Likewise.
23945
23946 2010-10-07  Jim Meyering  <meyering@redhat.com>
23947
23948         parse-datetime: avoid compilation failure on OpenBSD 4.7
23949         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
23950         This works around a compilation failure on OpenBSD 4.7:
23951         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
23952
23953 2010-10-07  Eric Blake  <eblake@redhat.com>
23954
23955         docs: update cygwin progress
23956         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
23957         1.7.6.
23958         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
23959         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
23960         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
23961         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
23962         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
23963         Likewise.
23964         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
23965         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
23966         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
23967         Likewise.
23968         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
23969         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
23970         Likewise.
23971         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
23972         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
23973         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
23974         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
23975         Likewise.
23976         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
23977         Likewise.
23978         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
23979
23980         docs: update parse-datetime history
23981         * doc/parse-datetime.texi (Authors of parse_datetime): Better
23982         documentation of this function's history and alternatives.
23983
23984         cygwin: use more robust version check
23985         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
23986         exclude an eventual cygwin 1.9.1.
23987         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
23988         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
23989         (gl_FUNC_STRCASESTR): Likewise.
23990         Reported by Bruno Haible.
23991
23992 2010-10-06  Bruno Haible  <bruno@clisp.org>
23993
23994         string, sys_select: Avoid #including large headers unless necessary.
23995         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
23996         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
23997         OSF/1, BeOS, Haiku.
23998         Reported by Jim Meyering.
23999
24000 2010-10-05  Eric Blake  <eblake@redhat.com>
24001
24002         memmem, strstr, strcasestr: fix bug with long periodic needle
24003         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
24004         periodic needle having false positive.
24005         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
24006         and cygwin 1.7.7.
24007         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
24008         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
24009         (gl_FUNC_STRCASESTR): Likewise.
24010         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24011         * tests/test-memmem.c (main): Expose the bug.
24012         * tests/test-strcasestr.c (main): Likewise.
24013         * tests/test-strstr.c (main): Likewise.
24014         * tests/test-c-strcasestr.c (main): Likewise.
24015         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
24016         * doc/posix-functions/strstr.texi (strstr): Likewise.
24017         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
24018         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
24019
24020 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
24021
24022         parse-datetime: do some more renaming
24023         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
24024         parse_datetime, not get_date.  Mention the renaming.
24025         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
24026         in comments.
24027         * m4/bison.m4: Likewise.
24028
24029 2010-10-05  Eric Blake  <eblake@redhat.com>
24030
24031         parse-datetime: better name than get_date
24032         * NEWS: Reword the deprecation notice.
24033         * modules/get_date: Rename to modules/parse-datetime.
24034         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
24035         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
24036         * lib/get_date.y: Rename to lib/parse-datetime.y.
24037         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
24038         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
24039         * doc/getdate.texi: Provide fallback wrapper.
24040         * lib/getdate.h: Move guts, and wrap...
24041         * lib/parse-datetime.h: ...new file.
24042         * lib/parse-datetime.y (get_date): Rename...
24043         (parse_datetime): ...to this.
24044         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
24045         (gl_PARSE_DATETIME): ...to this.
24046         * doc/posix-functions/getdate.texi (get_date): Provide fallback
24047         documentation.
24048         * modules/getdate (Files): Provide fallback docs and header.
24049         (Notice, Depends-on): Update references.
24050         * tests/test-parse-datetime.c: Likewise.
24051         * DEPENDENCIES: Likewise.
24052         * MODULES.html.sh (Date and time <time.h>): Likewise.
24053         * doc/parse-datetime.texi (Date input formats)
24054         (Authors of parse_datetime): Likewise.
24055         * modules/parse-datetime (Files, configure.ac, Makefile.am)
24056         (Include): Likewise.
24057         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
24058         * gnulib-tool: Likewise.
24059         * m4/bison.m4 (gl_BISON): Likewise.
24060         Suggested by Bruno Haible.
24061
24062 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
24063
24064         more ports to Solaris tr, which needs [] around ranges
24065         * gnulib-tool: Solaris tr needs [] around ranges.
24066         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
24067         * tests/test-pipe-filter-gi1.c (main): Likewise.
24068         * tests/test-pipe-filter-ii1.c (main): Likewise.
24069
24070 2010-10-05  Eric Blake  <eblake@redhat.com>
24071
24072         bootstrap: fix Solaris regression
24073         * build-aux/bootstrap (check_versions): Solaris tr still needs []
24074         around ranges.
24075         Reported by Pádraig Brady.
24076
24077         bootstrap: work with pkg-config
24078         * build-aux/bootstrap (check_versions): Also transliterate - in
24079         prerequisite name.
24080         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
24081         prerequisites that were already found, to avoid confusion.
24082         Reported by Justin Clift.
24083
24084         faccessat: remove unused wrappers
24085         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
24086         presence of these wrappers dragged in -lgen on Solaris.
24087         Reported by Clemens Brogi; fix suggested by Paul Eggert.
24088
24089 2010-10-05  Jim Meyering  <meyering@redhat.com>
24090
24091         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
24092         * Makefile (sc_pragma_columns): New syntax-check rule.
24093
24094 2010-10-04  Bruno Haible  <bruno@clisp.org>
24095
24096         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
24097         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
24098         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
24099         Reported by Bruce Korb and Eric Blake.
24100
24101 2010-10-04  Bruno Haible  <bruno@clisp.org>
24102
24103         threadlib: Make option --with-libpth-prefix work.
24104         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
24105         use $LIBPTH, not just -lpth.
24106
24107 2010-10-04  Bruno Haible  <bruno@clisp.org>
24108
24109         Avoid line length limitation from HP NonStop system header files.
24110         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
24111         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
24112         * lib/ctype.in.h: Likewise.
24113         * lib/dirent.in.h: Likewise.
24114         * lib/errno.in.h: Likewise.
24115         * lib/fcntl.in.h: Likewise.
24116         * lib/float.in.h: Likewise.
24117         * lib/getopt.in.h: Likewise.
24118         * lib/iconv.in.h: Likewise.
24119         * lib/inttypes.in.h: Likewise.
24120         * lib/langinfo.in.h: Likewise.
24121         * lib/locale.in.h: Likewise.
24122         * lib/math.in.h: Likewise.
24123         * lib/netdb.in.h: Likewise.
24124         * lib/netinet_in.in.h: Likewise.
24125         * lib/poll.in.h: Likewise.
24126         * lib/pthread.in.h: Likewise.
24127         * lib/pty.in.h: Likewise.
24128         * lib/sched.in.h: Likewise.
24129         * lib/se-selinux.in.h: Likewise.
24130         * lib/search.in.h: Likewise.
24131         * lib/signal.in.h: Likewise.
24132         * lib/spawn.in.h: Likewise.
24133         * lib/stdarg.in.h: Likewise.
24134         * lib/stddef.in.h: Likewise.
24135         * lib/stdint.in.h: Likewise.
24136         * lib/stdio.in.h: Likewise.
24137         * lib/stdlib.in.h: Likewise.
24138         * lib/string.in.h: Likewise.
24139         * lib/strings.in.h: Likewise.
24140         * lib/sys_file.in.h: Likewise.
24141         * lib/sys_ioctl.in.h: Likewise.
24142         * lib/sys_select.in.h: Likewise.
24143         * lib/sys_socket.in.h: Likewise.
24144         * lib/sys_stat.in.h: Likewise.
24145         * lib/sys_time.in.h: Likewise.
24146         * lib/sys_times.in.h: Likewise.
24147         * lib/sys_utsname.in.h: Likewise.
24148         * lib/sys_wait.in.h: Likewise.
24149         * lib/sysexits.in.h: Likewise.
24150         * lib/termios.in.h: Likewise.
24151         * lib/time.in.h: Likewise.
24152         * lib/unistd.in.h: Likewise.
24153         * lib/wchar.in.h: Likewise.
24154         * lib/wctype.in.h: Likewise.
24155         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
24156         * modules/ctype (Makefile.am): Likewise.
24157         * modules/dirent (Makefile.am): Likewise.
24158         * modules/errno (Makefile.am): Likewise.
24159         * modules/fcntl-h (Makefile.am): Likewise.
24160         * modules/float (Makefile.am): Likewise.
24161         * modules/getopt-posix (Makefile.am): Likewise.
24162         * modules/iconv-h (Makefile.am): Likewise.
24163         * modules/inttypes (Makefile.am): Likewise.
24164         * modules/langinfo (Makefile.am): Likewise.
24165         * modules/locale (Makefile.am): Likewise.
24166         * modules/math (Makefile.am): Likewise.
24167         * modules/netdb (Makefile.am): Likewise.
24168         * modules/netinet_in (Makefile.am): Likewise.
24169         * modules/poll-h (Makefile.am): Likewise.
24170         * modules/pthread (Makefile.am): Likewise.
24171         * modules/pty (Makefile.am): Likewise.
24172         * modules/sched (Makefile.am): Likewise.
24173         * modules/search (Makefile.am): Likewise.
24174         * modules/selinux-h (Makefile.am): Likewise.
24175         * modules/signal (Makefile.am): Likewise.
24176         * modules/spawn (Makefile.am): Likewise.
24177         * modules/stdarg (Makefile.am): Likewise.
24178         * modules/stddef (Makefile.am): Likewise.
24179         * modules/stdint (Makefile.am): Likewise.
24180         * modules/stdio (Makefile.am): Likewise.
24181         * modules/stdlib (Makefile.am): Likewise.
24182         * modules/string (Makefile.am): Likewise.
24183         * modules/strings (Makefile.am): Likewise.
24184         * modules/sys_file (Makefile.am): Likewise.
24185         * modules/sys_ioctl (Makefile.am): Likewise.
24186         * modules/sys_select (Makefile.am): Likewise.
24187         * modules/sys_socket (Makefile.am): Likewise.
24188         * modules/sys_stat (Makefile.am): Likewise.
24189         * modules/sys_time (Makefile.am): Likewise.
24190         * modules/sys_times (Makefile.am): Likewise.
24191         * modules/sys_utsname (Makefile.am): Likewise.
24192         * modules/sys_wait (Makefile.am): Likewise.
24193         * modules/sysexits (Makefile.am): Likewise.
24194         * modules/termios (Makefile.am): Likewise.
24195         * modules/time (Makefile.am): Likewise.
24196         * modules/unistd (Makefile.am): Likewise.
24197         * modules/wchar (Makefile.am): Likewise.
24198         * modules/wctype (Makefile.am): Likewise.
24199
24200 2010-10-04  Bruno Haible  <bruno@clisp.org>
24201
24202         read-file tests: Avoid a test failure on NonStop Kernel.
24203         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
24204         a regular file.
24205         Reported by Joachim Schmitz <schmitz@hp.com>.
24206
24207 2010-10-03  Bruno Haible  <bruno@clisp.org>
24208
24209         gnulib-tool: Fixes for --create-testdir with --libtool.
24210         * gnulib-tool (func_get_automake_snippet): Don't augment
24211         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
24212         an executable.
24213         (func_create_testdir): Handle module 'alloca' like func_import.
24214         Reported by Bruce Korb <bruce.korb@gmail.com>.
24215
24216 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
24217
24218         Avoid some lines longer than 80 characters.
24219         * lib/stdint.in.h: Break long comment lines.
24220         * lib/math.in.h: Likewise.
24221         (_GL_NUM_UINT_WORDS): New macro, for readability.
24222         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
24223         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
24224         * lib/stdlib.in.h: Likewise.
24225         * lib/spawn.in.h: Likewise.
24226         * lib/sys_socket.in.h: Update an URL.
24227         * lib/sys_stat.in.h: Break long line.
24228
24229 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
24230
24231         Improve pmccabe2html.
24232         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
24233         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
24234         when the sources change. Remove the line in the HTML about "Used
24235         ranges" (which implied that there might be other unused ranges),
24236         rename "Resume" to "Summary" (easier to understand for more users).
24237         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
24238         styles, and some unnecessary blank lines.
24239
24240 2010-10-03  Bruno Haible  <bruno@clisp.org>
24241             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
24242
24243         acl: Add support for ACLs on NonStop Kernel.
24244         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
24245         Check whether the function aclsort() exists.
24246         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
24247         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
24248         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24249         (acl_nontrivial [HAVE_ACLSORT]: New function.
24250         (file_has_acl): Implement for NonStop Kernel.
24251         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24252         (qset_acl): Implement for NonStop Kernel.
24253         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
24254         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24255         (main): Implement for NonStop Kernel.
24256         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
24257         Kernel. Handle this flavor.
24258         * tests/test-set-mode-acl.sh: Likewise.
24259         * tests/test-copy-acl.sh: Likewise.
24260         * tests/test-copy-file.sh: Likewise.
24261
24262 2010-10-03  Bruno Haible  <bruno@clisp.org>
24263
24264         Info about ACLs on NonStop Kernel.
24265         * doc/acl-resources.txt: Add info about NonStop Kernel.
24266         References by Joachim Schmitz <schmitz@hp.com>.
24267
24268 2010-10-02  Bruno Haible  <bruno@clisp.org>
24269
24270         Define missing EDQUOT on NonStop Kernel.
24271         * lib/errno.in.h (EDQUOT): Assign a value if missing.
24272         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
24273         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
24274         missing.
24275         * doc/posix-headers/errno.texi: Mention the NSK bug.
24276         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
24277         Reported by Joachim Schmitz <schmitz@hp.com>.
24278
24279 2010-10-02  Bruno Haible  <bruno@clisp.org>
24280
24281         Update doc for POSIX:2008.
24282         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
24283         Update URL of POSIX specification.
24284
24285 2010-10-02  Bruno Haible  <bruno@clisp.org>
24286
24287         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
24288         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
24289         from gnulib, not from Automake.
24290
24291 2010-10-02  Bruno Haible  <bruno@clisp.org>
24292
24293         New module 'system-posix'.
24294         * modules/system-posix: New file.
24295         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
24296         module is present.
24297         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
24298         GNULIB_SYSTEM_POSIX.
24299         * modules/stdlib (Depends-on): Remove sys_wait.
24300         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
24301         * doc/posix-functions/system.texi: Mention the new module.
24302         * doc/posix-headers/stdlib.texi: Likewise.
24303         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
24304         define test_sys_wait_macros to a no-op.
24305         Reported by Sam Steingold <sds@gnu.org>.
24306
24307 2010-09-30  Bruno Haible  <bruno@clisp.org>
24308
24309         More renaming from 'getdate' to 'get_date'.
24310         * doc/get_date.texi: Renamed from doc/getdate.texi.
24311         * modules/get_date (Files): Update.
24312         * MODULES.html.sh (Date and time <time.h>): Update.
24313         * DEPENDENCIES: Update.
24314         * gnulib-tool: Update comment.
24315         * m4/bison.m4 (gl_BISON): Likewise.
24316         * m4/get_date.m4 (gl_GET_DATE): Likewise.
24317
24318 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
24319
24320         bootstrap: support ACLOCAL_FLAGS during aclocal
24321         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
24322         can add additional -I dir for third-party .m4 files.
24323
24324 2010-09-30  Eric Blake  <eblake@redhat.com>
24325
24326         bootstrap: use glibtoolize on MacOS
24327         * build-aux/bootstrap (check_versions): Convert libtool into
24328         libtoolize.
24329         (tool search): Move libtool check earlier, and look for
24330         glibtoolize for MacOS.
24331         (gnulib_tool_options): Auto-add --libtool when appropriate.
24332         Reported by Justin Clift.
24333
24334         poll: fix typo that broke test on MacOS
24335         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
24336         Reported by Justin Clift.
24337
24338         getdate: rename to get_date
24339         Note: getdate.h is not renamed, to minimize client impact.
24340         * modules/getdate: Mark obsolete.  Move old contents...
24341         * modules/get_date: ...to new module name.
24342         * modules/getdate-tests: Move...
24343         * modules/get_date-tests: ...here.
24344         * m4/getdate.m4: Move...
24345         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
24346         * lib/getdate.y: Move...
24347         * lib/get_date.y: ...here.
24348         * tests/test-getdate.c: Move...
24349         * tests/test-get_date.c: ...here.
24350         * doc/posix-functions/getdate.texi (getdate): Update name.
24351         * NEWS: Mention the change.
24352
24353 2010-09-29  Bruno Haible  <bruno@clisp.org>
24354
24355         Separate the module 'waitpid' from the module 'sys_wait'.
24356         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
24357         present.
24358         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
24359         gl_MODULE_INDICATOR_FOR_TESTS.
24360         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
24361         * modules/sys_wait (Depends-on): Remove waitpid.
24362         (Makefile.am): Substitute GNULIB_WAITPID.
24363         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
24364         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
24365         signature only if the 'waitpid' module is present.
24366         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
24367         * NEWS: Mention the change.
24368         * modules/grantpt (Depends-on): Add waitpid.
24369         * modules/wait-process (Depends-on): Likewise.
24370
24371 2010-09-29  Bruno Haible  <bruno@clisp.org>
24372
24373         More tests for module 'sys_wait'.
24374         * modules/sys_wait-c++-tests: New file.
24375         * tests/test-sys_wait-c++.cc: New file.
24376         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
24377         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
24378
24379 2010-09-29  Bruno Haible  <bruno@clisp.org>
24380
24381         New module 'waitpid'.
24382         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
24383         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
24384         Don't include <process.h>.
24385         (waitpid): Declare only, using modern idiom.
24386         * m4/waitpid.m4: New file.
24387         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
24388         * modules/waitpid: New file.
24389         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
24390         (Makefile.am): Update.
24391         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
24392
24393 2010-09-28  Bruno Haible  <bruno@clisp.org>
24394
24395         poll: Assume ANSI C.
24396         * lib/poll.c (poll): Use an ANSI C declaration.
24397
24398 2010-09-28  Bruno Haible  <bruno@clisp.org>
24399
24400         poll-h: Create poll.h on all platforms.
24401         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
24402         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
24403         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
24404         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
24405         (gl_REPLACE_POLL_H): Don't set POLL_H.
24406         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
24407         * modules/poll-h (Depends-on): Add include_next.
24408         (Makefile.am): Create poll.h unconditionally. Substitute also
24409         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
24410
24411 2010-09-28  Bruno Haible  <bruno@clisp.org>
24412
24413         Tests for module 'poll-h'.
24414         * modules/poll-h-c++-tests: New file.
24415         * tests/test-poll-h-c++.cc: New file.
24416
24417         Tests for module 'poll-h'.
24418         * modules/poll-h-tests: New file.
24419         * tests/test-poll-h.c: New file.
24420
24421 2010-09-28  Bruno Haible  <bruno@clisp.org>
24422
24423         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
24424         * modules/poll-h (Depends-on): Add 'extensions'.
24425
24426 2010-09-28  Bruno Haible  <bruno@clisp.org>
24427
24428         New module 'poll-h'.
24429         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
24430         (poll): Use modern idiom.
24431         * modules/poll-h: New file.
24432         * modules/poll (Files): Remove lib/poll.in.h.
24433         (Depends-on): Add poll-h.
24434         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
24435         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
24436         * m4/poll_h.m4: New file.
24437         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
24438         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
24439         and invoke gl_REPLACE_POLL_H.
24440         * lib/poll.c: Use common idiom.
24441         * tests/test-poll.c: Likewise.
24442         * doc/posix-headers/poll.texi: Mention the poll-h module.
24443         Suggested by Eric Blake.
24444
24445 2010-09-26  Bruno Haible  <bruno@clisp.org>
24446
24447         sys_wait: Implement WSTOPSIG.
24448         * lib/sys_wait.in.h (WSTOPSIG): New macro.
24449         Reported by Simon Josefsson.
24450
24451 2010-09-26  Simon Josefsson  <simon@josefsson.org>
24452
24453         stdlib, sys_wait: Avoid compilation error on mingw.
24454         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
24455
24456 2010-09-26  Bruno Haible  <bruno@clisp.org>
24457
24458         stdlib tests: Avoid code duplication.
24459         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
24460         * modules/sys_wait-tests (Files): Likewise.
24461         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
24462         * tests/test-stdlib.c: Include test-sys_wait.h.
24463         (main): Invoke test_sys_wait_macros.
24464         * tests/test-sys_wait.c: Include test-sys_wait.h.
24465         (main): Invoke test_sys_wait_macros.
24466
24467 2010-09-25  Simon Josefsson  <simon@josefsson.org>
24468
24469         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
24470         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
24471         sure Windows sockets are working before calling getaddrinfo.
24472         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
24473         * doc/gnulib.texi (Windows sockets): Fix typo.
24474
24475 2010-09-25  Bruno Haible  <bruno@clisp.org>
24476
24477         Tests for module 'regex-quote'.
24478         * modules/regex-quote-tests: New file.
24479         * tests/test-regex-quote.c: New file.
24480
24481         New module 'regex-quote'.
24482         * lib/regex-quote.h: New file.
24483         * lib/regex-quote.c: New file.
24484         * modules/regex-quote: New file.
24485         Suggested by Reuben Thomas <rrt@sc3d.org>.
24486
24487 2010-09-24  Bruno Haible  <bruno@clisp.org>
24488
24489         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
24490         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
24491
24492 2010-09-23  Bruno Haible  <bruno@clisp.org>
24493
24494         setenv: Relax license.
24495         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
24496         Blake.
24497         Requested by Eric Blake.
24498
24499 2010-09-22  Bruno Haible  <bruno@clisp.org>
24500
24501         termios: Relax license.
24502         * modules/termios (License): Change to LGPLv2+.
24503         Requested by Eric Blake.
24504
24505 2010-09-22  Bruno Haible  <bruno@clisp.org>
24506
24507         threadlib: Allow the package to change the default to 'no'.
24508         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
24509         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
24510         Reported by Paul Eggert.
24511
24512 2010-09-22  Pádraig Brady  <P@draigbrady.com>
24513             Bruno Haible  <bruno@clisp.org>
24514
24515         Fix endless loop in mbmemcasecoll.
24516         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
24517         byte.
24518         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
24519
24520 2010-09-22  Bruno Haible  <bruno@clisp.org>
24521
24522         Tests for module 'memcoll'.
24523         * modules/memcoll-tests: New file.
24524         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
24525
24526         memcoll, xmemcoll: Clarify size vs. length.
24527         * modules/memcoll.c (memcoll0): Clarify specification.
24528         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
24529         passed to collate_error.
24530
24531 2010-09-22  Bruno Haible  <bruno@clisp.org>
24532
24533         Tests for module 'memcasecmp'.
24534         * modules/memcasecmp-tests: New file.
24535         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
24536
24537 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
24538
24539         * lib/pthread.in.h: Add split double-inclusion guard, and include
24540         system <pthread.h> if there is one.  Use @@-style as in other
24541         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
24542         pthread.h doesn't.
24543         (pthread_mutexattr_destroy, pthread_mutexattr_init):
24544         (pthread_mutexattr_settype, pthread_mutex_trylock):
24545         New static inline functions, if there's no system <pthread.h>.
24546         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
24547         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
24548         Approximate with mutexes if the system lacks spinlocks, as in
24549         MacOS.
24550         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
24551         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
24552         @@-style.  Check for spinlocks separately.
24553         (gl_PTHREAD_DEFAULTS): New macro.
24554         * modules/pthread: Redo to use a more typical style for in.h files.
24555
24556 2010-09-21  Eric Blake  <eblake@redhat.com>
24557
24558         net_if: enhance tests
24559         * tests/test-net_if.c (main): Move signature checks earlier.
24560         Print failures to stderr.
24561         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
24562         Document the bug that we do not yet fix.
24563
24564 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
24565
24566         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
24567         about gnulib, not GSS.
24568
24569 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
24570
24571         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
24572         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
24573         for Emacs.
24574         * build-aux/pmccabe2html: Make Makefile.am example code more
24575         cut-and-paste friendly.
24576
24577 2010-09-21  Simon Josefsson  <simon@josefsson.org>
24578
24579         * tests/test-net_if.c: New file.
24580         * modules/net_if-tests: New file.
24581
24582 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
24583
24584         pthread: add pthread_spin_destroy
24585         * lib/pthread.in.h (pthread_spin_destroy): New function.
24586
24587 2010-09-19  Bruno Haible  <bruno@clisp.org>
24588
24589         gnulib-tool: Fix --help output.
24590         * gnulib-tool (func_usage): Fix help message.
24591         Reported by Reuben Thomas <rrt@sc3d.org>.
24592
24593 2010-09-18  Jim Meyering  <meyering@redhat.com>
24594
24595         maint.mk: avoid unexpanded \n in two diagnostics
24596         * top/maint.mk (sc_prohibit_always_true_header_tests):
24597         Don't use a literal \n in a halt=... assignment.  It would not be
24598         expanded, and the two \n bytes would appear in the diagnostic output
24599         rather than the desired newline.  Use halt=$$(printf ... instead.
24600         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
24601
24602 2010-09-18  Bruno Haible  <bruno@clisp.org>
24603
24604         netinet_in: Doc tweak.
24605         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
24606         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
24607
24608 2010-09-18  Jim Meyering  <meyering@redhat.com>
24609
24610         init.sh: correct an outdated comment
24611         * tests/init.sh (create_exe_shims_):  s/function/alias/
24612
24613         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
24614         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
24615         a file named "*.exe" is removed between the glob expansion and the
24616         processing of that oddly named file.
24617
24618 2010-09-17  Eric Blake  <eblake@redhat.com>
24619
24620         mirbsd: add some more support
24621         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
24622         in BSD family.
24623         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
24624         devices as OpenBSD.
24625         * m4/host-os.m4 (mirbsd): Add MirBSD.
24626
24627         tests: fix unportable assumption on sys/wait.h
24628         * tests/test-sys_wait.c (main): Relax test.
24629         * tests/test-stdlib.c (main): Likewise.
24630
24631         init.sh: accomodate directory with no .exes
24632         * tests/init.sh: Accomodate directory containing only scripts.
24633
24634         tests: avoid compiler warning
24635         * tests/test-stdlib.c (main): Use the variable.
24636
24637         fdutimens, fdutimensat: update signature, again
24638         * lib/utimens.h (gl_futimens): Delete, and move signature...
24639         (fdutimens): ...here.
24640         (fdutimensat): Rearrange signature.
24641         (lutimensat): Rename variable for clarity.
24642         * lib/fdutimensat.c (fdutimensat): Update signature.
24643         * lib/utimens.c (fdutimens): Likewise.
24644         (gl_futimens): Delete.
24645         (utimens, lutimens): Update callers.
24646         * lib/futimens.c (futimens): Likewise.
24647         * tests/test-fdutimensat.c: Likewise.
24648         * tests/test-utimens.c: Likewise.
24649         * tests/test-futimens.h: Update comment.
24650         * NEWS: Mention this.
24651         Suggested by Paul Eggert.
24652
24653 2010-09-17  Bruno Haible  <bruno@clisp.org>
24654
24655         Take over the maintenance of some older macros from Autoconf.
24656         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
24657         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
24658         GNU Autoconf.
24659         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
24660         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
24661
24662 2010-09-17  Eric Blake  <eblake@redhat.com>
24663
24664         fdutimensat: drop atflag validation
24665         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
24666         with valid fd, to close a race scenario where futimens is
24667         unsupported and FILE was replaced by a symlink.
24668         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
24669         accordingly.
24670         Suggested by Paul Eggert.
24671
24672 2010-09-16  Bruno Haible  <bruno@clisp.org>
24673
24674         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
24675         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
24676
24677 2010-09-16  Bruno Haible  <bruno@clisp.org>
24678
24679         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
24680         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
24681         login_tty exists.
24682         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
24683
24684 2010-09-16  Bruno Haible  <bruno@clisp.org>
24685
24686         login_tty: Make the replacement code work on BSD systems.
24687         * lib/login_tty.c: Include <sys/ioctl.h>.
24688         (login_tty): Use ioctl TIOCSCTTY when available.
24689         * modules/login_tty (Depends-on): Add sys_ioctl.
24690         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
24691
24692 2010-09-16  Bruno Haible  <bruno@clisp.org>
24693
24694         login_tty: Stricter unit test.
24695         * modules/login_tty-tests (Depends-on): Add tcgetsid.
24696         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
24697         and tcgetsid() after login_tty.
24698         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
24699
24700 2010-09-16  Bruno Haible  <bruno@clisp.org>
24701
24702         New module 'tcgetsid'.
24703         * lib/tcgetsid.c: New file.
24704         * m4/tcgetsid.m4: New file.
24705         * modules/tcgetsid: New file.
24706         * modules/termios (Depends-on): Add c++defs, warn-on-use.
24707         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
24708         GNULIB_TCGETSID, HAVE_TCGETSID.
24709         * lib/termios.in.h: Include <sys/types.h>.
24710         (tcgetsid): New declaration.
24711         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
24712         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
24713         * doc/posix-functions/tcgetsid.texi: Mention the new module.
24714         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
24715
24716 2010-09-16  Bruno Haible  <bruno@clisp.org>
24717
24718         Tests for module 'termios'.
24719         * modules/termios-c++-tests: New file.
24720         * modules/termios-tests: New file.
24721         * tests/test-termios-c++.cc: New file.
24722         * tests/test-termios.c: New file.
24723
24724         New module 'termios'.
24725         * modules/termios: New file.
24726         * lib/termios.in.h: New file.
24727         * m4/termios_h.m4: New file.
24728         * doc/posix-headers/termios.texi: Mention the new module.
24729
24730 2010-09-16  Eric Blake  <eblake@redhat.com>
24731
24732         fdutimensat: add an atflag parameter
24733         * lib/fdutimensat.c (fdutimensat): Add new parameter.
24734         * lib/utimens.h (fdutimensat): Update prototype.
24735         * tests/test-fdutimensat.c: Adjust test to match.
24736         * NEWS: Document the change.
24737         Suggested by Paul Eggert.
24738
24739 2010-09-16  Bruno Haible  <bruno@clisp.org>
24740
24741         Fix typos in comments.
24742         * lib/striconveh.h: Fix typo in comment.
24743         * lib/login_tty.c (login_tty): Likewise.
24744
24745 2010-09-15  Bruno Haible  <bruno@clisp.org>
24746
24747         stdlib: clarify MirBSD WEXITSTATUS bug
24748         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
24749         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
24750
24751 2010-09-15  Eric Blake  <eblake@redhat.com>
24752
24753         stdlib: work around MirBSD WEXITSTATUS bug
24754         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
24755         * modules/stdlib (Depends-on): Add sys_wait.
24756         * tests/test-sys_wait.c (main): Enhance test.
24757         * tests/test-stdlib.c (main): Likewise.
24758         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
24759
24760         docs: mention MacOS issue with WEXITSTATUS(constant)
24761         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
24762         issue.
24763         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
24764
24765         strnlen: add tests
24766         * modules/strnlen-tests: New file.
24767         * tests/test-strnlen.c: Likewise.
24768
24769 2010-09-14  Bruno Haible  <bruno@clisp.org>
24770
24771         unistr/base: Avoid link errors when module 'libunistring' is also used.
24772         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
24773         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
24774         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
24775         Declare also when HAVE_LIBUNISTRING is set.
24776         Reported by Pádraig Brady <P@draigbrady.com>.
24777
24778 2010-09-14  Eric Blake  <eblake@redhat.com>
24779
24780         test-rawmemchr: make more robust
24781         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
24782         (Depends-on, configure.ac): Add needed prerequisites to use it.
24783         * modules/memchr-tests (Files, Depends-on, configure.ac):
24784         Likewise, to avoid implicit reliance on memchr module prereqs.
24785         * tests/test-memchr.c (main): Ensure proper masking.
24786         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
24787         reads.
24788
24789         memchr: detect glibc Alpha bug
24790         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
24791         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
24792         Alpha.
24793         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
24794         * tests/test-memchr.c (main): Enhance test.
24795         Reported by Nelson H. F. Beebe.
24796
24797 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
24798
24799         fts, getcwd, glob: audit for dirfd returning -1
24800         * lib/fts.c (opendir): Remove #define; no longer used.
24801         (opendirat): New arg PDIR_FD.  All callers changed.
24802         (fts_build, _opendir2): Use new opendirat to avoid the need for
24803         dirfd, or for checking whether dirfd returns a negative value.
24804         Don't use opendir; always use openat followed by fdopendir.
24805         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
24806         it.
24807         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
24808         returns -1 here.
24809         * modules/fts (Depends-on): Remove dirfd.
24810         * modules/getcwd (Depends-on): Likewise.
24811
24812 2010-09-13  Eric Blake  <eblake@redhat.com>
24813
24814         float: fix broken MirBSD header
24815         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
24816         * doc/posix-headers/float.texi (float.h): Document it.
24817
24818 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
24819
24820         fts: use O_NOFOLLOW to avoid race condition when opening a directory
24821         * lib/fts.c (opendirat): New arg extra_flags.
24822         (__opendir2): Use it to avoid following symlinks when opening
24823         a directory, if symlinks are not supposed to be followed.  See
24824         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
24825
24826         fdopendir: preserve argument fd before returning
24827         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
24828         (fdopendir_with_dup, fd_clone_opendir): New static functions.
24829         (fdopendir): Use them, arranging for FD to be open to the same
24830         directory that it was when it started.  (It might be temporarily
24831         closed while fdopendir is running, so this not thread- or
24832         signal-safe.)  Be careful to do the right thing even when file
24833         descriptors are scarce and dup fails with errno == EMFILE.  See
24834         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
24835
24836 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
24837
24838         regex: Pass the system regex if its only problem is 32-bit regoff_t.
24839         * NEWS: Document change.
24840         * m4/regex.m4: Disable test for regoff_t size.
24841
24842 2010-09-13  Jim Meyering  <meyering@redhat.com>
24843
24844         fts: don't operate on an invalid file descriptor after failed dup
24845         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
24846         negative file descriptor.
24847
24848 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
24849
24850         savedir: add streamsavedir, deprecate fdsavedir
24851         * NEWS: Mention deprecation of fdsavedir.
24852         * lib/savedir.c (streamsavedir): New extern function, whose name
24853         ends in "savedir" to be consistent with the others.  This differs
24854         from savedirstream in that it doesn't close its argument.  The
24855         next version of GNU tar will use this instead of fdsavedir, to
24856         avoid some race conditions and conserve file descriptors.
24857         (savedirstream): Reimplement as a wrapper around streamsavedir.
24858         (fdsavedir): Add a comment deprecating this function.  As far as
24859         I know, only GNU tar used it, and GNU tar doesn't need it any more.
24860         * lib/savedir.h (streamsavedir): New decl.
24861         (fdsavedir): Add a comment deprecating this.
24862
24863 2010-09-10  Bruno Haible  <bruno@clisp.org>
24864
24865         langinfo: Fix last commit.
24866         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
24867         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
24868         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24869
24870 2010-09-10  Bruno Haible  <bruno@clisp.org>
24871
24872         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
24873         * lib/progreloc.c (O_EXEC): Define fallback.
24874
24875 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
24876
24877         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
24878         * NEWS: Document recent changes to fcntl-h.
24879         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
24880         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
24881         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
24882         Similarly for O_SEARCH; this last was already true, but not documented.
24883         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
24884         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
24885         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
24886         Likewise.
24887         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
24888         is zero, not whether it is defined.
24889         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
24890         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
24891         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
24892
24893 2010-09-10  Bruno Haible  <bruno@clisp.org>
24894
24895         langinfo, nl_langinfo: Fix for IRIX 5.3.
24896         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
24897         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
24898         HAVE_LANGINFO_YESEXPR.
24899         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
24900         HAVE_LANGINFO_YESEXPR.
24901         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
24902         HAVE_LANGINFO_T_FMT_AMPM is 0.
24903         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
24904         HAVE_LANGINFO_YESEXPR is 0.
24905         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
24906         NOEXPR.
24907         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
24908         * doc/posix-functions/nl_langinfo.texi: Likewise.
24909         Reported by Eric Blake.
24910
24911 2010-09-10  Bruno Haible  <bruno@clisp.org>
24912
24913         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
24914         * doc/glibc-functions/login_tty.texi: Mention the include file problem
24915         on FreeBSD 8.0 and OpenBSD 4.6.
24916         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
24917         * m4/pty_h.m4 (gl_PTY_H): Likewise.
24918         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
24919         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
24920         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
24921         ac_includes_default.
24922         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
24923
24924 2010-09-09  Eric Blake  <eblake@redhat.com>
24925
24926         strsignal: work around NetBSD bug
24927         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
24928         * lib/string.in.h (includes): Likewise.
24929         * doc/posix-functions/strsignal.texi (strsignal): Document the
24930         bug.
24931         Reported by Nelson H. F. Beebe.
24932
24933         gnulib-tool: work with NetBSD /bin/sh
24934         * gnulib-tool (func_cache_var, func_cache_lookup_module)
24935         (func_get_description, func_get_comment, func_get_status)
24936         (func_get_notice, func_get_applicability, func_get_filelist)
24937         (func_get_dependencies, func_get_autoconf_early_snippet)
24938         (func_get_autoconf_snippet, func_get_automake_snippet)
24939         (func_get_include_directive, func_get_link_directive)
24940         (func_get_license, func_get_maintainer, func_import): Avoid
24941         shell syntax errors from parsing syntax extensions.
24942
24943 2010-09-09  Bruno Haible  <bruno@clisp.org>
24944
24945         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
24946         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
24947         a reliable way to determine whether the 'alias' command works.
24948
24949 2010-09-08  Jim Meyering  <meyering@redhat.com>
24950
24951         init.sh: penalize a set-x-impaired shell; don't disqualify it
24952         * tests/init.sh: Too many shells corrupt application stderr when
24953         you set -x, so we can't afford to disqualify them, since at least
24954         on Irix-6.5, that would disqualify all bourne shells.
24955         Instead, use a two-pass approach.
24956         On the first pass, try to find a shell that meets the stricter
24957         condition that set -x does not corrupt stderr.
24958         If no shell meets the stricter condition, retest each candidate
24959         shell, but without that extra condition.  Finally, when
24960         VERBOSE=yes is requested and set -x might cause trouble, simply
24961         issue a warning and refrain from enabling debug output.
24962
24963 2010-09-08  Eric Blake  <eblake@redhat.com>
24964
24965         unsetenv: fix OpenBSD bug
24966         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
24967         * doc/posix-functions/unsetenv.texi (unsetenv): Update
24968         documentation.
24969         Reported by Jim Meyering.
24970
24971         strtod: work around IRIX 6.5 bug
24972         * lib/strtod.c (strtod): Reparse number on shorter string if
24973         exponent parse was invalid.
24974         * tests/test-strtod.c (main): Add check for "0x1p 2".
24975         Reported by Tom G. Christensen.
24976
24977         getopt: optimize previous patch
24978         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
24979         empty variable.  Speed up awk script.
24980         Reported by Paolo Bonzini.
24981
24982 2010-09-08  Jim Meyering  <meyering@redhat.com>
24983
24984         test.sh: disqualify shells for which set -x corrupts stderr
24985         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
24986         and OpenBSD 4.7.  They make it so with "set -x", environment settings
24987         appear in stderr output.  For example, this command:
24988             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
24989         prints "P=1" on those two systems:
24990
24991 2010-09-08  Bruno Haible  <bruno@clisp.org>
24992
24993         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
24994         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
24995         commands, because some shells ignore redirections when there is an
24996         error in the command lookup.
24997         Reported by Eric Blake.
24998
24999 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
25000
25001         * lib/regex.h: Fix a mention of `regex_compile' (should be
25002         `re_compile_pattern').
25003         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
25004         (re_set_registers): Correct name of parameter in comment.
25005
25006         * doc/regex.texi: Add documentation for missing syntax flags.
25007         Remove commented-out documentation of defunct syntax option
25008         RE_NO_EMPTY_ALTS.
25009         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
25010         Add documentation of re_set_registers.
25011         Document trick to re-use a pattern buffer by setting fastmap manually.
25012         Update documentation of struct re_pattern_buffer per public members.
25013         Uncomment documentation of equivalence class operators and
25014         collating symbol operators, since they are now implemented,
25015         Explain leftmost-longest matching in relation to alternatives.
25016         Tidy documentation of substring matching.
25017         Remove POSIX documentation, which is done better in
25018         glibc, and refer the reader there. Keep BSD API documentation, as
25019         that is not readily available elsewhere.
25020
25021 2010-09-07  Eric Blake  <eblake@redhat.com>
25022
25023         getopt: handle POSIXLY_CORRECT set but not exported
25024         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
25025         export state of POSIXLY_CORRECT, due to bash set -o posix.
25026         Reported by Dustin J. Mitchell.
25027
25028 2010-09-05  Bruno Haible  <bruno@clisp.org>
25029
25030         gnulib-tool: Highlight the changed options.
25031         * gnulib-tool (func_usage): Display the --import, --add-import,
25032         --remove-import explanations in bold font.
25033
25034 2010-09-06  Karl Berry  <karl@gnu.org>
25035
25036         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
25037
25038 2010-09-05  Bruno Haible  <bruno@clisp.org>
25039
25040         uniwidth/width: Update comment.
25041         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
25042         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
25043
25044 2010-09-05  Bruno Haible  <bruno@clisp.org>
25045
25046         isinf, isnan: Relax license.
25047         * modules/isinf (License): Change from GPL to LGPL, with consent from
25048         Ben Pfaff.
25049         * modules/isnan (License): Likewise.
25050         Requested by Ludovic Courtès.
25051
25052 2010-09-04  Bruno Haible  <bruno@clisp.org>
25053
25054         gnulib-tool: Help migration from --import to --add-import or --update.
25055         * gnulib-tool: Emit a verbose error message when --import is used
25056         without any module name.
25057
25058 2010-09-04  Bruno Haible  <bruno@clisp.org>
25059
25060         Update doc about gnulib-tool.
25061         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
25062         'gnulib-tool --update' in more detail.
25063         Reported by Eric Blake.
25064
25065 2010-09-04  Bruno Haible  <bruno@clisp.org>
25066
25067         gnulib-tool: Change --import. New options --add/remove-import.
25068         * gnulib-tool: New options --add-import, --remove-import.
25069         (func_usage): Document them.
25070         (have_associative): Define always.
25071         (func_import): In import mode, don't merge the specified settings with
25072         the cached settings. Implement remove-import mode.
25073         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
25074         Explain when to use them versus --import.
25075         (Simple update): Use --add-import instead of --import.
25076         * NEWS: Mention the change.
25077
25078 2010-09-04  Bruno Haible  <bruno@clisp.org>
25079
25080         * doc/gnulib-tool.texi (Initial import): Update paragraph about
25081         separate gnulib.mk.
25082
25083 2010-09-04  Bruno Haible  <bruno@clisp.org>
25084
25085         gnulib-tool: Don't talk about CVS any more.
25086         * gnulib-tool (func_usage, func_import): Write "version control"
25087         instead of CVS.
25088
25089 2010-09-04  Jim Meyering  <meyering@redhat.com>
25090
25091         maint.mk: avoid obscure sc_copyright_check failure in coreutils
25092         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
25093         false positives (whose names may be ill-chosen) when searching
25094         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
25095         would cause a false-positive.
25096
25097         avoid coreutils "make distcheck" failure
25098         Coreutils tests with an absolute build directory name that contains
25099         a space.  Not quoting this directory name caused a failure.
25100         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
25101         * tests/test-vc-list-files-cvs.sh: Likewise.
25102
25103 2010-09-04  Bruno Haible  <bruno@clisp.org>
25104
25105         gnulib-tool: Avoid error when run in a package without Makefile.am.
25106         * gnulib-tool: When collecting the m4dirs in a package that does not
25107         have a Makefile.am, eliminate those directories that contain no
25108         gnulib-cache.m4. Fix expression that counts these directories.
25109
25110 2010-09-04  Bruno Haible  <bruno@clisp.org>
25111
25112         update-copyright test: Improve output when perl is missing or too old.
25113         * tests/test-update-copyright.sh: Move test of Perl version down after
25114         the test whether Perl exists. Provide an explanation relating Perl's
25115         error message to Automake's SKIP: message.
25116
25117 2010-09-04  Bruno Haible  <bruno@clisp.org>
25118
25119         Don't augment PATH in TESTS_ENVIRONMENT.
25120         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
25121         set abs_aux_dir instead of augmenting PATH.
25122         * modules/vc-list-files-tests (Makefile.am): Likewise.
25123         * tests/test-update-copyright.sh: Augment PATH here.
25124         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
25125         path_prepend_.
25126         * tests/test-vc-list-files-git.sh: Likewise.
25127
25128 2010-09-04  Jim Meyering  <meyering@redhat.com>
25129
25130         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
25131         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
25132
25133 2010-09-04  Bruno Haible  <bruno@clisp.org>
25134
25135         strdup: Fix compilation error in C++ mode.
25136         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
25137         the macro.
25138
25139 2010-09-04  Bruno Haible  <bruno@clisp.org>
25140
25141         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
25142         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
25143         macro into a function.
25144         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25145
25146 2010-09-04  Bruno Haible  <bruno@clisp.org>
25147
25148         Set PATH_SEPARATOR the same way autoconf does.
25149         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
25150         the value of PATH_SEPARATOR the same way autoconf-generated configure
25151         scripts do.
25152         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
25153         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
25154
25155 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
25156
25157         Set PATH_SEPARATOR the same way autoconf does.
25158         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
25159         the same way autoconf-generated configure scripts do.
25160         * posix-modules: Likewise.
25161
25162 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
25163
25164         hash: fix safe_hasher const typo
25165         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
25166         const; otherwise, there is a type error later.
25167
25168 2010-09-02  Jim Meyering  <meyering@redhat.com>
25169
25170         test-update-copyright.sh: require perl 5.8.0
25171         * tests/test-update-copyright.sh: Require 5.8.0,
25172         which Tom G. Christensen has confirmed is adequate,
25173         while 5.6.1 is not.
25174
25175 2010-09-02  Eric Blake  <eblake@redhat.com>
25176
25177         tests: init.sh improvements for re-exec'ing with zsh
25178         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
25179         -vx through shell re-exec.
25180         Reported by Tom G. Christensen.
25181
25182         wctype: fix typo in previous commit
25183         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
25184         Reported by Ludovic Courtès.
25185
25186 2010-09-02  Jim Meyering  <meyering@redhat.com>
25187
25188         test-update-copyright.sh: skip test if Perl is too old
25189         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
25190         Reported by Tom G. Christensen.
25191
25192 2010-09-02  Bruno Haible  <bruno@clisp.org>
25193
25194         wctype: Avoid compilation error on IRIX 6.5.30.
25195         * lib/wctype.in.h (iswblank): Declare with a replacement if
25196         REPLACE_ISWBLANK is set.
25197         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
25198         declared. Set REPLACE_ISWBLANK.
25199         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
25200         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
25201         * doc/posix-headers/wctype.texi: Likewise.
25202         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25203
25204 2010-09-01  Bruno Haible  <bruno@clisp.org>
25205
25206         New module 'socketlib'.
25207         * modules/socketlib: New file.
25208         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
25209         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
25210         * modules/sockets (Depends-on): Add socketlib.
25211         Suggested by Sam Steingold <sds@gnu.org>.
25212
25213 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
25214
25215         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
25216
25217         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
25218         when one needs search access to a directory but not read access.
25219         On systems where it is available, it works in some cases where
25220         O_RDONLY does not, namely on directories that are searchable but
25221         not readable, and which need only to be searchable.  If O_SEARCH
25222         is not available, fall back to the traditional method of using
25223         O_RDONLY.
25224
25225         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
25226         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
25227         when opening a directory that needs only to be searchable.
25228         * lib/chdir-safer.c (chdir_no_follow): Likewise.
25229         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
25230         * lib/openat-proc.c (openat_proc_name): Likewise.
25231         * lib/openat.c (openat_needs_fchdir): Likewise.
25232         * lib/save-cwd.c (save_cwd): Likewise.
25233         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
25234
25235 2010-08-28  Bruno Haible  <bruno@clisp.org>
25236
25237         New module 'host-cpu-c-abi'.
25238         * modules/host-cpu-c-abi: New file.
25239         * m4/host-cpu-c-abi.m4: New file, based on part of
25240         clisp/src/m4/general.m4.
25241         Requested by Sam Steingold <sds@gnu.org>.
25242
25243 2010-08-31  Eric Blake  <eblake@redhat.com>
25244         and Jim Meyering  <meyering@redhat.com>
25245
25246         hash: factor, and guard against misbehaving hasher function
25247         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
25248         of table->hasher's return value.  Also protect against a hash value
25249         so large that adding it to table->bucket results in a NULL pointer.
25250         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
25251         Use it in place of open-coded check-and-abort.
25252
25253 2010-08-30  Bruno Haible  <bruno@clisp.org>
25254
25255         hash: silence spurious clang warning
25256         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
25257         Reported by Eric Blake.
25258
25259 2010-08-30  Eric Blake  <eblake@redhat.com>
25260
25261         strstr, memmem, strcasestr: avoid leaked shell message
25262         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
25263         FreeBSD.
25264         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25265         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25266
25267         tests: silence clang warning
25268         * tests/test-malloca.c (do_allocation): Avoid dead store.
25269
25270 2010-08-29  Bruno Haible  <bruno@clisp.org>
25271
25272         gettext: Fix recent mistake.
25273         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
25274
25275 2010-08-29  Bruno Haible  <bruno@clisp.org>
25276
25277         selinux-h: Offer a --without-selinux option.
25278         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
25279         --without-selinux was specified, skip all tests and define
25280         HAVE_SELINUX_SELINUX_H to 0.
25281         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
25282         set LIB_SELINUX to empty.
25283         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
25284         gl_LIBSELINUX. If --without-selinux was specified, replace
25285         selinux/context.h.
25286         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
25287
25288 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25289             Bruno Haible  <bruno@clisp.org>
25290
25291         Make the module 'realloc-gnu' work again on AIX and OSF/1.
25292         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
25293         of HAVE_REALLOC.
25294         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
25295         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
25296         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
25297         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
25298
25299 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25300             Bruno Haible  <bruno@clisp.org>
25301
25302         Make the module 'calloc-gnu' work again on AIX and OSF/1.
25303         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
25304         HAVE_CALLOC.
25305         * lib/xmalloc.c: Update accordingly.
25306         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
25307         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
25308         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
25309
25310 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25311             Bruno Haible  <bruno@clisp.org>
25312
25313         Make the module 'malloc-gnu' work again on AIX and OSF/1.
25314         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
25315         HAVE_MALLOC.
25316         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
25317         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
25318         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
25319
25320 2010-08-29  Bruno Haible  <bruno@clisp.org>
25321
25322         Update modules list.
25323         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
25324         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
25325         (String handling <string.h>): Add astrxfrm.
25326         (File system functions): Add readlinkat.
25327
25328 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25329
25330         Tests for module 'realloc-gnu'.
25331         * modules/realloc-gnu-tests: New file.
25332         * tests/test-realloc-gnu.c: New file.
25333
25334         Tests for module 'calloc-gnu'.
25335         * modules/calloc-gnu-tests: New file.
25336         * tests/test-calloc-gnu.c: New file.
25337
25338         Tests for module 'malloc-gnu'.
25339         * modules/malloc-gnu-tests: New file.
25340         * tests/test-malloc-gnu.c: New file.
25341
25342 2010-08-28  Bruno Haible  <bruno@clisp.org>
25343
25344         Rename module 'realloc' -> 'realloc-gnu'.
25345         * modules/realloc-gnu: New file, copied from modules/realloc.
25346         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
25347         obsolete.
25348         * modules/mgetgroups (Depends-on): Update.
25349         * doc/posix-functions/realloc.texi: Update.
25350         * NEWS: Mention the change.
25351
25352         Rename module 'calloc' -> 'calloc-gnu'.
25353         * modules/calloc-gnu: New file, copied from modules/calloc.
25354         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
25355         obsolete.
25356         * doc/posix-functions/calloc.texi: Update.
25357         * NEWS: Mention the change.
25358
25359         Rename module 'malloc' -> 'malloc-gnu'.
25360         * modules/malloc-gnu: New file, copied from modules/malloc.
25361         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
25362         obsolete.
25363         * modules/argp (Depends-on): Update.
25364         * modules/regex (Depends-on): Update.
25365         * doc/posix-functions/malloc.texi: Update.
25366         * NEWS: Mention the change.
25367
25368 2010-08-28  Eric Blake  <eblake@redhat.com>
25369
25370         pread, pwrite: add missing dependency
25371         * modules/pread (Depends-on): Add extensions.
25372         * modules/pwrite (Depends-on): Likewise.
25373
25374 2010-08-28  Bruno Haible  <bruno@clisp.org>
25375
25376         unistr/u*-strchr: Fix tests dependencies.
25377         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
25378         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
25379         Reported by Ian Beckwith <ianb@erislabs.net>.
25380
25381 2010-08-28  Bruno Haible  <bruno@clisp.org>
25382
25383         read-file: Don't occupy too much unused memory.
25384         * lib/read-file.c (fread_file): Shrink the buffer at the end.
25385
25386 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
25387             Eric Blake  <eblake@redhat.com>
25388             Bruno Haible  <bruno@clisp.org>
25389
25390         read-file: Avoid memory reallocations with regular files.
25391         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
25392         (fread_file): With regular files, use the remaining length as the
25393         initial buffer size.  Check against overflow.
25394         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
25395         sys_stat.
25396
25397 2010-08-28  Bruno Haible  <bruno@clisp.org>
25398
25399         ftello: Relax license.
25400         * modules/ftello (License): Relax to LGPLv2+.
25401         Reported by Eric Blake.
25402
25403 2010-08-28  Bruno Haible  <bruno@clisp.org>
25404
25405         Avoid relocwrapper link errors due to gnulib replacement functions.
25406         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
25407         function.
25408         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25409
25410 2010-08-28  Bruno Haible  <bruno@clisp.org>
25411
25412         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
25413         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
25414         defined.
25415         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
25416         Suggested by Eric Blake.
25417
25418 2010-08-28  Bruno Haible  <bruno@clisp.org>
25419
25420         sys_socket, netdb: Ensure socklen_t gets defined.
25421         * modules/sys_socket (Depends-on): Add socklen.
25422         * modules/netdb (Depends-on): Likewise.
25423         * modules/getaddrinfo (Depends-on): Remove socklen.
25424         * modules/getsockopt (Depends-on): Likewise.
25425         * modules/setsockopt (Depends-on): Likewise.
25426         * tests/test-sys_socket.c: Check that socklen_t is defined.
25427         * tests/test-netdb.c: Likewise.
25428         * m4/socklen.m4: Update comments.
25429         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25430
25431 2010-08-27  Eric Blake  <eblake@redhat.com>
25432
25433         login_tty: add missing dependency
25434         * modules/login_tty (Depends-on): Add pty.
25435
25436 2010-08-26  Eric Blake  <eblake@redhat.com>
25437
25438         lib-symbol-versions: fix m4 quoting
25439         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
25440         format for AC_LINK_IFELSE.
25441
25442         glob: fix compile test
25443         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
25444
25445         btowc: fix missing file
25446         * modules/btowc (Files): Also ship locale-fr.m4.
25447
25448         lseek: fix link test
25449         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
25450         AC_LINK_IFELSE.
25451
25452         include_next: silence autoconf 2.68 warning
25453         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
25454         AC_COMPILE_IFELSE as special.
25455         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
25456         autoconf < 2.68.
25457
25458         acl: fix compilation test
25459         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
25460         AC_COMPILE_IFELSE.
25461
25462 2010-08-26  Bruno Haible  <bruno@clisp.org>
25463
25464         Modernize AC_TRY_RUN invocations.
25465         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
25466         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
25467         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
25468         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
25469         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
25470         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
25471         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
25472         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
25473         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
25474         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
25475         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
25476         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
25477         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
25478         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
25479         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
25480         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
25481         gl_MBRLEN_NUL_RETVAL): Likewise.
25482         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
25483         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
25484         Likewise.
25485         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
25486         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
25487         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
25488         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
25489         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
25490         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
25491         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
25492         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
25493         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
25494         Likewise.
25495         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
25496         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
25497         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
25498         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
25499         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
25500         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
25501         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
25502         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
25503         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
25504         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
25505
25506 2010-08-26  Bruno Haible  <bruno@clisp.org>
25507
25508         Modernize AC_TRY_LINK invocations.
25509         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
25510         AC_TRY_LINK.
25511         * m4/argp.m4 (gl_ARGP): Likewise.
25512         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
25513         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
25514         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
25515         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
25516         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
25517         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
25518         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
25519         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
25520         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
25521         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
25522         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
25523         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
25524         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
25525         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
25526         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
25527         * m4/hostent.m4 (gl_HOSTENT): Likewise.
25528         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
25529         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
25530         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
25531         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
25532         Likewise.
25533         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
25534         Likewise.
25535         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
25536         Likewise.
25537         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
25538         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
25539         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
25540         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
25541         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
25542         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
25543         * m4/servent.m4 (gl_SERVENT): Likewise.
25544         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
25545         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
25546         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
25547         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
25548         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
25549         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
25550         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
25551         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
25552         * modules/tsearch-tests (configure.ac): Likewise.
25553
25554 2010-08-26  Bruno Haible  <bruno@clisp.org>
25555
25556         Modernize AC_TRY_COMPILE invocations.
25557         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
25558         AC_TRY_COMPILE.
25559         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
25560         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
25561         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
25562         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
25563         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
25564         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
25565         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
25566         * m4/lock.m4 (gl_LOCK): Likewise.
25567         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
25568         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
25569         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
25570         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
25571         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
25572         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
25573         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
25574         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
25575         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
25576         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
25577         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
25578         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
25579         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
25580         extraneous semicolon.
25581
25582 2010-08-26  Jim Meyering  <meyering@redhat.com>
25583
25584         stat-time: relax license LGPL
25585         * modules/stat-time (License): Change from GPL to LGPL,
25586         with consent from all contributors, for use in libguile.
25587         Requested by Ludovic Courtès.
25588
25589 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
25590
25591         poll: return immediately on POLLHUP.
25592         * lib/poll.c (poll): Always set timeout before wait_timeout is
25593         computed.
25594
25595 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25596
25597         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
25598         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
25599         rmdir ("dir/.//"), unlinkat.
25600
25601 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
25602
25603         stdbool: avoid spurious failure with modern xlc
25604         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
25605
25606 2010-08-24  Bruno Haible  <bruno@clisp.org>
25607
25608         getloadavg: simplify code
25609         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
25610         gl_have_func. Update comments.
25611
25612 2010-08-24  Eric Blake  <eblake@redhat.com>
25613
25614         getloadavg: don't define SVR4 on cygwin
25615         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
25616         only define SVR4 when -lkvm is required.
25617         Reported by Yaakov Selkowitz.
25618
25619 2010-08-24  Bruno Haible  <bruno@clisp.org>
25620
25621         priv-set: fix comment
25622         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
25623
25624 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
25625
25626         priv-set: fix comments
25627         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
25628         to match code, as suggested by David Bartley in:
25629         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
25630
25631 2010-08-23  Eric Blake  <eblake@redhat.com>
25632
25633         stdbool: avoid rejecting clang
25634         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
25635         * tests/test-stdbool.c: Enable more tests if using the system
25636         <stdbool.h> instead of the gnulib replacement.
25637         (main): Move xlc bug test to a runtime test for all compilers.
25638         Reported by Anders Kaseorg.
25639
25640         argz: fix shell quoting issue
25641         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
25642         Reported by Charles Wilson.
25643
25644 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
25645             Erik Faye-Lund <kusmabite@gmail.com>
25646
25647         poll, select: handle ERROR_BROKEN_PIPE.
25648         * lib/poll.c (win32_compute_revents): Return POLLHUP when
25649         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
25650         * lib/select.c (win32_compute_revents): Do not mark a pipe
25651         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
25652
25653 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
25654
25655         fts: allow compilation with C++
25656         * lib/fts_.h: Specify extern "C" linkage with C++.
25657
25658 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25659
25660         Fix gnulib-tool sed script de-commentation for AIX sed.
25661         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
25662         sed.
25663
25664 2010-08-17  Eric Blake  <eblake@redhat.com>
25665
25666         test-stddef: test for (some) offsetof bugs
25667         * tests/test-stddef.c: Enhance test to ensure correct type of
25668         offsetof.
25669         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
25670         that we are not fixing at this time.
25671
25672 2010-08-15  Bruno Haible  <bruno@clisp.org>
25673
25674         stpncpy: Allow stpncpy to be defined as a macro.
25675         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
25676         if it's already correctly declared.
25677         * lib/string.in.h (stpncpy): Undefine before redefining.
25678         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
25679
25680 2010-08-14  Bruno Haible  <bruno@clisp.org>
25681
25682         Rename module 'memxfrm' to 'amemxfrm'.
25683         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
25684         (amemxfrm): Renamed from memxfrm.
25685         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
25686         (amemxfrm): Renamed from memxfrm.
25687         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
25688         * NEWS: Mention the change.
25689         * MODULES.html.sh (String handling <string.h>): Update.
25690         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
25691         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
25692         * lib/unicase/u16-casexfrm.c: Likewise.
25693         * lib/unicase/u32-casexfrm.c: Likewise.
25694         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
25695         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
25696         * lib/uninorm/u16-normxfrm.c: Likewise.
25697         * lib/uninorm/u32-normxfrm.c: Likewise.
25698         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
25699         memxfrm.
25700         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
25701         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
25702         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
25703         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
25704         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
25705         Suggested by Paul Eggert.
25706
25707 2010-08-14  Bruno Haible  <bruno@clisp.org>
25708
25709         Tests for module 'astrxfrm'.
25710         * modules/astrxfrm-tests: New file.
25711         * tests/test-astrxfrm.c: New file.
25712
25713         New module 'astrxfrm'.
25714         * lib/astrxfrm.h: New file.
25715         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
25716         * modules/astrxfrm: New file.
25717
25718 2010-08-14  Reuben Thomas <rrt@sc3d.org>
25719
25720         regex: Tweak doc.
25721         * doc/regex.texi (Overview): Don't mention regex.c.
25722         (GNU Regular Expression Compiling): Likewise.
25723         (Match-end-of-line Operator): Mention 'not_eol'.
25724
25725 2010-08-14  Brian Gough  <bjg@gnu.org>
25726             Bruno Haible  <bruno@clisp.org>
25727
25728         git-merge-changelog: add doc relating to use with bzr and hg.
25729         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
25730
25731 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
25732
25733         pthread: fix pthread.h creation for srcdir != builddir
25734         * modules/pthread (Makefile.am): Fix the rule to work also in a
25735         non-srcdir build.
25736
25737 2010-08-13  Karl Berry  <karl@gnu.org>
25738
25739         * doc/regex.texi (Predefined Syntaxes): @smallexample.
25740         * doc/posix-*/*: force line break before @url of POSIX
25741         specifications.
25742         Suggested by Werner Lemberg.
25743
25744 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
25745
25746         strtod: fix const diagnostic
25747         * lib/strtod.c (strtod): Don't assign const char * to char *,
25748         as this elicits a warning from GCC when warnings are enabled.
25749
25750 2010-08-10  Pádraig Brady <P@draigbrady.com>
25751         and Eric Blake  <eblake@redhat.com>
25752
25753         copy-acl: ignore ENOTSUP on HP-UX
25754         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
25755         so that it is available for HP-UX.
25756         * lib/copy-acl.c (qcopy_acl): Use it.
25757         Reported by Patrick M. Callahan.
25758
25759 2010-08-10  Eric Blake  <eblake@redhat.com>
25760
25761         open, chown: relax license
25762         * modules/open (License): Change to LGPLv2+, with consent by all
25763         authors, for use in augeas.
25764         * modules/chown (License): Likewise.
25765         * modules/lchown (Likewise): Likewise.
25766         Requested by Adam Stokes.
25767
25768 2010-08-09  Karl Berry  <karl@gnu.org>
25769
25770         * build-aux/ar-lib: new file, import from Automake.
25771         * config/srclist.txt: autocheck for updates.
25772
25773 2010-08-09  Eric Blake  <eblake@redhat.com>
25774
25775         readlinkat: adjust client modules
25776         * modules/areadlinkat (Depends-on): Use readlinkat, not
25777         symlinkat.
25778         * modules/areadlinkat-with-size (Depends-on): Likewise.
25779
25780         mknod: be more vocal about danger of running tests as root
25781         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
25782         root, since that is just asking for problems.
25783         Suggested by Bruno Haible, based on a report by Rainer Tammer.
25784
25785         readlinkat: split into its own module
25786         * modules/symlinkat: Split readlinkat...
25787         * modules/readlinkat: ...into separate module.
25788         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
25789         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
25790         * lib/symlinkat.c (readlinkat): Move...
25791         * lib/readlinkat.c: ...into new file.
25792         * modules/symlinkat-tests: Split readlinkat test...
25793         * modules/readlinkat-tests: ...into separate module.
25794         * tests/test-symlinkat.c: Split...
25795         * tests/test-readlinkat.c: ...into new file.
25796         * NEWS: Document the split.
25797         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
25798         * lib/unistd.in.h (readlinkat): Likewise.
25799         Suggested by Bruno Haible.
25800
25801 2010-08-08  Bruno Haible  <bruno@clisp.org>
25802
25803         memxfrm: Speed up.
25804         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
25805         that usually only one call to strxfrm is necessary for each string
25806         part.
25807         Reported by Paul Eggert <eggert@cs.ucla.edu>.
25808
25809 2010-08-07  Karl Berry  <karl@gnu.org>
25810
25811         * doc/posix-headers/limits.texi,
25812         * doc/posix-functions/malloc.texi,
25813         * doc/posix-functions/strsignal.texi: missing @item.
25814         * doc/ld-version-script.texi: spurious leading i.
25815         * doc/regex.texi (Interval Operators): no commas inside @var.
25816
25817 2010-08-01  Bruno Haible  <bruno@clisp.org>
25818
25819         Integrate the regex documentation.
25820         * doc/gnulib.texi: Define 'cn' index.
25821         (Regular expressions): New a chapter that includes regex.texi and
25822         regexprops-generic.texi.
25823         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
25824         syntax.
25825
25826         Whitespace cleanup.
25827         * doc/regex.texi: Remove trailing spaces.
25828
25829         Add regex documentation.
25830         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
25831         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
25832         Written by Kathy A. Hargreaves and Karl Berry.
25833
25834 2010-08-01  Bruno Haible  <bruno@clisp.org>
25835
25836         link: Update documentation.
25837         * doc/posix-functions/link.texi: Update regarding Solaris.
25838
25839 2010-07-31  Bruno Haible  <bruno@clisp.org>
25840
25841         Update modules list.
25842         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
25843         (String handling <string.h>): Add memcmp2, memxfrm.
25844         (Container data structures): Add xlist, xsublist, xoset.
25845         (Core language properties): Add alignof, unused-parameter.
25846         (Process control, Numeric conversion functions <stdlib.h>): Renamed
25847         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
25848         (Unibyte characters <ctype.h>): New section.
25849         (String handling <string.h>): New section.
25850         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
25851         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
25852         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
25853         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
25854         tan, tanh, tanl, y0, y1, yn.
25855         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
25856         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
25857         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
25858         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
25859         unlockpt, vdprintf, vdprintf-posix.
25860         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
25861         (File system functions): Add concat-filename, sys_file, sys_ioctl,
25862         xconcat-filename.
25863         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
25864         getdtablesize, pipe2, pipe2-safer.
25865         (Security): New section.
25866         (Networking functions): Add accept4.
25867         (Signal handling): Add sigpipe.
25868         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
25869         mbmemcasecoll.
25870         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
25871         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
25872         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
25873         pipe-filter-ii.
25874         (Misc): Add argp-version-etc, login_tty, parse-duration.
25875
25876 2010-07-31  Bruno Haible  <bruno@clisp.org>
25877
25878         Improve doc in MODULES.html.
25879         * modules/linkat (Description): Add the word "function".
25880         * modules/mkfifo (Description): Likewise.
25881         * modules/mknod (Description): Likewise.
25882         * modules/remove (Description): Likewise.
25883         * modules/renameat (Description): Likewise.
25884         * modules/stat (Description): Likewise.
25885         * modules/symlink (Description): Likewise.
25886         * modules/unlink (Description): Likewise.
25887
25888 2010-07-31  Bruno Haible  <bruno@clisp.org>
25889
25890         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
25891         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
25892         option --enable/disable-c++ instead of --enable/disable-cxx.
25893         * NEWS: Mention the change.
25894
25895 2010-07-31  Bruno Haible  <bruno@clisp.org>
25896
25897         readlink, areadlink: Relax test a bit.
25898         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
25899         alternative to ENOTDIR.
25900         * tests/test-areadlink.h (test_areadlink): Likewise.
25901         Reported by Rainer Tammer.
25902
25903 2010-07-31  Bruno Haible  <bruno@clisp.org>
25904
25905         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
25906         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
25907         character, perform the search using U_STRCHR.
25908         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
25909         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
25910         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
25911         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
25912         Suggested by Paolo Bonzini.
25913
25914 2010-07-31  Bruno Haible  <bruno@clisp.org>
25915
25916         unistr/u*-strstr: Fix dependencies.
25917         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
25918         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
25919         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
25920
25921 2010-07-31  Bruno Haible  <bruno@clisp.org>
25922
25923         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
25924         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
25925         the beginning of the loop.
25926         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
25927         cases in 'switch' statement.
25928
25929         unistr/u8-strchr: Fix several bugs.
25930         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
25931         the string. When not found, return NULL, not a pointer near the end.
25932
25933         More tests for unistr/u8-strchr.
25934         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
25935         that the function does not read past the first occurrence of the byte
25936         being searched.
25937         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
25938         * tests/unistr/test-u16-strchr.c (main): New function.
25939         * tests/unistr/test-u32-strchr.c (main): New function.
25940
25941 2010-07-31  Bruno Haible  <bruno@clisp.org>
25942
25943         posix-modules: Ignore backup files of documentation files.
25944         * posix-modules: grep only through files named *.texi.
25945
25946 2010-07-31  Bruno Haible  <bruno@clisp.org>
25947
25948         symlinkat: Fix documentation.
25949         * doc/posix-functions/readlinkat.texi: Fix module name.
25950
25951 2010-07-31  Bruno Haible  <bruno@clisp.org>
25952
25953         fchownat: Replace also when chown has the trailing slash bug.
25954         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
25955         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
25956         introduced on 2010-04-10.
25957         Reported by Rainer Tammer.
25958
25959 2010-07-31  Bruno Haible  <bruno@clisp.org>
25960
25961         linkat: Work around AIX 7.1 bug.
25962         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
25963         whether linkat handles trailing slash correctly. If not, replace linkat
25964         and define LINKAT_TRAILING_SLASH_BUG.
25965         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
25966         check whether (fd1,file1) points to a directory if file1 or file2 ends
25967         in a slash. Code taken from lib/link.c.
25968         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
25969         Reported by Rainer Tammer.
25970
25971 2010-07-31  Bruno Haible  <bruno@clisp.org>
25972
25973         Correctly determine whether pow is available in libc on AIX 7 with xlc.
25974         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
25975         This disables an xlc optimization that was causing wrong test results.
25976         Reported by Rainer Tammer.
25977
25978 2010-07-31  Bruno Haible  <bruno@clisp.org>
25979
25980         iconv: Work around AIX 6.1..7.1 bug.
25981         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
25982         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
25983         cross-compiling, guess no on all versions of AIX.
25984         Reported by Rainer Tammer.
25985
25986 2010-07-31  Bruno Haible  <bruno@clisp.org>
25987
25988         readlink: Relax test a bit.
25989         * tests/test-readlink.h (test_readlink): Allow different errno value
25990         when readlink is called with a file name that ends in / and refers to
25991         a file.
25992         Suggested by Eric Blake.
25993         Reported by Rainer Tammer.
25994
25995 2010-07-31  Bruno Haible  <bruno@clisp.org>
25996
25997         copysign: Does not require -lm on glibc systems.
25998         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
25999         gl_COMMON_DOUBLE_MATHFUNC.
26000         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
26001
26002 2010-07-31  Bruno Haible  <bruno@clisp.org>
26003
26004         duplocale: Work around AIX 7.1 bug.
26005         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
26006         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
26007         * lib/duplocale.c (rpl_duplocale): Update comment.
26008         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
26009         Reported by Rainer Tammer.
26010
26011 2010-07-30  Bruno Haible  <bruno@clisp.org>
26012
26013         dirfd: Avoid link error on AIX 7.1.
26014         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
26015         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
26016         exist, set REPLACE_DIRFD.
26017         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
26018         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
26019         * doc/posix-functions/dirfd.texi: Update.
26020         Reported by Rainer Tammer.
26021
26022 2010-07-30  Eric Blake  <eblake@redhat.com>
26023
26024         strtod: next round of AIX fixes
26025         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
26026         exponent.
26027         * tests/test-strtod.c (main): Enhance tests.
26028         * doc/posix-functions/strtod.texi (strtod): Document next bug.
26029         Reported by Rainer Tammer.
26030
26031         futimens: fix configure check
26032         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
26033         Reported by Bruno Haible.
26034
26035 2010-07-30  Bruno Haible  <bruno@clisp.org>
26036
26037         getline: Update regarding AIX.
26038         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
26039         Reported by Rainer Tammer.
26040
26041 2010-07-30  Bruno Haible  <bruno@clisp.org>
26042
26043         wcwidth: Drop replacement on AIX 7.
26044         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
26045         AIX 7.
26046         Reported by Rainer Tammer.
26047
26048 2010-07-30  Bruno Haible  <bruno@clisp.org>
26049
26050         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
26051         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
26052         a 'char *'.
26053         Reported by Rainer Tammer.
26054
26055 2010-07-30  Bruno Haible  <bruno@clisp.org>
26056
26057         unlink: Update regarding AIX.
26058         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
26059         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
26060         Reported by Rainer Tammer.
26061
26062 2010-07-30  Bruno Haible  <bruno@clisp.org>
26063
26064         symlink: Update regarding AIX.
26065         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
26066         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
26067         Reported by Rainer Tammer.
26068
26069 2010-07-30  Bruno Haible  <bruno@clisp.org>
26070
26071         strndup: Update regarding AIX.
26072         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
26073         AIX 7.
26074         Reported by Rainer Tammer.
26075
26076 2010-07-30  Bruno Haible  <bruno@clisp.org>
26077
26078         stat: Update regarding AIX.
26079         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
26080         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
26081         Reported by Rainer Tammer.
26082
26083 2010-07-30  Bruno Haible  <bruno@clisp.org>
26084
26085         truncl: Fix autoconf test.
26086         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
26087         whether truncl works.
26088         Reported by Rainer Tammer.
26089
26090 2010-07-30  Bruno Haible  <bruno@clisp.org>
26091
26092         round: Update regarding AIX.
26093         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
26094         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
26095         Reported by Rainer Tammer.
26096
26097 2010-07-30  Bruno Haible  <bruno@clisp.org>
26098
26099         rename: Update regarding AIX.
26100         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
26101         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
26102         Reported by Rainer Tammer.
26103
26104 2010-07-30  Bruno Haible  <bruno@clisp.org>
26105
26106         printf.m4: Update regarding AIX.
26107         * m4/printf.m4: Update comments regarding AIX.
26108         Reported by Rainer Tammer.
26109
26110 2010-07-30  Bruno Haible  <bruno@clisp.org>
26111
26112         iconv: Update regarding AIX.
26113         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
26114         AIX 7.
26115         Reported by Rainer Tammer.
26116
26117 2010-07-30  Bruno Haible  <bruno@clisp.org>
26118
26119         getopt: Update regarding AIX.
26120         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
26121         no on AIX.
26122         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
26123         Reported by Rainer Tammer.
26124
26125 2010-07-30  Bruno Haible  <bruno@clisp.org>
26126
26127         ldexpl; Update regarding AIX.
26128         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
26129         on AIX 7.
26130         Reported by Rainer Tammer.
26131
26132 2010-07-30  Bruno Haible  <bruno@clisp.org>
26133
26134         frexpl: Update regarding AIX.
26135         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
26136         on AIX 7.
26137         Reported by Rainer Tammer.
26138
26139 2010-07-30  Bruno Haible  <bruno@clisp.org>
26140
26141         open, fopen: Update regarding AIX.
26142         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
26143         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
26144         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
26145         * doc/posix-functions/fopen.texi: Likewise.
26146         Reported by Rainer Tammer.
26147
26148 2010-07-30  Bruno Haible  <bruno@clisp.org>
26149
26150         chown: Update doc regarding AIX.
26151         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
26152         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
26153         Reported by Rainer Tammer.
26154
26155 2010-07-30  Eric Blake  <eblake@redhat.com>
26156
26157         strtod: fix bug in replacement function on AIX
26158         * lib/strtod.c (strtod): Special case broken "0x" parse in
26159         underlying strtod.
26160         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
26161         * doc/posix-functions/strtod.texi (strtod): Likewise.
26162         Reported by Rainer Tammer.
26163
26164 2010-07-30  Bruno Haible  <bruno@clisp.org>
26165
26166         mbrlen: Fix cross-compilation guess for AIX.
26167         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
26168         guess. Leftover from 2008-12-22.
26169
26170 2010-07-30  Bruno Haible  <bruno@clisp.org>
26171
26172         mbrtowc: Fix cross-compilation guess for AIX.
26173         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
26174         guess. Leftover from 2008-12-21.
26175
26176 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
26177
26178         init.sh: work around trap limitation of some shells
26179         * tests/init.sh (setup_): Move exit trap outside of shell function.
26180
26181 2010-07-29  Eric Blake  <eblake@redhat.com>
26182
26183         strtod: aid debugging
26184         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
26185         understanding why strtod is rejected.
26186
26187 2010-07-28  Bruno Haible  <bruno@clisp.org>
26188
26189         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
26190         * lib/unistr/u8-chr.c: Include <string.h>.
26191         * tests/unistr/test-u8-chr.c: Likewise.
26192         * tests/unistr/test-u16-chr.c: Likewise.
26193         * tests/unistr/test-u32-chr.c: Likewise.
26194         * tests/unistr/test-u8-strchr.c: Likewise.
26195         * tests/unistr/test-u16-strchr.c: Likewise.
26196         * tests/unistr/test-u32-strchr.c: Likewise.
26197         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
26198         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
26199         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
26200         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
26201
26202 2010-07-28  Bruno Haible  <bruno@clisp.org>
26203
26204         Use spaces for indentation, not tabs.
26205         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
26206
26207 2010-07-27  Bruno Haible  <bruno@clisp.org>
26208
26209         mbspcasecmp: Fix function specification.
26210         * lib/string.in.h (mbspcasecmp): Fix specification comment.
26211         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
26212         Reported by Eric Blake <eblake@redhat.com>.
26213
26214 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
26215
26216         timespec: use cast and not conditional, as truncation isn't possible
26217         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
26218         instead of a conditional.  Comment about the situation in more detail.
26219         This undoes most of the 2009-10-29 patch.
26220
26221 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
26222
26223         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
26224         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
26225         * lib/unistr/u8-strchr.c: Likewise.
26226         * modules/unistr/u8-chr: Depend on memchr.
26227
26228         unistr/u*-strchr: add tests
26229         * modules/unistr/u8-strchr-tests: New file.
26230         * modules/unistr/u16-strchr-tests: New file.
26231         * modules/unistr/u32-strchr-tests: New file.
26232         * tests/unistr/test-strchr.h: New file.
26233         * tests/unistr/test-u8-strchr.c: New file.
26234         * tests/unistr/test-u16-strchr.c: New file.
26235         * tests/unistr/test-u32-strchr.c: New file.
26236
26237         unistr/u*-chr: test multibyte sequences more
26238         * tests/unistr/test-chr.h: Do complete testing of the characters in the
26239         test vector.
26240         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
26241         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
26242         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
26243
26244         unistr/u*-chr: test multibyte sequences
26245         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
26246
26247         unistr/u*-chr: prepare for multibyte tests
26248         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
26249         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
26250         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
26251         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
26252         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
26253         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
26254
26255 2010-07-18  Bruno Haible  <bruno@clisp.org>
26256
26257         unistr/u8-strchr: Optimize non-ASCII argument case.
26258         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
26259         because the first byte often matches anyway.
26260         Reported by Pádraig Brady <P@draigbrady.com>.
26261
26262 2010-07-15  Karl Berry  <karl@gnu.org>
26263
26264         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
26265
26266 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
26267
26268         getcwd: on Solaris, work better if ancestors are inaccessible
26269         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
26270         buffer and size, try again with a large buffer.  This works better
26271         on Solaris, since its getcwd succeeds even if the path to the root
26272         is inaccessible, and this is helpful in common cases such as .zfs
26273         hidden directories.  Problem reported by J Chapman Flack in
26274         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
26275         Use system getcwd if it's declared, not merely if it's partly
26276         working; use the partly-working test only to avoid needless effort
26277         if the system getcwd fails.
26278         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
26279         comment that was already obsolete and is now even more obsolete.
26280         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
26281         now might call strdup.
26282
26283 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
26284
26285         pthread: Add enough so that coreutils/src/sort.c compiles.
26286         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
26287         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
26288         gnulib. Include <sched.h> and <time.h>, as per POSIX.
26289         Include <sys/types.h>, in case it defines pthread_t.
26290         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
26291         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
26292         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
26293         (pthread_rwlockattr_t, pthread_spinlock_t):
26294         New typedefs, if HAVE_PTHREAD_T is not defined.
26295         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
26296         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
26297         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
26298         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
26299         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
26300         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
26301         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
26302         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
26303         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
26304         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
26305         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
26306         New macros.
26307         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
26308         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
26309         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
26310         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
26311         (pthread_spin_unlock): New dummy functions.
26312         (pthread_create): Return EAGAIN; don't set errno.
26313         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
26314         require AC_C_INLINE.
26315         * modules/pthread (Depends-on): Add sched, time.
26316         (pthread.h): Use AM_V_GEN.
26317
26318 2010-07-13  Bruno Haible  <bruno@clisp.org>
26319
26320         striconveh: Don't malloc memory if the result buffer is sufficient.
26321         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
26322         buffer if its size is sufficient.
26323         Reported by Ludovic Courtès <ludo@gnu.org>.
26324
26325 2010-07-13  Bruno Haible  <bruno@clisp.org>
26326
26327         strtod: Add safety check.
26328         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
26329
26330 2010-07-12  Bruno Haible  <bruno@clisp.org>
26331
26332         Unify tests that set gl_cv_func_ldexpl_no_libm.
26333         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
26334         gl_FUNC_LDEXPL.
26335         (gl_FUNC_LDEXPL): Invoke it.
26336         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
26337
26338 2010-07-12  Bruno Haible  <bruno@clisp.org>
26339
26340         Unify tests that set gl_cv_func_ldexp_no_libm.
26341         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
26342         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
26343         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
26344         (configure.ac): Simply invoke gl_FUNC_LDEXP.
26345         * modules/strtod (Files): Add m4/ldexp.m4.
26346
26347 2010-07-12  Bruno Haible  <bruno@clisp.org>
26348
26349         Unify tests that set gl_cv_func_frexpl_no_libm.
26350         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
26351         gl_FUNC_FREXPL_NO_LIBM.
26352         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
26353         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
26354
26355 2010-07-12  Bruno Haible  <bruno@clisp.org>
26356
26357         Unify tests that set gl_cv_func_frexp_no_libm.
26358         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
26359         gl_FUNC_FREXP_NO_LIBM.
26360         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
26361         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
26362
26363 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
26364
26365         memcoll: clarify sizes versus lengths, document better, and tweak perf
26366         * lib/memcoll.c (strcoll_loop, memcoll0):
26367         Improve quality of descriptive comments.  Name variables
26368         consistently as to whether they are lengths (which do not include
26369         terminating null) versus sizes (which do).
26370         * lib/xmemcoll.c (xmemcoll0): Likewise.
26371         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
26372         returned when s1size == 0; this is easier to compile and saves
26373         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
26374
26375 2010-07-12  Bruno Haible  <bruno@clisp.org>
26376
26377         Tests for module '_Exit'.
26378         * modules/_Exit-tests: New file.
26379         * tests/test-_Exit.sh: New file.
26380         * tests/test-_Exit.c: New file.
26381
26382         New module '_Exit'.
26383         * lib/stdlib.in.h (__attribute__): New macro.
26384         (_Exit): New declaration.
26385         * lib/_Exit.c: New file.
26386         * m4/_Exit.m4: New file.
26387         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
26388         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
26389         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
26390         * modules/_Exit: New file.
26391         * tests/test-stdlib-c++.cc (_Exit): Check signature.
26392         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
26393
26394 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
26395
26396         strtod: make it more-accurate typically, and don't require libm
26397         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
26398         Include limits.h.  Don't include string.h.
26399         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
26400         (locale_isspace): New function, so that no casts are needed to
26401         check whether *s is a space.
26402         (ldexp): Provide an unused dummy if not available.
26403         (scale_radix_exp, parse_number, underlying_strtod): New functions.
26404         (strtod): Use them.  This implementation prefers to use the
26405         underlying strtod if available, falling back on our own code
26406         only to fix known bugs.  This is more likely to produce an
26407         accurate result.  Also, it avoids the use of libm functions.
26408         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
26409         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
26410         was absent, but it caused a test failure with coreutils.
26411         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
26412         with libm.
26413         * modules/strtod (Makefile.am, Link): libm is no longer needed.
26414         * modules/strtod-tests (Makefile.am): Likewise.
26415
26416 2010-07-11  Pádraig Brady  <P@draigBrady.com>
26417             Bruno Haible  <bruno@clisp.org>
26418
26419         unistr/u8-strchr: Optimize ASCII argument case.
26420         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
26421
26422 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
26423
26424         (x)memcoll: minor tweaks
26425         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
26426         is after the type that it qualifies.
26427         (memcoll0): Likewise.
26428         * lib/memcoll.h (memcoll0): Likewise.
26429         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
26430         * lib/xmemcoll.h (xmemcoll0): Likewise.
26431         * lib/memcoll.c (memcoll0): Correct the comment.  This function
26432         differs from memcoll in that the NUL byte is part of the argument.
26433         Omit the abort-checks, as performance is a real issue here.  Plus,
26434         the checks were wrong anyway (an off-by-one error).  Omit local
26435         variable 'diff', as it's a bit clearer that way.
26436         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
26437         no longer needed.
26438
26439 2010-07-08  Chen Guo <chenguo4@yahoo.com>
26440
26441         (x)memcoll: speedup when input is known to be NUL delimited
26442         * lib/memcoll.c: Include stdlib.
26443         (memcoll0): New function.
26444         (strcoll_loop): New function, refactored for use in both memcoll
26445         and memcoll0.
26446         * lib/memcoll.h (memcoll0): Add prototype.
26447         * lib/xmemcoll.c (xmemcoll0): New function.
26448         (collate_error): New function, refactored for use in both xmemcoll
26449         and xmemcoll0.
26450         * lib/xmemcoll.h (xmemcoll0): Add prototype.
26451         * m4/memcoll.m4: add inline invocation.
26452
26453 2010-07-06  Pádraig Brady  <P@draigBrady.com>
26454
26455         * build-aux/bootstrap: Remove any local translations
26456         from the translation project synchronization directory,
26457         so that local only translations are not distributed.
26458
26459 2010-07-04  Bruno Haible  <bruno@clisp.org>
26460
26461         fsusage: Clarify which code applies to which platforms.
26462         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
26463         platform.
26464         * lib/fsusage.c (get_fs_usage): Likewise.
26465
26466 2010-07-04  Bruno Haible  <bruno@clisp.org>
26467
26468         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
26469         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
26470         Reported by Martin Lambers <marlam@marlam.de>.
26471
26472 2010-07-04  Jim Meyering  <meyering@redhat.com>
26473
26474         hash: once again explicitly disallow insertion of NULL
26475         * lib/hash.c (hash_insert0): Reinstate just-removed test:
26476         inserting a NULL pointer cannot work with these functions.
26477         Add a comment with details.
26478         This reverts part of the 2010-07-01 commit, 5bef1a35
26479         "hash: extend module to deal with non-pointer keys".
26480
26481 2010-07-01  Bruno Haible  <bruno@clisp.org>
26482
26483         stdbool: Update doc.
26484         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
26485         Info from Christian Weisgerber <naddy@mips.inka.de>.
26486
26487 2010-07-01  Jim Meyering  <meyering@redhat.com>
26488
26489         hash: extend module to deal with non-pointer keys
26490         * lib/hash.c (hash_insert0): New interface, much like hash_insert
26491         but that allows insertion of non-pointer entries.
26492         Do not disallow an ENTRY value of NULL.
26493         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
26494         * lib/hash.h (hash_insert0): Declare.
26495
26496 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
26497
26498         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
26499         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
26500         not present (i.e. with autoconf 2.59 and when using gettextize, not
26501         gnulib), require AC_GNU_SOURCE instead.
26502
26503 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
26504
26505         idpriv-drop: Fix tests.
26506         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
26507         not to the test-idpriv-droptemp program.
26508
26509 2010-06-29  Bruno Haible  <bruno@clisp.org>
26510
26511         string: Fix syntax error with g++ 2.96.
26512         * lib/string.in.h (__pure__): Remove definition.
26513         (_GL_ATTRIBUTE_PURE): New macro.
26514         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
26515         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
26516         Reported by Christian Weisgerber <naddy@mips.inka.de>.
26517
26518 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
26519
26520         unitypes: Fix bug introduced on 2010-05-18.
26521         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
26522
26523 2010-06-22  Eric Blake  <eblake@redhat.com>
26524
26525         memmem: slight optimization
26526         * lib/str-two-way.h (critical_factorization): Update comments.
26527         Reduce work during factorization phase.
26528         Reported by Carlos Bueno <carlos@bueno.org>.
26529
26530 2010-06-21  Bruno Haible  <bruno@clisp.org>
26531
26532         Fix HAVE_CALLOC_POSIX misnomer.
26533         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
26534         !HAVE_CALLOC_POSIX.
26535         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
26536         HAVE_CALLOC_POSIX.
26537         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
26538         instead of HAVE_CALLOC_POSIX.
26539         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
26540         HAVE_CALLOC_POSIX.
26541
26542         Use modern idiom for calloc() replacement.
26543         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
26544         AC_FUNC_CALLOC.
26545         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
26546         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
26547         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
26548         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
26549         (gl_REPLACE_CALLOC): New macro.
26550
26551 2010-06-21  Bruno Haible  <bruno@clisp.org>
26552
26553         Fix HAVE_REALLOC_POSIX misnomer.
26554         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
26555         !HAVE_REALLOC_POSIX.
26556         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
26557         HAVE_REALLOC_POSIX.
26558         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
26559         instead of HAVE_REALLOC_POSIX.
26560         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
26561         HAVE_REALLOC_POSIX.
26562
26563         Use modern idiom for realloc() replacement.
26564         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
26565         AC_FUNC_REALLOC.
26566         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
26567         Autoconf's AC_FUNC_REALLOC.
26568         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
26569         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
26570         (gl_REPLACE_REALLOC): New macro.
26571         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
26572
26573 2010-06-21  Bruno Haible  <bruno@clisp.org>
26574
26575         Fix HAVE_MALLOC_POSIX misnomer.
26576         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
26577         !HAVE_MALLOC_POSIX.
26578         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
26579         HAVE_MALLOC_POSIX.
26580         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
26581         instead of HAVE_MALLOC_POSIX.
26582         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
26583         HAVE_MALLOC_POSIX.
26584
26585         Use modern idiom for malloc() replacement.
26586         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
26587         AC_FUNC_MALLOC.
26588         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
26589         Autoconf's AC_FUNC_MALLOC.
26590         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
26591         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
26592         (gl_REPLACE_MALLOC): New macro.
26593         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
26594
26595 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
26596
26597         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
26598         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
26599         This macro takes 3 arguments, not 4.
26600
26601 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
26602
26603         ipv6: fix detection under mingw
26604         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
26605         in6_addr.
26606
26607 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
26608
26609         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
26610         that strtod() works when cross-compiling to a glibc version known
26611         to work.
26612
26613 2010-06-15  Bruno Haible  <bruno@clisp.org>
26614
26615         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
26616
26617 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
26618
26619         select: Correct timeout.
26620         * lib/select.c (rpl_select): Compute wait_timeout correctly.
26621
26622 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
26623
26624         git-version-gen: init shell var to avoid env var influence
26625         * build-aux/git-version-gen (v): Init shell var to empty.
26626
26627 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
26628
26629         priv-set: Don't assume that priv.h exists merely because getppriv does.
26630         See Jan Andersen's bug report about AIX 5L in
26631         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
26632         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
26633         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
26634         * lib/priv-set.h: Likewise.
26635         * tests/test-priv-set.c: Likewise.
26636
26637 2010-06-13  Bruno Haible  <bruno@clisp.org>
26638
26639         relocatable: Make it easier to test whether to install wrappers.
26640         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
26641         RELOCATABLE_VIA_WRAPPER.
26642
26643 2010-06-13  Bruno Haible  <bruno@clisp.org>
26644
26645         gnulib-tool: Display specified modules and dependencies differently.
26646         * gnulib-tool (func_show_module_list): New function.
26647         (func_import, func_create_testdir): Invoke it.
26648         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
26649
26650 2010-06-13  Bruno Haible  <bruno@clisp.org>
26651
26652         gnulib-tool: Align code of func_import and func_create_testdir.
26653         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
26654         specified_modules.
26655
26656 2010-06-12  Jim Meyering  <meyering@redhat.com>
26657
26658         test-inttostr: avoid spurious failure on Solaris 9
26659         * tests/test-inttostr.c (main): Skip the test when snprintf fails
26660         to accept "%ju".  Reported by Bruno Haible.
26661
26662 2010-06-11  Jim Meyering  <meyering@redhat.com>
26663
26664         test-sys_socket: mark variables as used more readably
26665         * tests/test-sys_socket.c (main): Mark otherwise unused variables
26666         as "used" explicitly via (void) statement casts.  This is more
26667         readable than using them in an artificial return expression.
26668         Suggestion from Bruno Haible.
26669
26670 2010-06-11  Bruno Haible  <bruno@clisp.org>
26671
26672         Avoid some more warnings from "gcc -Wwrite-strings".
26673         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
26674         to 'const char *'.
26675         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
26676         * tests/test-c-strcasestr.c (main): Likewise.
26677         * tests/test-mbscasestr1.c (main): Likewise.
26678         * tests/test-mbscasestr2.c (main): Likewise.
26679         * tests/test-memmem.c (main): Likewise.
26680         * tests/test-strstr.c (main): Likewise.
26681         * tests/test-strcasestr.c (main): Likewise.
26682
26683 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26684
26685         init.sh: change framework_failure_ to fail with status 99, not 1
26686         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
26687         automake's parallel-tests rule that this is an unexpected failure,
26688         even if the test is listed in XFAIL_TESTS.
26689
26690 2010-06-11  Jim Meyering  <meyering@redhat.com>
26691
26692         test-inttostr: avoid warnings about 4-6KB literal strings
26693         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
26694         Include "macros.h", for its definition of ASSERT.
26695         (CK): s/assert/ASSERT/
26696         * modules/inttostr-tests (Files): Add macros.h.
26697
26698         init.sh: don't use $ME_ or skip_ before they are defined
26699         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
26700         their first uses.  Also hoist their companions: warn_, fail_,
26701         framework_failure_, $stderr_fileno.  Prompted by a patch from
26702         Stefano Lattarini.
26703
26704         test-sys_socket: avoid set-but-not-used warnings from gcc
26705         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
26706         avoid warning about set-but-not-used variables.
26707
26708         test-xvasprintf: avoid 'const' discard warnings
26709         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
26710         "const" when assigning from literal strings.
26711         (test_xasprintf): Add "void" in function argument list to placate
26712         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
26713
26714         tests: avoid compilation warnings in argmatch and exclude tests...
26715         in packages that define ARGMATCH_DIE_DECL, like coreutils.
26716         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
26717         Since it always exits, declare with the "noreturn" attribute.
26718         * tests/test-argmatch.c: Likewise.
26719
26720         tests: avoid 'const' discard warnings in mbsstr tests
26721         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
26722         * tests/test-mbsstr2.c (main): Likewise.
26723
26724         test-verify: avoid warning from gcc's -Wmissing-declarations
26725         * tests/test-verify.c (function): Declare to be static.
26726
26727         test-inttostr.c: include <string.h> for use of strcmp
26728         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
26729
26730         test-linkat: avoid failed assertion on "other" architectures
26731         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
26732         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
26733         sparc: https://bugs.launchpad.net/bugs/591968
26734
26735 2010-06-11  Jim Meyering  <meyering@redhat.com>
26736
26737         printf.m4: avoid autoconf's "Expanded Before Required" warning
26738         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
26739         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
26740         autoconf warning.
26741
26742 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
26743
26744         Replacement header templates are now named with ".in", not "_".
26745         * doc/gnulib-intro.texi: Correct.
26746
26747 2010-06-10  Jim Meyering  <meyering@redhat.com>
26748
26749         inttostr-tests: depend on snprintf, not snprintf-posix
26750         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
26751         snprintf-posix, to avoid this aclocal failure:
26752           missing file gnulib-tests/vasnprintf.c
26753           configure.ac:45: error: expected source file, required through \
26754           AC_LIBSOURCES, not found
26755
26756 2010-06-10  Jim Meyering  <meyering@redhat.com>
26757
26758         inttostr: add a new function, inttostr, and tests
26759         The namesake function was not available.  The existence of the
26760         template file, inttostr.c makes its addition nontrivial.
26761         * lib/anytostr.c: Rename from inttostr.c.
26762         (anytostr): Rename from inttostr.
26763         * lib/inttostr.c: New file.
26764         * modules/inttostr (Files): Add anytostr.c.
26765         (Makefile.am): Set lib_SOURCES instead of ...
26766         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
26767         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
26768         * lib/offtostr.c: Likewise.
26769         * lib/uinttostr.c: Likewise.
26770         * lib/umaxtostr.c: Likewise.
26771         * modules/inttostr-tests: New file.
26772         * tests/test-inttostr.c: New file.  Test these functions.
26773
26774 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
26775             Bruno Haible  <bruno@clisp.org>
26776
26777         Add "Extending Gnulib" chapter to manual.
26778         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
26779         chapter.
26780         (Extending Gnulib): New chapter.
26781         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
26782         chapter.
26783
26784 2010-06-09  Bruno Haible  <bruno@clisp.org>
26785
26786         Avoid relocwrapper link errors due to gnulib replacement functions.
26787         * lib/areadlink.c: Use the system's malloc, realloc functions.
26788         (areadlink): Set errno to ENOMEM explicitly.
26789         * modules/areadlink (Depends-on): Remove malloc-posix.
26790         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26791
26792 2010-06-09  Bruno Haible  <bruno@clisp.org>
26793
26794         Avoid relocwrapper link errors due to gnulib replacement functions.
26795         * lib/canonicalize-lgpl.c: Use the system's malloc function.
26796         * lib/malloca.c: Likewise.
26797         * lib/relocatable.c: Likewise.
26798         * lib/progreloc.c: Use the system's malloc, sprintf functions.
26799         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
26800         * lib/setenv.c: Use the system's malloc, realloc functions.
26801         * lib/strerror.c: Use the system's sprintf function.
26802         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26803
26804 2010-06-04  Bruno Haible  <bruno@clisp.org>
26805
26806         Prefer documented low-level autoconf macro names.
26807         * m4/lib-link.m4: Use m4_translit instead of translit.
26808         * m4/environ.m4: Likewise.
26809         * m4/mathfunc.m4: Likewise.
26810         * m4/onceonly.m4: Likewise.
26811         * m4/stdint.m4: Likewise.
26812         Suggested by Eric Blake.
26813
26814 2010-06-04  Martin Lambers  <marlam@marlam.de>
26815             Bruno Haible  <bruno@clisp.org>
26816
26817         havelib: Allow library names with '+' characters.
26818         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
26819         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
26820
26821 2010-06-09  Bruno Haible  <bruno@clisp.org>
26822
26823         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
26824         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
26825         realloc failed.
26826
26827 2010-06-08  Peter Simons  <simons@cryp.to>
26828
26829         maint.mk: make the news-check rule more configurable
26830         * top/maint.mk (news-check-lines-spec): New variable.
26831         (news-check): Use "sed -n 1,10p" in place of "head".
26832
26833 2010-06-07  Jim Meyering  <meyering@redhat.com>
26834
26835         do-release-commit-and-tag: fix typo in --help
26836         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
26837
26838         regex: avoid new dead-code warning with gcc-4.6.0
26839         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
26840         if-block containing a while-loop.  It's been unused for at least
26841         5 years.
26842
26843 2010-06-05  Bruno Haible  <bruno@clisp.org>
26844
26845         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
26846         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
26847
26848 2010-06-04  Bruno Haible  <bruno@clisp.org>
26849
26850         Update to GNU gettext 0.18.1.
26851         * modules/gettext (configure.ac): Require gettext infrastructure from
26852         version 0.18.1.
26853
26854 2010-06-03  Bruno Haible  <bruno@clisp.org>
26855
26856         Don't use AC_LIBOBJ with file names in subdirectories.
26857         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
26858         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
26859         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
26860         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
26861         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
26862         gl_LIBUNISTRING_LIBSOURCE.
26863         (Makefile.am): Augment lib_SOURCES here, conditionally.
26864         * NEWS: Drop requirement for Automake option 'subdir-objects'.
26865
26866 2010-06-03  Bruno Haible  <bruno@clisp.org>
26867
26868         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
26869         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
26870         expansion does not end with a newline.
26871         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
26872         unnecessary newline.
26873
26874 2010-06-03  Bruno Haible  <bruno@clisp.org>
26875
26876         Reduce dependencies.
26877         * tests/test-quotearg.h: New file, extracted from
26878         tests/test-quotearg.c.
26879         * tests/test-quotearg-simple.c: New file, extracted from
26880         tests/test-quotearg.c.
26881         * tests/test-quotearg.c: Don't include <ctype.h>.
26882         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
26883         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
26884         use_quote_double_quotes, use_quotearg_colon): Moved to
26885         tests/test-quotearg.h.
26886         (results_g, flag_results, custom_quotes, custom_results): Moved
26887         to tests/test-quotearg-simple.c.
26888         (main): Moved the part that does not depend on gettext to
26889         tests/test-quotearg-simple.c. Return 77 if the test cannot be
26890         performed.
26891         * modules/quotearg-simple: New file.
26892         * modules/quotearg-simple-tests: New file.
26893         * modules/quotearg (Depends-on): Add quotearg-simple.
26894         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
26895         (Files): Add tests/test-quotearg.h.
26896         Reported by Paolo Bonzini.
26897
26898 2010-06-03  Bruno Haible  <bruno@clisp.org>
26899
26900         Reduce dependencies.
26901         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
26902
26903 2010-06-03  Bruno Haible  <bruno@clisp.org>
26904
26905         time: Undefine more broken macros.
26906         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
26907         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
26908         Reported by Eric Blake.
26909
26910 2010-06-03  Bruno Haible  <bruno@clisp.org>
26911
26912         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
26913         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
26914         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
26915         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
26916         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
26917         Reported by Ludovic Courtès <ludo@gnu.org>.
26918
26919 2010-06-02  Eric Blake  <eblake@redhat.com>
26920
26921         time: work with mingw + pthreads-win32 library
26922         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
26923         if timespec is defined only in pthread.h.
26924         * modules/time (Makefile.am): Substitute it.
26925         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
26926         <pthread.h>, when needed.
26927         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
26928         from the library.
26929
26930 2010-05-31  Bruno Haible  <bruno@clisp.org>
26931
26932         Avoid expanding two macros in the wrong order.
26933         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
26934         gl_LIBUNISTRING if it is defined.
26935         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
26936         autoconf >= 2.64.
26937         Reported by Ludovic Courtès <ludo@gnu.org>.
26938
26939 2010-05-27  Jim Meyering  <meyering@redhat.com>
26940
26941         maint.mk: also prohibit "#undef" of always-defined symbols
26942         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
26943         Allow more than one space before the symbol name.
26944         (sc_prohibit_always-defined_macros): Use grep's -E, now that
26945         the regexp uses alternation.
26946
26947 2010-05-26  Eric Blake  <eblake@redhat.com>
26948
26949         maint.mk: avoid echo -e
26950         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
26951         Convert all uses of echo -* to printf.
26952         Reported by Matthias Bolte.
26953
26954 2010-05-25  Bruno Haible  <bruno@clisp.org>
26955
26956         Update to GNU gettext 0.18, part 2.
26957         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
26958         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
26959
26960 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26961
26962         Add missing include in test-pwrite.c.
26963         * tests/test-pwrite.c: Include string.h, for strcmp.
26964
26965 2010-05-24  Bruno Haible  <bruno@clisp.org>
26966
26967         * NEWS: Mention requirement for Automake option 'subdir-objects'.
26968
26969 2010-05-24  Bruno Haible  <bruno@clisp.org>
26970
26971         Don't use conversion with transliteration in u{8,16,32}_strcoll.
26972         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
26973         iconveh_error argument.
26974         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
26975         U_STRCONV_TO_LOCALE.
26976         * lib/unistr/u16-strcoll.c: Likewise.
26977         * lib/unistr/u32-strcoll.c: Likewise.
26978         * modules/unistr/u8-strcoll (Depends-on): Add
26979         uniconv/u8-strconv-to-enc, localcharset. Remove
26980         uniconv/u8-strconv-to-locale.
26981         (configure.ac): Bump version number.
26982         * modules/unistr/u16-strcoll (Depends-on): Add
26983         uniconv/u16-strconv-to-enc, localcharset. Remove
26984         uniconv/u16-strconv-to-locale.
26985         (configure.ac): Bump version number.
26986         * modules/unistr/u32-strcoll (Depends-on): Add
26987         uniconv/u32-strconv-to-enc, localcharset. Remove
26988         uniconv/u32-strconv-to-locale.
26989         (configure.ac): Bump version number.
26990
26991 2010-05-24  Bruno Haible  <bruno@clisp.org>
26992
26993         Avoid a test failure on NetBSD 5.0.
26994         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
26995         an iconv() bug.
26996
26997 2010-05-24  Bruno Haible  <bruno@clisp.org>
26998
26999         Adjust #include directive style.
27000         * modules/regex (Includes): Recommend to write <regex.h>.
27001
27002 2010-05-24  Bruno Haible  <bruno@clisp.org>
27003
27004         regex: Don't require alloca.
27005         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
27006         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
27007         only inside if (0).
27008
27009 2010-05-23  Jim Meyering  <meyering@redhat.com>
27010
27011         test-renameat.c: include <sys/stat.h>
27012         * tests/test-renameat.c: Include <sys/stat.h>; required for
27013         definition of S_IS* macros.
27014
27015 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
27016
27017         Update maintainer documentation for 'relocatable-prog' module.
27018         * doc/relocatable-maint.texi: Update.
27019         Comments by Bruno Haible.
27020
27021 2010-05-23  Bruno Haible  <bruno@clisp.org>
27022
27023         git-merge-changelog: Enable --split-merged-entry by default.
27024         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
27025         (usage): Don't mention this option any more.
27026         Reported by Ralf Wildenhues.
27027
27028 2010-05-23  Jim Meyering  <meyering@redhat.com>
27029
27030         test-pwrite: do not leave behind a test file named "out"
27031         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
27032         The trivial-looking use of init.sh is really necessary.
27033         It ensures that the temporary file, "out", is created in
27034         a temporary directory, and removed upon termination.
27035         * tests/test-pwrite.sh: Re-add file.
27036         * modules/pwrite-tests: Reference it.
27037
27038 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27039
27040         Fix output redirection buglet in init.sh.
27041         * tests/init.sh: Fix redirection of stderr.
27042
27043 2010-05-20  Simon Josefsson  <simon@josefsson.org>
27044
27045         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
27046
27047 2010-05-17  Simon Josefsson  <simon@josefsson.org>
27048
27049         * modules/valgrind-tests: New file.
27050         * m4/valgrind-tests.m4: New file.
27051         * doc/valgrind-tests.texi: New file.
27052         * doc/gnulib.texi (Running self-tests under valgrind): New
27053         section.
27054
27055 2010-05-19  Bruno Haible  <bruno@clisp.org>
27056
27057         Clean up dead code in recent commit.
27058         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
27059         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
27060         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
27061         Suggested by Paolo Bonzini.
27062
27063 2010-05-19  Bruno Haible  <bruno@clisp.org>
27064
27065         Avoid valgrind error reports from libunistring.
27066         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
27067         * modules/libunistring (Files): Add it.
27068         * modules/libunistring-optional (Files): Likewise.
27069
27070 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
27071             Bruno Haible  <bruno@clisp.org>
27072
27073         New module 'libunistring-optional'.
27074         * modules/libunistring-optional: New file.
27075         * m4/libunistring-base.m4: New file.
27076         * m4/libunistring-optional.m4: New file.
27077         * lib/unicase.in.h: Renamed from lib/unicase.h.
27078         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
27079         * lib/unictype.in.h: Renamed from lib/unictype.h.
27080         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
27081         * lib/uniname.in.h: Renamed from lib/uniname.h.
27082         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
27083         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
27084         * lib/unistr.in.h: Renamed from lib/unistr.h.
27085         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
27086         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
27087         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
27088         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
27089         gl_LIBUNISTRING. If the library was found, determine the installed
27090         version and set LIBUNISTRING_VERSION.
27091         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
27092         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
27093         handle a configuration option --with-included-libunistring.
27094         * modules/libunistring (Files): Add m4/absolute-header.m4.
27095         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
27096         Add m4/libunistring-base.m4.
27097         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27098         (Makefile.am): Build unicase.h from unicase.in.h.
27099         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
27100         Add m4/libunistring-base.m4.
27101         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27102         (Makefile.am): Build uniconv.h from uniconv.in.h.
27103         * modules/unictype/base (Files): Use unictype.in.h instead of
27104         unictype.h. Add m4/libunistring-base.m4.
27105         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27106         (Makefile.am): Build unictype.h from unictype.in.h.
27107         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
27108         Add m4/libunistring-base.m4.
27109         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27110         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
27111         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
27112         Add m4/libunistring-base.m4.
27113         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27114         (Makefile.am): Build uniname.h from uniname.in.h.
27115         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
27116         Add m4/libunistring-base.m4.
27117         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27118         (Makefile.am): Build uninorm.h from uninorm.in.h.
27119         * modules/unistdio/base (Files): Use unistdio.in.h instead of
27120         unistdio.h. Add m4/libunistring-base.m4.
27121         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27122         (Makefile.am): Build unistdio.h from unistdio.in.h.
27123         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
27124         Add m4/libunistring-base.m4.
27125         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27126         (Makefile.am): Build unistr.h from unistr.in.h.
27127         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
27128         Add m4/libunistring-base.m4.
27129         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27130         (Makefile.am): Build unitypes.h from unitypes.in.h.
27131         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
27132         Add m4/libunistring-base.m4.
27133         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27134         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
27135         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
27136         uniwidth.h. Add m4/libunistring-base.m4.
27137         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27138         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
27139         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
27140         instead of augmenting lib_SOURCES.
27141         * modules/unicase/empty-suffix-context: Likewise.
27142         * modules/unicase/locale-language: Likewise.
27143         * modules/unicase/tolower: Likewise.
27144         * modules/unicase/totitle: Likewise.
27145         * modules/unicase/toupper: Likewise.
27146         * modules/unicase/u8-casecmp: Likewise.
27147         * modules/unicase/u8-casecoll: Likewise.
27148         * modules/unicase/u8-casefold: Likewise.
27149         * modules/unicase/u8-casexfrm: Likewise.
27150         * modules/unicase/u8-ct-casefold: Likewise.
27151         * modules/unicase/u8-ct-tolower: Likewise.
27152         * modules/unicase/u8-ct-totitle: Likewise.
27153         * modules/unicase/u8-ct-toupper: Likewise.
27154         * modules/unicase/u8-is-cased: Likewise.
27155         * modules/unicase/u8-is-casefolded: Likewise.
27156         * modules/unicase/u8-is-lowercase: Likewise.
27157         * modules/unicase/u8-is-titlecase: Likewise.
27158         * modules/unicase/u8-is-uppercase: Likewise.
27159         * modules/unicase/u8-prefix-context: Likewise.
27160         * modules/unicase/u8-suffix-context: Likewise.
27161         * modules/unicase/u8-tolower: Likewise.
27162         * modules/unicase/u8-totitle: Likewise.
27163         * modules/unicase/u8-toupper: Likewise.
27164         * modules/unicase/u16-casecmp: Likewise.
27165         * modules/unicase/u16-casecoll: Likewise.
27166         * modules/unicase/u16-casefold: Likewise.
27167         * modules/unicase/u16-casexfrm: Likewise.
27168         * modules/unicase/u16-ct-casefold: Likewise.
27169         * modules/unicase/u16-ct-tolower: Likewise.
27170         * modules/unicase/u16-ct-totitle: Likewise.
27171         * modules/unicase/u16-ct-toupper: Likewise.
27172         * modules/unicase/u16-is-cased: Likewise.
27173         * modules/unicase/u16-is-casefolded: Likewise.
27174         * modules/unicase/u16-is-lowercase: Likewise.
27175         * modules/unicase/u16-is-titlecase: Likewise.
27176         * modules/unicase/u16-is-uppercase: Likewise.
27177         * modules/unicase/u16-prefix-context: Likewise.
27178         * modules/unicase/u16-suffix-context: Likewise.
27179         * modules/unicase/u16-tolower: Likewise.
27180         * modules/unicase/u16-totitle: Likewise.
27181         * modules/unicase/u16-toupper: Likewise.
27182         * modules/unicase/u32-casecmp: Likewise.
27183         * modules/unicase/u32-casecoll: Likewise.
27184         * modules/unicase/u32-casefold: Likewise.
27185         * modules/unicase/u32-casexfrm: Likewise.
27186         * modules/unicase/u32-ct-casefold: Likewise.
27187         * modules/unicase/u32-ct-tolower: Likewise.
27188         * modules/unicase/u32-ct-totitle: Likewise.
27189         * modules/unicase/u32-ct-toupper: Likewise.
27190         * modules/unicase/u32-is-cased: Likewise.
27191         * modules/unicase/u32-is-casefolded: Likewise.
27192         * modules/unicase/u32-is-lowercase: Likewise.
27193         * modules/unicase/u32-is-titlecase: Likewise.
27194         * modules/unicase/u32-is-uppercase: Likewise.
27195         * modules/unicase/u32-prefix-context: Likewise.
27196         * modules/unicase/u32-suffix-context: Likewise.
27197         * modules/unicase/u32-tolower: Likewise.
27198         * modules/unicase/u32-totitle: Likewise.
27199         * modules/unicase/u32-toupper: Likewise.
27200         * modules/unicase/ulc-casecmp: Likewise.
27201         * modules/unicase/ulc-casecoll: Likewise.
27202         * modules/unicase/ulc-casexfrm: Likewise.
27203         * modules/uniconv/u8-conv-from-enc: Likewise.
27204         * modules/uniconv/u8-conv-to-enc: Likewise.
27205         * modules/uniconv/u8-strconv-from-enc: Likewise.
27206         * modules/uniconv/u8-strconv-from-locale: Likewise.
27207         * modules/uniconv/u8-strconv-to-enc: Likewise.
27208         * modules/uniconv/u8-strconv-to-locale: Likewise.
27209         * modules/uniconv/u16-conv-from-enc: Likewise.
27210         * modules/uniconv/u16-conv-to-enc: Likewise.
27211         * modules/uniconv/u16-strconv-from-enc: Likewise.
27212         * modules/uniconv/u16-strconv-from-locale: Likewise.
27213         * modules/uniconv/u16-strconv-to-enc: Likewise.
27214         * modules/uniconv/u16-strconv-to-locale: Likewise.
27215         * modules/uniconv/u32-conv-from-enc: Likewise.
27216         * modules/uniconv/u32-conv-to-enc: Likewise.
27217         * modules/uniconv/u32-strconv-from-enc: Likewise.
27218         * modules/uniconv/u32-strconv-from-locale: Likewise.
27219         * modules/uniconv/u32-strconv-to-enc: Likewise.
27220         * modules/uniconv/u32-strconv-to-locale: Likewise.
27221         * modules/unictype/bidicategory-byname: Likewise.
27222         * modules/unictype/bidicategory-name: Likewise.
27223         * modules/unictype/bidicategory-of: Likewise.
27224         * modules/unictype/bidicategory-test: Likewise.
27225         * modules/unictype/block-list: Likewise.
27226         * modules/unictype/block-test: Likewise.
27227         * modules/unictype/category-C: Likewise.
27228         * modules/unictype/category-Cc: Likewise.
27229         * modules/unictype/category-Cf: Likewise.
27230         * modules/unictype/category-Cn: Likewise.
27231         * modules/unictype/category-Co: Likewise.
27232         * modules/unictype/category-Cs: Likewise.
27233         * modules/unictype/category-L: Likewise.
27234         * modules/unictype/category-Ll: Likewise.
27235         * modules/unictype/category-Lm: Likewise.
27236         * modules/unictype/category-Lo: Likewise.
27237         * modules/unictype/category-Lt: Likewise.
27238         * modules/unictype/category-Lu: Likewise.
27239         * modules/unictype/category-M: Likewise.
27240         * modules/unictype/category-Mc: Likewise.
27241         * modules/unictype/category-Me: Likewise.
27242         * modules/unictype/category-Mn: Likewise.
27243         * modules/unictype/category-N: Likewise.
27244         * modules/unictype/category-Nd: Likewise.
27245         * modules/unictype/category-Nl: Likewise.
27246         * modules/unictype/category-No: Likewise.
27247         * modules/unictype/category-P: Likewise.
27248         * modules/unictype/category-Pc: Likewise.
27249         * modules/unictype/category-Pd: Likewise.
27250         * modules/unictype/category-Pe: Likewise.
27251         * modules/unictype/category-Pf: Likewise.
27252         * modules/unictype/category-Pi: Likewise.
27253         * modules/unictype/category-Po: Likewise.
27254         * modules/unictype/category-Ps: Likewise.
27255         * modules/unictype/category-S: Likewise.
27256         * modules/unictype/category-Sc: Likewise.
27257         * modules/unictype/category-Sk: Likewise.
27258         * modules/unictype/category-Sm: Likewise.
27259         * modules/unictype/category-So: Likewise.
27260         * modules/unictype/category-Z: Likewise.
27261         * modules/unictype/category-Zl: Likewise.
27262         * modules/unictype/category-Zp: Likewise.
27263         * modules/unictype/category-Zs: Likewise.
27264         * modules/unictype/category-and: Likewise.
27265         * modules/unictype/category-and-not: Likewise.
27266         * modules/unictype/category-byname: Likewise.
27267         * modules/unictype/category-name: Likewise.
27268         * modules/unictype/category-none: Likewise.
27269         * modules/unictype/category-of: Likewise.
27270         * modules/unictype/category-or: Likewise.
27271         * modules/unictype/category-test: Likewise.
27272         * modules/unictype/combining-class: Likewise.
27273         * modules/unictype/ctype-alnum: Likewise.
27274         * modules/unictype/ctype-alpha: Likewise.
27275         * modules/unictype/ctype-blank: Likewise.
27276         * modules/unictype/ctype-cntrl: Likewise.
27277         * modules/unictype/ctype-digit: Likewise.
27278         * modules/unictype/ctype-graph: Likewise.
27279         * modules/unictype/ctype-lower: Likewise.
27280         * modules/unictype/ctype-print: Likewise.
27281         * modules/unictype/ctype-punct: Likewise.
27282         * modules/unictype/ctype-space: Likewise.
27283         * modules/unictype/ctype-upper: Likewise.
27284         * modules/unictype/ctype-xdigit: Likewise.
27285         * modules/unictype/decimal-digit: Likewise.
27286         * modules/unictype/digit: Likewise.
27287         * modules/unictype/mirror: Likewise.
27288         * modules/unictype/numeric: Likewise.
27289         * modules/unictype/property-alphabetic: Likewise.
27290         * modules/unictype/property-ascii-hex-digit: Likewise.
27291         * modules/unictype/property-bidi-arabic-digit: Likewise.
27292         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
27293         * modules/unictype/property-bidi-block-separator: Likewise.
27294         * modules/unictype/property-bidi-boundary-neutral: Likewise.
27295         * modules/unictype/property-bidi-common-separator: Likewise.
27296         * modules/unictype/property-bidi-control: Likewise.
27297         * modules/unictype/property-bidi-embedding-or-override: Likewise.
27298         * modules/unictype/property-bidi-eur-num-separator: Likewise.
27299         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
27300         * modules/unictype/property-bidi-european-digit: Likewise.
27301         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
27302         * modules/unictype/property-bidi-left-to-right: Likewise.
27303         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
27304         * modules/unictype/property-bidi-other-neutral: Likewise.
27305         * modules/unictype/property-bidi-pdf: Likewise.
27306         * modules/unictype/property-bidi-segment-separator: Likewise.
27307         * modules/unictype/property-bidi-whitespace: Likewise.
27308         * modules/unictype/property-byname: Likewise.
27309         * modules/unictype/property-combining: Likewise.
27310         * modules/unictype/property-composite: Likewise.
27311         * modules/unictype/property-currency-symbol: Likewise.
27312         * modules/unictype/property-dash: Likewise.
27313         * modules/unictype/property-decimal-digit: Likewise.
27314         * modules/unictype/property-default-ignorable-code-point: Likewise.
27315         * modules/unictype/property-deprecated: Likewise.
27316         * modules/unictype/property-diacritic: Likewise.
27317         * modules/unictype/property-extender: Likewise.
27318         * modules/unictype/property-format-control: Likewise.
27319         * modules/unictype/property-grapheme-base: Likewise.
27320         * modules/unictype/property-grapheme-extend: Likewise.
27321         * modules/unictype/property-grapheme-link: Likewise.
27322         * modules/unictype/property-hex-digit: Likewise.
27323         * modules/unictype/property-hyphen: Likewise.
27324         * modules/unictype/property-id-continue: Likewise.
27325         * modules/unictype/property-id-start: Likewise.
27326         * modules/unictype/property-ideographic: Likewise.
27327         * modules/unictype/property-ids-binary-operator: Likewise.
27328         * modules/unictype/property-ids-trinary-operator: Likewise.
27329         * modules/unictype/property-ignorable-control: Likewise.
27330         * modules/unictype/property-iso-control: Likewise.
27331         * modules/unictype/property-join-control: Likewise.
27332         * modules/unictype/property-left-of-pair: Likewise.
27333         * modules/unictype/property-line-separator: Likewise.
27334         * modules/unictype/property-logical-order-exception: Likewise.
27335         * modules/unictype/property-lowercase: Likewise.
27336         * modules/unictype/property-math: Likewise.
27337         * modules/unictype/property-non-break: Likewise.
27338         * modules/unictype/property-not-a-character: Likewise.
27339         * modules/unictype/property-numeric: Likewise.
27340         * modules/unictype/property-other-alphabetic: Likewise.
27341         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
27342         * modules/unictype/property-other-grapheme-extend: Likewise.
27343         * modules/unictype/property-other-id-continue: Likewise.
27344         * modules/unictype/property-other-id-start: Likewise.
27345         * modules/unictype/property-other-lowercase: Likewise.
27346         * modules/unictype/property-other-math: Likewise.
27347         * modules/unictype/property-other-uppercase: Likewise.
27348         * modules/unictype/property-paired-punctuation: Likewise.
27349         * modules/unictype/property-paragraph-separator: Likewise.
27350         * modules/unictype/property-pattern-syntax: Likewise.
27351         * modules/unictype/property-pattern-white-space: Likewise.
27352         * modules/unictype/property-private-use: Likewise.
27353         * modules/unictype/property-punctuation: Likewise.
27354         * modules/unictype/property-quotation-mark: Likewise.
27355         * modules/unictype/property-radical: Likewise.
27356         * modules/unictype/property-sentence-terminal: Likewise.
27357         * modules/unictype/property-soft-dotted: Likewise.
27358         * modules/unictype/property-space: Likewise.
27359         * modules/unictype/property-terminal-punctuation: Likewise.
27360         * modules/unictype/property-test: Likewise.
27361         * modules/unictype/property-titlecase: Likewise.
27362         * modules/unictype/property-unassigned-code-value: Likewise.
27363         * modules/unictype/property-unified-ideograph: Likewise.
27364         * modules/unictype/property-uppercase: Likewise.
27365         * modules/unictype/property-variation-selector: Likewise.
27366         * modules/unictype/property-white-space: Likewise.
27367         * modules/unictype/property-xid-continue: Likewise.
27368         * modules/unictype/property-xid-start: Likewise.
27369         * modules/unictype/property-zero-width: Likewise.
27370         * modules/unictype/scripts: Likewise.
27371         * modules/unictype/syntax-c-ident: Likewise.
27372         * modules/unictype/syntax-c-whitespace: Likewise.
27373         * modules/unictype/syntax-java-ident: Likewise.
27374         * modules/unictype/syntax-java-whitespace: Likewise.
27375         * modules/unilbrk/u8-possible-linebreaks: Likewise.
27376         * modules/unilbrk/u8-width-linebreaks: Likewise.
27377         * modules/unilbrk/u16-possible-linebreaks: Likewise.
27378         * modules/unilbrk/u16-width-linebreaks: Likewise.
27379         * modules/unilbrk/u32-possible-linebreaks: Likewise.
27380         * modules/unilbrk/u32-width-linebreaks: Likewise.
27381         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
27382         * modules/unilbrk/ulc-width-linebreaks: Likewise.
27383         * modules/uniname/uniname: Likewise.
27384         * modules/uninorm/canonical-decomposition: Likewise.
27385         * modules/uninorm/composition: Likewise.
27386         * modules/uninorm/decomposing-form: Likewise.
27387         * modules/uninorm/decomposition: Likewise.
27388         * modules/uninorm/filter: Likewise.
27389         * modules/uninorm/nfc: Likewise.
27390         * modules/uninorm/nfd: Likewise.
27391         * modules/uninorm/nfkc: Likewise.
27392         * modules/uninorm/nfkd: Likewise.
27393         * modules/uninorm/u8-normalize: Likewise.
27394         * modules/uninorm/u8-normcmp: Likewise.
27395         * modules/uninorm/u8-normcoll: Likewise.
27396         * modules/uninorm/u8-normxfrm: Likewise.
27397         * modules/uninorm/u16-normalize: Likewise.
27398         * modules/uninorm/u16-normcmp: Likewise.
27399         * modules/uninorm/u16-normcoll: Likewise.
27400         * modules/uninorm/u16-normxfrm: Likewise.
27401         * modules/uninorm/u32-normalize: Likewise.
27402         * modules/uninorm/u32-normcmp: Likewise.
27403         * modules/uninorm/u32-normcoll: Likewise.
27404         * modules/uninorm/u32-normxfrm: Likewise.
27405         * modules/unistdio/u8-asnprintf: Likewise.
27406         * modules/unistdio/u8-asprintf: Likewise.
27407         * modules/unistdio/u8-snprintf: Likewise.
27408         * modules/unistdio/u8-sprintf: Likewise.
27409         * modules/unistdio/u8-u8-asnprintf: Likewise.
27410         * modules/unistdio/u8-u8-asprintf: Likewise.
27411         * modules/unistdio/u8-u8-snprintf: Likewise.
27412         * modules/unistdio/u8-u8-sprintf: Likewise.
27413         * modules/unistdio/u8-u8-vasnprintf: Likewise.
27414         * modules/unistdio/u8-u8-vasprintf: Likewise.
27415         * modules/unistdio/u8-u8-vsnprintf: Likewise.
27416         * modules/unistdio/u8-u8-vsprintf: Likewise.
27417         * modules/unistdio/u8-vasnprintf: Likewise.
27418         * modules/unistdio/u8-vasprintf: Likewise.
27419         * modules/unistdio/u8-vsnprintf: Likewise.
27420         * modules/unistdio/u8-vsprintf: Likewise.
27421         * modules/unistdio/u16-asnprintf: Likewise.
27422         * modules/unistdio/u16-asprintf: Likewise.
27423         * modules/unistdio/u16-snprintf: Likewise.
27424         * modules/unistdio/u16-sprintf: Likewise.
27425         * modules/unistdio/u16-u16-asnprintf: Likewise.
27426         * modules/unistdio/u16-u16-asprintf: Likewise.
27427         * modules/unistdio/u16-u16-snprintf: Likewise.
27428         * modules/unistdio/u16-u16-sprintf: Likewise.
27429         * modules/unistdio/u16-u16-vasnprintf: Likewise.
27430         * modules/unistdio/u16-u16-vasprintf: Likewise.
27431         * modules/unistdio/u16-u16-vsnprintf: Likewise.
27432         * modules/unistdio/u16-u16-vsprintf: Likewise.
27433         * modules/unistdio/u16-vasnprintf: Likewise.
27434         * modules/unistdio/u16-vasprintf: Likewise.
27435         * modules/unistdio/u16-vsnprintf: Likewise.
27436         * modules/unistdio/u16-vsprintf: Likewise.
27437         * modules/unistdio/u32-asnprintf: Likewise.
27438         * modules/unistdio/u32-asprintf: Likewise.
27439         * modules/unistdio/u32-snprintf: Likewise.
27440         * modules/unistdio/u32-sprintf: Likewise.
27441         * modules/unistdio/u32-u32-asnprintf: Likewise.
27442         * modules/unistdio/u32-u32-asprintf: Likewise.
27443         * modules/unistdio/u32-u32-snprintf: Likewise.
27444         * modules/unistdio/u32-u32-sprintf: Likewise.
27445         * modules/unistdio/u32-u32-vasnprintf: Likewise.
27446         * modules/unistdio/u32-u32-vasprintf: Likewise.
27447         * modules/unistdio/u32-u32-vsnprintf: Likewise.
27448         * modules/unistdio/u32-u32-vsprintf: Likewise.
27449         * modules/unistdio/u32-vasnprintf: Likewise.
27450         * modules/unistdio/u32-vasprintf: Likewise.
27451         * modules/unistdio/u32-vsnprintf: Likewise.
27452         * modules/unistdio/u32-vsprintf: Likewise.
27453         * modules/unistdio/ulc-asnprintf: Likewise.
27454         * modules/unistdio/ulc-asprintf: Likewise.
27455         * modules/unistdio/ulc-fprintf: Likewise.
27456         * modules/unistdio/ulc-snprintf: Likewise.
27457         * modules/unistdio/ulc-sprintf: Likewise.
27458         * modules/unistdio/ulc-vasnprintf: Likewise.
27459         * modules/unistdio/ulc-vasprintf: Likewise.
27460         * modules/unistdio/ulc-vfprintf: Likewise.
27461         * modules/unistdio/ulc-vsnprintf: Likewise.
27462         * modules/unistdio/ulc-vsprintf: Likewise.
27463         * modules/unistr/u8-check: Likewise.
27464         * modules/unistr/u8-chr: Likewise.
27465         * modules/unistr/u8-cmp: Likewise.
27466         * modules/unistr/u8-cmp2: Likewise.
27467         * modules/unistr/u8-cpy: Likewise.
27468         * modules/unistr/u8-cpy-alloc: Likewise.
27469         * modules/unistr/u8-endswith: Likewise.
27470         * modules/unistr/u8-mblen: Likewise.
27471         * modules/unistr/u8-mbsnlen: Likewise.
27472         * modules/unistr/u8-mbtouc: Likewise.
27473         * modules/unistr/u8-mbtouc-unsafe: Likewise.
27474         * modules/unistr/u8-mbtoucr: Likewise.
27475         * modules/unistr/u8-move: Likewise.
27476         * modules/unistr/u8-next: Likewise.
27477         * modules/unistr/u8-prev: Likewise.
27478         * modules/unistr/u8-set: Likewise.
27479         * modules/unistr/u8-startswith: Likewise.
27480         * modules/unistr/u8-stpcpy: Likewise.
27481         * modules/unistr/u8-stpncpy: Likewise.
27482         * modules/unistr/u8-strcat: Likewise.
27483         * modules/unistr/u8-strchr: Likewise.
27484         * modules/unistr/u8-strcmp: Likewise.
27485         * modules/unistr/u8-strcoll: Likewise.
27486         * modules/unistr/u8-strcpy: Likewise.
27487         * modules/unistr/u8-strcspn: Likewise.
27488         * modules/unistr/u8-strdup: Likewise.
27489         * modules/unistr/u8-strlen: Likewise.
27490         * modules/unistr/u8-strmblen: Likewise.
27491         * modules/unistr/u8-strmbtouc: Likewise.
27492         * modules/unistr/u8-strncat: Likewise.
27493         * modules/unistr/u8-strncmp: Likewise.
27494         * modules/unistr/u8-strncpy: Likewise.
27495         * modules/unistr/u8-strnlen: Likewise.
27496         * modules/unistr/u8-strpbrk: Likewise.
27497         * modules/unistr/u8-strrchr: Likewise.
27498         * modules/unistr/u8-strspn: Likewise.
27499         * modules/unistr/u8-strstr: Likewise.
27500         * modules/unistr/u8-strtok: Likewise.
27501         * modules/unistr/u8-to-u16: Likewise.
27502         * modules/unistr/u8-to-u32: Likewise.
27503         * modules/unistr/u8-uctomb: Likewise.
27504         * modules/unistr/u16-check: Likewise.
27505         * modules/unistr/u16-chr: Likewise.
27506         * modules/unistr/u16-cmp: Likewise.
27507         * modules/unistr/u16-cmp2: Likewise.
27508         * modules/unistr/u16-cpy: Likewise.
27509         * modules/unistr/u16-cpy-alloc: Likewise.
27510         * modules/unistr/u16-endswith: Likewise.
27511         * modules/unistr/u16-mblen: Likewise.
27512         * modules/unistr/u16-mbsnlen: Likewise.
27513         * modules/unistr/u16-mbtouc: Likewise.
27514         * modules/unistr/u16-mbtouc-unsafe: Likewise.
27515         * modules/unistr/u16-mbtoucr: Likewise.
27516         * modules/unistr/u16-move: Likewise.
27517         * modules/unistr/u16-next: Likewise.
27518         * modules/unistr/u16-prev: Likewise.
27519         * modules/unistr/u16-set: Likewise.
27520         * modules/unistr/u16-startswith: Likewise.
27521         * modules/unistr/u16-stpcpy: Likewise.
27522         * modules/unistr/u16-stpncpy: Likewise.
27523         * modules/unistr/u16-strcat: Likewise.
27524         * modules/unistr/u16-strchr: Likewise.
27525         * modules/unistr/u16-strcmp: Likewise.
27526         * modules/unistr/u16-strcoll: Likewise.
27527         * modules/unistr/u16-strcpy: Likewise.
27528         * modules/unistr/u16-strcspn: Likewise.
27529         * modules/unistr/u16-strdup: Likewise.
27530         * modules/unistr/u16-strlen: Likewise.
27531         * modules/unistr/u16-strmblen: Likewise.
27532         * modules/unistr/u16-strmbtouc: Likewise.
27533         * modules/unistr/u16-strncat: Likewise.
27534         * modules/unistr/u16-strncmp: Likewise.
27535         * modules/unistr/u16-strncpy: Likewise.
27536         * modules/unistr/u16-strnlen: Likewise.
27537         * modules/unistr/u16-strpbrk: Likewise.
27538         * modules/unistr/u16-strrchr: Likewise.
27539         * modules/unistr/u16-strspn: Likewise.
27540         * modules/unistr/u16-strstr: Likewise.
27541         * modules/unistr/u16-strtok: Likewise.
27542         * modules/unistr/u16-to-u32: Likewise.
27543         * modules/unistr/u16-to-u8: Likewise.
27544         * modules/unistr/u16-uctomb: Likewise.
27545         * modules/unistr/u32-check: Likewise.
27546         * modules/unistr/u32-chr: Likewise.
27547         * modules/unistr/u32-cmp: Likewise.
27548         * modules/unistr/u32-cmp2: Likewise.
27549         * modules/unistr/u32-cpy: Likewise.
27550         * modules/unistr/u32-cpy-alloc: Likewise.
27551         * modules/unistr/u32-endswith: Likewise.
27552         * modules/unistr/u32-mblen: Likewise.
27553         * modules/unistr/u32-mbsnlen: Likewise.
27554         * modules/unistr/u32-mbtouc: Likewise.
27555         * modules/unistr/u32-mbtouc-unsafe: Likewise.
27556         * modules/unistr/u32-mbtoucr: Likewise.
27557         * modules/unistr/u32-move: Likewise.
27558         * modules/unistr/u32-next: Likewise.
27559         * modules/unistr/u32-prev: Likewise.
27560         * modules/unistr/u32-set: Likewise.
27561         * modules/unistr/u32-startswith: Likewise.
27562         * modules/unistr/u32-stpcpy: Likewise.
27563         * modules/unistr/u32-stpncpy: Likewise.
27564         * modules/unistr/u32-strcat: Likewise.
27565         * modules/unistr/u32-strchr: Likewise.
27566         * modules/unistr/u32-strcmp: Likewise.
27567         * modules/unistr/u32-strcoll: Likewise.
27568         * modules/unistr/u32-strcpy: Likewise.
27569         * modules/unistr/u32-strcspn: Likewise.
27570         * modules/unistr/u32-strdup: Likewise.
27571         * modules/unistr/u32-strlen: Likewise.
27572         * modules/unistr/u32-strmblen: Likewise.
27573         * modules/unistr/u32-strmbtouc: Likewise.
27574         * modules/unistr/u32-strncat: Likewise.
27575         * modules/unistr/u32-strncmp: Likewise.
27576         * modules/unistr/u32-strncpy: Likewise.
27577         * modules/unistr/u32-strnlen: Likewise.
27578         * modules/unistr/u32-strpbrk: Likewise.
27579         * modules/unistr/u32-strrchr: Likewise.
27580         * modules/unistr/u32-strspn: Likewise.
27581         * modules/unistr/u32-strstr: Likewise.
27582         * modules/unistr/u32-strtok: Likewise.
27583         * modules/unistr/u32-to-u16: Likewise.
27584         * modules/unistr/u32-to-u8: Likewise.
27585         * modules/unistr/u32-uctomb: Likewise.
27586         * modules/uniwbrk/u8-wordbreaks: Likewise.
27587         * modules/uniwbrk/u16-wordbreaks: Likewise.
27588         * modules/uniwbrk/u32-wordbreaks: Likewise.
27589         * modules/uniwbrk/ulc-wordbreaks: Likewise.
27590         * modules/uniwbrk/wordbreak-property: Likewise.
27591         * modules/uniwidth/u8-strwidth: Likewise.
27592         * modules/uniwidth/u8-width: Likewise.
27593         * modules/uniwidth/u16-strwidth: Likewise.
27594         * modules/uniwidth/u16-width: Likewise.
27595         * modules/uniwidth/u32-strwidth: Likewise.
27596         * modules/uniwidth/u32-width: Likewise.
27597         * modules/uniwidth/width: Likewise.
27598         * modules/unicase/cased-tests (Makefile.am): Link all test programs
27599         with $(LIBUNISTRING).
27600         * modules/unicase/ignorable-tests: Likewise.
27601         * modules/unicase/locale-language-tests: Likewise.
27602         * modules/unicase/tolower-tests: Likewise.
27603         * modules/unicase/totitle-tests: Likewise.
27604         * modules/unicase/toupper-tests: Likewise.
27605         * modules/unicase/u8-casecmp-tests: Likewise.
27606         * modules/unicase/u8-casecoll-tests: Likewise.
27607         * modules/unicase/u8-casefold-tests: Likewise.
27608         * modules/unicase/u8-is-cased-tests: Likewise.
27609         * modules/unicase/u8-is-casefolded-tests: Likewise.
27610         * modules/unicase/u8-is-lowercase-tests: Likewise.
27611         * modules/unicase/u8-is-titlecase-tests: Likewise.
27612         * modules/unicase/u8-is-uppercase-tests: Likewise.
27613         * modules/unicase/u8-tolower-tests: Likewise.
27614         * modules/unicase/u8-totitle-tests: Likewise.
27615         * modules/unicase/u8-toupper-tests: Likewise.
27616         * modules/unicase/u16-casecmp-tests: Likewise.
27617         * modules/unicase/u16-casecoll-tests: Likewise.
27618         * modules/unicase/u16-casefold-tests: Likewise.
27619         * modules/unicase/u16-is-cased-tests: Likewise.
27620         * modules/unicase/u16-is-casefolded-tests: Likewise.
27621         * modules/unicase/u16-is-lowercase-tests: Likewise.
27622         * modules/unicase/u16-is-titlecase-tests: Likewise.
27623         * modules/unicase/u16-is-uppercase-tests: Likewise.
27624         * modules/unicase/u16-tolower-tests: Likewise.
27625         * modules/unicase/u16-totitle-tests: Likewise.
27626         * modules/unicase/u16-toupper-tests: Likewise.
27627         * modules/unicase/u32-casecmp-tests: Likewise.
27628         * modules/unicase/u32-casecoll-tests: Likewise.
27629         * modules/unicase/u32-casefold-tests: Likewise.
27630         * modules/unicase/u32-is-cased-tests: Likewise.
27631         * modules/unicase/u32-is-casefolded-tests: Likewise.
27632         * modules/unicase/u32-is-lowercase-tests: Likewise.
27633         * modules/unicase/u32-is-titlecase-tests: Likewise.
27634         * modules/unicase/u32-is-uppercase-tests: Likewise.
27635         * modules/unicase/u32-tolower-tests: Likewise.
27636         * modules/unicase/u32-totitle-tests: Likewise.
27637         * modules/unicase/u32-toupper-tests: Likewise.
27638         * modules/unicase/ulc-casecmp-tests: Likewise.
27639         * modules/unicase/ulc-casecoll-tests: Likewise.
27640         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
27641         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
27642         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
27643         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
27644         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
27645         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
27646         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
27647         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
27648         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
27649         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
27650         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
27651         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
27652         * modules/unictype/bidicategory-byname-tests: Likewise.
27653         * modules/unictype/bidicategory-name-tests: Likewise.
27654         * modules/unictype/bidicategory-of-tests: Likewise.
27655         * modules/unictype/bidicategory-test-tests: Likewise.
27656         * modules/unictype/block-list-tests: Likewise.
27657         * modules/unictype/block-of-tests: Likewise.
27658         * modules/unictype/block-test-tests: Likewise.
27659         * modules/unictype/category-C-tests: Likewise.
27660         * modules/unictype/category-Cc-tests: Likewise.
27661         * modules/unictype/category-Cf-tests: Likewise.
27662         * modules/unictype/category-Cn-tests: Likewise.
27663         * modules/unictype/category-Co-tests: Likewise.
27664         * modules/unictype/category-Cs-tests: Likewise.
27665         * modules/unictype/category-L-tests: Likewise.
27666         * modules/unictype/category-Ll-tests: Likewise.
27667         * modules/unictype/category-Lm-tests: Likewise.
27668         * modules/unictype/category-Lo-tests: Likewise.
27669         * modules/unictype/category-Lt-tests: Likewise.
27670         * modules/unictype/category-Lu-tests: Likewise.
27671         * modules/unictype/category-M-tests: Likewise.
27672         * modules/unictype/category-Mc-tests: Likewise.
27673         * modules/unictype/category-Me-tests: Likewise.
27674         * modules/unictype/category-Mn-tests: Likewise.
27675         * modules/unictype/category-N-tests: Likewise.
27676         * modules/unictype/category-Nd-tests: Likewise.
27677         * modules/unictype/category-Nl-tests: Likewise.
27678         * modules/unictype/category-No-tests: Likewise.
27679         * modules/unictype/category-P-tests: Likewise.
27680         * modules/unictype/category-Pc-tests: Likewise.
27681         * modules/unictype/category-Pd-tests: Likewise.
27682         * modules/unictype/category-Pe-tests: Likewise.
27683         * modules/unictype/category-Pf-tests: Likewise.
27684         * modules/unictype/category-Pi-tests: Likewise.
27685         * modules/unictype/category-Po-tests: Likewise.
27686         * modules/unictype/category-Ps-tests: Likewise.
27687         * modules/unictype/category-S-tests: Likewise.
27688         * modules/unictype/category-Sc-tests: Likewise.
27689         * modules/unictype/category-Sk-tests: Likewise.
27690         * modules/unictype/category-Sm-tests: Likewise.
27691         * modules/unictype/category-So-tests: Likewise.
27692         * modules/unictype/category-Z-tests: Likewise.
27693         * modules/unictype/category-Zl-tests: Likewise.
27694         * modules/unictype/category-Zp-tests: Likewise.
27695         * modules/unictype/category-Zs-tests: Likewise.
27696         * modules/unictype/category-and-not-tests: Likewise.
27697         * modules/unictype/category-and-tests: Likewise.
27698         * modules/unictype/category-byname-tests: Likewise.
27699         * modules/unictype/category-name-tests: Likewise.
27700         * modules/unictype/category-none-tests: Likewise.
27701         * modules/unictype/category-of-tests: Likewise.
27702         * modules/unictype/category-or-tests: Likewise.
27703         * modules/unictype/category-test-withtable-tests: Likewise.
27704         * modules/unictype/combining-class-tests: Likewise.
27705         * modules/unictype/ctype-alnum-tests: Likewise.
27706         * modules/unictype/ctype-alpha-tests: Likewise.
27707         * modules/unictype/ctype-blank-tests: Likewise.
27708         * modules/unictype/ctype-cntrl-tests: Likewise.
27709         * modules/unictype/ctype-digit-tests: Likewise.
27710         * modules/unictype/ctype-graph-tests: Likewise.
27711         * modules/unictype/ctype-lower-tests: Likewise.
27712         * modules/unictype/ctype-print-tests: Likewise.
27713         * modules/unictype/ctype-punct-tests: Likewise.
27714         * modules/unictype/ctype-space-tests: Likewise.
27715         * modules/unictype/ctype-upper-tests: Likewise.
27716         * modules/unictype/ctype-xdigit-tests: Likewise.
27717         * modules/unictype/decimal-digit-tests: Likewise.
27718         * modules/unictype/digit-tests: Likewise.
27719         * modules/unictype/mirror-tests: Likewise.
27720         * modules/unictype/numeric-tests: Likewise.
27721         * modules/unictype/property-alphabetic-tests: Likewise.
27722         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
27723         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
27724         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
27725         * modules/unictype/property-bidi-block-separator-tests: Likewise.
27726         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
27727         * modules/unictype/property-bidi-common-separator-tests: Likewise.
27728         * modules/unictype/property-bidi-control-tests: Likewise.
27729         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
27730         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
27731         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
27732         * modules/unictype/property-bidi-european-digit-tests: Likewise.
27733         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
27734         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
27735         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
27736         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
27737         * modules/unictype/property-bidi-pdf-tests: Likewise.
27738         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
27739         * modules/unictype/property-bidi-whitespace-tests: Likewise.
27740         * modules/unictype/property-byname-tests: Likewise.
27741         * modules/unictype/property-combining-tests: Likewise.
27742         * modules/unictype/property-composite-tests: Likewise.
27743         * modules/unictype/property-currency-symbol-tests: Likewise.
27744         * modules/unictype/property-dash-tests: Likewise.
27745         * modules/unictype/property-decimal-digit-tests: Likewise.
27746         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
27747         * modules/unictype/property-deprecated-tests: Likewise.
27748         * modules/unictype/property-diacritic-tests: Likewise.
27749         * modules/unictype/property-extender-tests: Likewise.
27750         * modules/unictype/property-format-control-tests: Likewise.
27751         * modules/unictype/property-grapheme-base-tests: Likewise.
27752         * modules/unictype/property-grapheme-extend-tests: Likewise.
27753         * modules/unictype/property-grapheme-link-tests: Likewise.
27754         * modules/unictype/property-hex-digit-tests: Likewise.
27755         * modules/unictype/property-hyphen-tests: Likewise.
27756         * modules/unictype/property-id-continue-tests: Likewise.
27757         * modules/unictype/property-id-start-tests: Likewise.
27758         * modules/unictype/property-ideographic-tests: Likewise.
27759         * modules/unictype/property-ids-binary-operator-tests: Likewise.
27760         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
27761         * modules/unictype/property-ignorable-control-tests: Likewise.
27762         * modules/unictype/property-iso-control-tests: Likewise.
27763         * modules/unictype/property-join-control-tests: Likewise.
27764         * modules/unictype/property-left-of-pair-tests: Likewise.
27765         * modules/unictype/property-line-separator-tests: Likewise.
27766         * modules/unictype/property-logical-order-exception-tests: Likewise.
27767         * modules/unictype/property-lowercase-tests: Likewise.
27768         * modules/unictype/property-math-tests: Likewise.
27769         * modules/unictype/property-non-break-tests: Likewise.
27770         * modules/unictype/property-not-a-character-tests: Likewise.
27771         * modules/unictype/property-numeric-tests: Likewise.
27772         * modules/unictype/property-other-alphabetic-tests: Likewise.
27773         * modules/unictype/property-other-default-ignorable-code-point-tests:
27774         Likewise.
27775         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
27776         * modules/unictype/property-other-id-continue-tests: Likewise.
27777         * modules/unictype/property-other-id-start-tests: Likewise.
27778         * modules/unictype/property-other-lowercase-tests: Likewise.
27779         * modules/unictype/property-other-math-tests: Likewise.
27780         * modules/unictype/property-other-uppercase-tests: Likewise.
27781         * modules/unictype/property-paired-punctuation-tests: Likewise.
27782         * modules/unictype/property-paragraph-separator-tests: Likewise.
27783         * modules/unictype/property-pattern-syntax-tests: Likewise.
27784         * modules/unictype/property-pattern-white-space-tests: Likewise.
27785         * modules/unictype/property-private-use-tests: Likewise.
27786         * modules/unictype/property-punctuation-tests: Likewise.
27787         * modules/unictype/property-quotation-mark-tests: Likewise.
27788         * modules/unictype/property-radical-tests: Likewise.
27789         * modules/unictype/property-sentence-terminal-tests: Likewise.
27790         * modules/unictype/property-soft-dotted-tests: Likewise.
27791         * modules/unictype/property-space-tests: Likewise.
27792         * modules/unictype/property-terminal-punctuation-tests: Likewise.
27793         * modules/unictype/property-test-tests: Likewise.
27794         * modules/unictype/property-titlecase-tests: Likewise.
27795         * modules/unictype/property-unassigned-code-value-tests: Likewise.
27796         * modules/unictype/property-unified-ideograph-tests: Likewise.
27797         * modules/unictype/property-uppercase-tests: Likewise.
27798         * modules/unictype/property-variation-selector-tests: Likewise.
27799         * modules/unictype/property-white-space-tests: Likewise.
27800         * modules/unictype/property-xid-continue-tests: Likewise.
27801         * modules/unictype/property-xid-start-tests: Likewise.
27802         * modules/unictype/property-zero-width-tests: Likewise.
27803         * modules/unictype/scripts-tests: Likewise.
27804         * modules/unictype/syntax-c-ident-tests: Likewise.
27805         * modules/unictype/syntax-c-whitespace-tests: Likewise.
27806         * modules/unictype/syntax-java-ident-tests: Likewise.
27807         * modules/unictype/syntax-java-whitespace-tests: Likewise.
27808         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
27809         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
27810         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
27811         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
27812         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
27813         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
27814         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
27815         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
27816         * modules/uniname/uniname-tests: Likewise.
27817         * modules/uninorm/canonical-decomposition-tests: Likewise.
27818         * modules/uninorm/compat-decomposition-tests: Likewise.
27819         * modules/uninorm/composition-tests: Likewise.
27820         * modules/uninorm/decomposing-form-tests: Likewise.
27821         * modules/uninorm/decomposition-tests: Likewise.
27822         * modules/uninorm/filter-tests: Likewise.
27823         * modules/uninorm/nfc-tests: Likewise.
27824         * modules/uninorm/nfd-tests: Likewise.
27825         * modules/uninorm/nfkc-tests: Likewise.
27826         * modules/uninorm/nfkd-tests: Likewise.
27827         * modules/uninorm/u8-normcmp-tests: Likewise.
27828         * modules/uninorm/u8-normcoll-tests: Likewise.
27829         * modules/uninorm/u16-normcmp-tests: Likewise.
27830         * modules/uninorm/u16-normcoll-tests: Likewise.
27831         * modules/uninorm/u32-normcmp-tests: Likewise.
27832         * modules/uninorm/u32-normcoll-tests: Likewise.
27833         * modules/unistdio/u8-asnprintf-tests: Likewise.
27834         * modules/unistdio/u8-vasnprintf-tests: Likewise.
27835         * modules/unistdio/u8-vasprintf-tests: Likewise.
27836         * modules/unistdio/u8-vsnprintf-tests: Likewise.
27837         * modules/unistdio/u8-vsprintf-tests: Likewise.
27838         * modules/unistdio/u16-asnprintf-tests: Likewise.
27839         * modules/unistdio/u16-vasnprintf-tests: Likewise.
27840         * modules/unistdio/u16-vasprintf-tests: Likewise.
27841         * modules/unistdio/u16-vsnprintf-tests: Likewise.
27842         * modules/unistdio/u16-vsprintf-tests: Likewise.
27843         * modules/unistdio/u32-asnprintf-tests: Likewise.
27844         * modules/unistdio/u32-vasnprintf-tests: Likewise.
27845         * modules/unistdio/u32-vasprintf-tests: Likewise.
27846         * modules/unistdio/u32-vsnprintf-tests: Likewise.
27847         * modules/unistdio/u32-vsprintf-tests: Likewise.
27848         * modules/unistdio/ulc-asnprintf-tests: Likewise.
27849         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
27850         * modules/unistdio/ulc-vasprintf-tests: Likewise.
27851         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
27852         * modules/unistdio/ulc-vsprintf-tests: Likewise.
27853         * modules/unistr/u8-check-tests: Likewise.
27854         * modules/unistr/u8-chr-tests: Likewise.
27855         * modules/unistr/u8-cmp-tests: Likewise.
27856         * modules/unistr/u8-cmp2-tests: Likewise.
27857         * modules/unistr/u8-cpy-alloc-tests: Likewise.
27858         * modules/unistr/u8-cpy-tests: Likewise.
27859         * modules/unistr/u8-mblen-tests: Likewise.
27860         * modules/unistr/u8-mbsnlen-tests: Likewise.
27861         * modules/unistr/u8-mbtouc-tests: Likewise.
27862         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
27863         * modules/unistr/u8-mbtoucr-tests: Likewise.
27864         * modules/unistr/u8-move-tests: Likewise.
27865         * modules/unistr/u8-next-tests: Likewise.
27866         * modules/unistr/u8-prev-tests: Likewise.
27867         * modules/unistr/u8-set-tests: Likewise.
27868         * modules/unistr/u8-stpcpy-tests: Likewise.
27869         * modules/unistr/u8-stpncpy-tests: Likewise.
27870         * modules/unistr/u8-strcat-tests: Likewise.
27871         * modules/unistr/u8-strcmp-tests: Likewise.
27872         * modules/unistr/u8-strcoll-tests: Likewise.
27873         * modules/unistr/u8-strcpy-tests: Likewise.
27874         * modules/unistr/u8-strdup-tests: Likewise.
27875         * modules/unistr/u8-strlen-tests: Likewise.
27876         * modules/unistr/u8-strmblen-tests: Likewise.
27877         * modules/unistr/u8-strmbtouc-tests: Likewise.
27878         * modules/unistr/u8-strncat-tests: Likewise.
27879         * modules/unistr/u8-strncmp-tests: Likewise.
27880         * modules/unistr/u8-strncpy-tests: Likewise.
27881         * modules/unistr/u8-strnlen-tests: Likewise.
27882         * modules/unistr/u8-to-u16-tests: Likewise.
27883         * modules/unistr/u8-to-u32-tests: Likewise.
27884         * modules/unistr/u8-uctomb-tests: Likewise.
27885         * modules/unistr/u16-check-tests: Likewise.
27886         * modules/unistr/u16-chr-tests: Likewise.
27887         * modules/unistr/u16-cmp-tests: Likewise.
27888         * modules/unistr/u16-cmp2-tests: Likewise.
27889         * modules/unistr/u16-cpy-alloc-tests: Likewise.
27890         * modules/unistr/u16-cpy-tests: Likewise.
27891         * modules/unistr/u16-mblen-tests: Likewise.
27892         * modules/unistr/u16-mbsnlen-tests: Likewise.
27893         * modules/unistr/u16-mbtouc-tests: Likewise.
27894         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
27895         * modules/unistr/u16-mbtoucr-tests: Likewise.
27896         * modules/unistr/u16-move-tests: Likewise.
27897         * modules/unistr/u16-next-tests: Likewise.
27898         * modules/unistr/u16-prev-tests: Likewise.
27899         * modules/unistr/u16-set-tests: Likewise.
27900         * modules/unistr/u16-stpcpy-tests: Likewise.
27901         * modules/unistr/u16-stpncpy-tests: Likewise.
27902         * modules/unistr/u16-strcat-tests: Likewise.
27903         * modules/unistr/u16-strcmp-tests: Likewise.
27904         * modules/unistr/u16-strcoll-tests: Likewise.
27905         * modules/unistr/u16-strcpy-tests: Likewise.
27906         * modules/unistr/u16-strdup-tests: Likewise.
27907         * modules/unistr/u16-strlen-tests: Likewise.
27908         * modules/unistr/u16-strmblen-tests: Likewise.
27909         * modules/unistr/u16-strmbtouc-tests: Likewise.
27910         * modules/unistr/u16-strncat-tests: Likewise.
27911         * modules/unistr/u16-strncmp-tests: Likewise.
27912         * modules/unistr/u16-strncpy-tests: Likewise.
27913         * modules/unistr/u16-strnlen-tests: Likewise.
27914         * modules/unistr/u16-to-u32-tests: Likewise.
27915         * modules/unistr/u16-to-u8-tests: Likewise.
27916         * modules/unistr/u16-uctomb-tests: Likewise.
27917         * modules/unistr/u32-check-tests: Likewise.
27918         * modules/unistr/u32-chr-tests: Likewise.
27919         * modules/unistr/u32-cmp-tests: Likewise.
27920         * modules/unistr/u32-cmp2-tests: Likewise.
27921         * modules/unistr/u32-cpy-alloc-tests: Likewise.
27922         * modules/unistr/u32-cpy-tests: Likewise.
27923         * modules/unistr/u32-mblen-tests: Likewise.
27924         * modules/unistr/u32-mbsnlen-tests: Likewise.
27925         * modules/unistr/u32-mbtouc-tests: Likewise.
27926         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
27927         * modules/unistr/u32-mbtoucr-tests: Likewise.
27928         * modules/unistr/u32-move-tests: Likewise.
27929         * modules/unistr/u32-next-tests: Likewise.
27930         * modules/unistr/u32-prev-tests: Likewise.
27931         * modules/unistr/u32-set-tests: Likewise.
27932         * modules/unistr/u32-stpcpy-tests: Likewise.
27933         * modules/unistr/u32-stpncpy-tests: Likewise.
27934         * modules/unistr/u32-strcat-tests: Likewise.
27935         * modules/unistr/u32-strcmp-tests: Likewise.
27936         * modules/unistr/u32-strcoll-tests: Likewise.
27937         * modules/unistr/u32-strcpy-tests: Likewise.
27938         * modules/unistr/u32-strdup-tests: Likewise.
27939         * modules/unistr/u32-strlen-tests: Likewise.
27940         * modules/unistr/u32-strmblen-tests: Likewise.
27941         * modules/unistr/u32-strmbtouc-tests: Likewise.
27942         * modules/unistr/u32-strncat-tests: Likewise.
27943         * modules/unistr/u32-strncmp-tests: Likewise.
27944         * modules/unistr/u32-strncpy-tests: Likewise.
27945         * modules/unistr/u32-strnlen-tests: Likewise.
27946         * modules/unistr/u32-to-u16-tests: Likewise.
27947         * modules/unistr/u32-to-u8-tests: Likewise.
27948         * modules/unistr/u32-uctomb-tests: Likewise.
27949         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
27950         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
27951         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
27952         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
27953         * modules/uniwidth/u8-strwidth-tests: Likewise.
27954         * modules/uniwidth/u8-width-tests: Likewise.
27955         * modules/uniwidth/u16-strwidth-tests: Likewise.
27956         * modules/uniwidth/u16-width-tests: Likewise.
27957         * modules/uniwidth/u32-strwidth-tests: Likewise.
27958         * modules/uniwidth/u32-width-tests: Likewise.
27959         * modules/uniwidth/width-tests: Likewise.
27960
27961 2010-05-18  Richard Jones  <rjones@redhat.com>
27962
27963         doc: users.txt: list hivex
27964         * users.txt: Add hivex.
27965
27966 2010-05-18  Richard Jones  <rjones@redhat.com>
27967
27968         doc: users.txt: list febootstrap
27969         * users.txt: Add febootstrap.
27970
27971 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
27972
27973         bootstrap: fix an error when gnulib is not used as a git submodule
27974         * build-aux/bootstrap (gnulib_path): If its length is zero then
27975         assign "gnulib" to it.
27976         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
27977
27978 2010-05-16  Bruno Haible  <bruno@clisp.org>
27979
27980         Avoid autoconf warnings about AM_ICONV.
27981         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
27982         2.64.
27983
27984 2010-05-16  Bruno Haible  <bruno@clisp.org>
27985
27986         absolute-header: Make the macro usable in more situations.
27987         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
27988         from gl_ABSOLUTE_HEADER.
27989         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
27990
27991 2010-05-16  James Youngman  <jay@gnu.org>
27992
27993         doc: update users.txt
27994         * users.txt: Add CSSC.
27995
27996 2010-05-16  Jim Meyering  <meyering@redhat.com>
27997
27998         init.sh: fix an error in the previous change; add more comments
27999         * tests/init.sh: Compare exit code in loop against 9, not 2.
28000         Patch by Bruno Haible.
28001         Make the two tests more similar by adding an empty "then" clause.
28002         Add comments.
28003
28004         init.sh: avoid unnecessary shell re-exec
28005         * tests/init.sh: Improve the re-exec-required check to first test the
28006         current shell.  If it passes the test, do not search for a shell that
28007         does pass, and do not re-exec.  This test is particularly contorted to
28008         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
28009         of $(...) evokes a syntax error and causes immediate shell exit with
28010         status 2.  Bruno Haible reported that the re-exec made it impossible
28011         to single-step through any init.sh-using script.
28012
28013 2010-05-16  Bruno Haible  <bruno@clisp.org>
28014
28015         Fix collision between gnulib's and libintl's printf replacements.
28016         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
28017         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
28018         (printf): When using GNU C, map the __printf__ function to rpl_printf
28019         via __asm__. When not using GNU C, define rpl_printf instead of
28020         __printf__.
28021         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
28022         commit.
28023         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
28024         commit.
28025         * m4/asm-underscore.m4: New file.
28026         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
28027         * modules/stdio (Files): Add m4/asm-underscore.m4.
28028         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
28029         Reported by Ben Pfaff.
28030
28031 2010-05-16  Bruno Haible  <bruno@clisp.org>
28032
28033         verify: Avoid skipping the test on openSUSE 11.0.
28034         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
28035
28036 2010-05-13  Bruno Haible  <bruno@clisp.org>
28037
28038         Avoid useless warnings from G++.
28039         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
28040         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
28041         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28042
28043 2010-05-11  Jim Meyering  <meyering@redhat.com>
28044
28045         maint.mk: tweak preceding change
28046         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
28047         regexps tighter by anchoring at EOL, and make the new group "shy"
28048         for slightly decreased overhead.
28049
28050 2010-05-11  Eric Blake  <eblake@redhat.com>
28051
28052         maint.mk: gnulib doesn't guarantee NSIG
28053         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
28054
28055 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
28056
28057         test-pwrite.c: Remove unused variable declaration.
28058         * tests/test-pwrite.c (main): Remove read_buf declaration.
28059
28060         Remove useless test-pwrite.sh file.
28061         * tests/test-pwrite.sh: Delete file.
28062         * modules/pwrite-tests: Remove references.
28063         Reported by Bruno Haible.
28064
28065 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
28066
28067         init.sh: fix a typo
28068         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
28069
28070 2010-05-10  Jim Meyering  <meyering@redhat.com>
28071
28072         maint.mk: avoid using a temporary file in the always-defined-macros check
28073         * top/maint.mk (.re-defmac): Remove rule.
28074         (gl_trap_): Remove definition.
28075         (sc_prohibit_always-defined_macros): Rewrite not to create and
28076         depend on a temporary file.  Instead, depend on GNU grep's ability
28077         to read a list of regular expressions from stdin when given "-f -".
28078
28079 2010-05-09  Bruno Haible  <bruno@clisp.org>
28080
28081         Update to GNU gettext 0.18, part 1.
28082         * m4/gettext.m4: Update to GNU gettext 0.18.
28083         * m4/intl.m4: Likewise.
28084         * m4/po.m4: Likewise.
28085         * modules/gettext (Files): Add m4/fcntl-o.m4.
28086         (configure.ac): Require gettext infrastructure from version 0.18.
28087
28088 2010-05-09  Jim Meyering  <meyering@redhat.com>
28089
28090         init.sh: enable MALLOC_PERTURB_
28091         * tests/init.sh: Enable glibc's malloc-perturbing option.
28092
28093         maint.mk: improve sc_cross_check_PATH_usage_in_tests
28094         With my recent change in init.sh from the two-line form:
28095             -#   : ${srcdir=.}
28096             -#   . "$srcdir/init.sh"; path_prepend_ .
28097             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
28098         I noticed that using the one-line form would cause this test
28099         to fail with a false-positive, or to stop working altogether,
28100         depending on whether help-version changed or all the tests did.
28101         * top/maint.mk (_hv_regex): Remove this definition.
28102         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
28103         (_hv_regex_strong): Use a stronger regex to check for conformance.
28104         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
28105         Give a separate diagnostic for lack of conforming use.
28106
28107         maint.mk: prohibit definition of symbols defined by gnulib
28108         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
28109         definition of symbols defined by gnulib.
28110
28111 2010-05-09  Bruno Haible  <bruno@clisp.org>
28112
28113         acl: Avoid test failure on Cygwin-hosted mingw.
28114         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
28115
28116 2010-05-09  Bruno Haible  <bruno@clisp.org>
28117
28118         error: Use system's fcntl function.
28119         * lib/error.c (fcntl): Undefine.
28120
28121 2010-05-09  Jim Meyering  <meyering@redhat.com>
28122
28123         verify: adjust formatting to be more consistent
28124         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
28125         argument-list '('s, and after one comma.
28126
28127 2010-05-09  Bruno Haible  <bruno@clisp.org>
28128
28129         error: More reliable output on mingw.
28130         * lib/error.c: Include <windows.h>.
28131         (is_open): New function.
28132         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
28133         defined.
28134
28135 2010-05-09  Bruno Haible  <bruno@clisp.org>
28136
28137         vasnprintf: Fix syntax errors in libintl build on mingw.
28138         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
28139         pad_ourselves and prec_ourselves after use.
28140
28141 2010-05-08  Bruno Haible  <bruno@clisp.org>
28142
28143         * lib/config.charset: Update comments for Cygwin 1.7.
28144         * lib/localcharset.c: Likewise.
28145
28146 2010-05-07  Jim Meyering  <meyering@redhat.com>
28147
28148         init.sh: improve comments
28149         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
28150         . "${srcdir=.}/init.sh"; path_prepend_ .
28151         Add a note about path_prepend_ and the alternative of using
28152         TESTS_ENVIRONMENT.
28153
28154 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
28155
28156         exclude: Unescape hashed patterns in wildcard mode.
28157         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
28158         to the hash list.
28159         * tests/test-exclude8.sh: New test case.
28160         * modules/exclude-tests: Add new test.
28161
28162 2010-05-05  Eric Blake  <eblake@redhat.com>
28163
28164         verify: automate tests
28165         * modules/verify-tests: New module.
28166         * tests/test-verify.sh: New file.
28167         * tests/test-verify.c: Guard each negative test with a unique id.
28168         Also avoid warning about unused left hand of comma expressions.
28169
28170 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
28171
28172         Further improvements to verify.h, suggested by Eric Blake.
28173         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
28174         the GL_* versions, to avoid collision with OpenGL.
28175         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
28176         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
28177         than testing merely whether it's defined.
28178
28179         Modify verify.h to pacify gcc -Wredundant_decls.
28180         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
28181         These use the prefix "GL_" since they're likely to be useful elsewhere.
28182         We may need to break them out into a different .h file.
28183         (__COUNTER__): Define to 0 if the compiler doesn't support it.
28184         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
28185         of verify_function__.
28186
28187 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
28188
28189         Tests for module pwrite.
28190         * modules/pwrite-tests: New file.
28191         * tests/test-pwrite.sh: New file.
28192         * tests/test-pwrite.c: New file.
28193
28194         New module pwrite.
28195         * lib/unistd.in.h (pwrite): New declaration.
28196         * lib/pwrite.c: New file, from glibc with modifications.
28197         * m4/pwrite.m4: New file.
28198         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
28199         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
28200         REPLACE_PWRITE.
28201         * modules/pwrite: New file.
28202         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
28203         REPLACE_PWRITE.
28204         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
28205         * doc/posix-functions/pwrite.texi: Mention the new module.
28206
28207 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
28208
28209         pread: Update documentation.
28210         * doc/posix-functions/pread.texi: Mention the 'pread' module.
28211
28212 2010-05-04  Eric Blake  <eblake@redhat.com>
28213
28214         docs: update cygwin progress
28215         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
28216         this bug.
28217         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
28218         Added in cygwin 1.7.2.
28219         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
28220         Likewise.
28221         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
28222         Likewise.
28223         * doc/glibc-functions/dup3.texi (dup3): Likewise.
28224         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
28225         * doc/glibc-functions/accept4.texi (accept4): Likewise.
28226         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
28227         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
28228         Mention nproc module.
28229         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
28230         bug in cygwin 1.7.5 addition.
28231         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
28232         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
28233         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
28234         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
28235         1.7.5.
28236         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
28237         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
28238         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
28239         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
28240         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
28241         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
28242         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
28243         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
28244         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
28245         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
28246         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
28247         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
28248         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
28249         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
28250         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
28251         Likewise.
28252         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
28253         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
28254         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
28255         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
28256         Likewise.
28257         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
28258         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
28259         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
28260         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
28261         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
28262         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
28263         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
28264         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
28265         Likewise.
28266         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
28267         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
28268         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
28269         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
28270         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
28271         Likewise.
28272         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
28273         Likewise.
28274         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
28275         Likewise.
28276         * doc/glibc-functions/xdrrec_endofrecord.texi
28277         (xdrrec_endofrecord): Likewise.
28278         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
28279         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
28280         Likewise.
28281         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
28282         Likewise.
28283
28284 2010-05-04  Jim Meyering  <meyering@redhat.com>
28285
28286         gendocs.sh: make its "-s FILE" option more useful
28287         * build-aux/gendocs.sh: When honoring the -s FILE option, update
28288         $PACKAGE to reflect the probably-different basename of "FILE".
28289
28290 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
28291
28292         bootstrap: don't ignore download_po_files failure
28293         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
28294         failure.
28295
28296 2010-05-03  Jim Meyering  <meyering@redhat.com>
28297
28298         maint.mk: allow to pass options to gendocs.sh
28299         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
28300         (gendocs_options_): New overridable variable.
28301
28302         gnu-web-doc-update: don't ignore configure or build failure
28303         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
28304
28305         announce-gen: backslash-escape '@'s in --help output
28306         * build-aux/announce-gen: Fix syntax errors.
28307
28308         maint.mk, announce-gen: allow project-specific announcement mail headers
28309         * top/maint.mk (translation_project_): Define default.
28310         (announcement_Cc_, announcement_mail_headers_): Likewise.
28311         (announcement): Invoke announce-gen with new --mail-headers option.
28312         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
28313
28314         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
28315         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
28316         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
28317         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
28318         line in the "err2" output file when running "make check" in verbose
28319         mode (i.e., with set -x enabled).
28320
28321 2010-05-03  Bruno Haible  <bruno@clisp.org>
28322
28323         wctob: Fix for weird platforms.
28324         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
28325         argument value.
28326
28327 2010-05-03  Jim Meyering  <meyering@redhat.com>
28328
28329         maint.mk: prohibit unwarranted use of <strings.h>
28330         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
28331         strings.h in a file that does not also use strcasecmp, strncasecmp,
28332         ffs or ffsll.
28333
28334         maint.mk: remove obsolete comments
28335         * top/maint.mk: Remove stale, commented-out rules.
28336
28337 2010-05-02  Bruno Haible  <bruno@clisp.org>
28338
28339         wcwidth: Declare also when it's aliased.
28340         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
28341         macro.
28342
28343 2010-05-02  Bruno Haible  <bruno@clisp.org>
28344
28345         Fix regression from 2010-04-25.
28346         * gnulib-tool (func_modules_transitive_closure): Check the status of
28347         all modules, not only of the tests that are of the form foo-tests where
28348         foo is a module.
28349
28350 2010-05-02  Bruno Haible  <bruno@clisp.org>
28351
28352         wctob: Work around nasty Cygwin 1.7.2 bug.
28353         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
28354         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
28355
28356 2010-05-01  Bruno Haible  <bruno@clisp.org>
28357
28358         fpurge: Sharper test.
28359         * tests/test-fpurge.c (main): Add one more ftell check.
28360         * modules/fpurge-tests (Depends-on): Add ftell.
28361         Suggested by Eric Blake.
28362
28363 2010-05-01  Bruno Haible  <bruno@clisp.org>
28364
28365         ftello: Another test.
28366         * tests/test-ftello3.c: New file.
28367         * modules/ftello-tests (Files): Add it.
28368         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
28369         MOSTLYCLEANFILES.
28370
28371         ftell: Another test.
28372         * tests/test-ftell3.c: New file.
28373         * modules/ftell-tests (Files): Add it.
28374         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
28375         MOSTLYCLEANFILES.
28376
28377 2010-05-01  Bruno Haible  <bruno@clisp.org>
28378
28379         ftell, ftello: Work around Solaris bug.
28380         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
28381         * lib/ftello.c: Include stdio-impl.h.
28382         (ftello): On Solaris, when _IOWRT is set, compute the result without
28383         looking at _IOREAD.
28384         * modules/ftello (Files): Add lib/stdio-impl.h.
28385         * doc/posix-functions/ftell.texi: Mention Solaris bug.
28386         * doc/posix-functions/ftello.texi: Likewise.
28387         Reported by Eric Blake.
28388
28389 2010-05-01  Bruno Haible  <bruno@clisp.org>
28390
28391         freading: Adapt to special meaning of _IOREAD flag on Solaris.
28392         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
28393         the _IOWRT flag is also set.
28394
28395 2010-05-01  Bruno Haible  <bruno@clisp.org>
28396
28397         Fix doc about a HP-UX stdio bug.
28398         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
28399         * doc/posix-functions/ftello.texi: Likewise.
28400
28401 2010-05-01  Bruno Haible  <bruno@clisp.org>
28402
28403         lseek test: Fix failure on Solaris.
28404         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
28405         output.
28406
28407 2010-04-30  Jim Meyering  <meyering@redhat.com>
28408
28409         bootstrap: don't ignore failure to generate po*/Makevars
28410         * build-aux/bootstrap (with_gettext): Don't ignore failure
28411         to create po/Makevars or runtime-po/Makevars.
28412
28413 2010-04-29  Eric Blake  <eblake@redhat.com>
28414
28415         headers: relax license to LGPLv2+
28416         * modules/fcntl-h (License): Relax license.
28417         * modules/getopt-posix (License): Likewise.
28418         * modules/locale (License): Likewise.
28419         * modules/math (License): Likewise.
28420         * modules/pty (License): Likewise.
28421         * modules/sched (License): Likewise.
28422         * modules/search (License): Likewise.
28423         * modules/spawn (License): Likewise.
28424         * modules/stdarg (License): Likewise.
28425         * modules/sysexits (License): Likewise.
28426
28427 2010-04-29  Jim Meyering  <meyering@redhat.com>
28428
28429         inttypes: relax license to LGPLv2+
28430         * modules/inttypes (License): Relax license.
28431
28432 2010-04-29  Simon Josefsson  <simon@josefsson.org>
28433
28434         * top/maint.mk (indent): Run twice to produce idempotent results.
28435
28436 2010-04-28  Bruno Haible  <bruno@clisp.org>
28437
28438         getdate: Generate getdate.c in the source directory.
28439         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
28440         MOSTLYCLEANFILES.
28441         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
28442
28443 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
28444
28445         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
28446         is not declared as a const *; avoid warnings in that case.
28447
28448 2010-04-28  Eric Blake  <eblake@redhat.com>
28449
28450         canonicalize-lgpl: avoid compiler warning
28451         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
28452         declaration' / 'extraneous semicolon' warning with some compilers.
28453         Reported by Andreas Gruenbacher.
28454
28455 2010-04-28  Jim Meyering  <meyering@redhat.com>
28456
28457         init.sh: ensure a more reliable exit status when exiting via trap
28458         * tests/init.sh (setup_): Don't rely on $? in signal handler.
28459         Inspired by patches from Dmitry V. Levin.
28460         Also trap on signal 3 (SIGQUIT).
28461
28462 2010-04-27  Bruno Haible  <bruno@clisp.org>
28463
28464         Update doc about utimes().
28465         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
28466         'utimens' module.
28467         Reported by Andreas Gruenbacher <agruen@suse.de>.
28468
28469 2010-04-27  Eric Blake  <eblake@redhat.com>
28470
28471         full-read, full-write: relax license
28472         * modules/full-read (License): Drop to LGPLv2+.
28473         * modules/full-write (License): Likewise.
28474         * modules/safe-read (License): Likewise.
28475         * modules/safe-write (License): Likewise.
28476
28477         pthread: mention library for linking
28478         * modules/pthread (Link): Mention $(LIB_PTHREAD).
28479
28480 2010-04-27  Jim Meyering  <meyering@redhat.com>
28481
28482         maint.mk: fix a bug introduced in last change
28483         * top/maint.mk (gl_assured_headers_): Now that all names are on
28484         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
28485         is not anchored to end of word, it should be adequate.
28486
28487         maint.mk: avoid side-effect in latest syntax-check
28488         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
28489         to run commands via $(shell...), and hence to incur cost only when
28490         the new rule is actually run.
28491
28492         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
28493         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
28494         and use that to create a regexp used to detect all #if HAVE_..._H uses.
28495         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
28496         (gl_assured_headers_, az_, AZ_): Define.
28497         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
28498
28499 2010-04-26  Jim Meyering  <jim@meyering.net>
28500             Bruno Haible  <bruno@clisp.org>
28501
28502         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
28503         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
28504         Prompted by an exchange with Gilles Espinasse.
28505
28506 2010-04-26  Jim Meyering  <meyering@redhat.com>
28507
28508         git-version-gen: aesthetic tweak
28509         * build-aux/git-version-gen: Use "$nl" rather than a literal,
28510         so that the command remains on a single line.
28511
28512 2010-04-26  Eric Blake  <eblake@redhat.com>
28513
28514         git-version-gen: allow use on EBCDIC hosts
28515         * build-aux/git-version-gen (dirty): Use literal rather than tying
28516         ourselves to ascii.
28517         Reported by Steve Goetze.
28518
28519 2010-04-25  Bruno Haible  <bruno@clisp.org>
28520
28521         netdb: Add support for GNULIB_POSIXCHECK.
28522         * lib/netdb.in.h: Include warn-on-use.h.
28523         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
28524         functions are used when GNULIB_POSIXCHECK is defined and the
28525         getaddrinfo module is not in use.
28526         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
28527         freeaddrinfo, gai_strerror, getnameinfo are declared.
28528         * modules/netdb (Depends-on): Add warn-on-use.
28529         (Makefile.am): Include warn-on-use.h in netdb.h.
28530
28531 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
28532
28533         build: avoid "make check" failure without .git/ directory
28534         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
28535         there is no .git/ directory.
28536
28537 2010-04-25  Bruno Haible  <bruno@clisp.org>
28538
28539         ptsname: Fix misuse of ttyname_r.
28540         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
28541         of errno.
28542
28543 2010-04-25  Bruno Haible  <bruno@clisp.org>
28544
28545         ttyname_r: Make it work on Solaris 10.
28546         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
28547         if the system function has the POSIX declaration. Test whether the
28548         function fails if the buffer is less than 128 bytes large.
28549         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
28550         system's ttyname_r function. Provide a reasonably large buffer.
28551         * modules/ttyname_r (Depends-on): Add extensions.
28552         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
28553
28554 2010-04-25  Bruno Haible  <bruno@clisp.org>
28555
28556         Use the 'extensions' module for some more functions on Solaris.
28557         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
28558         module.
28559         * doc/posix-functions/ctime_r.texi: Likewise.
28560         * doc/posix-functions/getgrgid_r.texi: Likewise.
28561         * doc/posix-functions/getgrnam_r.texi: Likewise.
28562         * doc/posix-functions/getpwnam_r.texi: Likewise.
28563         * doc/posix-functions/getpwuid_r.texi: Likewise.
28564         * doc/posix-functions/readdir_r.texi: Likewise.
28565         * doc/posix-functions/sigwait.texi: Likewise.
28566         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
28567         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
28568
28569 2010-04-25  Bruno Haible  <bruno@clisp.org>
28570
28571         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
28572         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
28573         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
28574         * lib/ttyname_r.c: Include <limits.h>.
28575         (ttyname_r): Define using the system's ttyname_r function, if it exists
28576         and not on Solaris.
28577         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
28578         set.
28579         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
28580         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
28581         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
28582         Reported by Simon Josefsson.
28583
28584 2010-04-25  Bruno Haible  <bruno@clisp.org>
28585
28586         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
28587         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
28588         * doc/posix-functions/ctime_r.texi: Likewise.
28589         * doc/posix-functions/getgrgid_r.texi: Likewise.
28590         * doc/posix-functions/getgrnam_r.texi: Likewise.
28591         * doc/posix-functions/getlogin_r.texi: Likewise.
28592         * doc/posix-functions/getpwnam_r.texi: Likewise.
28593         * doc/posix-functions/getpwuid_r.texi: Likewise.
28594         * doc/posix-functions/readdir_r.texi: Likewise.
28595         * doc/posix-functions/sigwait.texi: Likewise.
28596         * doc/posix-functions/ttyname_r.texi: Likewise.
28597         Reported by Simon Josefsson.
28598
28599 2010-04-25  Bruno Haible  <bruno@clisp.org>
28600
28601         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
28602         * gnulib-tool (func_usage): Document that --with-*-tests options apply
28603         also to --create-testdir.
28604         (func_acceptable): Don't consider the status of *-tests modules here.
28605         (func_modules_transitive_closure): Consider it here, before including a
28606         test module.
28607         (func_import, func_create_testdir): Set inc_all_direct_tests,
28608         inc_all_indirect_tests.
28609         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
28610         --create-testdir and --create-megatestdir.
28611
28612 2010-04-25  Bruno Haible  <bruno@clisp.org>
28613
28614         gnulib-tool: Add --without-*-tests options.
28615         * gnulib-tool (func_usage): Document the --without-*-tests options.
28616         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
28617         excl_unportable_tests): New variables.
28618         Fail if they are specified with --import or --update.
28619         (func_acceptable): Respect the excl_*_tests variables.
28620         (func_import): Set the excl_*_tests variables to empty.
28621
28622 2010-04-25  Simon Josefsson  <simon@josefsson.org>
28623             Bruno Haible  <bruno@clisp.org>
28624
28625         Work around a MacOS X 10.4 bug with openpty.
28626         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
28627         * tests/test-openpty.c (main): Close the master side explicitly.
28628
28629 2010-04-25  Bruno Haible  <bruno@clisp.org>
28630
28631         strnlen: Fix a C++ test error on MacOS X and Solaris.
28632         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
28633         the function is not declared.
28634         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
28635         Simon Josefsson.
28636
28637 2010-04-24  Bruno Haible  <bruno@clisp.org>
28638
28639         Avoid a gcc warning.
28640         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
28641         of correct type for %08lx directive.
28642         Reported by Eric Blake.
28643
28644 2010-04-24  Bruno Haible  <bruno@clisp.org>
28645
28646         vasnprintf: Correct errno value in case of out-of-memory.
28647         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
28648         or sprintf. Use the errno value from SNPRINTF or sprintf.
28649         Reported by Ian Beckwith <ianb@erislabs.net>.
28650
28651 2010-04-24  Bruno Haible  <bruno@clisp.org>
28652
28653         ansi-c++-opt: Find correct compiler when cross-compiling.
28654         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
28655         AC_CHECK_PROGS.
28656         Reported by Simon Josefsson.
28657
28658 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
28659
28660         vc-list-files: Add support for subversion
28661         * build-aux/vc-list-files: Use "svn list" to generate the list of
28662         files controlled by subversion.
28663
28664 2010-04-23  Jim Meyering  <meyering@redhat.com>
28665
28666         vc-list-files tests: convert to use init.sh
28667         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
28668         path_prepend_.
28669         Use Exit, not exit.
28670         Use skip_ rather than open coding it.
28671         Remove trap set-up and compare definitions.
28672         * tests/test-vc-list-files-git.sh: Likewise.
28673         * modules/vc-list-files-tests (Files): Add tests/init.sh.
28674
28675 2010-04-22  Simon Josefsson  <simon@josefsson.org>
28676
28677         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
28678         backup files.
28679
28680 2010-04-21  Simon Josefsson  <simon@josefsson.org>
28681
28682         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
28683
28684 2010-04-20  Eric Blake  <eblake@redhat.com>
28685
28686         tests: be robust to ignored SIGPIPE
28687         * tests/test-select-in.sh: Consume all output.
28688         * tests/test-lseek.sh: Check correct exit status, while avoiding
28689         EPIPE.
28690
28691 2010-04-20  Simon Josefsson  <simon@josefsson.org>
28692             Bruno Haible  <bruno@clisp.org>
28693
28694         visibility: Don't use -fvisibility if it leads to a warning.
28695         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
28696         yes, don't pretend that visibility works if it leads to a warning.
28697         Reported by Mike Gran <spk121@yahoo.com>.
28698
28699 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
28700
28701         * build-aux/bootstrap: Use "git -h" for testing for supported options
28702         instead of "git --help".  The short-form option only shows a summary,
28703         and doesn't layout the full man page.  Grep for the full option name
28704         in the summary, too.
28705
28706 2010-04-19  Bruno Haible  <bruno@clisp.org>
28707
28708         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
28709         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
28710         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
28711         mention of RELOCATABLE_STRIP.
28712         Reported by Sylvain Beucler <beuc@beuc.net>.
28713
28714 2010-04-19  Bruno Haible  <bruno@clisp.org>
28715
28716         * lib/diffseq.h: Fix typo in comment.
28717         Reported by Eric Blake.
28718
28719 2010-04-19  Bruno Haible  <bruno@clisp.org>
28720
28721         ioctl: Move autoconf macro to a .m4 file.
28722         * m4/ioctl.m4: New file, extracted from modules/ioctl.
28723         * modules/ioctl (Files): Add it.
28724         (configure.ac): Simply invoke gl_FUNC_IOCTL.
28725         Reported by Ian Beckwith <ianb@erislabs.net>.
28726
28727 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
28728             Bruno Haible  <bruno@clisp.org>
28729
28730         diffseq: Accommodate use-case with abstract arrays.
28731         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
28732         is not defined.
28733         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
28734         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
28735
28736 2010-04-18  Bruno Haible  <bruno@clisp.org>
28737
28738         * doc/posix-headers/stdbool.texi: More precise wording.
28739
28740 2010-04-17  Jim Meyering  <meyering@redhat.com>
28741
28742         maint.mk: use gnu-style indentation in an embedded perl script
28743         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
28744         Rename variable: s/two/last_two_bytes/
28745
28746 2010-04-16  Eric Blake  <eblake@redhat.com>
28747
28748         test-stdbool: skip test that fails with Solaris CC
28749         * tests/test-stdbool.c (f): Skip test that causes compilation
28750         error under buggy C++ compiler.
28751         * lib/stdbool.in.h: Document the limitation.
28752         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
28753
28754         setenv: allow compilation with C++
28755         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
28756         register keyword.
28757
28758         stdint: allow test to pass with C++
28759         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
28760
28761         getopt: allow compilation with C++
28762         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
28763         struct.
28764         * lib/getopt.c (_getopt_internal_r): Use correct type.
28765         Reported by Dagobert Michelson, via Joel E. Denny.
28766
28767 2010-04-16  Bruno Haible  <bruno@clisp.org>
28768
28769         Override netdb.h always.
28770         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
28771         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
28772         Reported by Ludovic Courtès <ludo@gnu.org>.
28773
28774 2010-04-15  Bruno Haible  <bruno@clisp.org>
28775
28776         openpty: Fix mistake from 2010-03-21.
28777         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
28778         Reported by Simon Josefsson.
28779
28780 2010-04-15  Eric Blake  <eblake@redhat.com>
28781
28782         test-forkpty: fix expected signature
28783         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
28784         Reported by Simon Josefsson.
28785
28786 2010-04-15  Jim Meyering  <meyering@redhat.com>
28787
28788         maint.mk: texinfo_suffix_re_: correct the default regexp
28789         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
28790
28791         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
28792         make it configurable via texinfo_suffix_re_.
28793
28794 2010-04-14  Eric Blake  <eblake@redhat.com>
28795
28796         strtok_r: relax license to LGPLv2+
28797         * modules/strtok_r (License): Relax license.
28798         Reported by Matthias Bolte.
28799
28800 2010-04-14  Simon Josefsson  <simon@josefsson.org>
28801
28802         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
28803         version 1.4.4 by default instead of requiring the libgcrypt
28804         version used during build.  This makes it possible to use the
28805         application with older but still binary compatible libgcrypt
28806         versions.
28807
28808 2010-04-13  Eric Blake  <eblake@redhat.com>
28809
28810         getopt-gnu: match recent glibc fixes and posix ruling
28811         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
28812         '+' handling, when requesting extensions.
28813         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
28814         'W;' handling.
28815         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
28816         * doc/posix-functions/getopt.texi (getopt): Document this.
28817         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
28818         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28819         Likewise.
28820
28821         getopt: merge bug fixes from glibc
28822         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
28823         diagnostics.  Honor '+:' correctly.  Reject ';'.
28824
28825         getopt-posix: detect MacOS bug
28826         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
28827         optind when missing a required argument.
28828         * doc/posix-functions/getopt.texi (getopt): Document the bug.
28829         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
28830         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28831         Likewise.
28832
28833         getopt-posix: avoid spurious failure on Solaris
28834         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
28835         an indicator that setting optind=1 is sufficient for reset.
28836
28837         getopt-posix: avoid spurious failure on FreeBSD
28838         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
28839         in POSIX mode, since the m4 test uses it.
28840
28841         gnulib-tool: silence warning on BSD sh
28842         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
28843
28844 2010-04-13  Jim Meyering  <meyering@redhat.com>
28845
28846         doc: users.txt: GNU patch now uses gnulib
28847         * users.txt: Add patch.
28848
28849 2010-04-12  Jim Meyering  <meyering@redhat.com>
28850
28851         maint.mk: generate more concise timing data for syntax-check rules
28852         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
28853         " done" from each line that reports a syntax-check test duration.
28854
28855 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
28856
28857         git-version-gen: use "git update-index..." rather than "git status"
28858         * build-aux/git-version-gen: Use git update-index --refresh, not
28859         "git status".  With some versions of git, "git status" would fail
28860         to update the index and result in an unwarranted "-dirty" suffix.
28861
28862 2010-04-11  Jim Meyering  <meyering@redhat.com>
28863
28864         openat: correct formatting (no semantic change)
28865         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
28866         Suggested by Bruno Haible.
28867
28868 2010-04-11  Bruno Haible  <bruno@clisp.org>
28869
28870         Stricter declaration checking in testdirs.
28871         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
28872         If for_tests is true, augment AM_CPPFLAGS to define
28873         GNULIB_STRICT_CHECKING.
28874         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
28875         GNULIB_STRICT_CHECKING is defined, verify that the function is
28876         declared.
28877
28878 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
28879             Bruno Haible  <bruno@clisp.org>
28880
28881         libunistring: Improve configure output.
28882         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
28883         Don't say "consider installing GNU libunistring" when checking again
28884         with libiconv.
28885
28886 2010-04-11  Bruno Haible  <bruno@clisp.org>
28887
28888         libunistring: Correct value of $LTLIBUNISTRING.
28889         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
28890         correct the value of $LTLIBUNISTRING.
28891
28892 2010-04-11  Bruno Haible  <bruno@clisp.org>
28893
28894         havelib: Add static libraries to LIBS in the right order.
28895         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
28896         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
28897
28898 2010-04-11  Bruno Haible  <bruno@clisp.org>
28899
28900         libunistring: Detect libunistring also when it depends on libiconv.
28901         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
28902         the second AC_LIB_HAVE_LINKFLAGS invocation.
28903
28904 2010-04-11  James Youngman  <jay@gnu.org>
28905
28906         close-stream: declare local scalars to be "const"
28907         * lib/close-stream.c (close_stream): Make boolean variables const
28908         to document the fact that we set but do not change them.
28909
28910 2010-04-11  Bruno Haible  <bruno@clisp.org>
28911
28912         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
28913
28914 2010-04-11  Jim Meyering  <meyering@redhat.com>
28915
28916         maint.mk: don't include dist-check.mk
28917         * top/maint.mk: Remove bogus include directive.
28918
28919         maint.mk: improve empty-line-at-EOF check
28920         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
28921         solution, rather than tail+Perl-based one.  The latter would read
28922         a few kilobytes from the end of each file, and did not handle empty
28923         files properly.
28924
28925         maint.mk: print the elapsed time for each syntax-check rule
28926         * top/maint.mk (sc_m_rules_): Save start time in a file.
28927         (sc_z_rules_): New rules: remove temp file and print elapsed time.
28928         (local-check): Interpose the .z rules
28929
28930 2010-04-11  Jim Meyering  <meyering@redhat.com>
28931
28932         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
28933         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
28934         empty file with one that ends in an empty line.
28935
28936 2010-04-10  Bruno Haible  <bruno@clisp.org>
28937
28938         mkdir: Make it work on mingw64.
28939         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
28940         * lib/mkdir.c: Update comment.
28941         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
28942
28943 2010-04-10  Bruno Haible  <bruno@clisp.org>
28944
28945         Don't override improved macro from newer autoconf.
28946         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
28947         autoconf >= 2.62.
28948         Reported by Joel E. Denny <jdenny@clemson.edu>.
28949
28950 2010-04-10  Jim Meyering  <meyering@redhat.com>
28951
28952         maint.mk: new syntax-check rule: prohibit empty lines at end of file
28953         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
28954
28955         maint.mk: correct a diagnostic
28956         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
28957         in diagnostic; now use $prohibit.
28958
28959 2010-04-10  Bruno Haible  <address@hidden>
28960
28961         fchownat: Fix a C++ test error on Solaris 8.
28962         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
28963         the function does not exist.
28964
28965 2010-04-10  Bruno Haible  <bruno@clisp.org>
28966
28967         vasnprintf: Add more tests.
28968         * tests/test-vasnprintf-posix.c: Include <errno.h>.
28969         (test_function): Test converting an invalid wide string.
28970
28971         vasnprintf: Correct handling of unconvertible wide string arguments.
28972         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
28973         VASNPRINTF.
28974         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
28975         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
28976         smaller than the expected maximum need for the directive. Set errno to
28977         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
28978         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
28979         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
28980         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
28981         * modules/vasnprintf (Files): Add m4/printf.m4.
28982         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28983
28984 2010-04-10  Bruno Haible  <bruno@clisp.org>
28985
28986         vasnprintf: Fix crash in %ls directive.
28987         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
28988         string is passed as argument to %ls, with no precision and no width.
28989         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28990
28991 2010-04-10  Bruno Haible  <bruno@clisp.org>
28992
28993         vasnprintf: Fix multiple test failures on mingw.
28994         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
28995         _snprintf, or snwprintf, not _snwprintf.
28996
28997 2010-04-10  Bruno Haible  <bruno@clisp.org>
28998
28999         write: Fix a C++ test error on mingw.
29000         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
29001
29002 2010-04-10  Bruno Haible  <bruno@clisp.org>
29003
29004         vasnprintf test: Reduce code duplication.
29005         * tests/test-vasnprintf.c (test_function): New function, extracted from
29006         test_vasnprintf.
29007         (test_vasnprintf, test_asnprintf): Invoke it.
29008
29009 2010-04-10  Bruno Haible  <bruno@clisp.org>
29010
29011         strnlen: Fix warning in C++ mode on MacOS X.
29012         * lib/string.in.h (strnlen): Use the modern idiom.
29013         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
29014         defining strnlen as a macro already in <config.h>.
29015         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29016         REPLACE_STRNLEN.
29017         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
29018         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29019
29020 2010-04-08  James Youngman  <jay@gnu.org>
29021
29022         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
29023         the example.
29024
29025 2010-04-09  Jim Meyering  <meyering@redhat.com>
29026
29027         maint.mk: print better diagnostic when there is no $(_hv_file)
29028         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
29029         announce that when $(_hv_file) (aka help-version) does not exist.
29030
29031         init.sh: run tr in the "C" locale to avoid multibyte interpretation
29032         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
29033         not try to interpret its random input bytes.  Jarno Rajahalme reported
29034         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
29035         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
29036         (mktempd_): Likewise, just in case.
29037
29038         ftruncate: add two years to projected module removal date: 2012
29039         * m4/ftruncate.m4: Adjust comments.
29040
29041         ftruncate: mark module as obsolete; even MinGW provides it, now
29042         * modules/ftruncate (Status): Obsolete.
29043         (Notice): Say that.
29044         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
29045         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
29046
29047 2010-04-08  Bruno Haible  <bruno@clisp.org>
29048
29049         Fix side effects from tests-related modules.
29050         * modules/dprintf-posix (Comment): New section.
29051         * modules/fprintf-posix (Comment): Likewise.
29052         * modules/obstack-printf-posix (Comment): Likewise.
29053         * modules/printf-posix (Comment): Likewise.
29054         * modules/snprintf-posix (Comment): Likewise.
29055         * modules/sprintf-posix (Comment): Likewise.
29056         * modules/vasnprintf-posix (Comment): Likewise.
29057         * modules/vasprintf-posix (Comment): Likewise.
29058         * modules/vdprintf-posix (Comment): Likewise.
29059         * modules/vfprintf-posix (Comment): Likewise.
29060         * modules/vprintf-posix (Comment): Likewise.
29061         * modules/vsnprintf-posix (Comment): Likewise.
29062         * modules/vsprintf-posix (Comment): Likewise.
29063         * modules/xprintf-posix (Comment): Likewise.
29064         * modules/xvasprintf-posix (Comment): Likewise.
29065         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
29066         * modules/floorf-tests (Depends-on): Likewise.
29067         * modules/round-tests (Depends-on): Likewise.
29068         * modules/roundf-tests (Depends-on): Likewise.
29069         * modules/trunc-tests (Depends-on): Likewise.
29070         * modules/truncf-tests (Depends-on): Likewise.
29071         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
29072         'fprintf-posix' module is not present.
29073         * tests/test-floorf2.c (check): Likewise.
29074         * tests/test-trunc2.c (check): Likewise.
29075         * tests/test-truncf2.c (check): Likewise.
29076         * tests/test-round2.c (equal): Likewise.
29077         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29078
29079 2010-04-07  Karl Berry  <karl@gnu.org>
29080
29081         * config/srclist.txt,
29082         * config/srclistvars.sh,
29083         * config/srclist-update: doc fixes.
29084
29085 2010-04-07  Jim Meyering  <meyering@redhat.com>
29086
29087         maint.mk: add a PATH crosschecking syntax-check rule
29088         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
29089         Useful if you use a test like the one in help-version (coreutils,
29090         diffutils, grep, gzip) that ensures $(VERSION) matches what is
29091         printed by prog --version.
29092
29093 2010-04-06  Bruno Haible  <bruno@clisp.org>
29094
29095         Fix link error on mingw.
29096         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
29097         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
29098
29099 2010-04-06  Bruno Haible  <bruno@clisp.org>
29100
29101         Assume rmdir exists.
29102         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
29103
29104 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
29105
29106         doc: update users.txt
29107         * users.txt: Add gcal.
29108
29109 2010-04-06  Jim Meyering  <meyering@redhat.com>
29110
29111         init.sh: simply unset TMPDIR rather than risking env -i
29112         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
29113         although it probably works fine on all Unix-based systems, some
29114         systems (Cygwin?) cannot tolerate a totally cleared environment.
29115         Suggestion from Eric Blake.
29116
29117 2010-04-06  Jim Meyering  <meyering@redhat.com>
29118
29119         init.sh: portability fix: use env's POSIX-specified -i option not -u
29120         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
29121         than unportable env -u.  Solaris 5.11's env lacks support for -u.
29122
29123 2010-04-05  Bruno Haible  <bruno@clisp.org>
29124
29125         btowc: Work around Cygwin 1.7.2 bug.
29126         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
29127         does not map NUL to 0.
29128         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
29129
29130 2010-04-05  Bruno Haible  <bruno@clisp.org>
29131
29132         Make the multithread modules work on Cygwin 1.7.2.
29133         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
29134         imported symbols can be declared weak, so that it returns "no" on
29135         Cygwin 1.7.2.
29136
29137 2010-04-05  Bruno Haible  <bruno@clisp.org>
29138
29139         Use the module 'strncat'.
29140         * modules/unistr/u8-strncat (Depends-on): Add strncat.
29141
29142         Tests for module 'strncat'.
29143         * modules/strncat-tests: New file.
29144         * tests/test-strncat.c: New file.
29145
29146         New module 'strncat'.
29147         * lib/string.in.h (strncat): New declaration.
29148         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
29149         * m4/strncat.m4: New file, based on m4/memchr.m4.
29150         * modules/strncat: New file.
29151         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
29152         is declared.
29153         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
29154         REPLACE_STRNCAT.
29155         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
29156         REPLACE_STRNCAT.
29157         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
29158         module.
29159         * tests/test-string-c++.cc: Check signature of strncat.
29160
29161 2010-04-05  Jim Meyering  <meyering@redhat.com>
29162
29163         xstrtoumax-tests: convert to use init.sh
29164         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
29165         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29166         Use Exit, not exit.
29167         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29168
29169         xstrtoimax-tests: convert to use init.sh
29170         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
29171         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29172         Use Exit, not exit.
29173         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29174
29175 2010-04-05  Bruno Haible  <bruno@clisp.org>
29176
29177         sys_socket: Avoid #define replacements in C++ mode.
29178         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
29179         warning to the function if possible, rather than #defining the symbol
29180         to a dysfunctional alias.
29181
29182 2010-04-05  Bruno Haible  <bruno@clisp.org>
29183
29184         fseeko: Fix C++ test error on mingw.
29185         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
29186         gl_FUNC_FSEEKO.
29187         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
29188         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
29189         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
29190         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
29191
29192 2010-04-05  Bruno Haible  <bruno@clisp.org>
29193
29194         duplocale: Improve test output.
29195         * tests/test-duplocale.c (main): Print reason for skipped test.
29196
29197 2010-04-05  Bruno Haible  <bruno@clisp.org>
29198
29199         Assume rmdir exists.
29200         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
29201         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
29202
29203 2010-04-05  Bruno Haible  <bruno@clisp.org>
29204
29205         Fix link error on Solaris 8 with cc.
29206         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
29207
29208 2010-04-05  Bruno Haible  <bruno@clisp.org>
29209
29210         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
29211         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
29212
29213 2010-04-05  Bruno Haible  <bruno@clisp.org>
29214
29215         vasprintf: Update documentation.
29216         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
29217
29218 2010-04-05  Bruno Haible  <bruno@clisp.org>
29219
29220         ptsname: Improve test.
29221         * tests/test-ptsname.c (main): Also try the various master names of BSD
29222         systems.
29223
29224 2010-04-05  Bruno Haible  <bruno@clisp.org>
29225
29226         memchr: Avoid a possible C++ test error.
29227         * lib/string.in.h (memchr): Provide declaration if function is missing.
29228         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
29229         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
29230         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
29231         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
29232
29233 2010-04-05  Bruno Haible  <bruno@clisp.org>
29234
29235         strtok_r: Improve idiom.
29236         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
29237         AC_LIBOBJ is used.
29238
29239 2010-04-05  Bruno Haible  <bruno@clisp.org>
29240
29241         strdup: Improve idiom.
29242         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
29243         AC_LIBOBJ is used.
29244         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
29245         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
29246         when AC_LIBOBJ is used.
29247
29248 2010-04-05  Bruno Haible  <bruno@clisp.org>
29249
29250         mbsinit, mbrtowc, wcrtomb: Improve idioms.
29251         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
29252         don't set REPLACE_MBSINIT to 1.
29253         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
29254         don't set REPLACE_MBRTOWC to 1.
29255         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
29256         exist, don't set REPLACE_MBSRTOWCS to 1.
29257         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
29258         exist, don't set REPLACE_MBSNRTOWCS to 1.
29259         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
29260         don't set REPLACE_WCRTOMB to 1.
29261         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
29262         exist, don't set REPLACE_WCSRTOMBS to 1.
29263         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
29264         exist, don't set REPLACE_WCSNRTOMBS to 1.
29265
29266 2010-04-05  Bruno Haible  <bruno@clisp.org>
29267
29268         ldexpl: Improve idiom.
29269         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
29270         make sure to set HAVE_DECL_LDEXPL to 0.
29271
29272 2010-04-05  Jim Meyering  <meyering@redhat.com>
29273
29274         xstrtol-tests: convert to use init.sh
29275         * modules/xstrtol-tests (Files): Add tests/init.sh.
29276         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29277         Use Exit, not exit.
29278         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29279
29280         atexit-tests: convert to use init.sh
29281         * modules/atexit-tests (Files): Add tests/init.sh.
29282         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29283         Use Exit, not exit.
29284         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29285
29286         init.sh: fix typo
29287         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
29288
29289         init.sh: make it easier for a test script to write to the tty, ...
29290         when using automake's parallel-tests mode.
29291         * tests/init.sh (stderr_fileno_): Define overridable variable.
29292         (warn_): New function, to use it.
29293         (fail_, skip_, framework_failure_): Use warn_.
29294
29295 2010-04-04  Bruno Haible  <bruno@clisp.org>
29296
29297         btowc: Avoid warning.
29298         * lib/btowc.c: Include <stdlib.h>.
29299         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
29300
29301 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
29302             Bruno Haible  <bruno@clisp.org>
29303
29304         wchar: Port to NetBSD 1.5.
29305         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
29306         * lib/wctype.in.h (WEOF): Likewise.
29307
29308 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
29309             Bruno Haible  <bruno@clisp.org>
29310
29311         Port extended stdio to NetBSD 1.5.
29312         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
29313         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
29314         older.
29315
29316 2010-04-04  Bruno Haible  <bruno@clisp.org>
29317
29318         string: Remove unused substitution.
29319         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
29320         HAVE_DECL_STRERROR.
29321         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
29322
29323 2010-04-04  Bruno Haible  <bruno@clisp.org>
29324
29325         strtod: Avoid a possible C++ test error.
29326         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
29327         set REPLACE_STRTOD.
29328
29329 2010-04-04  Bruno Haible  <bruno@clisp.org>
29330
29331         strerror: Update documentation.
29332         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
29333
29334 2010-04-04  Bruno Haible  <bruno@clisp.org>
29335
29336         stdio: Fix some C++ test errors on Solaris 8 with GCC.
29337         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
29338         _GL_CXXALIAS_SYS_CAST.
29339
29340 2010-04-04  Bruno Haible  <bruno@clisp.org>
29341
29342         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
29343         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
29344         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
29345         REPLACE_FREXPL to 1.
29346         * doc/posix-functions/frexpl.texi: Update documentation.
29347
29348 2010-04-04  Bruno Haible  <bruno@clisp.org>
29349
29350         math: Fix some C++ test errors on Solaris 8 and Cygwin.
29351         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
29352
29353 2010-04-04  Bruno Haible  <bruno@clisp.org>
29354
29355         Implement nanosleep for native Windows.
29356         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
29357
29358 2010-04-04  Bruno Haible  <bruno@clisp.org>
29359
29360         math: Fix some C++ test errors on Solaris 8.
29361         * lib/math.in.h (truncf, trunc): Use simpler idiom.
29362
29363 2010-04-04  Bruno Haible  <bruno@clisp.org>
29364
29365         math: Fix some C++ test errors on Cygwin.
29366         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
29367         truncl): Provide declaration if the system does not have it.
29368         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
29369         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
29370         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
29371         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
29372         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
29373         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
29374         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
29375         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
29376         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
29377         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
29378         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
29379         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
29380         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
29381         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
29382         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
29383         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
29384         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
29385         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
29386         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
29387         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
29388         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
29389         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
29390
29391 2010-04-04  Bruno Haible  <bruno@clisp.org>
29392
29393         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
29394         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
29395         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
29396         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
29397         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
29398         * m4/isinf.m4 (gl_ISINF): Likewise.
29399         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29400
29401 2010-04-04  Bruno Haible  <bruno@clisp.org>
29402
29403         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
29404         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
29405
29406 2010-04-04  Bruno Haible  <bruno@clisp.org>
29407
29408         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
29409         * modules/tmpfile (configure.ac): Update.
29410
29411         tmpfile: Fix C++ test error on mingw.
29412         * lib/stdio.in.h (tmpfile): New declaration.
29413         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
29414         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
29415         * modules/tmpfile (Depends-on): Add stdio.
29416         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
29417         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
29418         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
29419         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
29420         REPLACE_TMPFILE.
29421         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
29422
29423 2010-04-04  Bruno Haible  <bruno@clisp.org>
29424
29425         ioctl: Fix C++ test error on mingw.
29426         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
29427         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
29428         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
29429
29430 2010-04-03  Bruno Haible  <bruno@clisp.org>
29431
29432         wcwidth: Fix C++ test error on mingw.
29433         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
29434         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
29435         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
29436
29437 2010-04-03  Bruno Haible  <bruno@clisp.org>
29438
29439         nanosleep: Fix C++ test error on mingw.
29440         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
29441         * lib/time.in.h (nanosleep): Use modern idiom.
29442         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
29443         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
29444         REPLACE_NANOSLEEP to 1.
29445         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
29446         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
29447
29448 2010-04-03  Bruno Haible  <bruno@clisp.org>
29449
29450         strptime: Fix C++ test error on mingw.
29451         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
29452         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
29453         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
29454         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
29455         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
29456         not REPLACE_STRPTIME.
29457         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
29458         REPLACE_STRPTIME.
29459
29460 2010-04-03  Bruno Haible  <bruno@clisp.org>
29461
29462         timegm: Fix C++ test error on mingw.
29463         * lib/time.in.h (timegm): Use modern idiom.
29464         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
29465         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
29466         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
29467         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
29468
29469 2010-04-03  Bruno Haible  <bruno@clisp.org>
29470
29471         timegm: Assume declaration if function exists.
29472         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
29473         if it exists. Don't clobber ac_cv_func_timegm.
29474
29475 2010-04-03  Bruno Haible  <bruno@clisp.org>
29476
29477         time_r: Fix C++ test error on mingw.
29478         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
29479         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
29480         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
29481         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
29482         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
29483
29484 2010-04-03  Bruno Haible  <bruno@clisp.org>
29485
29486         time_r: Minor updates.
29487         * modules/time_r (Description): Mention the provided functions.
29488         * lib/time_r.c: Don't include <string.h>.
29489         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
29490         * doc/posix-functions/localtime_r.texi: Likewise.
29491
29492 2010-04-03  Bruno Haible  <bruno@clisp.org>
29493
29494         time: Fix regression introduced on 2010-03-08.
29495         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
29496         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
29497
29498 2010-04-03  Jim Meyering  <meyering@redhat.com>
29499
29500         maint.mk: don't silently disable project-specific syntax-check rules
29501         * top/maint.mk (_prohibit_regexp): Define, to help people realize
29502         that they need to convert their project-specific syntax-check rules
29503         to use the new _sc_search_regexp.
29504
29505 2010-04-03  Bruno Haible  <bruno@clisp.org>
29506
29507         fchdir: Fix regression introduced on 2010-03-08.
29508         * lib/unistd.in.h (fchdir): Fix declaration.
29509         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
29510         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
29511         REPLACE_FCHDIR.
29512         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
29513         REPLACE_FCHDIR.
29514
29515 2010-04-03  Bruno Haible  <bruno@clisp.org>
29516
29517         getpagesize: Fix C++ test error on mingw.
29518         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
29519         system does not declare the function.
29520         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
29521         declared.
29522         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29523         HAVE_DECL_GETPAGESIZE.
29524         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
29525
29526 2010-04-03  Bruno Haible  <bruno@clisp.org>
29527
29528         stdio: Make C++ tests work on mingw.
29529         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
29530         does not declare the function.
29531
29532 2010-04-03  Bruno Haible  <bruno@clisp.org>
29533
29534         ftello: Fix C++ test error on mingw.
29535         * lib/stdio.in.h (ftello): Use modern idiom.
29536         * lib/ftello.c (ftello): Renamed from rpl_ftello.
29537         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
29538         is missing and that it needs to be replaced.
29539         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
29540         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
29541         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
29542
29543 2010-04-03  Bruno Haible  <bruno@clisp.org>
29544
29545         fseeko: Fix C++ test error on mingw.
29546         * lib/stdio.in.h (fseeko): Use modern idiom.
29547         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
29548         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
29549         is missing and that it needs to be replaced.
29550         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
29551         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
29552         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
29553
29554 2010-04-03  Bruno Haible  <bruno@clisp.org>
29555
29556         mkstemp: Fix C++ test error on mingw.
29557         * lib/stdlib.in.h (mkstemp): Use modern idiom.
29558         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
29559         function is missing and that it needs to be replaced.
29560         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
29561         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
29562
29563 2010-04-03  Bruno Haible  <bruno@clisp.org>
29564
29565         stpncpy: Fix C++ test error on mingw.
29566         * lib/string.in.h (stpncpy): Use modern idiom.
29567         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
29568         function is missing and that it needs to be replaced.
29569         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29570         REPLACE_STPNCPY.
29571         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
29572
29573 2010-04-03  Bruno Haible  <bruno@clisp.org>
29574
29575         sys_stat: Fix C++ test error on mingw.
29576         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
29577         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
29578
29579 2010-04-03  Bruno Haible  <bruno@clisp.org>
29580
29581         pty: Update doc.
29582         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
29583
29584 2010-04-03  Bruno Haible  <bruno@clisp.org>
29585
29586         unistd: Fix C++ test error on mingw.
29587         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
29588
29589 2010-04-03  Bruno Haible  <bruno@clisp.org>
29590
29591         Update doc regarding mingw.
29592         * doc/glibc-functions/openpty.texi: Update regarding mingw.
29593         * doc/glibc-functions/login_tty.texi: Likewise.
29594         * doc/glibc-functions/forkpty.texi: Likewise.
29595
29596 2010-04-03  Bruno Haible  <bruno@clisp.org>
29597
29598         stdlib: Avoid compilation failure of c-strtold on mingw.
29599         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
29600
29601 2010-04-03  Bruno Haible  <bruno@clisp.org>
29602
29603         locale: Make C++ tests work on Cygwin and mingw.
29604         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
29605         cannot provide the function.
29606         Reported by Simon Josefsson.
29607
29608 2010-04-03  Bruno Haible  <bruno@clisp.org>
29609
29610         localename: Port to MacOS X 10.6.
29611         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
29612         memory layout of the locales in MacOS X 10.6 as well.
29613         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
29614
29615 2010-04-02  Bruno Haible  <bruno@clisp.org>
29616
29617         gnulib-tool: Ensure that long-running tests are executed last.
29618         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
29619         running tests after the one for the other tests.
29620
29621 2010-04-02  Bruno Haible  <bruno@clisp.org>
29622
29623         gnulib-tool: Ensure the tests in the main directory are executed first.
29624         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
29625         start with the current directory.
29626
29627 2010-04-02  Bruno Haible  <bruno@clisp.org>
29628
29629         Tests for module 'havelib', moved here from GNU gettext.
29630         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
29631         modifications.
29632         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
29633         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
29634         with modifications.
29635         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
29636         modifications.
29637         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
29638         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
29639         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
29640         with modifications.
29641         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
29642         with modifications.
29643         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
29644         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
29645         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
29646         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
29647         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
29648         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
29649         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
29650         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
29651         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
29652         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
29653         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
29654         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
29655         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
29656         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
29657         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
29658         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
29659         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
29660         with modifications.
29661         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
29662         with modifications.
29663         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
29664         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
29665         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
29666         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
29667         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
29668         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
29669         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
29670         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
29671         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
29672         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
29673         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
29674         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
29675         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
29676         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
29677         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
29678         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
29679         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
29680         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
29681         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
29682         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
29683         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
29684         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
29685         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
29686         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
29687         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
29688         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
29689         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
29690         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
29691         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
29692         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
29693         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
29694         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
29695         * tests/havelib/rpathx/rpathx.c: New file, from
29696         gettext/autoconf-lib-link.
29697         * tests/havelib/rpathx/Makefile.am: New file, from
29698         gettext/autoconf-lib-link.
29699         * tests/havelib/rpathx/configure.ac: New file, from
29700         gettext/autoconf-lib-link with modifications.
29701         * tests/havelib/rpathy/rpathy.c: New file, from
29702         gettext/autoconf-lib-link.
29703         * tests/havelib/rpathy/Makefile.am: New file, from
29704         gettext/autoconf-lib-link.
29705         * tests/havelib/rpathy/configure.ac: New file, from
29706         gettext/autoconf-lib-link with modifications.
29707         * tests/havelib/rpathz/rpathz.c: New file, from
29708         gettext/autoconf-lib-link.
29709         * tests/havelib/rpathz/Makefile.am: New file, from
29710         gettext/autoconf-lib-link.
29711         * tests/havelib/rpathz/configure.ac: New file, from
29712         gettext/autoconf-lib-link with modifications.
29713         * tests/havelib/rpathlx/usex.c: New file, from
29714         gettext/autoconf-lib-link.
29715         * tests/havelib/rpathlx/Makefile.am: New file, from
29716         gettext/autoconf-lib-link.
29717         * tests/havelib/rpathlx/configure.ac: New file, from
29718         gettext/autoconf-lib-link with modifications.
29719         * tests/havelib/rpathly/usey.c: New file, from
29720         gettext/autoconf-lib-link.
29721         * tests/havelib/rpathly/Makefile.am: New file, from
29722         gettext/autoconf-lib-link.
29723         * tests/havelib/rpathly/configure.ac: New file, from
29724         gettext/autoconf-lib-link with modifications.
29725         * tests/havelib/rpathlz/usez.c: New file, from
29726         gettext/autoconf-lib-link.
29727         * tests/havelib/rpathlz/Makefile.am: New file, from
29728         gettext/autoconf-lib-link.
29729         * tests/havelib/rpathlz/configure.ac: New file, from
29730         gettext/autoconf-lib-link with modifications.
29731         * tests/havelib/rpathlyx/usey.c: New file, from
29732         gettext/autoconf-lib-link.
29733         * tests/havelib/rpathlyx/Makefile.am: New file, from
29734         gettext/autoconf-lib-link.
29735         * tests/havelib/rpathlyx/configure.ac: New file, from
29736         gettext/autoconf-lib-link with modifications.
29737         * tests/havelib/rpathlzyx/usez.c: New file, from
29738         gettext/autoconf-lib-link.
29739         * tests/havelib/rpathlzyx/Makefile.am: New file, from
29740         gettext/autoconf-lib-link.
29741         * tests/havelib/rpathlzyx/configure.ac: New file, from
29742         gettext/autoconf-lib-link with modifications.
29743         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
29744         with modifications.
29745
29746 2010-04-02  Bruno Haible  <bruno@clisp.org>
29747
29748         gnulib-tool: Create distributed built sources also for the tests.
29749         * gnulib-tool (func_create_testdir): Also generate distributed built
29750         sources in the tests directory.
29751
29752 2010-04-02  Bruno Haible  <bruno@clisp.org>
29753
29754         gnulib-tool: Obey user's environment variables.
29755         * gnulib-tool (func_create_testdir): When creating built sources,
29756         respect the environment variables for autoconf, automake, etc. given by
29757         the user.
29758
29759 2010-04-02  Bruno Haible  <bruno@clisp.org>
29760
29761         gnulib-tool: Provide the value of --m4-base to modules.
29762         * gnulib-tool (func_import, func_create_testdir): Emit a definition
29763         of gl_m4_base.
29764
29765 2010-04-02  Eric Blake  <eblake@redhat.com>
29766
29767         maint.mk: fix some fallout
29768         * NEWS: Document the incompatible change, and its effect on cfg.mk.
29769         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
29770
29771 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
29772
29773         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
29774         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
29775         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
29776         (sc_cast_of_x_alloc_return_value): Likewise.
29777         (sc_cast_of_alloca_return_value): Likewise.
29778         (sc_space_tab): Likewise.
29779         (sc_prohibit_atoi_atof): Likewise.
29780         (sc_prohibit_magic_number_exit): Likewise.
29781         (sc_error_exit_success): Likewise.
29782         (sc_file_system): Likewise.
29783         (sc_prohibit_have_config_h): Likewise.
29784         (sc_require_config_h): Likewise.
29785         (sc_prohibit_HAVE_MBRTOWC): Likewise.
29786         (sc_obsolete_symbols): Likewise.
29787         (sc_changelog): Likewise.
29788         (sc_program_name): Likewise.
29789         (sc_the_the): Likewise.
29790         (sc_trailing_blank): Likewise.
29791         (sc_two_space_separator_in_usage): Likewise.
29792         (sc_useless_cpp_parens): Likewise.
29793         (sc_GPL_version): Likewise.
29794         (sc_GFDL_version): Likewise.
29795         (sc_texinfo_acronym): Likewise.
29796         (sc_prohibit_cvs_keyword): Likewise.
29797         (sc_prohibit_stat_st_blocks): Likewise.
29798         (sc_prohibit_S_IS_definition): Likewise.
29799         (sc_redundant_const): Likewise.
29800         (sc_makefile_TAB_only_indentation): Likewise.
29801         (sc_m4_quote_check): Likewise.
29802         (sc_makefile_path_separator_check): Likewise.
29803         (sc_copyright_check): Likewise.
29804         (sc_Wundef_boolean): Likewise.
29805         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
29806
29807         maint.mk: match 0 or more whitespace-before-function-call '('
29808         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
29809         that have zero or two-and-more spaces between the function name
29810         and the open parenthesis.
29811         (sc_error_message_warn_fatal): Likewise.
29812         (sc_error_message_uppercase): Likewise.
29813         (sc_error_message_period): Likewise.
29814
29815 2010-03-31  Eric Blake  <eblake@redhat.com>
29816
29817         maint.mk: check for [ as well as test
29818         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
29819         Based on a libvirt report by Matthias Bolte.
29820
29821         gnumakefile: don't squelch _version output
29822         * top/GNUmakefile (_version): Create one-shot dependency rather
29823         than using $(shell) when version must be regenerated.
29824         (_autoreconf): Run verbosely, by default.
29825
29826         sys_time: avoid compiler warnings
29827         * lib/sys_time.in.h (includes): Ensure gcc pragma is
29828         unconditional, fixing regression from 2010-03-29.
29829         Reported by Simon Josefsson.
29830
29831 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
29832
29833         maint.mk: s/_header_without_use/_sc_header_without_use/
29834         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
29835         (sc_prohibit_assert_without_use): Use the new name.
29836         (sc_prohibit_close_stream_without_use): Likewise.
29837         (sc_prohibit_getopt_without_use): Likewise.
29838         (sc_prohibit_quotearg_without_use): Likewise.
29839         (sc_prohibit_quote_without_use): Likewise.
29840         (sc_prohibit_long_options_without_use): Likewise.
29841         (sc_prohibit_inttostr_without_use): Likewise.
29842         (sc_prohibit_ignore_value_without_use): Likewise.
29843         (sc_prohibit_error_without_use): Likewise.
29844         (sc_prohibit_xalloc_without_use): Likewise.
29845         (sc_prohibit_hash_without_use): Likewise.
29846         (sc_prohibit_hash_pjw_without_use): Likewise.
29847         (sc_prohibit_safe_read_without_use): Likewise.
29848         (sc_prohibit_argmatch_without_use): Likewise.
29849         (sc_prohibit_canonicalize_without_use): Likewise.
29850         (sc_prohibit_root_dev_ino_without_use): Likewise.
29851         (sc_prohibit_openat_without_use): Likewise.
29852         (sc_prohibit_c_ctype_without_use): Likewise.
29853         (sc_prohibit_signal_without_use): Likewise.
29854         (sc_prohibit_intprops_without_use): Likewise.
29855
29856 2010-03-30  Eric Blake  <eblake@redhat.com>
29857
29858         maint: improve module indicators
29859         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
29860         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
29861         columns, and avoid extra macro expansion.
29862
29863         fdopendir: work around FreeBSD bug
29864         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
29865         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
29866         * modules/dirent (Makefile.am): Substitute it.
29867         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
29868         declaration.
29869         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
29870         fix.
29871         Reported by Christian Weisgerber <naddy@mips.inka.de>.
29872
29873 2010-03-29  Bruno Haible  <bruno@clisp.org>
29874
29875         Emit #pragma system_header after the inclusion guard, not before.
29876         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
29877         guard that spans the entire file, not before. This enables an
29878         optimization in GCC's preprocessor.
29879         * lib/ctype.in.h: Likewise.
29880         * lib/dirent.in.h: Likewise.
29881         * lib/errno.in.h: Likewise.
29882         * lib/float.in.h: Likewise.
29883         * lib/getopt.in.h: Likewise.
29884         * lib/iconv.in.h: Likewise.
29885         * lib/langinfo.in.h: Likewise.
29886         * lib/locale.in.h: Likewise.
29887         * lib/math.in.h: Likewise.
29888         * lib/netdb.in.h: Likewise.
29889         * lib/netinet_in.in.h: Likewise.
29890         * lib/pty.in.h: Likewise.
29891         * lib/sched.in.h: Likewise.
29892         * lib/se-selinux.in.h: Likewise.
29893         * lib/search.in.h: Likewise.
29894         * lib/spawn.in.h: Likewise.
29895         * lib/stdarg.in.h: Likewise.
29896         * lib/stdint.in.h: Likewise.
29897         * lib/string.in.h: Likewise.
29898         * lib/strings.in.h: Likewise.
29899         * lib/sys_file.in.h: Likewise.
29900         * lib/sys_ioctl.in.h: Likewise.
29901         * lib/sys_time.in.h: Likewise.
29902         * lib/sys_times.in.h: Likewise.
29903         * lib/sys_utsname.in.h: Likewise.
29904         * lib/sys_wait.in.h: Likewise.
29905         * lib/sysexits.in.h: Likewise.
29906         * lib/wctype.in.h: Likewise.
29907
29908 2010-03-28  James Youngman  <jay@gnu.org>
29909
29910         save-cwd: don't leak a file descriptor when the caller execs.
29911         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
29912         saved file descriptor.
29913         * modules/save-cwd (Depends-on): Depend on cloexec.
29914
29915 2010-03-29  Bruno Haible  <bruno@clisp.org>
29916
29917         Remove vestiges of fts-lgpl module.
29918         * lib/fts_.h: Assume GNULIB_FTS is 1.
29919         * lib/fts.c: Likewise.
29920         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
29921
29922 2010-03-28  Bruno Haible  <bruno@clisp.org>
29923
29924         Fix definition of tests witness macro.
29925         * gnulib-tool (func_import): Fix definition of witness macro.
29926
29927 2010-03-28  Bruno Haible  <bruno@clisp.org>
29928
29929         Fix ioctl's protoype on glibc systems.
29930         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
29931         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
29932         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
29933         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
29934         signature. If not, arrange to replace the ioctl function.
29935         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
29936         REPLACE_IOCTL.
29937         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
29938         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
29939         Reported by Ludovic Courtès <ludo@gnu.org>.
29940
29941 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
29942
29943         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
29944         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
29945         made it so grep -r --include=GLOB* ... did not work.
29946
29947 2010-03-26  Jim Meyering  <meyering@redhat.com>
29948             Eric Blake  <eblake@redhat.com>
29949
29950         maint.mk: prohibit use of test's -o and -a operators
29951         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
29952
29953 2010-03-28  Bruno Haible  <bruno@clisp.org>
29954
29955         Remove unused GNULIB_XYZ macro definitions.
29956         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
29957         invocation.
29958
29959 2010-03-28  Bruno Haible  <bruno@clisp.org>
29960
29961         Mark privileged tests modules.
29962         * modules/idpriv-drop-tests (Status): New section.
29963         * modules/idpriv-droptemp-tests (Status): New section.
29964
29965 2010-03-28  Bruno Haible  <bruno@clisp.org>
29966
29967         Split C++ tests into separate tests modules.
29968         * modules/dirent-c++-tests: New file, extracted from
29969         modules/dirent-tests.
29970         * modules/dirent-tests: Depend on it.
29971         * modules/fcntl-h-c++-tests: New file, extracted from
29972         modules/fcntl-h-tests.
29973         * modules/fcntl-h-tests: Depend on it.
29974         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
29975         * modules/glob-tests: Depend on it.
29976         * modules/iconv-h-c++-tests: New file, extracted from
29977         modules/iconv-h-tests.
29978         * modules/iconv-h-tests: Depend on it.
29979         * modules/langinfo-c++-tests: New file, extracted from
29980         modules/langinfo-tests.
29981         * modules/langinfo-tests: Depend on it.
29982         * modules/locale-c++-tests: New file, extracted from
29983         modules/locale-tests.
29984         * modules/locale-tests: Depend on it.
29985         * modules/math-c++-tests: New file, extracted from modules/math-tests.
29986         * modules/math-tests: Depend on it.
29987         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
29988         * modules/pty-tests: Depend on it.
29989         * modules/search-c++-tests: New file, extracted from
29990         modules/search-tests.
29991         * modules/search-tests: Depend on it.
29992         * modules/signal-c++-tests: New file, extracted from
29993         modules/signal-tests.
29994         * modules/signal-tests: Depend on it.
29995         * modules/spawn-c++-tests: New file, extracted from
29996         modules/spawn-tests.
29997         * modules/spawn-tests: Depend on it.
29998         * modules/stdio-c++-tests: New file, extracted from
29999         modules/stdio-tests.
30000         * modules/stdio-tests: Depend on it.
30001         * modules/stdlib-c++-tests: New file, extracted from
30002         modules/stdlib-tests.
30003         * modules/stdlib-tests: Depend on it.
30004         * modules/string-c++-tests: New file, extracted from
30005         modules/string-tests.
30006         * modules/string-tests: Depend on it.
30007         * modules/sys_ioctl-c++-tests: New file, extracted from
30008         modules/sys_ioctl-tests.
30009         * modules/sys_ioctl-tests: Depend on it.
30010         * modules/sys_select-c++-tests: New file, extracted from
30011         modules/sys_select-tests.
30012         * modules/sys_select-tests: Depend on it.
30013         * modules/sys_socket-c++-tests: New file, extracted from
30014         modules/sys_socket-tests.
30015         * modules/sys_socket-tests: Depend on it.
30016         * modules/sys_stat-c++-tests: New file, extracted from
30017         modules/sys_stat-tests.
30018         * modules/sys_stat-tests: Depend on it.
30019         * modules/sys_time-c++-tests: New file, extracted from
30020         modules/sys_time-tests.
30021         * modules/sys_time-tests: Depend on it.
30022         * modules/time-c++-tests: New file, extracted from modules/time-tests.
30023         * modules/time-tests: Depend on it.
30024         * modules/unistd-c++-tests: New file, extracted from
30025         modules/unistd-tests.
30026         * modules/unistd-tests: Depend on it.
30027         * modules/wchar-c++-tests: New file, extracted from
30028         modules/wchar-tests.
30029         * modules/wchar-tests: Depend on it.
30030         * modules/wctype-c++-tests: New file, extracted from
30031         modules/wctype-tests.
30032         * modules/wctype-tests: Depend on it.
30033         Reported by Simon Josefsson.
30034
30035 2010-03-28  Bruno Haible  <bruno@clisp.org>
30036
30037         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
30038         * gnulib-tool (func_exists_module): New function, extracted from
30039         func_verify_module.
30040         (func_verify_module): Use it.
30041         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
30042         'foo' only if 'foo' exists.
30043         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
30044         module.
30045
30046 2010-03-28  Bruno Haible  <bruno@clisp.org>
30047
30048         gnulib-tool: Add support for special categories of tests.
30049         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
30050         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
30051         (func_usage): Document them.
30052         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
30053         inc_unportable_tests, inc_all_tests): New variables.
30054         (func_acceptable): Consider these variables.
30055         (func_modules_transitive_closure): Make it work when the 'Status' field
30056         consists of multiple words.
30057         (func_import): Store and restore the values of inc_cxx_tests,
30058         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
30059         inc_all_tests in gnulib-comp.m4.
30060         (func_create_testdir): Set inc_all_tests to true.
30061         * doc/gnulib.texi (Extra tests modules): New section.
30062         Suggested by Jim Meyering.
30063
30064 2010-03-28  Bruno Haible  <bruno@clisp.org>
30065
30066         ansi-c++-opt: Allow turning off the C++ build by default.
30067         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
30068         gl_CXX_CHOICE_DEFAULT_NO is defined.
30069         Requested by Eric Blake.
30070
30071 2010-03-28  Bruno Haible  <bruno@clisp.org>
30072
30073         unistd: Avoid #define replacements in C++ mode.
30074         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
30075         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
30076         setsockopt, shutdown, select): In C++, attach a warning to the function
30077         if possible, rather than #defining the symbol to a dysfunctional alias.
30078         Reported by John W. Eaton <jwe@gnu.org>.
30079
30080 2010-03-28  Bruno Haible  <bruno@clisp.org>
30081
30082         Fix link errors on mingw.
30083         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
30084         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
30085         $(LIBSOCKET).
30086         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
30087         $(LIBSOCKET).
30088
30089 2010-03-28  Bruno Haible  <bruno@clisp.org>
30090             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30091
30092         lib-ignore: Determine different options for different compilers.
30093         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
30094         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
30095         Add comments.
30096         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
30097         * NEWS: Mention the change.
30098
30099 2010-03-27  Bruno Haible  <bruno@clisp.org>
30100
30101         Remove unused GNULIB_XYZ macro definitions.
30102         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
30103         * modules/fseek (configure.ac): Likewise.
30104         * modules/ioctl (configure.ac): Likewise.
30105         * modules/open (configure.ac): Likewise.
30106         * modules/stdlib-safer (configure.ac): Likewise.
30107
30108 2010-03-27  Bruno Haible  <bruno@clisp.org>
30109
30110         Add a remark about certain modules.
30111         * modules/malloc (Comment): New section.
30112         * modules/realloc (Comment): Likewise.
30113         * modules/sigpipe (Comment): Likewise.
30114
30115 2010-03-27  Bruno Haible  <bruno@clisp.org>
30116
30117         Resolve conflict between the two kinds of module indicators.
30118         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
30119         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
30120         * modules/canonicalize (configure.ac): Invoke
30121         gl_MODULE_INDICATOR_FOR_TESTS.
30122         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
30123         GNULIB_XYZ.
30124         * tests/test-dirent-c++.cc: Likewise.
30125         * tests/test-dirent-safer.c: Likewise.
30126         * tests/test-dup2.c: Likewise.
30127         * tests/test-fchdir.c: Likewise.
30128         * tests/test-fcntl-h-c++.cc: Likewise.
30129         * tests/test-getopt.c: Likewise.
30130         * tests/test-getopt.h: Likewise.
30131         * tests/test-langinfo-c++.cc: Likewise.
30132         * tests/test-locale-c++.cc: Likewise.
30133         * tests/test-math-c++.cc: Likewise.
30134         * tests/test-pty-c++.cc: Likewise.
30135         * tests/test-search-c++.cc: Likewise.
30136         * tests/test-signal-c++.cc: Likewise.
30137         * tests/test-spawn-c++.cc: Likewise.
30138         * tests/test-stdio-c++.cc: Likewise.
30139         * tests/test-stdlib-c++.cc: Likewise.
30140         * tests/test-string-c++.cc: Likewise.
30141         * tests/test-sys_ioctl-c++.cc: Likewise.
30142         * tests/test-sys_select-c++.cc: Likewise.
30143         * tests/test-sys_socket-c++.cc: Likewise.
30144         * tests/test-sys_stat-c++.cc: Likewise.
30145         * tests/test-sys_time-c++.cc: Likewise.
30146         * tests/test-time-c++.cc: Likewise.
30147         * tests/test-unistd-c++.cc: Likewise.
30148         * tests/test-wchar-c++.cc: Likewise.
30149         * tests/uninorm/test-u8-nfc.c: Likewise.
30150         * tests/uninorm/test-u8-nfd.c: Likewise.
30151         * tests/uninorm/test-u8-nfkc.c: Likewise.
30152         * tests/uninorm/test-u8-nfkd.c: Likewise.
30153         * tests/uninorm/test-u16-nfc.c: Likewise.
30154         * tests/uninorm/test-u16-nfd.c: Likewise.
30155         * tests/uninorm/test-u16-nfkc.c: Likewise.
30156         * tests/uninorm/test-u16-nfkd.c: Likewise.
30157         * tests/uninorm/test-u32-nfc.c: Likewise.
30158         * tests/uninorm/test-u32-nfc-big.c: Likewise.
30159         * tests/uninorm/test-u32-nfd.c: Likewise.
30160         * tests/uninorm/test-u32-nfd-big.c: Likewise.
30161         * tests/uninorm/test-u32-nfkc.c: Likewise.
30162         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
30163         * tests/uninorm/test-u32-nfkd.c: Likewise.
30164         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
30165         * tests/uninorm/test-u32-normalize-big.c: Likewise.
30166
30167 2010-03-27  Bruno Haible  <bruno@clisp.org>
30168
30169         Distinguish two kinds of module indicators.
30170         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
30171         gl_MODULE_INDICATOR.
30172         (gl_MODULE_INDICATOR): New macro.
30173         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
30174         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
30175         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
30176         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
30177         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
30178         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
30179         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
30180         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
30181         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
30182         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
30183         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
30184         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
30185         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
30186         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
30187         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
30188         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
30189         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
30190         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
30191         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
30192         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
30193         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
30194         * modules/cloexec (configure.ac): Likewise.
30195         * modules/getopt-gnu (configure.ac): Likewise.
30196         * modules/uninorm/u8-normalize (configure.ac): Likewise.
30197         * modules/uninorm/u16-normalize (configure.ac): Likewise.
30198         * modules/uninorm/u32-normalize (configure.ac): Likewise.
30199         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
30200
30201 2010-03-27  Bruno Haible  <bruno@clisp.org>
30202
30203         New module description field 'Comment'.
30204         * gnulib-tool: New option --extract-comment.
30205         (func_usage): Document it.
30206         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
30207         (func_get_comment): New function.
30208         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
30209
30210 2010-03-27  Bruno Haible  <bruno@clisp.org>
30211
30212         Addendum to 2010-02-07 commit.
30213         * gnulib-tool (func_usage): Document --extract-applicability option.
30214
30215 2010-03-27  Bruno Haible  <bruno@clisp.org>
30216
30217         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
30218         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
30219         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
30220         rather than link errors.
30221
30222 2010-03-27  Bruno Haible  <bruno@clisp.org>
30223
30224         Avoid side effects from tests-related modules on the compilation of lib.
30225         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
30226         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
30227         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
30228         parameter. Emit into AM_CPPFLAGS a definition of the designated C
30229         macro.
30230         (func_import): Define a witness macro. Assign it a value that depends
30231         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
30232         tests-related modules.
30233         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
30234         Reported by Jim Meyering.
30235
30236 2010-03-27  Bruno Haible  <bruno@clisp.org>
30237
30238         Factorize common .m4 code.
30239         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
30240         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
30241         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
30242         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
30243         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
30244         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
30245         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
30246         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
30247         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
30248         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
30249         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
30250         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
30251         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
30252         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
30253         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
30254         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
30255         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
30256         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
30257         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
30258         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
30259         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
30260         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
30261         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
30262         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
30263         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
30264         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
30265         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
30266         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
30267         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
30268         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
30269         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
30270         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
30271
30272 2010-03-27  Bruno Haible  <bruno@clisp.org>
30273
30274         Fix a compilation error on Cygwin with g++ >= 4.3.
30275         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
30276         if it is undefined or if we alias it to chmod.
30277         (lstat): Don't warn about the use of this function if it is undefined
30278         or if we alias it to stat.
30279         Reported by Simon Josefsson.
30280
30281 2010-03-27  Bruno Haible  <bruno@clisp.org>
30282
30283         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
30284         * modules/getlogin (configure.ac): Update.
30285
30286         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
30287         * modules/getlogin_r (configure.ac): Update.
30288
30289         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
30290         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
30291         * modules/inet_ntop (configure.ac): Update.
30292
30293         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
30294         * modules/inet_pton (configure.ac): Update.
30295
30296         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
30297         * modules/mbslen (configure.ac): Update.
30298
30299         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
30300         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
30301         * modules/forkpty (configure.ac): Update.
30302         * modules/openpty (configure.ac): Update.
30303
30304 2010-03-26  Simon Josefsson  <simon@josefsson.org>
30305
30306         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
30307         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
30308
30309 2010-03-25  Eric Blake  <eblake@redhat.com>
30310
30311         maint: use pragma consistently across replacement headers
30312         * lib/ctype.in.h (system_header): Hoist for consistent placement.
30313         * lib/dirent.in.h (system_header): Likewise.
30314         * lib/errno.in.h (system_header): Likewise.
30315         * lib/float.in.h (system_header): Likewise.
30316         * lib/getopt.in.h (system_header): Likewise.
30317         * lib/iconv.in.h (system_header): Likewise.
30318         * lib/inttypes.in.h (system_header): Likewise.
30319         * lib/langinfo.in.h (system_header): Likewise.
30320         * lib/locale.in.h (system_header): Likewise.
30321         * lib/math.in.h (system_header): Likewise.
30322         * lib/netdb.in.h (system_header): Likewise.
30323         * lib/netinet_in.in.h (system_header): Likewise.
30324         * lib/pty.in.h (system_header): Likewise.
30325         * lib/sched.in.h (system_header): Likewise.
30326         * lib/se-selinux.in.h (system_header): Likewise.
30327         * lib/search.in.h (system_header): Likewise.
30328         * lib/spawn.in.h (system_header): Likewise.
30329         * lib/stdarg.in.h (system_header): Likewise.
30330         * lib/stdint.in.h (system_header): Likewise.
30331         * lib/string.in.h (system_header): Likewise.
30332         * lib/strings.in.h (system_header): Likewise.
30333         * lib/sys_file.in.h (system_header): Likewise.
30334         * lib/sys_ioctl.in.h (system_header): Likewise.
30335         * lib/sys_socket.in.h (system_header): Likewise.
30336         * lib/sys_times.in.h (system_header): Likewise.
30337         * lib/sys_utsname.in.h (system_header): Likewise.
30338         * lib/sys_wait.in.h (system_header): Likewise.
30339         * lib/sysexits.in.h (system_header): Likewise.
30340         * lib/unistd.in.h (system_header): Likewise.
30341         * lib/wctype.in.h (system_header): Likewise.
30342
30343         arpa/inet: fix mingw compilation warning
30344         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
30345         Reported by Matthew Bolte.
30346
30347 2010-03-25  Bruno Haible  <bruno@clisp.org>
30348
30349         Avoid collision between gnulib wrapper and libintl wrapper.
30350         * lib/printf.c (printf): Don't define if a printf wrapper is already
30351         defined in intl/printf.c.
30352         Reported by Michel Boaventura <michel@michelboaventura.com>.
30353
30354 2010-03-25  Bruno Haible  <bruno@clisp.org>
30355
30356         Use ANSI C.
30357         * lib/readutmp.h (getutent): Provide ANSI C prototype.
30358
30359 2010-03-25  Bruno Haible  <bruno@clisp.org>
30360
30361         Minor formatting changes.
30362         * lib/acosl.c: Insert space before function argument list.
30363         * lib/argz.c: Likewise.
30364         * lib/asinl.c: Likewise.
30365         * lib/expl.c: Likewise.
30366         * lib/gen-uni-tables.c: Likewise.
30367         * lib/gettext.h: Likewise.
30368         * lib/glthread/lock.h: Likewise.
30369         * lib/tanl.c: Likewise.
30370         * lib/uniname/uniname.c: Likewise.
30371         * tests/test-idpriv-drop.c: Likewise.
30372         * tests/test-idpriv-droptemp.c: Likewise.
30373         * tests/test-lock.c: Likewise.
30374         * tests/test-tls.c: Likewise.
30375         * lib/argp-help.c: Insert space before function-like macro argument
30376         list.
30377         * lib/memcmp.c: Likewise.
30378         * tests/test-base64.c: Likewise.
30379         * lib/localename.c: Insert space before sizeof's argument list.
30380         * lib/safe-alloc.h: Likewise.
30381         * lib/file-set.h: Insert space before macro argument list.
30382         * tests/test-argp.c: Likewise.
30383         * lib/argp-namefrob.h: Insert space before function parameter list.
30384         * lib/getaddrinfo.c: Likewise.
30385         * lib/netdb.in.h: Likewise.
30386         * lib/parse-duration.h: Likewise.
30387         * lib/parse-duration.c: Likewise.
30388         * lib/poll.c: Likewise.
30389         * lib/select.c: Likewise.
30390         * lib/trim.h: Likewise.
30391         * tests/test-usleep.c: Likewise.
30392         * lib/ldexpl.c: Insert space before function parameter list and before
30393         function argument list.
30394         * lib/logl.c: Likewise.
30395         * lib/sqrtl.c: Likewise.
30396         * lib/trim.c: Likewise.
30397         * lib/cosl.c: Use GNU style indentation. Insert space before function
30398         argument list.
30399         * lib/sinl.c: Likewise.
30400         * lib/tsearch.c: Insert space after 'for'.
30401         Reported by Jim Meyering.
30402
30403 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
30404
30405         * maint.mk (sc_Wundef_boolean): Check for the presence of the
30406         config header before grepping, as it's not present before
30407         autoreconf/configure are run.  Reported by Simon Josefsson.
30408
30409 2010-03-23  Bruno Haible  <bruno@clisp.org>
30410
30411         pt_chown: Make it work with automake < 1.11.
30412         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
30413         Reported by Simon Josefsson.
30414
30415 2010-03-23  Bruno Haible  <bruno@clisp.org>
30416
30417         pt_chown: Don't depend on GPLed modules.
30418         * lib/pt_chown.c: Don't include idpriv.h.
30419         (main): Don't drop privileges.
30420         * modules/pt_chown (Depends-on): Remove idpriv-drop.
30421         Reported by Simon Josefsson.
30422
30423 2010-03-24  Simon Josefsson  <simon@josefsson.org>
30424
30425         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
30426         suggestions from karl@freefriends.org (Karl Berry).
30427
30428 2010-03-22  Eric Blake  <eblake@redhat.com>
30429
30430         gethostname: further tweaks
30431         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
30432         are overriding gethostname.
30433         Suggested by Bruno Haible.
30434
30435 2010-03-21  Bruno Haible  <bruno@clisp.org>
30436
30437         Fix comments.
30438         * lib/forkpty.c (rpl_forkpty): Fix comment.
30439         * lib/openpty.c (rpl_openpty): Likewise.
30440         Reported by Eric Blake.
30441
30442 2010-03-22  Eric Blake  <eblake@redhat.com>
30443
30444         gethostname: fix build on mingw
30445         * lib/unistd.in.h (includes): Work around fact that mingw
30446         <winsock2.h> re-includes <unistd.h>, by avoiding any
30447         redeclarations if we are being included by <winsock2.h>.
30448         Reported by Matthias Bolte.
30449
30450 2010-03-21  Bruno Haible  <bruno@clisp.org>
30451
30452         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
30453         * lib/forkpty.c (forkpty): New replacement function, from glibc with
30454         modifications.
30455         * lib/pty.in.h (forkpty): Update declaration. Add comments.
30456         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
30457         provide the replacement.
30458         * modules/forkpty (Depends-on): Add openpty, login_tty.
30459         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
30460         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
30461         * doc/glibc-functions/forkpty.texi: More supported platforms.
30462         * config/srclist.txt: Add forkpty.c (commented).
30463
30464 2010-03-21  Bruno Haible  <bruno@clisp.org>
30465
30466         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
30467         (Makefile.am): Verify that PTY_LIB is defined.
30468
30469         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
30470
30471 2010-03-21  Bruno Haible  <bruno@clisp.org>
30472
30473         Tests for module 'login_tty'.
30474         * modules/login_tty-tests: New file.
30475         * tests/test-login_tty.c: New file.
30476
30477         New module 'login_tty'.
30478         * lib/login_tty.c: New file.
30479         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
30480         * modules/login_tty: New file.
30481         * doc/glibc-functions/login_tty.texi: Mention the new module.
30482
30483 2010-03-21  Bruno Haible  <bruno@clisp.org>
30484
30485         login_tty: Documentation.
30486         * doc/glibc-functions/login_tty.texi: New file.
30487         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
30488
30489 2010-03-21  Bruno Haible  <bruno@clisp.org>
30490
30491         pty: Consistent macro naming.
30492         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
30493         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
30494         * modules/pty (configure.ac): Update.
30495
30496 2010-03-21  Bruno Haible  <bruno@clisp.org>
30497
30498         Tests for openpty: Make stricter.
30499         * tests/test-openpty.c (main): Add test of canonical processing and
30500         erase.
30501         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
30502
30503         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
30504         * lib/openpty.c (openpty): New replacement function.
30505         * lib/pty.in.h: Include <termios.h>.
30506         (openpty): Update declaration. Add comments.
30507         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
30508         is not declared, arrange to provide the replacement. Check for _getpty
30509         and posix_openpt.
30510         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
30511         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
30512         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
30513         * modules/pty-tests (test_pty_c___LDADD): New variable.
30514         * doc/glibc-functions/openpty.texi: More supported platforms.
30515
30516 2010-03-21  Bruno Haible  <bruno@clisp.org>
30517
30518         setenv: Tweaks.
30519         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
30520         the test program.
30521         * doc/posix-functions/setenv.texi: Update platforms list.
30522
30523 2010-03-21  Bruno Haible  <bruno@clisp.org>
30524
30525         New module 'unlockpt'.
30526         * lib/unlockpt.c: New file, from glibc with modifications.
30527         * m4/unlockpt.m4: New file.
30528         * modules/unlockpt: New file.
30529         * lib/stdlib.in.h (unlockpt): New declaration.
30530         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
30531         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
30532         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
30533         HAVE_UNLOCKPT.
30534         * doc/posix-functions/unlockpt.texi: Mention the new module.
30535         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
30536         * config/srclist.txt: Add unlockpt.c (commented).
30537
30538 2010-03-21  Jim Meyering  <meyering@redhat.com>
30539
30540         maint.mk: prohibit inclusion of "intprops.h" without use
30541         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
30542
30543 2010-03-21  Bruno Haible  <bruno@clisp.org>
30544
30545         New module 'grantpt'.
30546         * lib/grantpt.c: New file, from glibc with modifications.
30547         * m4/grantpt.m4: New file.
30548         * modules/grantpt: New file.
30549         * lib/stdlib.in.h (grantpt): New declaration.
30550         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
30551         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
30552         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
30553         HAVE_GRANTPT.
30554         * doc/posix-functions/grantpt.texi: Mention the new module.
30555         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
30556         * config/srclist.txt: Add grantpt.c (commented).
30557
30558 2010-03-21  Bruno Haible  <bruno@clisp.org>
30559
30560         New module 'pt_chown'.
30561         * lib/pt_chown.c: New file, from glibc with modifications.
30562         * lib/pty-private.h: New file, from glibc with modifications.
30563         * modules/pt_chown: New file.
30564         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
30565
30566 2010-03-21  Bruno Haible  <bruno@clisp.org>
30567
30568         Tests for module 'ptsname'.
30569         * modules/ptsname-tests: New file.
30570         * tests/test-ptsname.c: New file.
30571
30572         New module 'ptsname'.
30573         * lib/ptsname.c: New file, from glibc with modifications.
30574         * m4/ptsname.m4: New file.
30575         * modules/ptsname: New file.
30576         * lib/stdlib.in.h (ptsname): New declaration.
30577         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
30578         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
30579         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
30580         HAVE_PTSNAME.
30581         * doc/posix-functions/ptsname.texi: Mention the new module.
30582         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
30583         * config/srclist.txt: Add ptsname.c (commented).
30584
30585 2010-03-21  Bruno Haible  <bruno@clisp.org>
30586
30587         Tests for module 'ttyname_r'.
30588         * modules/ttyname_r-tests: New file.
30589         * tests/test-ttyname_r.c: New file.
30590
30591         New module 'ttyname_r'.
30592         * lib/ttyname_r.c: New file.
30593         * m4/ttyname_r.m4: New file.
30594         * modules/ttyname_r: New file.
30595         * lib/unistd.in.h (ttyname_r): New declaration.
30596         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
30597         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
30598         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
30599         HAVE_TTYNAME_R.
30600         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
30601         * doc/posix-functions/ttyname_r.texi: Mention the new module.
30602
30603 2010-03-20  Bruno Haible  <bruno@clisp.org>
30604
30605         signal: Undefine macro definitions in C++ mode.
30606         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
30607         sigfillset): Undefine macro definitions from the system header in C++
30608         mode.
30609         Reported by John W. Eaton <jwe@gnu.org>.
30610
30611 2010-03-20  Bruno Haible  <bruno@clisp.org>
30612
30613         Ensure no #include statements inside extern "C" { ... }.
30614         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
30615         contain #include statements.
30616         * lib/time.in.h: Likewise.
30617
30618 2010-03-20  Bruno Haible  <bruno@clisp.org>
30619
30620         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
30621         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
30622         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
30623         Reported by John W. Eaton <jwe@gnu.org>.
30624
30625 2010-03-20  Bruno Haible  <bruno@clisp.org>
30626
30627         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
30628         Reported by Jim Meyering.
30629
30630 2010-03-20  Bruno Haible  <bruno@clisp.org>
30631
30632         pipe: Set errno upon failure.
30633         * lib/pipe.h: Specify that when -1 is returned, errno is set.
30634         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
30635         errno value in error message.
30636
30637 2010-03-20  Bruno Haible  <bruno@clisp.org>
30638             Jim Meyering  <meyering@redhat.com>
30639
30640         lchown: Avoid "unused variable" warning.
30641         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
30642
30643 2010-03-20  Bruno Haible  <bruno@clisp.org>
30644
30645         Work around unlink() bug on MacOS X 10.5.6.
30646         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
30647         attempting to unlink a parent directory.
30648         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
30649         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
30650         activate for the replacement function.
30651         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
30652
30653 2010-03-20  Bruno Haible  <bruno@clisp.org>
30654
30655         Fix link errors on Solaris 8.
30656         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
30657         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
30658
30659 2010-03-19  Jim Meyering  <meyering@redhat.com>
30660
30661         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
30662         The _LIBC implementation of build_range_exp correctly honors the
30663         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
30664         However, the non-_LIBC implementation would ignore that syntax-bit
30665         flag and return REG_ERANGE unconditionally.
30666         This change makes it honor that flag.
30667         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
30668         Make two pointer parameters "const".
30669         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
30670         (parse_bracket_exp): Update caller.
30671
30672         regex.m4: correct the reversed range endpoint ([b-a]) test
30673         * m4/regex.m4: When requiring that [b-a] evoke failure,
30674         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
30675         test pass once again for x86-based systems.
30676
30677 2010-03-19  Bruno Haible  <bruno@clisp.org>
30678
30679         scandir: Fix link error on Solaris 8.
30680         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
30681         macros.
30682
30683 2010-03-19  Bruno Haible  <bruno@clisp.org>
30684
30685         getusershell: Fix documentation.
30686         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
30687         module.
30688         * doc/glibc-functions/setusershell.texi: Likewise.
30689
30690         getusershell: Provide declaration, missing on Solaris 9.
30691         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
30692         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
30693         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
30694         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
30695         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30696         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
30697         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
30698         HAVE_GETUSERSHELL.
30699         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
30700
30701 2010-03-19  Bruno Haible  <bruno@clisp.org>
30702
30703         wctype: Provide iswblank function.
30704         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
30705         exists and is fine.
30706         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
30707         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
30708         * tests/test-wctype.c (main): Re-enable the iswblank tests.
30709         * doc/posix-functions/iswblank.texi: Update.
30710
30711 2010-03-19  Bruno Haible  <bruno@clisp.org>
30712
30713         Tests of module 'pty' in C++ mode.
30714         * modules/pty-tests: New file.
30715         * tests/test-pty-c++.cc: New file.
30716         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
30717
30718 2010-03-19  Eric Blake  <eblake@redhat.com>
30719
30720         logb: fix documentation
30721         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
30722         1.5 declaration bug.
30723
30724         forkpty, openpty: prefer glibc's const-safe prototype
30725         * lib/forkpty.c (rpl_forkpty): New file.
30726         * lib/openpty.c (rpl_openpty): Likewise.
30727         * modules/forkpty (Files): Distribute it.
30728         * modules/openpty (Files): Likewise.
30729         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
30730         check...
30731         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
30732         replacement for for non-const BSD signature.
30733         * modules/pty (Makefile.am): Substitute witnesses.
30734         * lib/pty.in.h (forkpty, openpty): Declare replacements.
30735         * tests/test-forkpty.c: Update signature check.
30736         * tests/test-openpty.c: Likewise.
30737         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
30738         * doc/glibc-functions/openpty.texi (openpty): Likewise.
30739
30740         forkpty, openpty: split functions into new modules
30741         * modules/pty (Makefile.am): Substitute new witnesses.
30742         (Libraries): Move library detection...
30743         * modules/forkpty: ...into new module.
30744         * modules/openpty: Another new module.
30745         * modules/pty-tests: Rename and split...
30746         * modules/forkpty-tests: ...to this...
30747         * modules/openpty-tests: ...and this.
30748         * tests/test-pty.c: Rename and split...
30749         * tests/test-forkpty.c: ...to this...
30750         * tests/test-openpty.c: ...and this.
30751         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
30752         (gl_PTY): Split library searching...
30753         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
30754         (gl_FORKPTY, gl_OPENPTY): New macros.
30755         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
30756         * NEWS: Mention the split.
30757         * MODULES.html.sh (Misc): Document the modules.
30758         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
30759         * doc/glibc-functions/openpty.texi (openpty): Likewise.
30760
30761         pty: improve replacement header
30762         * lib/pty.in.h: New file.
30763         * modules/pty (Files): Ship it.
30764         (Makefile.am): Always build replacement.
30765         * m4/pty.m4: Rename...
30766         * m4/pty_h.m4: ...to this.
30767         (gl_PTY): Modernize setting of witness macros; update check of
30768         forkpty to take proper advantage of cache.
30769         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
30770
30771         getopt: avoid compiler warning
30772         * lib/getopt.c (attribute_hidden): Remove unused macro.
30773
30774 2010-03-18  Bruno Haible  <bruno@clisp.org>
30775
30776         Fix link errors on Solaris 8.
30777         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
30778         * modules/search-tests (test_search_c___LDADD): Likewise.
30779         * modules/signal-tests (test_signal_c___LDADD): Likewise.
30780         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
30781         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
30782         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
30783         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
30784         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
30785         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
30786
30787 2010-03-18  Bruno Haible  <bruno@clisp.org>
30788
30789         Fix bug introduced on 2010-03-14.
30790         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
30791         (gl_SPAWN_H): Require it.
30792         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
30793         Reported by Simon Josefsson.
30794
30795 2010-03-18  Bruno Haible  <bruno@clisp.org>
30796
30797         Fix typo introduced on 2009-12-31.
30798         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
30799         posix_spawn_file_actions_adddup2.
30800
30801 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
30802         and Eric Blake  <eblake@redhat.com>
30803
30804         test-vc-list-files-git: make more robust
30805         * tests/test-vc-list-files-git.sh: Unset problematic environment
30806         variables.  Chain commands together.
30807
30808 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
30809
30810         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
30811         `AC_CHECK_DECL' invocation.
30812
30813 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
30814
30815         * lib/inttostr.c (inttostr): Make sure the invocation of verify
30816         appears before executable statements. Suggested by Petr Sumbera
30817         <Petr.Sumbera@Sun.COM>.
30818
30819 2010-03-14  Bruno Haible  <bruno@clisp.org>
30820
30821         * tests/test-flock.c (test_exclusive): Comment out a test that causes
30822         portability problems. Instead use a simpler test.
30823         (main): Check that invalid arguments are rejected only on Linux.
30824
30825 2010-03-14  Bruno Haible  <bruno@clisp.org>
30826
30827         Fix bug introduced on 2009-12-31.
30828         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
30829         gl_PREREQ_SYS_H_WINSOCK2 always.
30830         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
30831         SYS_SOCKET_H variable.
30832         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
30833         Update comments.
30834         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
30835         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
30836         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
30837         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
30838         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
30839
30840 2010-03-14  Bruno Haible  <bruno@clisp.org>
30841
30842         Fix values returned by sinl, cosl.
30843         * lib/trigl.h: Add specification comments.
30844         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
30845         that combines the values from the precomputed table with the values of
30846         the Chebyshev polynomials.
30847
30848 2010-03-14  Bruno Haible  <bruno@clisp.org>
30849
30850         Fix compilation error when modules 'posix_spawn[p]' are not used.
30851         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
30852         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
30853
30854 2010-03-14  Bruno Haible  <bruno@clisp.org>
30855
30856         Fix compilation error on mingw when module 'time_r' is not used.
30857         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
30858         is 1.
30859         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
30860         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
30861         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
30862         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
30863
30864 2010-03-14  Bruno Haible  <bruno@clisp.org>
30865
30866         Fix compilation error with Sun C.
30867         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
30868         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
30869         instead of GCC specific ULONG_LONG_MAX.
30870         * lib/xstrtoll.c: Likewise.
30871         * lib/xstrtoull.c: Likewise.
30872
30873 2010-03-13  Bruno Haible  <bruno@clisp.org>
30874
30875         Allow the user to disable C++ code and tests.
30876         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
30877         (gl_PROG_ANSI_CXX): Require it.
30878
30879 2010-03-13  Bruno Haible  <bruno@clisp.org>
30880
30881         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
30882         cases.
30883
30884 2010-03-13  Bruno Haible  <bruno@clisp.org>
30885
30886         Test that gnulib does not break the standard C++ headers.
30887         * tests/test-locale-c++2.cc: New file.
30888         * modules/locale-tests (Files): Add it.
30889         (Makefile.am): Compile it for test-locale-c++.
30890         * tests/test-math-c++2.cc: New file.
30891         * modules/math-tests (Files): Add it.
30892         (Makefile.am): Compile it for test-math-c++.
30893         * tests/test-signal-c++2.cc: New file.
30894         * modules/signal-tests (Files): Add it.
30895         (Makefile.am): Compile it for test-signal-c++.
30896         * tests/test-stdio-c++2.cc: New file.
30897         * modules/stdio-tests (Files): Add it.
30898         (Makefile.am): Compile it for test-stdio-c++.
30899         * tests/test-stdlib-c++2.cc: New file.
30900         * modules/stdlib-tests (Files): Add it.
30901         (Makefile.am): Compile it for test-stdlib-c++.
30902         * tests/test-string-c++2.cc: New file.
30903         * modules/string-tests (Files): Add it.
30904         (Makefile.am): Compile it for test-string-c++.
30905         * tests/test-time-c++2.cc: New file.
30906         * modules/time-tests (Files): Add it.
30907         (Makefile.am): Compile it for test-time-c++.
30908         Reported by John W. Eaton <jwe@gnu.org>.
30909
30910 2010-03-13  Bruno Haible  <bruno@clisp.org>
30911
30912         * gnulib-tool (func_usage): Clarify which options are available for
30913         --create-testdir and --create-megatestdir.
30914
30915 2010-03-13  Bruno Haible  <bruno@clisp.org>
30916
30917         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
30918         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
30919         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
30920         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
30921         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
30922         when appropriate.
30923         Reported by Jim Meyering.
30924
30925 2010-03-12  Simon Josefsson  <simon@josefsson.org>
30926
30927         * gnulib-tool (func_import): Explain origin of code.
30928
30929 2010-03-12  Bruno Haible  <bruno@clisp.org>
30930
30931         Fix problem with automake's definition of CXXLINK.
30932         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
30933         Reported by Simon Josefsson and Ludovic Courtès.
30934
30935 2010-03-12  Bruno Haible  <bruno@clisp.org>
30936
30937         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
30938         stable releases.
30939
30940 2010-03-11  Bruno Haible  <bruno@clisp.org>
30941
30942         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
30943         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
30944         whether the system provides one variant or multiple variants of the
30945         function.
30946         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
30947         C++ compilers.
30948         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
30949         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
30950         Reported by Jim Meyering.
30951
30952 2010-03-09  Simon Josefsson  <simon@josefsson.org>
30953
30954         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
30955
30956 2010-03-08  Bruno Haible  <bruno@clisp.org>
30957
30958         gnulib-tool: Add support for --libtool in --create-testdir.
30959         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
30960         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
30961
30962 2010-03-08  Eric Blake  <eblake@redhat.com>
30963
30964         gnulib-tool.texi: mention possibility of git submodule
30965         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
30966         submodules.
30967         * doc/.gitignore: Ignore another generated file.
30968
30969 2010-03-08  Karl Berry  <karl@gnu.org>
30970
30971         * doc/gnulib-tool.texi (VCS Issues): Mention third option
30972         of committing gnulib files while skipping others.
30973
30974 2010-03-07  Bruno Haible  <bruno@clisp.org>
30975
30976         Tests of module 'wctype' in C++ mode.
30977         * tests/test-wctype-c++.cc: New file.
30978         * modules/wctype-tests (Files): Add it and tests/signature.h.
30979         (Depends-on): Add ansi-c++-opt.
30980         (Makefile.am): Arrange to compile and run test-wctype-c++.
30981
30982         Tests of module 'wchar' in C++ mode.
30983         * tests/test-wchar-c++.cc: New file.
30984         * modules/wchar-tests (Files): Add it and tests/signature.h.
30985         (Depends-on): Add ansi-c++-opt.
30986         (Makefile.am): Arrange to compile and run test-wchar-c++.
30987         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
30988         gl_MODULE_INDICATOR.
30989
30990         Tests of module 'unistd' in C++ mode.
30991         * tests/test-unistd-c++.cc: New file.
30992         * modules/unistd-tests (Files): Add it and tests/signature.h.
30993         (Depends-on): Add ansi-c++-opt.
30994         (Makefile.am): Arrange to compile and run test-unistd-c++.
30995         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
30996         gl_MODULE_INDICATOR.
30997
30998         Tests of module 'time' in C++ mode.
30999         * tests/test-time-c++.cc: New file.
31000         * modules/time-tests (Files): Add it and tests/signature.h.
31001         (Depends-on): Add ansi-c++-opt.
31002         (Makefile.am): Arrange to compile and run test-time-c++.
31003         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31004
31005         Tests of module 'sys_time' in C++ mode.
31006         * tests/test-sys_time-c++.cc: New file.
31007         * modules/sys_time-tests (Files): Add it and tests/signature.h.
31008         (Depends-on): Add ansi-c++-opt.
31009         (Makefile.am): Arrange to compile and run test-sys_time-c++.
31010         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
31011         gl_MODULE_INDICATOR.
31012
31013         Tests of module 'sys_stat' in C++ mode.
31014         * tests/test-sys_stat-c++.cc: New file.
31015         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
31016         (Depends-on): Add ansi-c++-opt.
31017         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
31018         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
31019         gl_MODULE_INDICATOR.
31020
31021         Tests of module 'sys_socket' in C++ mode.
31022         * tests/test-sys_socket-c++.cc: New file.
31023         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
31024         (Depends-on): Add ansi-c++-opt.
31025         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
31026         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
31027         gl_MODULE_INDICATOR.
31028
31029         Tests of module 'sys_select' in C++ mode.
31030         * tests/test-sys_select-c++.cc: New file.
31031         * modules/sys_select-tests (Files): Add it and tests/signature.h.
31032         (Depends-on): Add ansi-c++-opt.
31033         (Makefile.am): Arrange to compile and run test-sys_select-c++.
31034         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
31035         gl_MODULE_INDICATOR.
31036
31037         Tests of module 'sys_ioctl' in C++ mode.
31038         * tests/test-sys_ioctl-c++.cc: New file.
31039         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
31040         (Depends-on): Add ansi-c++-opt.
31041         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
31042         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
31043         gl_MODULE_INDICATOR.
31044
31045         Tests of module 'string' in C++ mode.
31046         * tests/test-string-c++.cc: New file.
31047         * modules/string-tests (Files): Add it and tests/signature.h.
31048         (Depends-on): Add ansi-c++-opt.
31049         (Makefile.am): Arrange to compile and run test-string-c++.
31050         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
31051         gl_MODULE_INDICATOR.
31052
31053         Tests of module 'stdlib' in C++ mode.
31054         * tests/test-stdlib-c++.cc: New file.
31055         * modules/stdlib-tests (Files): Add it and tests/signature.h.
31056         (Depends-on): Add ansi-c++-opt.
31057         (Makefile.am): Arrange to compile and run test-stdlib-c++.
31058         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
31059         gl_MODULE_INDICATOR.
31060
31061         Tests of module 'stdio' in C++ mode.
31062         * tests/test-stdio-c++.cc: New file.
31063         * modules/stdio-tests (Files): Add it and tests/signature.h.
31064         (Depends-on): Add ansi-c++-opt.
31065         (Makefile.am): Arrange to compile and run test-stdio-c++.
31066         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
31067         gl_MODULE_INDICATOR.
31068
31069         Tests of module 'spawn' in C++ mode.
31070         * tests/test-spawn-c++.cc: New file.
31071         * modules/spawn-tests (Files): Add it and tests/signature.h.
31072         (Depends-on): Add ansi-c++-opt.
31073         (Makefile.am): Arrange to compile and run test-spawn-c++.
31074         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
31075         gl_MODULE_INDICATOR.
31076
31077         Tests of module 'signal' in C++ mode.
31078         * tests/test-signal-c++.cc: New file.
31079         * modules/signal-tests (Files): Add it and tests/signature.h.
31080         (Depends-on): Add ansi-c++-opt.
31081         (Makefile.am): Arrange to compile and run test-signal-c++.
31082         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
31083         gl_MODULE_INDICATOR.
31084
31085         Tests of module 'search' in C++ mode.
31086         * tests/test-search-c++.cc: New file.
31087         * modules/search-tests (Files): Add it and tests/signature.h.
31088         (Depends-on): Add ansi-c++-opt.
31089         (Makefile.am): Arrange to compile and run test-search-c++.
31090         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
31091         gl_MODULE_INDICATOR.
31092
31093         Tests of module 'math' in C++ mode.
31094         * tests/test-math-c++.cc: New file.
31095         * modules/math-tests (Files): Add it and tests/signature.h.
31096         (Depends-on): Add ansi-c++-opt.
31097         (Makefile.am): Arrange to compile and run test-math-c++.
31098         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31099
31100         Tests of module 'locale' in C++ mode.
31101         * tests/test-locale-c++.cc: New file.
31102         * modules/locale-tests (Files): Add it and tests/signature.h.
31103         (Depends-on): Add ansi-c++-opt.
31104         (Makefile.am): Arrange to compile and run test-locale-c++.
31105         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
31106         gl_MODULE_INDICATOR.
31107
31108         Tests of module 'langinfo' in C++ mode.
31109         * tests/test-langinfo-c++.cc: New file.
31110         * modules/langinfo-tests (Files): Add it and tests/signature.h.
31111         (Depends-on): Add ansi-c++-opt.
31112         (Makefile.am): Arrange to compile and run test-langinfo-c++.
31113         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
31114         gl_MODULE_INDICATOR.
31115
31116         Tests of module 'iconv-h' in C++ mode.
31117         * tests/test-iconv-h-c++.cc: New file.
31118         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
31119         (Depends-on): Add ansi-c++-opt.
31120         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
31121
31122         Tests of module 'glob' in C++ mode.
31123         * tests/test-glob-c++.cc: New file.
31124         * modules/glob-tests (Files): Add it.
31125         (Depends-on): Add ansi-c++-opt.
31126         (Makefile.am): Arrange to compile and run test-glob-c++.
31127
31128         Tests of module 'fcntl-h' in C++ mode.
31129         * tests/test-fcntl-h-c++.cc: New file.
31130         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
31131         (Depends-on): Add ansi-c++-opt.
31132         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
31133         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
31134         gl_MODULE_INDICATOR.
31135
31136         Tests of module 'dirent' in C++ mode.
31137         * tests/test-dirent-c++.cc: New file.
31138         * modules/dirent-tests (Files): Add it and tests/signature.h.
31139         (Depends-on): Add ansi-c++-opt.
31140         (Makefile.am): Arrange to compile and run test-dirent-c++.
31141         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
31142         gl_MODULE_INDICATOR.
31143
31144         New module 'ansi-c++-opt'.
31145         * modules/ansi-c++-opt: New file.
31146         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
31147
31148         Document C++ namespace mode.
31149         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
31150
31151         wctype: Avoid #define replacements in C++ mode.
31152         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
31153         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
31154         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
31155         In C++, define a namespaced alias symbol.
31156         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
31157         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
31158         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
31159         rule.
31160
31161         wchar: Avoid #define replacements in C++ mode.
31162         * lib/wchar.in.h: Include c++defs.h.
31163         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
31164         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
31165         symbol.
31166         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
31167         * modules/wchar (Depends-on): Add c++defs.
31168         (Makefile.am): Update wchar.h rule.
31169
31170         unistd: Avoid #define replacements in C++ mode.
31171         * lib/unistd.in.h: Include c++defs.h.
31172         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
31173         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
31174         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
31175         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
31176         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
31177         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
31178         symbol.
31179         (environ): Update.
31180         * modules/unistd (Depends-on): Add c++defs.
31181         (Makefile.am): Update unistd.h rule.
31182
31183         time: Avoid #define replacements in C++ mode.
31184         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
31185         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
31186         define a namespaced alias symbol.
31187         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
31188         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
31189         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
31190         * modules/time (Depends-on): Add c++defs, warn-on-use.
31191         (Makefile.am): Update time.h rule.
31192         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
31193         * modules/nanosleep (configure.ac): Likewise.
31194         * modules/strptime (configure.ac): Likewise.
31195         * modules/timegm (configure.ac): Likewise.
31196
31197         sys_time: Avoid #define replacements in C++ mode.
31198         * lib/sys_time.in.h: Include c++defs.h.
31199         (gettimeofday): In C++, define a namespaced alias symbol.
31200         * modules/sys_time (Depends-on): Add c++defs.
31201         (Makefile.am): Update sys/time.h rule.
31202
31203         sys_stat: Avoid #define replacements in C++ mode.
31204         * lib/sys_stat.in.h: Include c++defs.h.
31205         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
31206         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
31207         namespaced alias symbol.
31208         In C++, define a namespaced alias symbol.
31209         * modules/sys_stat (Depends-on): Add c++defs.
31210         (Makefile.am): Update sys/stat.h rule.
31211
31212         sys_socket: Avoid #define replacements in C++ mode.
31213         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
31214         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
31215         definitions also when the system has a <sys/socket.h>.
31216         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
31217         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
31218         In C++, define a namespaced alias symbol.
31219         * modules/sys_socket (Depends-on): Add c++defs.
31220         (Makefile.am): Update sys/socket.h rule.
31221
31222         sys_select: Avoid #define replacements in C++ mode.
31223         * lib/sys_select.in.h: Include c++defs.h. Enable the function
31224         definitions also when the system has a <sys/select.h>.
31225         (select): In C++, define a namespaced alias symbol.
31226         * modules/sys_select (Depends-on): Add c++defs.
31227         (Makefile.am): Update sys/select.h rule.
31228
31229         sys_ioctl: Avoid #define replacements in C++ mode.
31230         * lib/sys_ioctl.in.h: Include c++defs.h.
31231         (ioctl): In C++, define a namespaced alias symbol.
31232         * modules/sys_ioctl (Depends-on): Add c++defs.
31233         (Makefile.am): Update sys/ioctl.h rule.
31234
31235         string: Avoid #define replacements in C++ mode.
31236         * lib/string.in.h: Include c++defs.h.
31237         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
31238         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
31239         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
31240         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
31241         strsignal, strverscmp): In C++, define a namespaced alias symbol.
31242         * modules/string (Depends-on): Add c++defs.
31243         (Makefile.am): Update string.h rule.
31244
31245         stdlib: Avoid #define replacements in C++ mode.
31246         * lib/stdlib.in.h: Include c++defs.h.
31247         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
31248         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
31249         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
31250         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
31251         symbol.
31252         * modules/stdlib (Depends-on): Add c++defs.
31253         (Makefile.am): Update stdlib.h rule.
31254
31255         stdio: Avoid #define replacements in C++ mode.
31256         * lib/stdio.in.h: Include c++defs.h.
31257         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
31258         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
31259         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
31260         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
31261         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
31262         namespaced alias symbol.
31263         * modules/stdio (Depends-on): Add c++defs.
31264         (Makefile.am): Update stdio.h rule.
31265
31266         spawn: Avoid #define replacements in C++ mode.
31267         * lib/spawn.in.h: Include c++defs.h.
31268         (posix_spawn, posix_spawnp, posix_spawnattr_init,
31269         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
31270         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
31271         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
31272         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
31273         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
31274         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
31275         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
31276         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
31277         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
31278         In C++, define a namespaced alias symbol.
31279         * modules/spawn (Depends-on): Add c++defs.
31280         (Makefile.am): Update spawn.h rule.
31281
31282         signal: Avoid #define replacements in C++ mode.
31283         * lib/signal.in.h: Include c++defs.h.
31284         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
31285         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
31286         namespaced alias symbol.
31287         * modules/signal (Depends-on): Add c++defs.
31288         (Makefile.am): Update signal.h rule.
31289
31290         search: Avoid #define replacements in C++ mode.
31291         * lib/search.in.h: Include c++defs.h.
31292         (_gl_search_compar_fn, _gl_search_action_fn): New types.
31293         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
31294         symbol.
31295         * modules/search (Depends-on): Add c++defs.
31296         (Makefile.am): Update search.h rule.
31297
31298         math: Avoid #define replacements in C++ mode.
31299         * lib/math.in.h: Include c++defs.h.
31300         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
31301         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
31302         trunc, truncl): In C++, define a namespaced alias symbol.
31303         * modules/math (Depends-on): Add c++defs.
31304         (Makefile.am): Update math.h rule.
31305
31306         locale: Avoid #define replacements in C++ mode.
31307         * lib/locale.in.h: Include c++defs.h.
31308         (duplocale): In C++, define a namespaced alias symbol.
31309         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
31310         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
31311         * modules/locale (Depends-on): Add c++defs.
31312         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
31313
31314         langinfo: Avoid #define replacements in C++ mode.
31315         * lib/langinfo.in.h: Include c++defs.h.
31316         (nl_langinfo): In C++, define a namespaced alias symbol.
31317         * modules/langinfo (Depends-on): Add c++defs.
31318         (Makefile.am): Update langinfo.h rule.
31319
31320         iconv-h: Avoid #define replacements in C++ mode.
31321         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
31322         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
31323         symbol.
31324         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
31325         whenever iconv is present.
31326         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
31327         (Makefile.am): Update iconv.h rule.
31328
31329         glob: Avoid #define replacements in C++ mode.
31330         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
31331         (_gl_glob_errfunc_fn): New type.
31332         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
31333         symbol.
31334         * modules/glob (Depends-on): Add c++defs, warn-on-use.
31335         (Makefile.am): Update glob.h rule.
31336
31337         fcntl-h: Avoid #define replacements in C++ mode.
31338         * lib/fcntl.in.h: Include c++defs.h.
31339         (fcntl, open, openat): In C++, define a namespaced alias symbol.
31340         * modules/fcntl-h (Depends-on): Add c++defs.
31341         (Makefile.am): Update fcntl.h rule.
31342
31343         dirent: Avoid #define replacements in C++ mode.
31344         * lib/dirent.in.h: Include c++defs.h.
31345         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
31346         namespaced alias symbol.
31347         (dirfd): Update declaration.
31348         * modules/dirent (Depends-on): Add c++defs.
31349         (Makefile.am): Update dirent.h rule.
31350
31351         ctype: Make it usable in C++ code.
31352         * lib/ctype.in.h: Include c++defs.h.
31353         (isblank): Declare as extern "C".
31354         * modules/ctype (Depends-on): Add c++defs.
31355         (Makefile.am): Update ctype.h rule.
31356
31357         New module 'c++defs'.
31358         * modules/c++defs: New file.
31359         * build-aux/c++defs.h: New file.
31360         Reported by John W. Eaton <jwe@gnu.org>.
31361
31362 2010-03-07  Bruno Haible  <bruno@clisp.org>
31363
31364         logb: Provide missing declaration for Cygwin.
31365         * lib/math.in.h (logb): New declaration.
31366         * m4/logb.m4: New file.
31367         * modules/logb (Files): Add m4/logb.m4.
31368         (Depends-on): Add math.
31369         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
31370         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
31371         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
31372         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
31373         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
31374
31375 2010-03-07  Bruno Haible  <bruno@clisp.org>
31376
31377         Fix test-cond link error.
31378         * tests/test-cond.c: Include <stdio.h>.
31379
31380 2010-03-07  Bruno Haible  <bruno@clisp.org>
31381
31382         Fix test-dirent-safer link error.
31383         * modules/dirent-safer-tests (Makefile.am): Define
31384         test_dirent_safer_LDADD.
31385
31386 2010-03-07  Bruno Haible  <bruno@clisp.org>
31387
31388         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
31389         among default module list.
31390
31391 2010-03-07  Bruno Haible  <bruno@clisp.org>
31392
31393         Fix link error on platforms with GNU libiconv.
31394         * modules/unistr/u8-strcoll-tests (Makefile): Define
31395         test_u8_strcoll_LDADD.
31396         * modules/unistr/u16-strcoll-tests (Makefile): Define
31397         test_u16_strcoll_LDADD.
31398         * modules/unistr/u32-strcoll-tests (Makefile): Define
31399         test_u32_strcoll_LDADD.
31400
31401 2010-03-07  Bruno Haible  <bruno@clisp.org>
31402
31403         Use POSIX declarations for socket functions.
31404         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
31405         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
31406         rpl_sendto): Change declaration to match POSIX.
31407         * lib/connect.c (rpl_connect): Likewise.
31408         * lib/accept.c (rpl_accept): Likewise.
31409         * lib/bind.c (rpl_bind): Likewise.
31410         * lib/getpeername.c (rpl_getpeername): Likewise.
31411         * lib/getsockname.c (rpl_getsockname): Likewise.
31412         * lib/recv.c (rpl_recv): Likewise.
31413         * lib/send.c (rpl_send): Likewise.
31414         * lib/recvfrom.c (rpl_recvfrom): Likewise.
31415         * lib/sendto.c (rpl_sendto): Likewise.
31416
31417 2010-03-06  Bruno Haible  <bruno@clisp.org>
31418
31419         Clarify access, euidaccess, faccessat.
31420         * doc/posix-functions/faccessat.texi: Mention security problem under
31421         "Other problems", not "Portability problems".
31422         * doc/posix-functions/access.texi: Likewise. Mention a related security
31423         problem.
31424         * doc/glibc-functions/euidaccess.texi: Mention security problems.
31425         * lib/euidaccess.c: Add comments about platforms.
31426         * lib/unistd.in.h (access, euidaccess): Add warnings.
31427
31428 2010-03-07  Bruno Haible  <bruno@clisp.org>
31429
31430         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
31431         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
31432         (POSIX_SPAWN_SETSCHEDULER): Likewise.
31433         (POSIX_SPAWN_USEVFORK): Define in a way that works when
31434         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
31435         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
31436         declare when POSIX_SPAWN_SETSCHEDULER is zero.
31437         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
31438         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
31439         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
31440         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
31441         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
31442         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
31443         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
31444         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
31445         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
31446         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
31447         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
31448         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
31449         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
31450         Likewise.
31451         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
31452         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
31453         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
31454         Likewise.
31455         * tests/test-spawn.c (main): Make it work when
31456         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
31457
31458 2010-03-07  Bruno Haible  <bruno@clisp.org>
31459
31460         Fix incorrect Makefile.am generation in German locale.
31461         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31462         Execute sed command with character range in C locale.
31463
31464 2010-03-06  Bruno Haible  <bruno@clisp.org>
31465
31466         Tests for module 'iconv-h'.
31467         * modules/iconv-h-tests: New file.
31468         * tests/test-iconv-h.c: New file.
31469
31470         New module 'iconv-h'.
31471         * modules/iconv-h: New file.
31472         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
31473         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
31474         (configure.ac): Remove gl_ICONV_H.
31475         (Makefile.am): Remove rule for iconv.h.
31476
31477 2010-03-06  Bruno Haible  <bruno@clisp.org>
31478
31479         More consistent naming of *.m4 files.
31480         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
31481         * modules/wctype (Files): Update.
31482
31483         More consistent naming of *.m4 files.
31484         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
31485         * modules/wchar (Files): Update.
31486
31487 2010-03-06  Jim Meyering  <meyering@redhat.com>
31488
31489         euidaccess: relax license to LGPLv2+
31490         * modules/euidaccess (License): Relax to LGPLv2+.
31491
31492 2010-03-06  Bruno Haible  <bruno@clisp.org>
31493
31494         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
31495         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
31496         (Makefile.am): Augment lib_SOURCES instead.
31497
31498 2010-03-04  Jim Meyering  <meyering@redhat.com>
31499
31500         utime: remove obsolete module
31501         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
31502         unnecessary for years, and has been marked as obsolete for 10 months.
31503         * modules/utime: Remove file.
31504         * lib/utime.c: Remove file.
31505         * m4/utime.m4: Remove file.
31506         * m4/utimes-null.m4: Remove file.
31507         * doc/posix-functions/utime.texi (utime): Remove reference to
31508         the module.  Move the sole "fixed by gnulib" item into the
31509         "problems not fixed by Gnulib" list.
31510         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
31511
31512 2010-03-05  Simon Josefsson  <simon@josefsson.org>
31513
31514         * modules/exit (License): Relax license to LGPLv2+.
31515         (Status): Mark as obsolete.
31516         * NEWS: Mention deprecated 'exit' module.
31517         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
31518         of now obsolete 'exit'.
31519
31520 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31521
31522         fts-lgpl: remove unused module
31523         * modules/fts-lgpl: Remove.
31524         * MODULES.html.sh (func_all_modules): Adjust.
31525         * check-module (find_included_lib_files): Adjust.
31526         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
31527
31528 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
31529
31530         copy-acl: enhance Solaris ACL error handling
31531         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
31532         * lib/set-mode-acl.c (qset_acl): Likewise.
31533
31534 2010-03-02  Bruno Haible  <bruno@clisp.org>
31535
31536         spawn: Don't override the system defined values on FreeBSD 8.
31537         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
31538         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
31539         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
31540         if HAVE_POSIX_SPAWN is 1.
31541         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
31542
31543 2010-03-01  Bruno Haible  <bruno@clisp.org>
31544
31545         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
31546         regarding Automake.
31547
31548 2010-02-25  Bruno Haible  <bruno@clisp.org>
31549
31550         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
31551         * gnulib-tool: Define 'echo' as a function only before the ksh alias
31552         setting, not afterwards.
31553         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
31554
31555 2010-02-24  Eric Blake  <eblake@redhat.com>
31556
31557         bootstrap, git-version-gen: use timestamp
31558         * build-aux/git-version-gen (scriptversion): Force UTC.
31559         * build-aux/bootstrap (scriptversion): New variable.
31560
31561         bootstrap: allow older git
31562         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
31563         older than 1.6.4.  Requested by the libvirt project.
31564
31565 2010-02-23  Eric Blake  <eblake@redhat.com>
31566
31567         warn-on-use: work with old autoconf
31568         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
31569         AS_VAR semantics of autoconf 2.60.
31570         Reported by Bruno Haible.
31571
31572         bootstrap: improve some comments
31573         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
31574         clarification comments.
31575
31576         gettimeofday: provide correct function
31577         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
31578         when replacement is declared, otherwise provide gettimeofday.
31579         Reported by Michael Goffioul.
31580
31581 2010-02-23  Jim Meyering  <meyering@redhat.com>
31582
31583         lib-ignore: relax license to "unlimited", not LGPLv2+
31584         * modules/lib-ignore (License): Relax to "unlimited".
31585
31586 2010-02-23  Jim Meyering  <meyering@redhat.com>
31587
31588         lib-ignore: relax license to LGPLv2+
31589         * modules/lib-ignore (License): Relax to LGPLv2+.
31590
31591 2010-02-22  Eric Blake  <eblake@redhat.com>
31592
31593         lseek: avoid bash 3.2 broken pipe bug
31594         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
31595         warning from bash 3.2.
31596         Reported by Ben Pfaff, with analysis from Bruno Haible.
31597
31598         bootstrap: support non-FSF copyright holder
31599         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
31600         bootstrap.conf override of COPYRIGHT_HOLDER.
31601         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
31602
31603         bootstrap: interoperate with gettext 0.14.1
31604         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
31605
31606         bootstrap: allow for alternate submodule location
31607         * build-aux/bootstrap (gnulib_path): New variable; use instead of
31608         hardcoding submodule location.
31609         (gnulib_mk): Allow direct use of Makefile.am.
31610
31611         bootstrap: use GNULIB_SRCDIR to reduce disk usage
31612         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
31613         rather than reconfiguring where the submodule points.
31614
31615         gettimeofday: restore support for platforms that lack function
31616         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
31617         replacement if function is missing.
31618         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
31619         * modules/sys_time (Makefile.am): Substitute it.
31620         * lib/sys_time.in.h (gettimeofday): Check it.
31621         Reported by Michael Goffioul.
31622
31623 2010-02-21  Bruno Haible  <bruno@clisp.org>
31624
31625         * lib/stdio.in.h (obstack_printf): Fix typo.
31626
31627 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
31628
31629         vc-list-files: use bzr ls's -R option
31630         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
31631         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
31632
31633 2010-02-21  Jim Meyering  <meyering@redhat.com>
31634
31635         init.sh: fix EXEEXT shims to work also for names like test-prog
31636         * tests/init.sh: Re-exec a better shell, when needed.
31637         If the current shell lacks support for posix $(...), an init.sh-using
31638         test will now try to find a shell that supports that.  If EXEEXT is
31639         nonempty, we also require support for hyphen-in-alias-name and shell
31640         substitutions like ${var#glob}.  Failure to find such a shell results
31641         in a skipped test.
31642
31643 2010-02-21  Bruno Haible  <bruno@clisp.org>
31644
31645         Really work around around "broken pipe" error message from bash 3.2.
31646         * gnulib-tool (func_reset_sigpipe): Remove function.
31647         (echo): In bash 3.2, define to a function that uses printf.
31648         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
31649
31650 2010-02-20  Bruno Haible  <bruno@clisp.org>
31651
31652         Restore support for automake 1.9.6 with autoconf 2.61.
31653         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
31654         Reported by James Youngman <jay@gnu.org>.
31655
31656 2010-02-20  Bruno Haible  <bruno@clisp.org>
31657
31658         Improve *printf warning condition.
31659         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
31660         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
31661         and the function is overridden due to SIGPIPE emulation.
31662
31663 2010-02-20  Bruno Haible  <bruno@clisp.org>
31664
31665         * lib/stdio.in.h: Tweak comments.
31666
31667 2010-02-19  Bruno Haible  <bruno@clisp.org>
31668
31669         Make it easier to find modules. New gnulib-tool option '--find'.
31670         * gnulib-tool: New option --find.
31671         (func_usage): Document it.
31672         (func_sanitize_modulelist): New function, extracted from
31673         func_all_modules.
31674         (func_all_modules): Invoke it.
31675         * doc/gnulib-tool.texi (Which modules?): New node.
31676
31677 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
31678
31679         * lib/sys_select.in.h: Provide select replacement even if
31680         sys/select.h exists on a system, for Interix.
31681
31682 2010-02-18  Jim Meyering  <meyering@redhat.com>
31683
31684         init.sh: don't use $(...) just yet
31685         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
31686         to accommodate e.g., Solaris' /bin/sh.
31687
31688 2010-02-17  Bruno Haible  <bruno@clisp.org>
31689
31690         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
31691         Reported by Ludovic Courtès <ludo@gnu.org>.
31692
31693 2010-02-16  Simon Josefsson  <simon@josefsson.org>
31694
31695         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
31696         linking with -lintl.
31697
31698 2010-02-17  Simon Josefsson  <simon@josefsson.org>
31699
31700         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
31701         if not provided by the system's netdb.h.  Reported by
31702         ludo@gnu.org (Ludovic Courtès).
31703
31704 2010-02-15  Jim Meyering  <meyering@redhat.com>
31705
31706         init.sh: improve portability and efficiency
31707         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
31708         "dummy" in a for loop.
31709         Use '!', not '^' to select the complement of a character set used
31710         in a "case" statement.
31711         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
31712         Suggestions from Eric Blake.
31713
31714         init.sh: automatically accommodate programs with the .exe suffix
31715         Automatically arrange for an invocation of "prog" to execute the
31716         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
31717         may use the simpler "prog", yet still work when built on a system
31718         that requires specifying the added suffix.
31719         Do this by constructing a function named "prog" that invokes
31720         "prog.exe" for each .exe file in selected directories.
31721         * tests/init.sh (find_exe_basenames_): New function.
31722         (create_exe_shim_functions_): New function.
31723         (path_prepend_): Use it.
31724
31725         maint.mk: mark syntax-check sc_*.m rules as .PHONY
31726         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
31727         "make -t syntax-check" doesn't create a ton of sc_*.m files.
31728
31729 2010-02-14  Jim Meyering  <meyering@redhat.com>
31730
31731         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
31732         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
31733         (sc_prohibit_hash_pjw_without_use): New rule.
31734
31735         maint.mk: allow the default upload destination dir to be overridden
31736         * top/maint.mk (upload_dest_dir_): Define with a default that
31737         preserves the status quo.
31738         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
31739         Reported by Peter Simons.
31740
31741         maint.mk: prohibit inclusion of "hash.h" without_use
31742         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
31743
31744 2010-02-10  Jim Meyering  <meyering@redhat.com>
31745
31746         maint.mk: prohibit inclusion of "ignore-value.h" without_use
31747         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
31748
31749 2010-02-09  Eric Blake  <ebb9@byu.net>
31750         and Bruno Haible  <bruno@clisp.org>
31751
31752         obstack-printf-posix: ensure declaration
31753         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
31754         extracted from gl_FUNC_OBSTACK_PRINTF.
31755         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
31756         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
31757         Likewise.
31758         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
31759         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
31760         0.
31761
31762 2010-02-08  Bruno Haible  <bruno@clisp.org>
31763
31764         gnulib-tool: Fix typo in 2010-02-07 commit.
31765         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
31766         Reported by Eric Blake.
31767
31768 2010-02-07  Bruno Haible  <bruno@clisp.org>
31769
31770         gnulib-tool: Fix up caching patches.
31771         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
31772         option --no-cache. Use associative arrays when supported by the shell.
31773         (sed_comments): New variable.
31774         (modcache): Renamed from do_cache.
31775         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
31776         abbreviate unnecessarily.
31777         (have_associative): New variable.
31778         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
31779         way also for ksh and zsh.
31780         (func_init_sed_convert_to_cache_statements): New function, extracted
31781         from func_cache_lookup_module. Add support for associative arrays.
31782         Don't set the c_MODULE_cached variable here. Ignore all lines before
31783         the first field header. Remove only the final newline, not all trailing
31784         newlines. Support empty fields correctly. Limit the use of 'eval' to
31785         assignments.
31786         (func_get_description, func_get_status, func_get_notice,
31787         func_get_applicability, func_get_filelist, func_get_dependencies,
31788         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
31789         func_get_automake_snippet, func_get_include_directive,
31790         func_get_link_directive, func_get_license, func_get_maintainer):
31791         Update documentation. List the unoptimized code first. Add support for
31792         associative arrays. Limit the use of 'eval' to assignments.
31793         (func_get_applicability): Undo stylistic pessimisations.
31794         (func_get_automake_snippet, func_get_include_directive): Reduce code
31795         duplication.
31796         (func_modules_transitive_closure, func_modules_add_dummy,
31797         func_modules_notice, func_modules_to_filelist, func_add_file,
31798         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
31799         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
31800         func_create_testdir, func_create_megatestdir): Update documentation.
31801
31802 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31803
31804         * gnulib-tool (func_cache_lookup_module): Store the module name
31805         belonging to the cache variable; error out if two different
31806         module names map to the same cache variable name.
31807
31808 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31809
31810         gnulib-tool: Make caching optional.
31811         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
31812         Update matching short versions of --no-changelog.
31813         (func_usage): Update.
31814         (sed_extract_cache_prog): Renamed from ...
31815         (sed_extract_prog): ... this; revert to old extraction script.
31816         (func_get_description, func_get_status)
31817         (func_get_notice, func_get_applicability, func_get_filelist)
31818         (func_get_dependencies, func_get_autoconf_early_snippet)
31819         (func_get_autoconf_snippet, func_get_automake_snippet)
31820         (func_get_include_directive, func_get_link_directive)
31821         (func_get_license, func_get_maintainer): If $do_cache is false,
31822         use old, non-caching extraction scripts.
31823         Suggestion by Bruno Haible.
31824
31825 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31826
31827         gnulib-tool: cache module metainformation.
31828         * gnulib-tool (sed_extract_prog): Match newline before each
31829         header, and rewrite header to a shell variable suffix.
31830         (func_cache_var, func_cache_lookup_module): New functions,
31831         to turn a module name into a cache variable prefix, and to
31832         look up and cache module metainformation.
31833         (func_get_description, func_get_status)
31834         (func_get_notice, func_get_applicability, func_get_filelist)
31835         (func_get_dependencies, func_get_autoconf_early_snippet)
31836         (func_get_autoconf_snippet, func_get_automake_snippet)
31837         (func_get_include_directive, func_get_link_directive)
31838         (func_get_license, func_get_maintainer): Use
31839         func_cache_lookup_module.
31840
31841 2010-02-07  Bruno Haible  <bruno@clisp.org>
31842
31843         fnctl: Fix missing dependency.
31844         * modules/fcntl (Depends-on): Add getdtablesize.
31845         Reported by John W. Eaton <jwe@gnu.org>.
31846
31847 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
31848
31849         Argp: fix recognition of short alias options.
31850
31851         * lib/argp-parse.c (convert_options): Fix improper use of
31852         `|' between character values.
31853         * tests/test-argp.c (group1_option): New alias option
31854         --read (-r).
31855         (group1_parser): Special handling for 'r'.
31856         (test15): New test case.
31857         (test_fun): Add test15.
31858         * tests/test-argp-2.sh: Update expected --help and --usage
31859         outputs.
31860
31861 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
31862
31863         * tests/test-argp.c: Fix indentation.
31864
31865 2010-02-04  Eric Blake  <ebb9@byu.net>
31866
31867         gettimeofday: expose type of second argument
31868         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
31869         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
31870         * tests/test-gettimeofday.c: Use it to silence warning.
31871         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
31872         the issue.
31873
31874 2010-02-03  Jim Meyering  <meyering@redhat.com>
31875
31876         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
31877         * lib/regcomp.c (TYPE_SIGNED): Define.
31878         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
31879
31880         regcomp.c: avoid a new -Wshadow warning
31881         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
31882
31883 2010-02-01  Jim Meyering  <meyering@redhat.com>
31884
31885         removing useless parentheses in cpp #define directives
31886         For motivation, see commit c0221df4, "define STREQ(a,b)
31887         consistently, removing useless parentheses"
31888         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
31889         * lib/mountlist.c (MNT_IGNORE): Likewise.
31890         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
31891
31892 2010-02-01  Eric Blake  <ebb9@byu.net>
31893
31894         sys_time: use link-warning
31895         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
31896         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
31897         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
31898         * modules/sys_time (Depends-on): Add warn-on-use.
31899         (Makefile.am): Always build replacement.
31900         (configure.ac): Update substitutions.
31901         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
31902         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
31903         bother with SYS_TIME_H.
31904         * modules/gettimeofday (configure.ac): Declare indicator.
31905         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
31906         in use.
31907
31908         closein-tests: silence compiler warning
31909         * tests/test-closein.c (main): Ignore fread result.
31910         * modules/closein-tests (Depends-on): Add ignore-value.
31911
31912         tests: silence warning about system return
31913         * tests/test-areadlink-with-size.c (main): Ignore system result.
31914         * tests/test-areadlink.c (main): Likewise.
31915         * tests/test-areadlinkat-with-size.c (main): Likewise.
31916         * tests/test-areadlinkat.c (main): Likewise.
31917         * tests/test-canonicalize-lgpl.c (main): Likewise.
31918         * tests/test-canonicalize.c (main): Likewise.
31919         * tests/test-chown.c (main): Likewise.
31920         * tests/test-fchownat.c (main): Likewise.
31921         * tests/test-fdutimensat.c (main): Likewise.
31922         * tests/test-fstatat.c (main): Likewise.
31923         * tests/test-futimens.c (main): Likewise.
31924         * tests/test-lchown.c (main): Likewise.
31925         * tests/test-link.c (main): Likewise.
31926         * tests/test-linkat.c (main): Likewise.
31927         * tests/test-lstat.c (main): Likewise.
31928         * tests/test-mkdir.c (main): Likewise.
31929         * tests/test-mkdirat.c (main): Likewise.
31930         * tests/test-mkfifo.c (main): Likewise.
31931         * tests/test-mkfifoat.c (main): Likewise.
31932         * tests/test-mknod.c (main): Likewise.
31933         * tests/test-readlink.c (main): Likewise.
31934         * tests/test-remove.c (main): Likewise.
31935         * tests/test-rename.c (main): Likewise.
31936         * tests/test-renameat.c (main): Likewise.
31937         * tests/test-rmdir.c (main): Likewise.
31938         * tests/test-symlink.c (main): Likewise.
31939         * tests/test-symlinkat.c (main): Likewise.
31940         * tests/test-unlink.c (main): Likewise.
31941         * tests/test-unlinkat.c (main): Likewise.
31942         * tests/test-utimens.c (main): Likewise.
31943         * tests/test-utimensat.c (main): Likewise.
31944         * modules/areadlink-tests (Depends-on): Add ignore-value.
31945         * modules/areadlink-with-size-tests (Depends-on): Likewise.
31946         * modules/areadlinkat-tests (Depends-on): Likewise.
31947         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
31948         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
31949         * modules/canonicalize-tests (Depends-on): Likewise.
31950         * modules/chown-tests (Depends-on): Likewise.
31951         * modules/fdutimensat-tests (Depends-on): Likewise.
31952         * modules/futimens-tests (Depends-on): Likewise.
31953         * modules/lchown-tests (Depends-on): Likewise.
31954         * modules/link-tests (Depends-on): Likewise.
31955         * modules/linkat-tests (Depends-on): Likewise.
31956         * modules/lstat-tests (Depends-on): Likewise.
31957         * modules/mkdir-tests (Depends-on): Likewise.
31958         * modules/mkfifo-tests (Depends-on): Likewise.
31959         * modules/mkfifoat-tests (Depends-on): Likewise.
31960         * modules/mknod-tests (Depends-on): Likewise.
31961         * modules/openat-tests (Depends-on): Likewise.
31962         * modules/readlink-tests (Depends-on): Likewise.
31963         * modules/remove-tests (Depends-on): Likewise.
31964         * modules/rename-tests (Depends-on): Likewise.
31965         * modules/renameat-tests (Depends-on): Likewise.
31966         * modules/rmdir-tests (Depends-on): Likewise.
31967         * modules/symlink-tests (Depends-on): Likewise.
31968         * modules/symlinkat-tests (Depends-on): Likewise.
31969         * modules/unlink-tests (Depends-on): Likewise.
31970         * modules/utimens-tests (Depends-on): Likewise.
31971         * modules/utimensat-tests (Depends-on): Likewise.
31972
31973 2010-01-31  Bruno Haible  <bruno@clisp.org>
31974
31975         Perform the same test for many <math.h> functions.
31976         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
31977         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
31978         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
31979         of gl_MATHFUNC.
31980         * modules/acos (configure.ac): Likewise.
31981         * modules/asin (configure.ac): Likewise.
31982         * modules/atan (configure.ac): Likewise.
31983         * modules/atan2 (configure.ac): Likewise.
31984         * modules/cbrt (configure.ac): Likewise.
31985         * modules/copysign (configure.ac): Likewise.
31986         * modules/cos (configure.ac): Likewise.
31987         * modules/cosh (configure.ac): Likewise.
31988         * modules/erf (configure.ac): Likewise.
31989         * modules/erfc (configure.ac): Likewise.
31990         * modules/exp (configure.ac): Likewise.
31991         * modules/fmod (configure.ac): Likewise.
31992         * modules/hypot (configure.ac): Likewise.
31993         * modules/j0 (configure.ac): Likewise.
31994         * modules/j1 (configure.ac): Likewise.
31995         * modules/jn (configure.ac): Likewise.
31996         * modules/lgamma (configure.ac): Likewise.
31997         * modules/log (configure.ac): Likewise.
31998         * modules/log10 (configure.ac): Likewise.
31999         * modules/log1p (configure.ac): Likewise.
32000         * modules/pow (configure.ac): Likewise.
32001         * modules/remainder (configure.ac): Likewise.
32002         * modules/sin (configure.ac): Likewise.
32003         * modules/sinh (configure.ac): Likewise.
32004         * modules/tan (configure.ac): Likewise.
32005         * modules/tanh (configure.ac): Likewise.
32006         * modules/y0 (configure.ac): Likewise.
32007         * modules/y1 (configure.ac): Likewise.
32008         * modules/yn (configure.ac): Likewise.
32009         Suggested by Paolo Bonzini.
32010
32011 2010-01-31  Bruno Haible  <bruno@clisp.org>
32012
32013         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
32014
32015 2010-01-31  Bruno Haible  <bruno@clisp.org>
32016
32017         Work around getdelim() bug on FreeBSD 8.0.
32018         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
32019         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
32020         not work.
32021         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
32022         is 1.
32023         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
32024         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
32025         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
32026         a non-zero size.
32027         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
32028
32029 2010-01-31  Bruno Haible  <bruno@clisp.org>
32030
32031         Work around getline() bug on FreeBSD 8.0.
32032         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
32033         and a non-zero size.
32034         * tests/test-getline.c (main): Likewise.
32035         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
32036         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
32037
32038 2010-01-28  Eric Blake  <ebb9@byu.net>
32039
32040         regex: fix build failure
32041         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
32042         platforms.
32043
32044 2010-01-28  Jim Meyering  <meyering@redhat.com>
32045
32046         regex: do not ignore memory allocation failure
32047         * lib/regex_internal.c (create_cd_newstate): Detect
32048         re_node_set_init_copy failure.   Extracted from glibc commit
32049         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32050
32051         regex: sync more white-space changes from libc
32052         * lib/regex_internal.c: White-space only changes.
32053         * lib/regexec.c: Likewise.
32054
32055         regex: add many uses of __attribute_warn_unused_result__
32056         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
32057         * lib/regexec.c: Likewise.
32058         Extracted from a messy glibc commit.
32059
32060         regcomp.c: spelling and merge-artifact from glibc
32061         * lib/regcomp.c: Merge remainder of glibc's
32062         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32063
32064         regcomp.c: sync white-space changes from glibc
32065         * lib/regcomp.c: Merge to accommodate white space
32066         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32067
32068         regcomp.c: do not ignore internal return values
32069         * lib/regcomp.c: Do not ignore internal return values.
32070         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
32071         but without its white-space changes and spelling fixes.
32072
32073         regex_internal.h: define __attribute_warn_unused_result__
32074         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
32075
32076         maint: add a syntax-check rule to check for vulnerable Makefile.in
32077         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
32078
32079 2010-01-27  Jim Meyering  <meyering@redhat.com>
32080
32081         ncftpput-ftp: clean up spaces
32082         * build-aux/ncftpput-ftp: Make Copyright line consistent.
32083         Remove trailing blanks.
32084
32085 2010-01-27  Simon Josefsson  <simon@josefsson.org>
32086
32087         * build-aux/git-version-gen: Fix copyright statement.
32088         * build-aux/gnupload: Likewise.
32089         * tests/test-arcfour.c: Likewise.
32090         * tests/test-arctwo.c: Likewise.
32091         * tests/test-count-one-bits.c: Likewise.
32092         * tests/test-crc.c: Likewise.
32093         * tests/test-des.c: Likewise.
32094         * tests/test-gc-arcfour.c: Likewise.
32095         * tests/test-gc-arctwo.c: Likewise.
32096         * tests/test-gc-des.c: Likewise.
32097         * tests/test-gc-hmac-md5.c: Likewise.
32098         * tests/test-gc-hmac-sha1.c: Likewise.
32099         * tests/test-gc-md2.c: Likewise.
32100         * tests/test-gc-md4.c: Likewise.
32101         * tests/test-gc-md5.c: Likewise.
32102         * tests/test-gc-pbkdf2-sha1.c: Likewise.
32103         * tests/test-gc-rijndael.c: Likewise.
32104         * tests/test-gc-sha1.c: Likewise.
32105         * tests/test-gc.c: Likewise.
32106         * tests/test-gethostname.c: Likewise.
32107         * tests/test-gettimeofday.c: Likewise.
32108         * tests/test-hash.c: Likewise.
32109         * tests/test-hmac-md5.c: Likewise.
32110         * tests/test-hmac-sha1.c: Likewise.
32111         * tests/test-md2.c: Likewise.
32112         * tests/test-md4.c: Likewise.
32113         * tests/test-md5.c: Likewise.
32114         * tests/test-memchr.c: Likewise.
32115         * tests/test-memchr2.c: Likewise.
32116         * tests/test-memcmp.c: Likewise.
32117         * tests/test-memmem.c: Likewise.
32118         * tests/test-memrchr.c: Likewise.
32119         * tests/test-rawmemchr.c: Likewise.
32120         * tests/test-read-file.c: Likewise.
32121         * tests/test-rijndael.c: Likewise.
32122         * tests/test-sockets.c: Likewise.
32123         * tests/test-strchrnul.c: Likewise.
32124         * tests/test-strstr.c: Likewise.
32125         * tests/test-strtod.c: Likewise.
32126         * build-aux/ncftpput-ftp: Likewise.
32127
32128 2010-01-26  Eric Blake  <ebb9@byu.net>
32129
32130         ignore-value: update recommended header name
32131         * modules/ignore-value (Include): Only use <> for headers that
32132         exist in glibc.
32133
32134 2010-01-26  Jim Meyering  <meyering@redhat.com>
32135
32136         test-userspec.c: avoid compiler warnings
32137         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
32138         and "initialization discards qualifiers..." warnings.
32139         Put the first "uid" in its own scope, and make char* members "const".
32140
32141 2010-01-25  Bruno Haible  <bruno@clisp.org>
32142
32143         gnulib-tool: Make warning diagnostics consistent.
32144         * gnulib-tool (func_warning): New function.
32145         Use it everywhere where gnulib-tool produces output to stderr and it is
32146         not a fatal error.
32147
32148 2010-01-25  Bruno Haible  <bruno@clisp.org>
32149
32150         Fix test dependencies.
32151         * modules/xstrtol-tests (Depends-on): Add inttypes.
32152         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
32153
32154 2010-01-25 Pádraig Brady <P@draigBrady.com>
32155
32156         syntax-check: detect incorrect boolean macro values in config.h
32157         * modules/maintainer-makefile (configure.ac): Parameterize the location
32158         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
32159         The logic is from Eric Blake and the location indicated by Jim Meyering.
32160         Note the more natural CONFIG_HEADER name is prohibited by automake
32161         for backwards compatibility reasons.
32162         * top/maint.mk (sc_Wundef_boolean): New rule.
32163
32164 2010-01-25  Jim Meyering  <meyering@redhat.com>
32165
32166         bootstrap: detect MacOS 10.6's shasum, too
32167         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
32168         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
32169
32170 2010-01-23  Jim Meyering  <meyering@redhat.com>
32171
32172         xstrtoll: new module
32173         * modules/xstrtoll: New file.
32174         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
32175         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
32176         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
32177         ./configure fails if you use this module and lack "long long".
32178         * modules/xstrtoll-tests: New module.
32179         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
32180         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
32181         new init.sh-based test framework.
32182
32183 2010-01-24  Bruno Haible  <bruno@clisp.org>
32184
32185         Tests for module 'yn'.
32186         * modules/yn-tests: New file.
32187         * tests/test-yn.c: New file.
32188
32189         Tests for module 'y1'.
32190         * modules/y1-tests: New file.
32191         * tests/test-y1.c: New file.
32192
32193         Tests for module 'y0'.
32194         * modules/y0-tests: New file.
32195         * tests/test-y0.c: New file.
32196
32197         Tests for module 'tanh'.
32198         * modules/tanh-tests: New file.
32199         * tests/test-tanh.c: New file.
32200
32201         Tests for module 'tan'.
32202         * modules/tan-tests: New file.
32203         * tests/test-tan.c: New file.
32204
32205         Tests for module 'sqrt'.
32206         * modules/sqrt-tests: New file.
32207         * tests/test-sqrt.c: New file.
32208
32209         Tests for module 'sinh'.
32210         * modules/sinh-tests: New file.
32211         * tests/test-sinh.c: New file.
32212
32213         Tests for module 'sin'.
32214         * modules/sin-tests: New file.
32215         * tests/test-sin.c: New file.
32216
32217         Tests for module 'rint'.
32218         * modules/rint-tests: New file.
32219         * tests/test-rint.c: New file.
32220
32221         Tests for module 'remainder'.
32222         * modules/remainder-tests: New file.
32223         * tests/test-remainder.c: New file.
32224
32225         Tests for module 'pow'.
32226         * modules/pow-tests: New file.
32227         * tests/test-pow.c: New file.
32228
32229         Tests for module 'nextafter'.
32230         * modules/nextafter-tests: New file.
32231         * tests/test-nextafter.c: New file.
32232
32233         Tests for module 'modf'.
32234         * modules/modf-tests: New file.
32235         * tests/test-modf.c: New file.
32236
32237         Tests for module 'logb'.
32238         * modules/logb-tests: New file.
32239         * tests/test-logb.c: New file.
32240
32241         Tests for module 'log1p'.
32242         * modules/log1p-tests: New file.
32243         * tests/test-log1p.c: New file.
32244
32245         Tests for module 'log10'.
32246         * modules/log10-tests: New file.
32247         * tests/test-log10.c: New file.
32248
32249         Tests for module 'log'.
32250         * modules/log-tests: New file.
32251         * tests/test-log.c: New file.
32252
32253         Tests for module 'lgamma'.
32254         * modules/lgamma-tests: New file.
32255         * tests/test-lgamma.c: New file.
32256
32257         Tests for module 'ldexp'.
32258         * modules/ldexp-tests: New file.
32259         * tests/test-ldexp.c: New file.
32260
32261         Tests for module 'jn'.
32262         * modules/jn-tests: New file.
32263         * tests/test-jn.c: New file.
32264
32265         Tests for module 'j1'.
32266         * modules/j1-tests: New file.
32267         * tests/test-j1.c: New file.
32268
32269         Tests for module 'j0'.
32270         * modules/j0-tests: New file.
32271         * tests/test-j0.c: New file.
32272
32273         Tests for module 'hypot'.
32274         * modules/hypot-tests: New file.
32275         * tests/test-hypot.c: New file.
32276
32277         Tests for module 'fmod'.
32278         * modules/fmod-tests: New file.
32279         * tests/test-fmod.c: New file.
32280
32281         Tests for module 'fabs'.
32282         * modules/fabs-tests: New file.
32283         * tests/test-fabs.c: New file.
32284
32285         Tests for module 'exp'.
32286         * modules/exp-tests: New file.
32287         * tests/test-exp.c: New file.
32288
32289         Tests for module 'erfc'.
32290         * modules/erfc-tests: New file.
32291         * tests/test-erfc.c: New file.
32292
32293         Tests for module 'erf'.
32294         * modules/erf-tests: New file.
32295         * tests/test-erf.c: New file.
32296
32297         Tests for module 'cosh'.
32298         * modules/cosh-tests: New file.
32299         * tests/test-cosh.c: New file.
32300
32301         Tests for module 'cos'.
32302         * modules/cos-tests: New file.
32303         * tests/test-cos.c: New file.
32304
32305         Tests for module 'copysign'.
32306         * modules/copysign-tests: New file.
32307         * tests/test-copysign.c: New file.
32308
32309         Tests for module 'cbrt'.
32310         * modules/cbrt-tests: New file.
32311         * tests/test-cbrt.c: New file.
32312
32313         Tests for module 'atan2'.
32314         * modules/atan2-tests: New file.
32315         * tests/test-atan2.c: New file.
32316
32317         Tests for module 'atan'.
32318         * modules/atan-tests: New file.
32319         * tests/test-atan.c: New file.
32320
32321         Tests for module 'asin'.
32322         * modules/asin-tests: New file.
32323         * tests/test-asin.c: New file.
32324
32325         Tests for module 'acos'.
32326         * modules/acos-tests: New file.
32327         * tests/test-acos.c: New file.
32328
32329 2010-01-24  Bruno Haible  <bruno@clisp.org>
32330
32331         Fix tests for common <math.h> functions.
32332         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
32333         code snippet that references the function pointer, rather than merely
32334         calling the function. Substitute the FUNC_LIBM variable.
32335         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
32336         * modules/acos (configure.ac): Likewise.
32337         * modules/asin (configure.ac): Likewise.
32338         * modules/atan (configure.ac): Likewise.
32339         * modules/atan2 (configure.ac): Likewise.
32340         * modules/cbrt (configure.ac): Likewise.
32341         * modules/copysign (configure.ac): Likewise.
32342         * modules/cos (configure.ac): Likewise.
32343         * modules/cosh (configure.ac): Likewise.
32344         * modules/erf (configure.ac): Likewise.
32345         * modules/erfc (configure.ac): Likewise.
32346         * modules/exp (configure.ac): Likewise.
32347         * modules/fabs (configure.ac): Likewise.
32348         * modules/fmod (configure.ac): Likewise.
32349         * modules/hypot (configure.ac): Likewise.
32350         * modules/j0 (configure.ac): Likewise.
32351         * modules/j1 (configure.ac): Likewise.
32352         * modules/jn (configure.ac): Likewise.
32353         * modules/ldexp (configure.ac): Likewise.
32354         * modules/lgamma (configure.ac): Likewise.
32355         * modules/log (configure.ac): Likewise.
32356         * modules/log10 (configure.ac): Likewise.
32357         * modules/log1p (configure.ac): Likewise.
32358         * modules/logb (configure.ac): Likewise.
32359         * modules/modf (configure.ac): Likewise.
32360         * modules/nextafter (configure.ac): Likewise.
32361         * modules/pow (configure.ac): Likewise.
32362         * modules/remainder (configure.ac): Likewise.
32363         * modules/rint (configure.ac): Likewise.
32364         * modules/sin (configure.ac): Likewise.
32365         * modules/sinh (configure.ac): Likewise.
32366         * modules/tan (configure.ac): Likewise.
32367         * modules/tanh (configure.ac): Likewise.
32368         * modules/y0 (configure.ac): Likewise.
32369         * modules/y1 (configure.ac): Likewise.
32370         * modules/yn (configure.ac): Likewise.
32371
32372 2010-01-24  Bruno Haible  <bruno@clisp.org>
32373
32374         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
32375         * tests/test-acosl.c (x): New variable.
32376         (main): Store argument in x and fetch it from x.
32377         * tests/test-asinl.c (x): New variable.
32378         (main): Store argument in x and fetch it from x.
32379         * tests/test-atanl.c (x): New variable.
32380         (main): Store argument in x and fetch it from x.
32381         * tests/test-cosl.c (x): New variable.
32382         (main): Store argument in x and fetch it from x.
32383         * tests/test-expl.c (x): New variable.
32384         (main): Store argument in x and fetch it from x.
32385         * tests/test-logl.c (x): New variable.
32386         (main): Store argument in x and fetch it from x.
32387         * tests/test-sinl.c (x): New variable.
32388         (main): Store argument in x and fetch it from x.
32389         * tests/test-sqrtl.c (x): New variable.
32390         (main): Store argument in x and fetch it from x.
32391         * tests/test-tanl.c (x): New variable.
32392         (main): Store argument in x and fetch it from x.
32393
32394 2010-01-24  Bruno Haible  <bruno@clisp.org>
32395
32396         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
32397         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
32398         assignments to the initial TESTS_ENVIRONMENT.
32399         * doc/gnulib.texi (Unit test modules): Document it.
32400         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
32401         TESTS_ENVIRONMENT.
32402         * modules/btowc-tests (Makefile.am): Likewise.
32403         * modules/c-stack-tests (Makefile.am): Likewise.
32404         * modules/c-strcase-tests (Makefile.am): Likewise.
32405         * modules/copy-file-tests (Makefile.am): Likewise.
32406         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
32407         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
32408         * modules/mbrtowc-tests (Makefile.am): Likewise.
32409         * modules/mbscasecmp-tests (Makefile.am): Likewise.
32410         * modules/mbscasestr-tests (Makefile.am): Likewise.
32411         * modules/mbschr-tests (Makefile.am): Likewise.
32412         * modules/mbscspn-tests (Makefile.am): Likewise.
32413         * modules/mbsinit-tests (Makefile.am): Likewise.
32414         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
32415         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
32416         * modules/mbspbrk-tests (Makefile.am): Likewise.
32417         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
32418         * modules/mbsrchr-tests (Makefile.am): Likewise.
32419         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
32420         * modules/mbsspn-tests (Makefile.am): Likewise.
32421         * modules/mbsstr-tests (Makefile.am): Likewise.
32422         * modules/nl_langinfo-tests (Makefile.am): Likewise.
32423         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
32424         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
32425         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
32426         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
32427         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
32428         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
32429         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
32430         * modules/wcrtomb-tests (Makefile.am): Likewise.
32431         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
32432         * modules/wcsrtombs-tests (Makefile.am): Likewise.
32433         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
32434         assignments from TESTS_ENVIRONMENT.
32435         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
32436         augmentation.
32437         * modules/argp-version-etc-tests (Makefile.am): Likewise.
32438         * modules/atexit-tests (Makefile.am): Likewise.
32439         * modules/binary-io-tests (Makefile.am): Likewise.
32440         * modules/closein-tests (Makefile.am): Likewise.
32441         * modules/dprintf-posix-tests (Makefile.am): Likewise.
32442         * modules/exclude-tests (Makefile.am): Likewise.
32443         * modules/fflush-tests (Makefile.am): Likewise.
32444         * modules/fpending-tests (Makefile.am): Likewise.
32445         * modules/fprintf-posix-tests (Makefile.am): Likewise.
32446         * modules/freadahead-tests (Makefile.am): Likewise.
32447         * modules/freadptr-tests (Makefile.am): Likewise.
32448         * modules/freadseek-tests (Makefile.am): Likewise.
32449         * modules/fseek-tests (Makefile.am): Likewise.
32450         * modules/fseeko-tests (Makefile.am): Likewise.
32451         * modules/ftell-tests (Makefile.am): Likewise.
32452         * modules/ftello-tests (Makefile.am): Likewise.
32453         * modules/idpriv-drop-tests (Makefile.am): Likewise.
32454         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
32455         * modules/lseek-tests (Makefile.am): Likewise.
32456         * modules/parse-duration-tests (Makefile.am): Likewise.
32457         * modules/perror-tests (Makefile.am): Likewise.
32458         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
32459         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
32460         * modules/pipe-tests (Makefile.am): Likewise.
32461         * modules/pread-tests (Makefile.am): Likewise.
32462         * modules/printf-posix-tests (Makefile.am): Likewise.
32463         * modules/select-tests (Makefile.am): Likewise.
32464         * modules/sigpipe-tests (Makefile.am): Likewise.
32465         * modules/tsearch-tests (Makefile.am): Likewise.
32466         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
32467         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
32468         * modules/uniname/uniname-tests (Makefile.am): Likewise.
32469         * modules/uniwidth/width-tests (Makefile.am): Likewise.
32470         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
32471         * modules/version-etc-tests (Makefile.am): Likewise.
32472         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
32473         * modules/vprintf-posix-tests (Makefile.am): Likewise.
32474         * modules/xalloc-die-tests (Makefile.am): Likewise.
32475         * modules/xprintf-posix-tests (Makefile.am): Likewise.
32476         * modules/xstrtoimax-tests (Makefile.am): Likewise.
32477         * modules/xstrtol-tests (Makefile.am): Likewise.
32478         * modules/xstrtoumax-tests (Makefile.am): Likewise.
32479         * modules/yesno-tests (Makefile.am): Likewise.
32480         Suggested by Jim Meyering.
32481
32482 2010-01-24  Bruno Haible  <bruno@clisp.org>
32483
32484         More documentation.
32485         * doc/gnulib.texi (Writing modules): New chapter.
32486         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
32487         the new chapter.
32488
32489 2010-01-24  Jim Meyering  <meyering@redhat.com>
32490
32491         maint.mk: do not prepend "./" after filtering
32492         * top/maint.mk (_prepend_srcdir_prefix): New variable
32493         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
32494         "./" when $(srcdir) is ".".
32495
32496         define STREQ(a,b) consistently, removing useless parentheses
32497         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
32498         since the only risk is that "a" or "b" contains an unparenthesized
32499         comma, but if either did that, STREQ would have 3 or more arguments.
32500         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
32501         * lib/fts.c (STREQ): Remove unnecessary parentheses.
32502         * lib/hash-triple.c (STREQ): Likewise.
32503         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
32504         * lib/getugroups.c (STREQ): Likewise.
32505
32506 2010-01-23  Jim Meyering  <meyering@redhat.com>
32507
32508         maint.mk: fix syntax-check in a non-srcdir build directory
32509         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
32510         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
32511
32512 2010-01-22  Jim Meyering  <meyering@redhat.com>
32513
32514         userspec: add unit tests
32515         * tests/test-userspec.c: New file.
32516         * modules/userspec-tests: Likewise.
32517
32518 2010-01-21  Jim Meyering  <meyering@redhat.com>
32519
32520         maint.mk: handle source file names containing "." robustly
32521         * top/maint.mk (_dot_escaped_srcdir): Define.
32522         (VC_LIST): Use it in LHS of sed substitution.
32523
32524 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
32525
32526         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
32527         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
32528         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
32529         from a non-srcdir build.
32530
32531 2010-01-20  Eric Blake  <ebb9@byu.net>
32532
32533         warn-on-use: use instead of link-warning
32534         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
32535         * modules/unistd (Depends-on, Makefile.am): Likewise.
32536         * modules/arpa_inet (Depends-on): Replace link-warning with
32537         warn-on-use.
32538         (Makefile.am): Update rules accordingly.
32539         * modules/ctype (Depends-on, Makefile.am): Likewise.
32540         * modules/dirent (Depends-on, Makefile.am): Likewise.
32541         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
32542         * modules/inttypes (Depends-on, Makefile.am): Likewise.
32543         * modules/langinfo (Depends-on, Makefile.am): Likewise.
32544         * modules/locale (Depends-on, Makefile.am): Likewise.
32545         * modules/math (Depends-on, Makefile.am): Likewise.
32546         * modules/search (Depends-on, Makefile.am): Likewise.
32547         * modules/signal (Depends-on, Makefile.am): Likewise.
32548         * modules/spawn (Depends-on, Makefile.am): Likewise.
32549         * modules/stdlib (Depends-on, Makefile.am): Likewise.
32550         * modules/string (Depends-on, Makefile.am): Likewise.
32551         * modules/strings (Depends-on, Makefile.am): Likewise.
32552         * modules/sys_file (Depends-on, Makefile.am): Likewise.
32553         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
32554         * modules/sys_select (Depends-on, Makefile.am): Likewise.
32555         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
32556         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
32557         * modules/sys_times (Depends-on, Makefile.am): Likewise.
32558         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
32559         * modules/wchar (Depends-on, Makefile.am): Likewise.
32560         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
32561         should be poisoned.
32562         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
32563         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
32564         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
32565         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
32566         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
32567         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
32568         * m4/math_h.m4 (gl_MATH_H): Likewise.
32569         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
32570         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
32571         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
32572         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
32573         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
32574         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
32575         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
32576         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
32577         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
32578         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
32579         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
32580         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
32581         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
32582         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
32583         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
32584         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32585         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
32586         GL_LINK_WARNING.
32587         * lib/ctype.in.h: Likewise.
32588         * lib/dirent.in.h: Likewise.
32589         * lib/fcntl.in.h: Likewise.
32590         * lib/inttypes.in.h: Likewise.
32591         * lib/langinfo.in.h: Likewise.
32592         * lib/locale.in.h: Likewise.
32593         * lib/math.in.h: Likewise.
32594         * lib/search.in.h: Likewise.
32595         * lib/signal.in.h: Likewise.
32596         * lib/spawn.in.h: Likewise.
32597         * lib/stdio.in.h: Likewise.
32598         * lib/stdlib.in.h: Likewise.
32599         * lib/string.in.h: Likewise.
32600         * lib/strings.in.h: Likewise.
32601         * lib/sys_file.in.h: Likewise.
32602         * lib/sys_ioctl.in.h: Likewise.
32603         * lib/sys_select.in.h: Likewise.
32604         * lib/sys_socket.in.h: Likewise.
32605         * lib/sys_stat.in.h: Likewise.
32606         * lib/sys_times.in.h: Likewise.
32607         * lib/sys_utsname.in.h: Likewise.
32608         * lib/unistd.in.h: Likewise.
32609         * lib/wchar.in.h: Likewise.
32610
32611 2010-01-20  Bruno Haible  <bruno@clisp.org>
32612
32613         Avoid duplicate -lm.
32614         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
32615         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
32616         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
32617         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
32618         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
32619         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
32620         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
32621         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
32622         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
32623         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
32624         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
32625         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
32626         Reported by Paolo Bonzini.
32627
32628 2010-01-19  Bruno Haible  <bruno@clisp.org>
32629
32630         langinfo, nl_langinfo: Relicense under LGPLv2+.
32631         * modules/langinfo (License): Change to LGPLv2+.
32632         * modules/nl_langinfo (License): Likewise.
32633         Patch by David Lutterkort <lutter@redhat.com>.
32634
32635 2010-01-19  Bruno Haible  <bruno@clisp.org>
32636
32637         Avoid compilation error with cc on OSF/1 5.1.
32638         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
32639         statement, not before.
32640         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32641
32642 2010-01-18  Bruno Haible  <bruno@clisp.org>
32643
32644         Avoid a link error due to the __printf__ symbol.
32645         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
32646         and 2.6.x.
32647         (__format__, __printf__): Remove definitions.
32648         * lib/argp-fmtstream.h: Likewise.
32649         * lib/argp.h: Likewise.
32650         * lib/error.h: Likewise.
32651         * lib/vasnprintf.h: Likewise.
32652         * lib/xprintf.h: Likewise.
32653         * lib/xvasprintf.h: Likewise.
32654         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32655
32656 2010-01-18  Bruno Haible  <bruno@clisp.org>
32657
32658         Tests for module 'tanl'.
32659         * modules/tanl-tests: New file.
32660         * tests/test-tanl.c: New file.
32661
32662         Tests for module 'sqrtl'.
32663         * modules/sqrtl-tests: New file.
32664         * tests/test-sqrtl.c: New file.
32665
32666         Tests for module 'sinl'.
32667         * modules/sinl-tests: New file.
32668         * tests/test-sinl.c: New file.
32669
32670         Tests for module 'logl'.
32671         * modules/logl-tests: New file.
32672         * tests/test-logl.c: New file.
32673
32674         Tests for module 'expl'.
32675         * modules/expl-tests: New file.
32676         * tests/test-expl.c: New file.
32677
32678         Tests for module 'cosl'.
32679         * modules/cosl-tests: New file.
32680         * tests/test-cosl.c: New file.
32681
32682         Tests for module 'atanl'.
32683         * modules/atanl-tests: New file.
32684         * tests/test-atanl.c: New file.
32685
32686         Tests for module 'asinl'.
32687         * modules/asinl-tests: New file.
32688         * tests/test-asinl.c: New file.
32689
32690         Tests for module 'acosl'.
32691         * modules/acosl-tests: New file.
32692         * tests/test-acosl.c: New file.
32693
32694         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
32695         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
32696         tanl): Use the standard gnulib idiom.
32697         * lib/cosl.c: Don't include trigl.c and sincosl.c.
32698         * lib/sinl.c: Likewise.
32699         * lib/tanl.c: Don't include trigl.c.
32700         (kernel_tanl): Make static.
32701         * lib/sincosl.c: Include trigl.h first.
32702         * lib/trigl.c: Likewise.
32703         * m4/acosl.m4: New file.
32704         * m4/asinl.m4: New file.
32705         * m4/atanl.m4: New file.
32706         * m4/cosl.m4: New file.
32707         * m4/expl.m4: New file.
32708         * m4/logl.m4: New file.
32709         * m4/sinl.m4: New file.
32710         * m4/sqrtl.m4: New file.
32711         * m4/tanl.m4: New file.
32712         * m4/mathl.m4: Remove file.
32713         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
32714         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
32715         Don't initialize GNULIB_MATHL.
32716         * modules/acosl: New file.
32717         * modules/asinl: New file.
32718         * modules/atanl: New file.
32719         * modules/cosl: New file.
32720         * modules/expl: New file.
32721         * modules/logl: New file.
32722         * modules/sinl: New file.
32723         * modules/sqrtl: New file.
32724         * modules/tanl: New file.
32725         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
32726         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
32727         substitute GNULIB_MATHL.
32728         * modules/mathl: Rewritten.
32729         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
32730         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
32731         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
32732         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
32733         * doc/posix-functions/expl.texi: Mention the 'expl' module.
32734         * doc/posix-functions/logl.texi: Mention the 'logl' module.
32735         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
32736         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
32737         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
32738
32739 2010-01-18  Bruno Haible  <bruno@clisp.org>
32740
32741         sqrt: Make gl_FUNC_SQRT requirable.
32742         * m4/sqrt.m4: New file.
32743         * modules/sqrt (Files): Add it.
32744         (configure.ac): Invoke gl_FUNC_SQRT.
32745
32746 2010-01-18  Bruno Haible  <bruno@clisp.org>
32747
32748         New modules for common <math.h> functions.
32749         * m4/mathfunc.m4: New file.
32750         * modules/acos: New file.
32751         * modules/asin: New file.
32752         * modules/atan: New file.
32753         * modules/atan2: New file.
32754         * modules/cbrt: New file.
32755         * modules/copysign: New file.
32756         * modules/cos: New file.
32757         * modules/cosh: New file.
32758         * modules/erf: New file.
32759         * modules/erfc: New file.
32760         * modules/exp: New file.
32761         * modules/fabs: New file.
32762         * modules/fmod: New file.
32763         * modules/hypot: New file.
32764         * modules/j0: New file.
32765         * modules/j1: New file.
32766         * modules/jn: New file.
32767         * modules/ldexp: New file.
32768         * modules/lgamma: New file.
32769         * modules/log: New file.
32770         * modules/log10: New file.
32771         * modules/log1p: New file.
32772         * modules/logb: New file.
32773         * modules/modf: New file.
32774         * modules/nextafter: New file.
32775         * modules/pow: New file.
32776         * modules/remainder: New file.
32777         * modules/rint: New file.
32778         * modules/sin: New file.
32779         * modules/sinh: New file.
32780         * modules/sqrt: New file.
32781         * modules/tan: New file.
32782         * modules/tanh: New file.
32783         * modules/y0: New file.
32784         * modules/y1: New file.
32785         * modules/yn: New file.
32786         * doc/posix-functions/acos.texi: Mention the 'acos' module.
32787         * doc/posix-functions/asin.texi: Mention the 'asin' module.
32788         * doc/posix-functions/atan.texi: Mention the 'atan' module.
32789         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
32790         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
32791         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
32792         * doc/posix-functions/cos.texi: Mention the 'cos' module.
32793         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
32794         * doc/posix-functions/erf.texi: Mention the 'erf' module.
32795         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
32796         * doc/posix-functions/exp.texi: Mention the 'exp' module.
32797         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
32798         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
32799         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
32800         * doc/posix-functions/j0.texi: Mention the 'j0' module.
32801         * doc/posix-functions/j1.texi: Mention the 'j1' module.
32802         * doc/posix-functions/jn.texi: Mention the 'jn' module.
32803         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
32804         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
32805         * doc/posix-functions/log.texi: Mention the 'log' module.
32806         * doc/posix-functions/log10.texi: Mention the 'log10' module.
32807         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
32808         * doc/posix-functions/logb.texi: Mention the 'logb' module.
32809         * doc/posix-functions/modf.texi: Mention the 'modf' module.
32810         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
32811         * doc/posix-functions/pow.texi: Mention the 'pow' module.
32812         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
32813         * doc/posix-functions/rint.texi: Mention the 'rint' module.
32814         * doc/posix-functions/sin.texi: Mention the 'sin' module.
32815         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
32816         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
32817         * doc/posix-functions/tan.texi: Mention the 'tan' module.
32818         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
32819         * doc/posix-functions/y0.texi: Mention the 'y0' module.
32820         * doc/posix-functions/y1.texi: Mention the 'y1' module.
32821         * doc/posix-functions/yn.texi: Mention the 'yn' module.
32822
32823 2010-01-18  Jim Meyering  <meyering@redhat.com>
32824
32825         ignore-value: relax license to LGPLv2+
32826         * modules/ignore-value (License): Relax to LGPLv2+.
32827
32828         getdate: don't leak when TZ contains two or more '"'s
32829         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
32830         double quote in TZ after the first one.
32831
32832         readtokens: do not leak internal token_lengths buffer
32833         * lib/readtokens.c (readtokens): Free the local, lengths,
32834         when the supplied "token_lengths" parameter is NULL.
32835
32836 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32837
32838         Fix a couple of missing LIBTHREAD link failures on AIX.
32839         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
32840         $(LIBTHREAD).
32841         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
32842
32843         Link test-poll against INET_PTON_LIB.
32844         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
32845         for inet_pton on Solaris 10.
32846
32847 2010-01-17  Bruno Haible  <bruno@clisp.org>
32848
32849         unistdio/*-sprintf: Fix typo in module description.
32850         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
32851         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
32852         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
32853         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
32854         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
32855         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
32856         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
32857         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32858
32859 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32860
32861         gnulib-tool: fix filelist for AIX, HP-UX ksh.
32862         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
32863         variables in shell case patterns, for AIX and HP-UX ksh.
32864
32865         Split large sed scripts, for HP-UX sed.
32866         * modules/stdio: Split sed scripts around 50 sed commands,
32867         to avoid HP-UX limit of 99 commands, in the near future.
32868         * modules/string: Likewise.
32869         * modules/unistd: Likewise.
32870
32871         gnulib-tool: avoid writing in the current directory.
32872         * gnulib-tool (func_emit_lib_Makefile_am)
32873         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
32874         not in the current directory, so concurrent gnulib-tool
32875         instances do not interfere.
32876
32877 2010-01-16  Jim Meyering  <meyering@redhat.com>
32878
32879         doc: update users.txt
32880         * users.txt: Add grep.
32881         (diffutils, gzip): Update URLs.
32882
32883 2010-01-12  Bruno Haible  <bruno@clisp.org>
32884
32885         posix_spawn: Avoid test failure on Cygwin.
32886         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
32887         characters.
32888         Reported by Simon Josefsson.
32889
32890 2010-01-12  Bruno Haible  <bruno@clisp.org>
32891
32892         * tests/test-cond.c (main): When skipping the test, show the reason.
32893
32894 2010-01-12  Simon Josefsson  <simon@josefsson.org>
32895
32896         * lib/striconv.c (str_cd_iconv): Avoid if before free.
32897
32898 2010-01-12  Simon Josefsson  <simon@josefsson.org>
32899
32900         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
32901         VC_LIST_ALWAYS_EXCLUDE_REGEX.
32902
32903 2010-01-12  Eric Blake  <ebb9@byu.net>
32904
32905         build: guarantee AS_VAR_IF
32906         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
32907         (gl_AS_VAR_IF): Move...
32908         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
32909         Reported by Simon Josefsson.
32910
32911 2010-01-12  Simon Josefsson  <simon@josefsson.org>
32912
32913         * lib/stdio.in.h: Fix typo.
32914
32915 2010-01-12  Simon Josefsson  <simon@josefsson.org>
32916
32917         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
32918         libgpg-error.
32919
32920 2010-01-12  Simon Josefsson  <simon@josefsson.org>
32921
32922         * tests/test-xalloc-die.sh: Use $EXEEXT.
32923
32924 2010-01-12  Simon Josefsson  <simon@josefsson.org>
32925             Bruno Haible  <bruno@clisp.org>
32926
32927         getlogin, getlogin_r: Avoid test failure.
32928         * tests/test-getlogin.c: Include <stdio.h>.
32929         (main): Skip the test when the function fails because stdin is not a
32930         tty.
32931         * tests/test-getlogin_r.c: Include <stdio.h>.
32932         (main): Skip the test when the function fails because stdin is not a
32933         tty.
32934
32935 2010-01-11  Eric Blake  <ebb9@byu.net>
32936
32937         tests: avoid more large file warnings
32938         * tests/test-fflush.c: Avoid warning about ftell use.
32939         * tests/test-fseek.c: Avoid warning about fseek use.
32940
32941 2010-01-10  Bruno Haible  <bruno@clisp.org>
32942
32943         nproc: Work better on Linux when /proc and /sys are not mounted.
32944         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
32945         as lower bound when, on glibc/Linux systems,
32946         sysconf (_SC_NPROCESSORS_CONF) returns 1.
32947         Suggested by Pádraig Brady <P@draigbrady.com>.
32948         Reported by Dmitry V. Levin <ldv@altlinux.org>.
32949
32950         nproc: Refactor.
32951         * lib/nproc.c (num_processors_via_affinity_mask): New function,
32952         extracted from num_processors.
32953         (num_processors): Call it.
32954
32955 2010-01-11  Jim Meyering  <meyering@redhat.com>
32956
32957         utimecmp: avoid new warning from upcoming gcc-4.5.0
32958         * lib/utimecmp.c (BILLION): Define using #define rather than an
32959         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
32960
32961 2010-01-11  Eric Blake  <ebb9@byu.net>
32962
32963         math: add portability warnings for classification macros
32964         * modules/math (Depends-on): Add warn-on-use.
32965         (Makefile.am): Provide new substitutions.
32966         * m4/math_h.m4 (gl_MATH_H): Require inline.
32967         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
32968         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
32969         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
32970         implement warnings.
32971
32972         unistd: warn on use of environ without module
32973         * modules/unistd (Depends-on): Add warn-on-use.
32974         (Makefile.am): Provide new substitutions.
32975         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
32976         * lib/unistd.in.h (environ): Wrap with a warning helper function.
32977
32978         stdio: warn on suspicious uses
32979         * modules/stdio (Depends-on): Add warn-on-use.
32980         (Makefile.am): Provide new substitutions.
32981         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
32982         fseeko.
32983         * lib/stdio.in.h (gets): Always warn on use.
32984         (fseek, ftell): Adjust when warnings are issued, and honor
32985         _GL_NO_LARGE_FILES as a way to silence the warning.
32986         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
32987         any warning about large file offsets.
32988         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
32989         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
32990         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
32991         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
32992         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
32993         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
32994         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
32995         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
32996
32997         warn-on-use: new module
32998         * modules/warn-on-use: New file.
32999         * build-aux/warn-on-use.h: Likewise.
33000         * m4/warn-on-use.m4: Likewise.
33001         * MODULES.html.sh (Support for building): Mention it.
33002
33003 2010-01-10  Bruno Haible  <bruno@clisp.org>
33004
33005         Tests for module 'unistr/u32-strdup'.
33006         * modules/unistr/u32-strdup-tests: New file.
33007         * tests/unistr/test-u32-strdup.c: New file.
33008
33009         Tests for module 'unistr/u16-strdup'.
33010         * modules/unistr/u16-strdup-tests: New file.
33011         * tests/unistr/test-u16-strdup.c: New file.
33012
33013         Tests for module 'unistr/u8-strdup'.
33014         * modules/unistr/u8-strdup-tests: New file.
33015         * tests/unistr/test-u8-strdup.c: New file.
33016         * tests/unistr/test-strdup.h: New file.
33017
33018         Tests for module 'unistr/u32-strncmp'.
33019         * modules/unistr/u32-strncmp-tests: New file.
33020         * tests/unistr/test-u32-strncmp.c: New file.
33021
33022         Tests for module 'unistr/u16-strncmp'.
33023         * modules/unistr/u16-strncmp-tests: New file.
33024         * tests/unistr/test-u16-strncmp.c: New file.
33025
33026         Tests for module 'unistr/u8-strncmp'.
33027         * modules/unistr/u8-strncmp-tests: New file.
33028         * tests/unistr/test-u8-strncmp.c: New file.
33029         * tests/unistr/test-strncmp.h: New file.
33030
33031         Tests for module 'unistr/u32-strcoll'.
33032         * modules/unistr/u32-strcoll-tests: New file.
33033         * tests/unistr/test-u32-strcoll.c: New file.
33034
33035         Tests for module 'unistr/u16-strcoll'.
33036         * modules/unistr/u16-strcoll-tests: New file.
33037         * tests/unistr/test-u16-strcoll.c: New file.
33038
33039         Tests for module 'unistr/u8-strcoll'.
33040         * modules/unistr/u8-strcoll-tests: New file.
33041         * tests/unistr/test-u8-strcoll.c: New file.
33042
33043         Tests for module 'unistr/u32-strcmp'.
33044         * modules/unistr/u32-strcmp-tests: New file.
33045         * tests/unistr/test-u32-strcmp.c: New file.
33046         * tests/unistr/test-u32-strcmp.h: New file.
33047
33048         Tests for module 'unistr/u16-strcmp'.
33049         * modules/unistr/u16-strcmp-tests: New file.
33050         * tests/unistr/test-u16-strcmp.c: New file.
33051         * tests/unistr/test-u16-strcmp.h: New file.
33052
33053         Tests for module 'unistr/u8-strcmp'.
33054         * modules/unistr/u8-strcmp-tests: New file.
33055         * tests/unistr/test-u8-strcmp.c: New file.
33056         * tests/unistr/test-u8-strcmp.h: New file.
33057         * tests/unistr/test-strcmp.h: New file.
33058
33059         Tests for module 'unistr/u32-strncat'.
33060         * modules/unistr/u32-strncat-tests: New file.
33061         * tests/unistr/test-u32-strncat.c: New file.
33062
33063         Tests for module 'unistr/u16-strncat'.
33064         * modules/unistr/u16-strncat-tests: New file.
33065         * tests/unistr/test-u16-strncat.c: New file.
33066
33067         Tests for module 'unistr/u8-strncat'.
33068         * modules/unistr/u8-strncat-tests: New file.
33069         * tests/unistr/test-u8-strncat.c: New file.
33070         * tests/unistr/test-strncat.h: New file.
33071
33072         Tests for module 'unistr/u32-strcat'.
33073         * modules/unistr/u32-strcat-tests: New file.
33074         * tests/unistr/test-u32-strcat.c: New file.
33075
33076         Tests for module 'unistr/u16-strcat'.
33077         * modules/unistr/u16-strcat-tests: New file.
33078         * tests/unistr/test-u16-strcat.c: New file.
33079
33080         Tests for module 'unistr/u8-strcat'.
33081         * modules/unistr/u8-strcat-tests: New file.
33082         * tests/unistr/test-u8-strcat.c: New file.
33083         * tests/unistr/test-strcat.h: New file.
33084
33085         Tests for module 'unistr/u32-stpncpy'.
33086         * modules/unistr/u32-stpncpy-tests: New file.
33087         * tests/unistr/test-u32-stpncpy.c: New file.
33088
33089         Tests for module 'unistr/u16-stpncpy'.
33090         * modules/unistr/u16-stpncpy-tests: New file.
33091         * tests/unistr/test-u16-stpncpy.c: New file.
33092
33093         Tests for module 'unistr/u8-stpncpy'.
33094         * modules/unistr/u8-stpncpy-tests: New file.
33095         * tests/unistr/test-u8-stpncpy.c: New file.
33096         * tests/unistr/test-stpncpy.h: New file.
33097
33098         Tests for module 'unistr/u32-strncpy'.
33099         * modules/unistr/u32-strncpy-tests: New file.
33100         * tests/unistr/test-u32-strncpy.c: New file.
33101
33102         Tests for module 'unistr/u16-strncpy'.
33103         * modules/unistr/u16-strncpy-tests: New file.
33104         * tests/unistr/test-u16-strncpy.c: New file.
33105
33106         Tests for module 'unistr/u8-strncpy'.
33107         * modules/unistr/u8-strncpy-tests: New file.
33108         * tests/unistr/test-u8-strncpy.c: New file.
33109         * tests/unistr/test-strncpy.h: New file.
33110
33111         Tests for module 'unistr/u32-stpcpy'.
33112         * modules/unistr/u32-stpcpy-tests: New file.
33113         * tests/unistr/test-u32-stpcpy.c: New file.
33114
33115         Tests for module 'unistr/u16-stpcpy'.
33116         * modules/unistr/u16-stpcpy-tests: New file.
33117         * tests/unistr/test-u16-stpcpy.c: New file.
33118
33119         Tests for module 'unistr/u8-stpcpy'.
33120         * modules/unistr/u8-stpcpy-tests: New file.
33121         * tests/unistr/test-u8-stpcpy.c: New file.
33122         * tests/unistr/test-stpcpy.h: New file.
33123
33124         Tests for module 'unistr/u32-strcpy'.
33125         * modules/unistr/u32-strcpy-tests: New file.
33126         * tests/unistr/test-u32-strcpy.c: New file.
33127
33128         Tests for module 'unistr/u16-strcpy'.
33129         * modules/unistr/u16-strcpy-tests: New file.
33130         * tests/unistr/test-u16-strcpy.c: New file.
33131
33132         Tests for module 'unistr/u8-strcpy'.
33133         * modules/unistr/u8-strcpy-tests: New file.
33134         * tests/unistr/test-u8-strcpy.c: New file.
33135         * tests/unistr/test-strcpy.h: New file.
33136
33137         Tests for module 'unistr/u32-strnlen'.
33138         * modules/unistr/u32-strnlen-tests: New file.
33139         * tests/unistr/test-u32-strnlen.c: New file.
33140
33141         Tests for module 'unistr/u16-strnlen'.
33142         * modules/unistr/u16-strnlen-tests: New file.
33143         * tests/unistr/test-u16-strnlen.c: New file.
33144
33145         Tests for module 'unistr/u8-strnlen'.
33146         * modules/unistr/u8-strnlen-tests: New file.
33147         * tests/unistr/test-u8-strnlen.c: New file.
33148         * tests/unistr/test-strnlen.h: New file.
33149
33150         Tests for module 'unistr/u32-strlen'.
33151         * modules/unistr/u32-strlen-tests: New file.
33152         * tests/unistr/test-u32-strlen.c: New file.
33153
33154         Tests for module 'unistr/u16-strlen'.
33155         * modules/unistr/u16-strlen-tests: New file.
33156         * tests/unistr/test-u16-strlen.c: New file.
33157
33158         Tests for module 'unistr/u8-strlen'.
33159         * modules/unistr/u8-strlen-tests: New file.
33160         * tests/unistr/test-u8-strlen.c: New file.
33161
33162         Tests for module 'unistr/u32-prev'.
33163         * modules/unistr/u32-prev-tests: New file.
33164         * tests/unistr/test-u32-prev.c: New file.
33165
33166         Tests for module 'unistr/u16-prev'.
33167         * modules/unistr/u16-prev-tests: New file.
33168         * tests/unistr/test-u16-prev.c: New file.
33169
33170         Tests for module 'unistr/u8-prev'.
33171         * modules/unistr/u8-prev-tests: New file.
33172         * tests/unistr/test-u8-prev.c: New file.
33173
33174         Tests for module 'unistr/u32-next'.
33175         * modules/unistr/u32-next-tests: New file.
33176         * tests/unistr/test-u32-next.c: New file.
33177
33178         Tests for module 'unistr/u16-next'.
33179         * modules/unistr/u16-next-tests: New file.
33180         * tests/unistr/test-u16-next.c: New file.
33181
33182         Tests for module 'unistr/u8-next'.
33183         * modules/unistr/u8-next-tests: New file.
33184         * tests/unistr/test-u8-next.c: New file.
33185
33186         Tests for module 'unistr/u32-strmbtouc'.
33187         * modules/unistr/u32-strmbtouc-tests: New file.
33188         * tests/unistr/test-u32-strmbtouc.c: New file.
33189
33190         Tests for module 'unistr/u16-strmbtouc'.
33191         * modules/unistr/u16-strmbtouc-tests: New file.
33192         * tests/unistr/test-u16-strmbtouc.c: New file.
33193
33194         Tests for module 'unistr/u8-strmbtouc'.
33195         * modules/unistr/u8-strmbtouc-tests: New file.
33196         * tests/unistr/test-u8-strmbtouc.c: New file.
33197
33198         Tests for module 'unistr/u32-strmblen'.
33199         * modules/unistr/u32-strmblen-tests: New file.
33200         * tests/unistr/test-u32-strmblen.c: New file.
33201
33202         Tests for module 'unistr/u16-strmblen'.
33203         * modules/unistr/u16-strmblen-tests: New file.
33204         * tests/unistr/test-u16-strmblen.c: New file.
33205
33206         Tests for module 'unistr/u8-strmblen'.
33207         * modules/unistr/u8-strmblen-tests: New file.
33208         * tests/unistr/test-u8-strmblen.c: New file.
33209
33210         Tests for module 'unistr/u32-cpy-alloc'.
33211         * modules/unistr/u32-cpy-alloc-tests: New file.
33212         * tests/unistr/test-u32-cpy-alloc.c: New file.
33213
33214         Tests for module 'unistr/u16-cpy-alloc'.
33215         * modules/unistr/u16-cpy-alloc-tests: New file.
33216         * tests/unistr/test-u16-cpy-alloc.c: New file.
33217
33218         Tests for module 'unistr/u8-cpy-alloc'.
33219         * modules/unistr/u8-cpy-alloc-tests: New file.
33220         * tests/unistr/test-u8-cpy-alloc.c: New file.
33221         * tests/unistr/test-cpy-alloc.h: New file.
33222
33223         Tests for module 'unistr/u32-mbsnlen'.
33224         * modules/unistr/u32-mbsnlen-tests: New file.
33225         * tests/unistr/test-u32-mbsnlen.c: New file.
33226
33227         Tests for module 'unistr/u16-mbsnlen'.
33228         * modules/unistr/u16-mbsnlen-tests: New file.
33229         * tests/unistr/test-u16-mbsnlen.c: New file.
33230
33231         Tests for module 'unistr/u8-mbsnlen'.
33232         * modules/unistr/u8-mbsnlen-tests: New file.
33233         * tests/unistr/test-u8-mbsnlen.c: New file.
33234
33235         Tests for module 'unistr/u32-chr'.
33236         * modules/unistr/u32-chr-tests: New file.
33237         * tests/unistr/test-u32-chr.c: New file.
33238
33239         Tests for module 'unistr/u16-chr'.
33240         * modules/unistr/u16-chr-tests: New file.
33241         * tests/unistr/test-u16-chr.c: New file.
33242
33243         Tests for module 'unistr/u8-chr'.
33244         * modules/unistr/u8-chr-tests: New file.
33245         * tests/unistr/test-u8-chr.c: New file.
33246         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
33247
33248         Tests for module 'unistr/u32-cmp2'.
33249         * modules/unistr/u32-cmp2-tests: New file.
33250         * tests/unistr/test-u32-cmp2.c: New file.
33251
33252         Tests for module 'unistr/u16-cmp2'.
33253         * modules/unistr/u16-cmp2-tests: New file.
33254         * tests/unistr/test-u16-cmp2.c: New file.
33255
33256         Tests for module 'unistr/u8-cmp2'.
33257         * modules/unistr/u8-cmp2-tests: New file.
33258         * tests/unistr/test-u8-cmp2.c: New file.
33259         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
33260
33261         Tests for module 'unistr/u32-cmp'.
33262         * modules/unistr/u32-cmp-tests: New file.
33263         * tests/unistr/test-u32-cmp.c: New file.
33264
33265         Tests for module 'unistr/u16-cmp'.
33266         * modules/unistr/u16-cmp-tests: New file.
33267         * tests/unistr/test-u16-cmp.c: New file.
33268
33269         Tests for module 'unistr/u8-cmp'.
33270         * modules/unistr/u8-cmp-tests: New file.
33271         * tests/unistr/test-u8-cmp.c: New file.
33272         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
33273
33274         Tests for module 'unistr/u32-set'.
33275         * modules/unistr/u32-set-tests: New file.
33276         * tests/unistr/test-u32-set.c: New file.
33277
33278         Tests for module 'unistr/u16-set'.
33279         * modules/unistr/u16-set-tests: New file.
33280         * tests/unistr/test-u16-set.c: New file.
33281
33282         Tests for module 'unistr/u8-set'.
33283         * modules/unistr/u8-set-tests: New file.
33284         * tests/unistr/test-u8-set.c: New file.
33285         * tests/unistr/test-set.h: New file.
33286
33287         Tests for module 'unistr/u32-move'.
33288         * modules/unistr/u32-move-tests: New file.
33289         * tests/unistr/test-u32-move.c: New file.
33290
33291         Tests for module 'unistr/u16-move'.
33292         * modules/unistr/u16-move-tests: New file.
33293         * tests/unistr/test-u16-move.c: New file.
33294
33295         Tests for module 'unistr/u8-move'.
33296         * modules/unistr/u8-move-tests: New file.
33297         * tests/unistr/test-u8-move.c: New file.
33298         * tests/unistr/test-move.h: New file.
33299
33300         Tests for module 'unistr/u32-cpy'.
33301         * modules/unistr/u32-cpy-tests: New file.
33302         * tests/unistr/test-u32-cpy.c: New file.
33303
33304         Tests for module 'unistr/u16-cpy'.
33305         * modules/unistr/u16-cpy-tests: New file.
33306         * tests/unistr/test-u16-cpy.c: New file.
33307
33308         Tests for module 'unistr/u8-cpy'.
33309         * modules/unistr/u8-cpy-tests: New file.
33310         * tests/unistr/test-u8-cpy.c: New file.
33311         * tests/unistr/test-cpy.h: New file.
33312
33313 2010-01-09  Bruno Haible  <bruno@clisp.org>
33314
33315         Tests for module 'unistr/u32-uctomb'.
33316         * modules/unistr/u32-uctomb-tests: New file.
33317         * tests/unistr/test-u32-uctomb.c: New file.
33318
33319         Tests for module 'unistr/u16-uctomb'.
33320         * modules/unistr/u16-uctomb-tests: New file.
33321         * tests/unistr/test-u16-uctomb.c: New file.
33322
33323         Tests for module 'unistr/u8-uctomb'.
33324         * modules/unistr/u8-uctomb-tests: New file.
33325         * tests/unistr/test-u8-uctomb.c: New file.
33326
33327         Tests for module 'unistr/u32-mbtoucr'.
33328         * modules/unistr/u32-mbtoucr-tests: New file.
33329         * tests/unistr/test-u32-mbtoucr.c: New file.
33330
33331         Tests for module 'unistr/u16-mbtoucr'.
33332         * modules/unistr/u16-mbtoucr-tests: New file.
33333         * tests/unistr/test-u16-mbtoucr.c: New file.
33334
33335         Tests for module 'unistr/u8-mbtoucr'.
33336         * modules/unistr/u8-mbtoucr-tests: New file.
33337         * tests/unistr/test-u8-mbtoucr.c: New file.
33338
33339         Tests for module 'unistr/u32-mbtouc'.
33340         * modules/unistr/u32-mbtouc-tests: New file.
33341         * tests/unistr/test-u32-mbtouc.c: New file.
33342
33343         Tests for module 'unistr/u16-mbtouc'.
33344         * modules/unistr/u16-mbtouc-tests: New file.
33345         * tests/unistr/test-u16-mbtouc.c: New file.
33346
33347         Tests for module 'unistr/u8-mbtouc'.
33348         * modules/unistr/u8-mbtouc-tests: New file.
33349         * tests/unistr/test-u8-mbtouc.c: New file.
33350
33351         Tests for module 'unistr/u32-mbtouc-unsafe'.
33352         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
33353         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
33354         * tests/unistr/test-u32-mbtouc.h: New file.
33355
33356         Tests for module 'unistr/u16-mbtouc-unsafe'.
33357         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
33358         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
33359         * tests/unistr/test-u16-mbtouc.h: New file.
33360
33361         Tests for module 'unistr/u8-mbtouc-unsafe'.
33362         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
33363         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
33364         * tests/unistr/test-u8-mbtouc.h: New file.
33365
33366         Tests for module 'unistr/u32-mblen'.
33367         * modules/unistr/u32-mblen-tests: New file.
33368         * tests/unistr/test-u32-mblen.c: New file.
33369
33370         Tests for module 'unistr/u16-mblen'.
33371         * modules/unistr/u16-mblen-tests: New file.
33372         * tests/unistr/test-u16-mblen.c: New file.
33373
33374         Tests for module 'unistr/u8-mblen'.
33375         * modules/unistr/u8-mblen-tests: New file.
33376         * tests/unistr/test-u8-mblen.c: New file.
33377
33378         Tests for module 'unistr/u32-to-u16'.
33379         * modules/unistr/u32-to-u16-tests: New file.
33380         * tests/unistr/test-u32-to-u16.c: New file.
33381
33382         Tests for module 'unistr/u32-to-u8'.
33383         * modules/unistr/u32-to-u8-tests: New file.
33384         * tests/unistr/test-u32-to-u8.c: New file.
33385
33386         Tests for module 'unistr/u16-to-u32'.
33387         * modules/unistr/u16-to-u32-tests: New file.
33388         * tests/unistr/test-u16-to-u32.c: New file.
33389
33390         Tests for module 'unistr/u16-to-u8'.
33391         * modules/unistr/u16-to-u8-tests: New file.
33392         * tests/unistr/test-u16-to-u8.c: New file.
33393
33394         Tests for module 'unistr/u8-to-u32'.
33395         * modules/unistr/u8-to-u32-tests: New file.
33396         * tests/unistr/test-u8-to-u32.c: New file.
33397
33398         Tests for module 'unistr/u8-to-u16'.
33399         * modules/unistr/u8-to-u16-tests: New file.
33400         * tests/unistr/test-u8-to-u16.c: New file.
33401
33402         Tests for module 'unistr/u32-check'.
33403         * modules/unistr/u32-check-tests: New file.
33404         * tests/unistr/test-u32-check.c: New file.
33405
33406         Tests for module 'unistr/u16-check'.
33407         * modules/unistr/u16-check-tests: New file.
33408         * tests/unistr/test-u16-check.c: New file.
33409
33410         Tests for module 'unistr/u8-check'.
33411         * modules/unistr/u8-check-tests: New file.
33412         * tests/unistr/test-u8-check.c: New file.
33413
33414         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
33415         (category_equals): New function.
33416         (main): Add more tests.
33417         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
33418
33419         * tests/unictype/test-bidi_byname.c (main): Add more tests.
33420
33421 2010-01-10  Bruno Haible  <bruno@clisp.org>
33422
33423         unistr/u*-strcoll: Try harder to distinguish different strings.
33424         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
33425         compare s1 and s2 to see if they are different.
33426
33427 2010-01-10  Bruno Haible  <bruno@clisp.org>
33428
33429         unistr/u*-stpncpy: Fix the return value.
33430         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
33431         description of the return value consistent with stpncpy in glibc.
33432         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
33433         written non-NUL unit.
33434
33435 2010-01-10  Bruno Haible  <bruno@clisp.org>
33436
33437         unistr/u*-next: Add missing dependencies.
33438         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
33439         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
33440         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
33441
33442 2010-01-10  Bruno Haible  <bruno@clisp.org>
33443
33444         unistr/u8-mbsnlen: Fix return value for incomplete character.
33445         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
33446         u8_mblen.
33447         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
33448         Remove unistr/u8-mblen.
33449         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
33450         u16_mblen.
33451         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
33452         Remove unistr/u16-mblen.
33453
33454 2010-01-10  Bruno Haible  <bruno@clisp.org>
33455
33456         wchar: Fix compilation error when <wchar.h> is used from coreutils.
33457         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
33458         Reported by Brian Gough <bjg@gnu.org> and
33459         Chris Clayton <chris2553@googlemail.com> via
33460         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
33461
33462 2010-01-09  Bruno Haible  <bruno@clisp.org>
33463
33464         unistr/u16-to-u32: Reject invalid input.
33465         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
33466         u16_mbtouc.
33467         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
33468         Remove unistr/u16-mbtouc.
33469
33470         unistr/u16-to-u8: Reject invalid input.
33471         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
33472         u16_mbtouc.
33473         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
33474         Remove unistr/u16-mbtouc.
33475
33476         unistr/u8-to-u32: Reject invalid input.
33477         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
33478         u8_mbtouc.
33479         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
33480         Remove unistr/u8-mbtouc.
33481
33482         unistr/u8-to-u16: Reject invalid input.
33483         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
33484         u8_mbtouc.
33485         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
33486         Remove unistr/u8-mbtouc.
33487
33488 2010-01-09  Bruno Haible  <bruno@clisp.org>
33489
33490         Tests for module 'getlogin'.
33491         * modules/getlogin-tests: New file.
33492         * tests/test-getlogin.c: New file.
33493
33494         New module 'getlogin'.
33495         * lib/unistd.in.h (getlogin): New declaration.
33496         * lib/getlogin.c: New file.
33497         * m4/getlogin.m4: New file.
33498         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
33499         HAVE_GETLOGIN.
33500         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
33501         HAVE_GETLOGIN.
33502         * modules/getlogin: New file.
33503         * doc/posix-functions/getlogin.texi: Mention the new module.
33504         Reported by John W. Eaton <jwe@gnu.org>.
33505
33506 2010-01-09  Bruno Haible  <bruno@clisp.org>
33507
33508         getlogin_r: Support for native Windows.
33509         * lib/getlogin_r.c: Include <windows.h>
33510         (getlogin_r): Implement for native Windows.
33511         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
33512         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
33513         via John W. Eaton <jwe@gnu.org>.
33514
33515 2010-01-09  Bruno Haible  <bruno@clisp.org>
33516
33517         getlogin_r: Small fixes.
33518         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
33519         succeeds.
33520         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
33521         before testing whether getlogin_r is declared. No need to set
33522         HAVE_DECL_GETLOGIN_R to 1.
33523         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
33524
33525 2010-01-09  Bruno Haible  <bruno@clisp.org>
33526
33527         * lib/unistd.in.h (getlogin_r): Add comment.
33528
33529 2010-01-09  Bruno Haible  <bruno@clisp.org>
33530
33531         Tests for module 'getlogin_r'.
33532         * modules/getlogin_r-tests: New file.
33533         * tests/test-getlogin_r.c: New file.
33534
33535 2010-01-09  Jim Meyering  <meyering@redhat.com>
33536
33537         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
33538         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
33539         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
33540
33541 2010-01-08  Simon Josefsson  <simon@josefsson.org>
33542
33543         * lib/dup2.c (rpl_dup2): Improve comment.
33544
33545 2010-01-08  Eric Blake  <ebb9@byu.net>
33546
33547         maint.mk: allow packages to add makefile @@ exceptions
33548         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
33549         (sc_makefile_check): Rename...
33550         (sc_makefile_at_at_check): ...to this, and use hook.
33551
33552         dup2: work around mingw bug
33553         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
33554         Reported by Simon Josefsson.
33555
33556 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
33557
33558         glob: Fix C++ compilation.
33559         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
33560         C++.
33561
33562 2010-01-07  Bruno Haible  <bruno@clisp.org>
33563
33564         Fix indentation of wctype.in.h, broken since 2007-01-06.
33565         * lib/wctype.in.h: Fix indentation of preprocessor directives.
33566
33567 2010-01-07  Bruno Haible  <bruno@clisp.org>
33568
33569         mbslen: Avoid collision with system function.
33570         * lib/string.in.h [MirBSD]: Include <wchar.h>.
33571         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
33572         * m4/mbslen.m4: New file.
33573         * modules/mbslen (Files): Add it.
33574         (configure.ac): Invoke gl_MBSLEN.
33575         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
33576         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
33577         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
33578         via Ian Beckwith <ianb@erislabs.net>.
33579
33580 2010-01-07  Bruno Haible  <bruno@clisp.org>
33581
33582         dirent: Document the last fix.
33583         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
33584
33585 2010-01-07  Bruno Haible  <bruno@clisp.org>
33586
33587         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
33588         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
33589         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
33590         va_list are defined.
33591         * doc/posix-headers/stdio.texi: Document the bug of missing types.
33592         Reported by Eric Blake.
33593
33594 2010-01-07  Bruno Haible  <bruno@clisp.org>
33595
33596         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
33597         * modules/xlist (Depends-on): Add 'list',
33598         * modules/xoset (Depends-on): Add 'oset'.
33599         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33600
33601 2010-01-07  Bruno Haible  <bruno@clisp.org>
33602
33603         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
33604         * doc/posix-functions/strncasecmp.texi: Likewise.
33605
33606 2010-01-07  Bruno Haible  <bruno@clisp.org>
33607
33608         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
33609
33610 2010-01-07  John W. Eaton  <jwe@octave.org>
33611
33612         wctype: allow C++ use
33613         * lib/wctype.in.h: Add extern "C" block for C++.
33614
33615 2010-01-06  Eric Blake  <ebb9@byu.net>
33616
33617         maint.mk: detect incorrect GFDL usage
33618         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
33619
33620 2010-01-06  Jim Meyering  <meyering@redhat.com>
33621         and Eric Blake  <ebb9@byu.net>
33622
33623         maint.mk: ignore multi-line copyright in NEWS
33624         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
33625
33626 2010-01-06  Eric Blake  <ebb9@byu.net>
33627
33628         select: add missing dependency
33629         * modules/select-tests (Depends-on): Move sockets dependency...
33630         * modules/select (Depends-on): ...here.
33631         Reported by Ian Beckwith.
33632
33633         doc: regenerate INSTALL
33634         * doc/INSTALL: Reflect recent autoconf update.
33635         * doc/INSTALL.ISO: Likewise.
33636         * doc/INSTALL.UTF-8: Likewise.
33637
33638         pread: fix compilation on glibc
33639         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
33640         Reported by Ralf Wildenhues.
33641
33642         dirent: fix test failure
33643         * lib/dirent.in.h (includes): Guarantee ino_t.
33644         Reported by Ralf Wildenhues.
33645
33646 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
33647
33648         linkat, renameat: avoid bad free
33649         * lib/at-func2.c (at_func2): Fix typo.
33650         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
33651
33652 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33653
33654         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
33655         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
33656         to avoid failure of symlink test later.
33657
33658 2010-01-06  Eric Blake  <ebb9@byu.net>
33659
33660         stdio, unistd: guarantee ssize_t
33661         * lib/unistd.in.h (includes): Ensure that types required by POSIX
33662         2008 are exposed when needed.
33663         * lib/stdio.in.h (includes): Likewise.
33664         Reported by Ralf Wildenhues.
33665
33666 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
33667
33668         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
33669         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
33670         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
33671
33672 2010-01-06  Jim Meyering  <meyering@redhat.com>
33673
33674         readtokens: this module *does* require xalloc.h
33675         It uses only functions that were omitted by the old syntax-check rule.
33676         * lib/readtokens.c: Include "xalloc.h" once again.
33677         * modules/readtokens (Depends-on): Add xalloc.
33678         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
33679
33680 2010-01-05  Eric Blake  <ebb9@byu.net>
33681
33682         maint: support 'make announcement' from a VPATH build
33683         * top/maint.mk (announcement): Look for correct NEWS file.
33684
33685 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
33686
33687         utimens (fdutimens): ignore a negative FD, per contract
33688         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
33689         when we have a valid file descriptor.  Otherwise, using a brand
33690         new glibc (with just-patched futimens that now fails with EBADF)
33691         would cause this function to fail with ENOSYS.
33692         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
33693         See also http://bugzilla.redhat.com/552320.
33694
33695 2010-01-05  Eric Blake  <ebb9@byu.net>
33696
33697         strcase: document what it provides
33698         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
33699         gnulib module.
33700         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
33701         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
33702
33703 2010-01-05  Jim Meyering  <meyering@redhat.com>
33704
33705         maint: remove useless inclusions of "xalloc.h"
33706         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
33707         * lib/readtokens.c: Likewise.
33708         * lib/same.c: Likewise.
33709         * modules/getloadavg (Depends-on): Remove xalloc.
33710         * modules/readtokens: Likewise.
33711         * modules/same: Likewise.
33712
33713         maint.mk: include 4 more function names in alloca.h-checking regexp
33714         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
33715         regexp.  Before, we would give a false-positive (saying alloca.h
33716         is included unnecessarily) when the only uses involved omitted symbols.
33717
33718         xalloc.h: use consistent formatting
33719         * lib/xalloc.h: Move declarations to start in the first column.
33720
33721 2010-01-05  Eric Blake  <ebb9@byu.net>
33722
33723         mkdir: avoid xalloc
33724         * lib/mkdir.c (includes): Drop unused header.
33725         Reported by John W. Eaton.
33726
33727 2010-01-04  Jim Meyering  <meyering@redhat.com>
33728
33729         nl_langinfo: avoid configure-time syntax error
33730         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
33731         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
33732         the empty string.  Don't let that provoke a shell syntax error.
33733
33734         regcomp, regexec, fnmatch: avoid array bounds read error
33735         * lib/regcomp.c (build_equiv_class): From glibc:
33736         Use only the low 24 bits of a findidx return value as an index
33737         into the weights array.  Patch by Ulrich Drepper:
33738         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
33739         * lib/regexec.c (check_node_accept_bytes): Likewise.
33740         * lib/fnmatch_loop.c (FCT): Likewise.
33741
33742         regcomp: skip collseq lookup when there are no rules
33743         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
33744         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
33745
33746         regcomp: recognize ill-formed { } expressions
33747         * lib/regcomp.c (parse_dup_op): From glibc:
33748         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
33749
33750         regcomp: fix typo in comment
33751         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
33752         s/satisfy/satisfies/.
33753
33754         regcomp: sync from glibc: remove dead store
33755         * lib/regcomp.c (duplicate_node_closure): Remove useless
33756         search_duplicated_node call and dead store.
33757
33758         regcomp: sync from glibc; always use nl_langinfo
33759         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
33760         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
33761         * modules/regex (Depends-on): Add nl_langinfo.
33762
33763 2010-01-04  Eric Blake  <ebb9@byu.net>
33764
33765         fdopendir: fix configure test
33766         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
33767
33768 2010-01-01  Bruno Haible  <bruno@clisp.org>
33769
33770         wchar: Remove unused configure check.
33771         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
33772
33773 2010-01-01  Eric Blake  <ebb9@byu.net>
33774
33775         headers: make check of system header explicit
33776         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
33777         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
33778         ourselves.
33779         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33780         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33781         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
33782         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
33783         internals.
33784         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
33785         missing.
33786         Suggested by Bruno Haible.
33787
33788 2010-01-01  Jim Meyering  <meyering@redhat.com>
33789
33790         ChangeLog: tweak to eliminate unnecessary copyright line
33791         * ChangeLog: Remove a copyright line that was mistakenly updated
33792         by today's update-copyright run.  Reported by Eric Blake.
33793
33794         test-update-copyright: don't let envvar setting cause test failure
33795         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
33796
33797 2010-01-01  Bruno Haible  <bruno@clisp.org>
33798
33799         localename: Avoid gcc warning.
33800         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
33801         function if it is not used.
33802
33803 2010-01-01  Jim Meyering  <meyering@redhat.com>
33804
33805         update nearly all FSF copyright year lists to include 2010
33806         Use the same procedure as for 2009, outlined in
33807         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
33808
33809         version-etc: set COPYRIGHT_YEAR to 2010
33810         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
33811
33812 2009-12-31  Eric Blake  <ebb9@byu.net>
33813
33814         doc: correct availability of cygwin 1.5.x getopt
33815         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
33816         variables.
33817         * doc/posix-functions/opterr.texi (opterr): Likewise.
33818         * doc/posix-functions/optind.texi (optind): Likewise.
33819         * doc/posix-functions/optopt.texi (optopt): Likewise.
33820         * doc/posix-functions/tzname.texi (tzname): Likewise.
33821
33822         openat: update maintainer
33823         * modules/openat (Maintainer): Add myself.
33824
33825         utimens: avoid shadowing warning
33826         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
33827         buffers into one, to avoid shadowing, as well as avoiding a
33828         redundant stat.
33829         Reported by Jim Meyering.
33830
33831         test-dup2: avoid compiler warning
33832         * tests/test-dup2.c (is_inheritable): Only define if used.
33833
33834 2010-01-01  Bruno Haible  <bruno@clisp.org>
33835
33836         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
33837         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
33838         defined, use wctomb instead of wcrtomb.
33839
33840 2010-01-01  Bruno Haible  <bruno@clisp.org>
33841
33842         iconv: Reject native Solaris iconv.
33843         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
33844         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
33845
33846 2009-12-31  Bruno Haible  <bruno@clisp.org>
33847
33848         * tests/test-signal.c (main): Remove test of 'SIG'.
33849
33850 2009-12-31  Bruno Haible  <bruno@clisp.org>
33851
33852         spawn: Fix incomplete fix.
33853         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
33854         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
33855         warnings for GNULIB_POSIXCHECK again.
33856         Reported by Eric Blake.
33857
33858 2009-12-31  Bruno Haible  <bruno@clisp.org>
33859
33860         Avoid namespace pollution on glibc systems.
33861         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
33862         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
33863         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
33864         glibc systems.
33865
33866 2009-12-31  Bruno Haible  <bruno@clisp.org>
33867
33868         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
33869         (gl_REPLACE_WCHAR_H): Turn into a no-op.
33870         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
33871         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
33872         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
33873         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
33874         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
33875
33876 2009-12-31  Bruno Haible  <bruno@clisp.org>
33877
33878         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
33879         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
33880         afterwards.
33881
33882 2009-12-31  Bruno Haible  <bruno@clisp.org>
33883
33884         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
33885         SYS_UTSNAME_H.
33886
33887 2009-12-31  Bruno Haible  <bruno@clisp.org>
33888
33889         spawn: Fix misapplied patch.
33890         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
33891         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
33892         warnings for GNULIB_POSIXCHECK.
33893
33894 2009-12-31  Bruno Haible  <bruno@clisp.org>
33895
33896         times: Update after sys_times changed.
33897         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
33898         * modules/times (Files): Add it.
33899         (configure.ac): Invoke gl_FUNC_TIMES.
33900
33901 2009-12-31  Bruno Haible  <bruno@clisp.org>
33902
33903         Use AC_C_INLINE where necessary.
33904         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
33905         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
33906         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
33907         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
33908         * m4/mbfile.m4 (gl_MBFILE): Likewise.
33909         * m4/mbiter.m4 (gl_MBITER): Likewise.
33910         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
33911         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
33912         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
33913         * modules/u64 (configure.ac): Likewise.
33914
33915 2009-12-31  Bruno Haible  <bruno@clisp.org>
33916
33917         Use AC_C_INLINE instead of module 'inline' where possible.
33918         * modules/inline (Description): Clarify purpose.
33919         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
33920         * modules/count-one-bits (Depends-on): Remove inline.
33921         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
33922         * modules/openat (Depends-on): Remove inline.
33923         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
33924         instead of depending on module 'inline'.
33925         * modules/filevercmp (Depends-on, configure.ac): Likewise.
33926         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
33927         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
33928         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
33929         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
33930         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
33931         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
33932         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
33933         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
33934         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
33935         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
33936         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
33937         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
33938         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
33939         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
33940         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
33941         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
33942         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
33943         Likewise.
33944         * modules/unictype/property-ascii-hex-digit (Depends-on,
33945         configure.ac): Likewise.
33946         * modules/unictype/property-bidi-arabic-digit (Depends-on,
33947         configure.ac): Likewise.
33948         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
33949         configure.ac): Likewise.
33950         * modules/unictype/property-bidi-block-separator (Depends-on,
33951         configure.ac): Likewise.
33952         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
33953         configure.ac): Likewise.
33954         * modules/unictype/property-bidi-common-separator (Depends-on,
33955         configure.ac): Likewise.
33956         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
33957         Likewise.
33958         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
33959         configure.ac): Likewise.
33960         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
33961         configure.ac): Likewise.
33962         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
33963         configure.ac): Likewise.
33964         * modules/unictype/property-bidi-european-digit (Depends-on,
33965         configure.ac): Likewise.
33966         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
33967         configure.ac): Likewise.
33968         * modules/unictype/property-bidi-left-to-right (Depends-on,
33969         configure.ac): Likewise.
33970         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
33971         configure.ac): Likewise.
33972         * modules/unictype/property-bidi-other-neutral (Depends-on,
33973         configure.ac): Likewise.
33974         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
33975         Likewise.
33976         * modules/unictype/property-bidi-segment-separator (Depends-on,
33977         configure.ac): Likewise.
33978         * modules/unictype/property-bidi-whitespace (Depends-on,
33979         configure.ac): Likewise.
33980         * modules/unictype/property-combining (Depends-on, configure.ac):
33981         Likewise.
33982         * modules/unictype/property-composite (Depends-on, configure.ac):
33983         Likewise.
33984         * modules/unictype/property-currency-symbol (Depends-on,
33985         configure.ac): Likewise.
33986         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
33987         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
33988         Likewise.
33989         * modules/unictype/property-default-ignorable-code-point (Depends-on,
33990         configure.ac): Likewise.
33991         * modules/unictype/property-deprecated (Depends-on, configure.ac):
33992         Likewise.
33993         * modules/unictype/property-diacritic (Depends-on, configure.ac):
33994         Likewise.
33995         * modules/unictype/property-extender (Depends-on, configure.ac):
33996         Likewise.
33997         * modules/unictype/property-format-control (Depends-on, configure.ac):
33998         Likewise.
33999         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
34000         Likewise.
34001         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
34002         Likewise.
34003         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
34004         Likewise.
34005         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
34006         Likewise.
34007         * modules/unictype/property-hyphen (Depends-on, configure.ac):
34008         Likewise.
34009         * modules/unictype/property-id-continue (Depends-on, configure.ac):
34010         Likewise.
34011         * modules/unictype/property-id-start (Depends-on, configure.ac):
34012         Likewise.
34013         * modules/unictype/property-ideographic (Depends-on, configure.ac):
34014         Likewise.
34015         * modules/unictype/property-ids-binary-operator (Depends-on,
34016         configure.ac): Likewise.
34017         * modules/unictype/property-ids-trinary-operator (Depends-on,
34018         configure.ac): Likewise.
34019         * modules/unictype/property-ignorable-control (Depends-on,
34020         configure.ac): Likewise.
34021         * modules/unictype/property-iso-control (Depends-on, configure.ac):
34022         Likewise.
34023         * modules/unictype/property-join-control (Depends-on, configure.ac):
34024         Likewise.
34025         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
34026         Likewise.
34027         * modules/unictype/property-line-separator (Depends-on, configure.ac):
34028         Likewise.
34029         * modules/unictype/property-logical-order-exception (Depends-on,
34030         configure.ac): Likewise.
34031         * modules/unictype/property-lowercase (Depends-on, configure.ac):
34032         Likewise.
34033         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
34034         * modules/unictype/property-non-break (Depends-on, configure.ac):
34035         Likewise.
34036         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
34037         Likewise.
34038         * modules/unictype/property-numeric (Depends-on, configure.ac):
34039         Likewise.
34040         * modules/unictype/property-other-alphabetic (Depends-on,
34041         configure.ac): Likewise.
34042         * modules/unictype/property-other-default-ignorable-code-point
34043         (Depends-on, configure.ac): Likewise.
34044         * modules/unictype/property-other-grapheme-extend (Depends-on,
34045         configure.ac): Likewise.
34046         * modules/unictype/property-other-id-continue (Depends-on,
34047         configure.ac): Likewise.
34048         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
34049         Likewise.
34050         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
34051         Likewise.
34052         * modules/unictype/property-other-math (Depends-on, configure.ac):
34053         Likewise.
34054         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
34055         Likewise.
34056         * modules/unictype/property-paired-punctuation (Depends-on,
34057         configure.ac): Likewise.
34058         * modules/unictype/property-paragraph-separator (Depends-on,
34059         configure.ac): Likewise.
34060         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
34061         Likewise.
34062         * modules/unictype/property-pattern-white-space (Depends-on,
34063         configure.ac): Likewise.
34064         * modules/unictype/property-private-use (Depends-on, configure.ac):
34065         Likewise.
34066         * modules/unictype/property-punctuation (Depends-on, configure.ac):
34067         Likewise.
34068         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
34069         Likewise.
34070         * modules/unictype/property-radical (Depends-on, configure.ac):
34071         Likewise.
34072         * modules/unictype/property-sentence-terminal (Depends-on,
34073         configure.ac): Likewise.
34074         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
34075         Likewise.
34076         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
34077         * modules/unictype/property-terminal-punctuation (Depends-on,
34078         configure.ac): Likewise.
34079         * modules/unictype/property-titlecase (Depends-on, configure.ac):
34080         Likewise.
34081         * modules/unictype/property-unassigned-code-value (Depends-on,
34082         configure.ac): Likewise.
34083         * modules/unictype/property-unified-ideograph (Depends-on,
34084         configure.ac): Likewise.
34085         * modules/unictype/property-uppercase (Depends-on, configure.ac):
34086         Likewise.
34087         * modules/unictype/property-variation-selector (Depends-on,
34088         configure.ac): Likewise.
34089         * modules/unictype/property-white-space (Depends-on, configure.ac):
34090         Likewise.
34091         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
34092         Likewise.
34093         * modules/unictype/property-xid-start (Depends-on, configure.ac):
34094         Likewise.
34095         * modules/unictype/property-zero-width (Depends-on, configure.ac):
34096         Likewise.
34097         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
34098         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
34099         Likewise.
34100
34101 2009-12-31  Bruno Haible  <bruno@clisp.org>
34102
34103         Remove unnecessary AC_C_INLINE invocation.
34104         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
34105         since 2009-08-21.
34106
34107 2009-12-31  Jim Meyering  <meyering@redhat.com>
34108
34109         maint.mk: don't require explicit gpg_key_ID in cfg.mk
34110         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
34111         With this change, we can all remove the gpg_key_ID = ... definition
34112         from our respective cfg.mk files.
34113
34114         maint.mk: create announcement template in ~/, not in /tmp
34115         * top/maint.mk (emit_upload_commands): Adjust.
34116         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
34117         Remove temporary file, .ci-msg.
34118
34119 2009-12-31  Eric Blake  <ebb9@byu.net>
34120
34121         link-warning: always build headers with link warnings
34122         * modules/arpa_inet (Makefile.am): Always build replacement
34123         header.
34124         * modules/ctype (Makefile.am): Likewise.
34125         * modules/dirent (Makefile.am): Likewise.
34126         * modules/inttypes (Makefile.am): Likewise.
34127         * modules/langinfo (Makefile.am): Likewise.
34128         * modules/locale (Makefile.am): Likewise.
34129         * modules/spawn (Makefile.am): Likewise.
34130         * modules/sys_file (Makefile.am): Likewise.
34131         * modules/sys_ioctl (Makefile.am): Likewise.
34132         * modules/sys_select (Makefile.am): Likewise.
34133         * modules/sys_socket (Makefile.am): Likewise.
34134         * modules/sys_times (Makefile.am): Likewise.
34135         * modules/sys_utsname (Makefile.am): Likewise.
34136         * modules/sys_wait (Makefile.am): Likewise.
34137         * modules/wchar (Makefile.am): Likewise.
34138         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
34139         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
34140         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
34141         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
34142         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
34143         Likewise.
34144         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
34145         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
34146         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
34147         Likewise.
34148         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
34149         Likewise.
34150         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
34151         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
34152         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
34153         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34154         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
34155         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
34156         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
34157         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
34158         (gl_WCHAR_H_DEFAULTS): Likewise.
34159
34160 2009-12-31  Eric Blake  <ebb9@byu.net>
34161
34162         signal, spawn: use link warnings
34163         * lib/signal.in.h (sigset_t): Make unconditional.
34164         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
34165         (sigpending, sigprocmask, sigaction): Add link warnings.
34166         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
34167         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
34168         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
34169         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
34170         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
34171         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
34172         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
34173         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
34174         (posix_spawn_file_actions_destroy)
34175         (posix_spawn_file_actions_addopen)
34176         (posix_spawn_file_actions_addclose)
34177         (posix_spawn_file_actions_adddup2): Likewise.
34178         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
34179         * tests/test-signal.c (main): Enhance test.
34180
34181         spawn: improve wrapper support
34182         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
34183         (gl_SPAWN_H_DEFAULTS): New defaults.
34184         * modules/spawn (Makefile.am): Substitute them.
34185         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
34186         Only declare if missing or broken.
34187
34188         sys_times, sys_utsname: use include_next
34189         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
34190         header.
34191         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
34192         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
34193         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
34194         * modules/sys_times (Depends-on): Add include_next.
34195         (Makefile.am): Substitute additional values.
34196         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
34197         * lib/sys_times.in.h (includes): Include native header, if
34198         available.
34199         * lib/sys_utsname.in.h (includes): Likewise.
34200         * tests/test-sys_times.c (main): Enhance test.
34201
34202         fdutimensat: revert prior patch
34203         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
34204         utimens.h.
34205         Reported by Bruno Haible.
34206
34207 2009-12-30  Eric Blake  <ebb9@byu.net>
34208
34209         sys_wait: drop link-warning dependency
34210         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
34211         link-warning efforts.
34212         * lib/sys_wait.in.h: Likewise.
34213
34214         fdutimensat: remove bogus dependency
34215         * modules/fdutimensat (Depends-on): Drop inline.
34216
34217         unistd: fix typo
34218         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
34219
34220 2009-12-30  Bruno Haible  <bruno@clisp.org>
34221
34222         Fix compilation error with Solaris cc.
34223         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
34224         * lib/unicase/u16-is-invariant.c: Likewise.
34225         * lib/unicase/u32-is-invariant.c: Likewise.
34226         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
34227
34228 2009-12-30  Bruno Haible  <bruno@clisp.org>
34229
34230         Fix test crash.
34231         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
34232         locales.
34233         Reported by Simon Josefsson <simon@josefsson.org>.
34234
34235 2009-12-30  Bruno Haible  <bruno@clisp.org>
34236
34237         Fix compilation error on most platforms.
34238         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
34239         Reported by Simon Josefsson <simon@josefsson.org>
34240         and Nelson H. F. Beebe <beebe@math.utah.edu>.
34241
34242 2009-12-30  Eric Blake  <ebb9@byu.net>
34243
34244         futimens, utimensat: work around ntfs-3g bug
34245         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
34246         a ctime bug is present, and expand workaround to cover ntfs-3g.
34247         * lib/utimens.c (fdutimens, lutimens): Likewise.
34248         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
34249         (validate_timespec): Adjust return value.
34250         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
34251         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
34252         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
34253
34254 2009-12-29  Eric Blake  <ebb9@byu.net>
34255
34256         link-warning: make usage consistent
34257         * modules/ctype (Depends-on): Add link-warning.
34258         (Makefile.am): Update rules accordingly.
34259         * modules/langinfo (Depends-on, Makefile.am): Likewise.
34260         * modules/locale (Depends-on, Makefile.am): Likewise.
34261         * modules/sys_file (Makefile.am): Likewise.
34262         * modules/getopt-posix (Makefile.am): Delete unused link warning
34263         efforts.
34264         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
34265         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
34266         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
34267         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
34268
34269         stdio: remove unused variables
34270         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
34271         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
34272         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
34273
34274         tests: test more substitute headers
34275         * modules/ctype-tests: New file.
34276         * modules/dirent-tests: Likewise.
34277         * modules/spawn-tests: Likewise.
34278         * modules/sys_file-tests: Likewise.
34279         * modules/sys_ioctl-tests: Likewise.
34280         * modules/sys_wait-tests: Likewise.
34281         * tests/test-ctype.c: Likewise.
34282         * tests/test-dirent.c: Likewise.
34283         * tests/test-spawn.c: Likewise.
34284         * tests/test-sys_file.c: Likewise.
34285         * tests/test-sys_ioctl.c: Likewise.
34286         * tests/test-sys_wait.c: Likewise.
34287         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
34288         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
34289         whether or not flock is in use.
34290
34291         tests: remove License section from module
34292         * modules/arpa_inet-tests: Remove unneeded section.
34293         * modules/byteswap-tests: Likewise.
34294         * modules/ceilf-tests: Likewise.
34295         * modules/ceill-tests: Likewise.
34296         * modules/crypto/des-tests: Likewise.
34297         * modules/crypto/gc-arcfour-tests: Likewise.
34298         * modules/crypto/gc-arctwo-tests: Likewise.
34299         * modules/crypto/gc-des-tests: Likewise.
34300         * modules/crypto/gc-hmac-md5-tests: Likewise.
34301         * modules/crypto/gc-hmac-sha1-tests: Likewise.
34302         * modules/crypto/gc-md2-tests: Likewise.
34303         * modules/crypto/gc-md4-tests: Likewise.
34304         * modules/crypto/gc-md5-tests: Likewise.
34305         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
34306         * modules/crypto/gc-rijndael-tests: Likewise.
34307         * modules/crypto/gc-sha1-tests: Likewise.
34308         * modules/crypto/gc-tests: Likewise.
34309         * modules/crypto/md2-tests: Likewise.
34310         * modules/crypto/md4-tests: Likewise.
34311         * modules/fcntl-h-tests: Likewise.
34312         * modules/floorf-tests: Likewise.
34313         * modules/floorl-tests: Likewise.
34314         * modules/frexp-nolibm-tests: Likewise.
34315         * modules/frexp-tests: Likewise.
34316         * modules/frexpl-nolibm-tests: Likewise.
34317         * modules/frexpl-tests: Likewise.
34318         * modules/getaddrinfo-tests: Likewise.
34319         * modules/inttypes-tests: Likewise.
34320         * modules/isfinite-tests: Likewise.
34321         * modules/isinf-tests: Likewise.
34322         * modules/ldexpl-tests: Likewise.
34323         * modules/locale-tests: Likewise.
34324         * modules/math-tests: Likewise.
34325         * modules/netdb-tests: Likewise.
34326         * modules/netinet_in-tests: Likewise.
34327         * modules/printf-frexp-tests: Likewise.
34328         * modules/printf-frexpl-tests: Likewise.
34329         * modules/priv-set-tests: Likewise.
34330         * modules/random_r-tests: Likewise.
34331         * modules/round-tests: Likewise.
34332         * modules/roundf-tests: Likewise.
34333         * modules/roundl-tests: Likewise.
34334         * modules/search-tests: Likewise.
34335         * modules/select-tests: Likewise.
34336         * modules/signal-tests: Likewise.
34337         * modules/stdbool-tests: Likewise.
34338         * modules/stddef-tests: Likewise.
34339         * modules/stdint-tests: Likewise.
34340         * modules/stdio-tests: Likewise.
34341         * modules/stdlib-tests: Likewise.
34342         * modules/string-tests: Likewise.
34343         * modules/strings-tests: Likewise.
34344         * modules/sys_select-tests: Likewise.
34345         * modules/sys_socket-tests: Likewise.
34346         * modules/sys_stat-tests: Likewise.
34347         * modules/sys_time-tests: Likewise.
34348         * modules/sys_utsname-tests: Likewise.
34349         * modules/sysexits-tests: Likewise.
34350         * modules/time-tests: Likewise.
34351         * modules/trunc-tests: Likewise.
34352         * modules/truncf-tests: Likewise.
34353         * modules/truncl-tests: Likewise.
34354         * modules/tsearch-tests: Likewise.
34355         * modules/unistd-tests: Likewise.
34356         * modules/wchar-tests: Likewise.
34357         * modules/wctype-tests: Likewise.
34358
34359         tests: fix license on several tests
34360         * tests/test-des.c: Update to GPLv3+.
34361         * tests/test-flock.c: Likewise.
34362         * tests/test-fsync.c: Likewise.
34363         * tests/test-futimens.h: Likewise.
34364         * tests/test-gc-arcfour.c: Likewise.
34365         * tests/test-gc-arctwo.c: Likewise.
34366         * tests/test-gc-des.c: Likewise.
34367         * tests/test-gc-hmac-md5.c: Likewise.
34368         * tests/test-gc-hmac-sha1.c: Likewise.
34369         * tests/test-gc-md2.c: Likewise.
34370         * tests/test-gc-md4.c: Likewise.
34371         * tests/test-gc-md5.c: Likewise.
34372         * tests/test-gc-pbkdf2-sha1.c: Likewise.
34373         * tests/test-gc-rijndael.c: Likewise.
34374         * tests/test-gc-sha1.c: Likewise.
34375         * tests/test-gc.c: Likewise.
34376         * tests/test-getcwd.c: Likewise.
34377         * tests/test-link.c: Likewise.
34378         * tests/test-link.h: Likewise.
34379         * tests/test-lutimens.h: Likewise.
34380         * tests/test-md2.c: Likewise.
34381         * tests/test-md4.c: Likewise.
34382         * tests/test-mkdir.h: Likewise.
34383         * tests/test-rename.c: Likewise.
34384         * tests/test-rename.h: Likewise.
34385         * tests/test-safe-alloc.c: Likewise.
34386         * tests/test-utimens-common.h: Likewise.
34387         * tests/test-utimens.h: Likewise.
34388
34389         maint: sync license texts
34390         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
34391         * doc/gpl-3.0.texi: Revert copyright year update.
34392         * doc/lgpl-3.0.texi: Likewise.
34393
34394 2009-12-29  Jim Meyering  <meyering@redhat.com>
34395
34396         update nearly all FSF copyright year lists to include 2009
34397         The files named by the following are exempted:
34398             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
34399               test -f "$dst" && { echo "$dst"; continue; }
34400               test -d "$dst" || continue
34401               echo "$dst"/$(basename "$src")
34402             done > exempt
34403             git ls-files tests/unictype >> exempt
34404         In the remaining files, convert to all-interval notation if
34405         - there is already at least one year interval like 2000-2003
34406         - the file is maintained by me
34407         - the file is in lib/uni*/, where that style already prevails
34408         Otherwise, use update-copyright's default.
34409
34410 2009-12-29  Simon Josefsson  <simon@josefsson.org>
34411         and Eric Blake  <ebb9@byu.net>
34412
34413         tests: don't require debug system() to pass
34414         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
34415         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34416         * tests/test-unlink.h (test_unlink_func): Likewise.
34417         * tests/test-fstatat.c (main): ...into callers.
34418         * tests/test-lstat.c (main): Likewise.
34419         * tests/test-rmdir.c (main): Likewise.
34420         * tests/test-unlink.c (main): Likewise.
34421         * tests/test-unlinkat.c (main): Likewise.
34422         * tests/test-areadlink-with-size.c (main): Don't require a
34423         debug-only system call to pass, aiding cross-testing to mingw.
34424         * tests/test-areadlink.c (main): Likewise.
34425         * tests/test-areadlinkat-with-size.c (main): Likewise.
34426         * tests/test-areadlinkat.c (main): Likewise.
34427         * tests/test-canonicalize-lgpl.c (main): Likewise.
34428         * tests/test-canonicalize.c (main): Likewise.
34429         * tests/test-chown.c (main): Likewise.
34430         * tests/test-fchownat.c (main): Likewise.
34431         * tests/test-lchown.c (main): Likewise.
34432         * tests/test-fdutimensat.c (main): Likewise.
34433         * tests/test-futimens.c (main): Likewise.
34434         * tests/test-link.c (main): Likewise.
34435         * tests/test-linkat.c (main): Likewise.
34436         * tests/test-mkdir.c (main): Likewise.
34437         * tests/test-mkdirat.c (main): Likewise.
34438         * tests/test-mkfifo.c (main): Likewise.
34439         * tests/test-mkfifoat.c (main): Likewise.
34440         * tests/test-mknod.c (main): Likewise.
34441         * tests/test-readlink.c (main): Likewise.
34442         * tests/test-remove.c (main): Likewise.
34443         * tests/test-rename.c (main): Likewise.
34444         * tests/test-renameat.c (main): Likewise.
34445         * tests/test-symlink.c (main): Likewise.
34446         * tests/test-symlinkat.c (main): Likewise.
34447         * tests/test-utimens.c (main): Likewise.
34448         * tests/test-utimensat.c (main): Likewise.
34449
34450 2009-12-29  Simon Josefsson  <simon@josefsson.org>
34451
34452         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
34453         on $(UNUSED_PARAMETER_H) to avoid build failure.
34454
34455 2009-12-28  Jim Meyering  <meyering@redhat.com>
34456
34457         update-copyright: you may specify a max. line length other than 72
34458         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
34459
34460         maint: use consistent FSF copyright line syntax
34461         * lib/posixtm.c: Add missing comma in FSF copyright line.
34462         * lib/posixtm.h: Likewise.
34463         * lib/getugroups.c: Add missing ", Inc.".
34464
34465         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
34466         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
34467         FSF copyright line.  Remove trailing blanks.
34468
34469 2009-12-28  Eric Blake  <ebb9@byu.net>
34470
34471         test-dup2: reduce dependencies
34472         * modules/cloexec (Configure.ac): Set witness.
34473         * modules/dup2-tests (Depends-on): Drop cloexec.
34474         * tests/test-dup2.c (main): Skip portion of test if cloexec module
34475         not present.
34476         Suggested by Bruno Haible.
34477
34478 2009-12-26  Bruno Haible  <bruno@clisp.org>
34479
34480         Remove an unneeded dependency.
34481         * modules/fseterr (Depends-on): Remove dup2.
34482
34483 2009-12-26  Eric Blake  <ebb9@byu.net>
34484
34485         tests: use macros.h in more places
34486         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
34487         (ASSERT_STREAM): Provide default of stderr.
34488         * tests/test-dirent-safer.c: Include macros.h, using alternate
34489         stream for assertions.
34490         * tests/test-dup-safer.c: Likewise.
34491         * tests/test-freopen-safer.c: Likewise.
34492         * tests/test-getopt.c: Likewise.
34493         * tests/test-openat-safer.c: Likewise.
34494         * tests/test-pipe.c: Likewise.
34495         * tests/test-popen-safer.c: Likewise.
34496         * modules/dirent-safer-tests (Files): Include macros.h.
34497         * modules/unistd-safer-tests (Files): Likewise.
34498         * modules/freopen-safer-tests (Files): Likewise.
34499         * modules/getopt-posix-tests (Files): Likewise.
34500         * modules/openat-safer-tests (Files): Likewise.
34501         * modules/pipe-tests (Files): Likewise.
34502
34503 2009-12-26  Bruno Haible  <bruno@clisp.org>
34504
34505         javacomp: Portability fix.
34506         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
34507         that it also works on Solaris.
34508
34509 2009-12-26  Bruno Haible  <bruno@clisp.org>
34510
34511         localename: Fix storage allocation of gl_locale_name_thread's result.
34512         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
34513         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
34514         all platforms that have 'uselocale'.
34515         (gl_locale_name_thread_unsafe): New function, extracted from
34516         gl_locale_name_thread.
34517         (gl_locale_name_thread): Call struniq on all platforms that have
34518         'uselocale'.
34519         * tests/test-localename.c (test_locale_name_thread): Check that the
34520         resulting strings are permanently allocated.
34521         * modules/localename-tests (Depends-on): Add strdup.
34522
34523 2009-12-26  Bruno Haible  <bruno@clisp.org>
34524
34525         * tests/test-localename.c (categories): Fill in the strings.
34526
34527 2009-12-26  Jim Meyering  <meyering@redhat.com>
34528
34529         isdir: complete the removal of m4/isdir.m4
34530         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
34531
34532         isdir: clean up, since at least grep still uses it
34533         * lib/isdir.c: Include "isdir.h".
34534         (S_ISDIR): Remove now-unneeded definition.
34535         * modules/isdir (Files): Add lib/isdir.h.
34536         * lib/isdir.h: New file, with declaration.
34537         * m4/isdir.m4: Remove file -- unneeded.
34538
34539 2009-12-25  Bruno Haible  <bruno@clisp.org>
34540
34541         selinux-h: Make generated .h files standalone.
34542         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
34543         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
34544         * lib/se-selinux.in.h: Likewise.
34545         * modules/selinux-h (Depends-on): Add unused-parameter.
34546         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
34547         selinux/selinux.h and selinux/context.h.
34548         Suggested by Eric Blake.
34549
34550 2009-12-25  Bruno Haible  <bruno@clisp.org>
34551
34552         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
34553         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
34554         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
34555         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
34556         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
34557
34558 2009-12-24  Bruno Haible  <bruno@clisp.org>
34559
34560         openat: Fix warning.
34561         * lib/openat-proc.c: Include <unistd.h>.
34562
34563 2009-12-24  Bruno Haible  <bruno@clisp.org>
34564
34565         New module 'unused-parameter'.
34566         * build-aux/unused-parameter.h: New file, extracted from earlier
34567         gnulib-common.m4.
34568         * modules/unused-parameter: New file.
34569         * lib/unistr.h: Include unused-parameter.h.
34570         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
34571         _GL_UNUSED.
34572         * modules/unistr/base (Depends-on): Add unused-parameter.
34573
34574 2009-12-24  Bruno Haible  <bruno@clisp.org>
34575
34576         Add missing dependencies to 'extensions' module.
34577         * m4/extensions.m4: Add comment.
34578         * modules/accept4 (Depends-on): Add extensions.
34579         * modules/dup3 (Depends-on): Likewise.
34580         * modules/fcntl (Depends-on): Likewise.
34581         * modules/futimens (Depends-on): Likewise.
34582         * modules/mknod (Depends-on): Likewise.
34583         * modules/pipe2 (Depends-on): Likewise.
34584         * modules/stat-time (Depends-on): Likewise.
34585         * modules/strcasestr-simple (Depends-on): Likewise.
34586         * modules/strsignal (Depends-on): Likewise.
34587         * modules/utimensat (Depends-on): Likewise.
34588         * modules/localcharset (Depends-on): Likewise. Needed because of
34589         gl_FCNTL_O_FLAGS.
34590         * modules/wcrtomb (Depends-on): Likewise. Needed because of
34591         AC_TYPE_MBSTATE_T.
34592         * modules/wcsnrtombs (Depends-on): Likewise.
34593         * modules/wcsrtombs (Depends-on): Likewise.
34594
34595 2009-12-24  Bruno Haible  <bruno@clisp.org>
34596
34597         binary-io: Avoid gcc warning due to SET_BINARY.
34598         * lib/binary-io.h (SET_BINARY): Cast the result to void.
34599         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
34600
34601 2009-12-24  Bruno Haible  <bruno@clisp.org>
34602
34603         Avoid future namespace pollution on glibc systems.
34604         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
34605         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
34606         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
34607         glibc systems.
34608
34609 2009-12-24  Bruno Haible  <bruno@clisp.org>
34610
34611         Refactor common macros used in tests.
34612         * tests/macros.h: New file.
34613         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
34614         and/or <stdlib.h>, if appropriate.
34615         (ASSERT, SIZEOF): Remove macros.
34616         * tests/test-areadlink-with-size.c: Likewise.
34617         * tests/test-areadlinkat.c: Likewise.
34618         * tests/test-areadlinkat-with-size.c: Likewise.
34619         * tests/test-argmatch.c: Likewise.
34620         * tests/test-argv-iter.c: Likewise.
34621         * tests/test-array-mergesort.c: Likewise.
34622         * tests/test-array_list.c: Likewise.
34623         * tests/test-array_oset.c: Likewise.
34624         * tests/test-avltree_list.c: Likewise.
34625         * tests/test-avltree_oset.c: Likewise.
34626         * tests/test-avltreehash_list.c: Likewise.
34627         * tests/test-base64.c: Likewise.
34628         * tests/test-binary-io.c: Likewise.
34629         * tests/test-bitrotate.c: Likewise.
34630         * tests/test-btowc.c: Likewise.
34631         * tests/test-byteswap.c: Likewise.
34632         * tests/test-c-ctype.c: Likewise.
34633         * tests/test-c-stack.c: Likewise.
34634         * tests/test-c-strcasecmp.c: Likewise.
34635         * tests/test-c-strcasestr.c: Likewise.
34636         * tests/test-c-strncasecmp.c: Likewise.
34637         * tests/test-c-strstr.c: Likewise.
34638         * tests/test-canonicalize-lgpl.c: Likewise.
34639         * tests/test-canonicalize.c: Likewise.
34640         * tests/test-carray_list.c: Likewise.
34641         * tests/test-ceilf1.c: Likewise.
34642         * tests/test-ceilf2.c: Likewise.
34643         * tests/test-ceill.c: Likewise.
34644         * tests/test-chown.c: Likewise.
34645         * tests/test-cloexec.c: Likewise.
34646         * tests/test-copy-acl.c: Likewise.
34647         * tests/test-copy-file.c: Likewise.
34648         * tests/test-count-one-bits.c: Likewise.
34649         * tests/test-dprintf-posix.c: Likewise.
34650         * tests/test-dup2.c: Likewise.
34651         * tests/test-dup3.c: Likewise.
34652         * tests/test-duplocale.c: Likewise.
34653         * tests/test-fbufmode.c: Likewise.
34654         * tests/test-fchdir.c: Likewise.
34655         * tests/test-fchownat.c: Likewise.
34656         * tests/test-fcntl-safer.c: Likewise.
34657         * tests/test-fcntl.c: Likewise.
34658         * tests/test-fdopendir.c: Likewise.
34659         * tests/test-fdutimensat.c: Likewise.
34660         * tests/test-fflush2.c: Likewise.
34661         * tests/test-file-has-acl.c: Likewise.
34662         * tests/test-filevercmp.c: Likewise.
34663         * tests/test-flock.c: Likewise.
34664         * tests/test-floorf1.c: Likewise.
34665         * tests/test-floorf2.c: Likewise.
34666         * tests/test-floorl.c: Likewise.
34667         * tests/test-fnmatch.c: Likewise.
34668         * tests/test-fopen.h: Likewise.
34669         * tests/test-fpending.c: Likewise.
34670         * tests/test-fprintf-posix.c: Likewise.
34671         * tests/test-fpurge.c: Likewise.
34672         * tests/test-freadable.c: Likewise.
34673         * tests/test-freadahead.c: Likewise.
34674         * tests/test-freading.c: Likewise.
34675         * tests/test-freadptr.c: Likewise.
34676         * tests/test-freadptr2.c: Likewise.
34677         * tests/test-freadseek.c: Likewise.
34678         * tests/test-freopen.c: Likewise.
34679         * tests/test-frexp.c: Likewise.
34680         * tests/test-frexpl.c: Likewise.
34681         * tests/test-fseek.c: Likewise.
34682         * tests/test-fseeko.c: Likewise.
34683         * tests/test-fstatat.c: Likewise.
34684         * tests/test-fstrcmp.c: Likewise.
34685         * tests/test-fsync.c: Likewise.
34686         * tests/test-ftell.c: Likewise.
34687         * tests/test-ftello.c: Likewise.
34688         * tests/test-func.c: Likewise.
34689         * tests/test-futimens.c: Likewise.
34690         * tests/test-fwritable.c: Likewise.
34691         * tests/test-fwriting.c: Likewise.
34692         * tests/test-getcwd.c: Likewise.
34693         * tests/test-getdate.c: Likewise.
34694         * tests/test-getdelim.c: Likewise.
34695         * tests/test-getdtablesize.c: Likewise.
34696         * tests/test-getgroups.c: Likewise.
34697         * tests/test-getline.c: Likewise.
34698         * tests/test-getndelim2.c: Likewise.
34699         * tests/test-glob.c: Likewise.
34700         * tests/test-hash.c: Likewise.
34701         * tests/test-i-ring.c: Likewise.
34702         * tests/test-iconv-utf.c: Likewise.
34703         * tests/test-iconv.c: Likewise.
34704         * tests/test-idpriv-drop.c: Likewise.
34705         * tests/test-idpriv-droptemp.c: Likewise.
34706         * tests/test-inet_ntop.c: Likewise.
34707         * tests/test-inet_pton.c: Likewise.
34708         * tests/test-isblank.c: Likewise.
34709         * tests/test-isfinite.c: Likewise.
34710         * tests/test-isinf.c: Likewise.
34711         * tests/test-isnan.c: Likewise.
34712         * tests/test-isnand.h: Likewise.
34713         * tests/test-isnanf.h: Likewise.
34714         * tests/test-isnanl.h: Likewise.
34715         * tests/test-lchown.c: Likewise.
34716         * tests/test-ldexpl.c: Likewise.
34717         * tests/test-link.c: Likewise.
34718         * tests/test-linkat.c: Likewise.
34719         * tests/test-linked_list.c: Likewise.
34720         * tests/test-linkedhash_list.c: Likewise.
34721         * tests/test-localename.c: Likewise.
34722         * tests/test-lseek.c: Likewise.
34723         * tests/test-lstat.c: Likewise.
34724         * tests/test-mbmemcasecmp.c: Likewise.
34725         * tests/test-mbmemcasecoll.c: Likewise.
34726         * tests/test-mbrtowc.c: Likewise.
34727         * tests/test-mbscasecmp.c: Likewise.
34728         * tests/test-mbscasestr1.c: Likewise.
34729         * tests/test-mbscasestr2.c: Likewise.
34730         * tests/test-mbscasestr3.c: Likewise.
34731         * tests/test-mbscasestr4.c: Likewise.
34732         * tests/test-mbschr.c: Likewise.
34733         * tests/test-mbscspn.c: Likewise.
34734         * tests/test-mbsinit.c: Likewise.
34735         * tests/test-mbsncasecmp.c: Likewise.
34736         * tests/test-mbsnrtowcs.c: Likewise.
34737         * tests/test-mbspbrk.c: Likewise.
34738         * tests/test-mbspcasecmp.c: Likewise.
34739         * tests/test-mbsrchr.c: Likewise.
34740         * tests/test-mbsrtowcs.c: Likewise.
34741         * tests/test-mbsspn.c: Likewise.
34742         * tests/test-mbsstr1.c: Likewise.
34743         * tests/test-mbsstr2.c: Likewise.
34744         * tests/test-mbsstr3.c: Likewise.
34745         * tests/test-memchr.c: Likewise.
34746         * tests/test-memchr2.c: Likewise.
34747         * tests/test-memcmp.c: Likewise.
34748         * tests/test-memmem.c: Likewise.
34749         * tests/test-memrchr.c: Likewise.
34750         * tests/test-mkdir.c: Likewise.
34751         * tests/test-mkdirat.c: Likewise.
34752         * tests/test-mkfifo.c: Likewise.
34753         * tests/test-mkfifoat.c: Likewise.
34754         * tests/test-mknod.c: Likewise.
34755         * tests/test-nanosleep.c: Likewise.
34756         * tests/test-nl_langinfo.c: Likewise.
34757         * tests/test-obstack-printf.c: Likewise.
34758         * tests/test-open.c: Likewise.
34759         * tests/test-openat.c: Likewise.
34760         * tests/test-pipe-filter-gi1.c: Likewise.
34761         * tests/test-pipe-filter-gi2-main.c: Likewise.
34762         * tests/test-pipe-filter-ii1.c: Likewise.
34763         * tests/test-pipe-filter-ii2-main.c: Likewise.
34764         * tests/test-pipe2.c: Likewise.
34765         * tests/test-popen.h: Likewise.
34766         * tests/test-posixtm.c: Likewise.
34767         * tests/test-pread.c: Likewise.
34768         * tests/test-printf-frexp.c: Likewise.
34769         * tests/test-printf-frexpl.c: Likewise.
34770         * tests/test-printf-posix.c: Likewise.
34771         * tests/test-priv-set.c: Likewise.
34772         * tests/test-quotearg.c: Likewise.
34773         * tests/test-random_r.c: Likewise.
34774         * tests/test-rawmemchr.c: Likewise.
34775         * tests/test-rbtree_list.c: Likewise.
34776         * tests/test-rbtree_oset.c: Likewise.
34777         * tests/test-rbtreehash_list.c: Likewise.
34778         * tests/test-readlink.c: Likewise.
34779         * tests/test-remove.c: Likewise.
34780         * tests/test-rename.c: Likewise.
34781         * tests/test-renameat.c: Likewise.
34782         * tests/test-rmdir.c: Likewise.
34783         * tests/test-round1.c: Likewise.
34784         * tests/test-roundf1.c: Likewise.
34785         * tests/test-roundl.c: Likewise.
34786         * tests/test-safe-alloc.c: Likewise.
34787         * tests/test-sameacls.c: Likewise.
34788         * tests/test-set-mode-acl.c: Likewise.
34789         * tests/test-setenv.c: Likewise.
34790         * tests/test-sigaction.c: Likewise.
34791         * tests/test-signbit.c: Likewise.
34792         * tests/test-sleep.c: Likewise.
34793         * tests/test-snprintf-posix.c: Likewise.
34794         * tests/test-snprintf.c: Likewise.
34795         * tests/test-sprintf-posix.c: Likewise.
34796         * tests/test-stat-time.c: Likewise.
34797         * tests/test-stat.c: Likewise.
34798         * tests/test-strcasestr.c: Likewise.
34799         * tests/test-strchrnul.c: Likewise.
34800         * tests/test-strerror.c: Likewise.
34801         * tests/test-striconv.c: Likewise.
34802         * tests/test-striconveh.c: Likewise.
34803         * tests/test-striconveha.c: Likewise.
34804         * tests/test-strsignal.c: Likewise.
34805         * tests/test-strstr.c: Likewise.
34806         * tests/test-strtod.c: Likewise.
34807         * tests/test-strverscmp.c: Likewise.
34808         * tests/test-symlink.c: Likewise.
34809         * tests/test-symlinkat.c: Likewise.
34810         * tests/test-trunc1.c: Likewise.
34811         * tests/test-trunc2.c: Likewise.
34812         * tests/test-truncf1.c: Likewise.
34813         * tests/test-truncf2.c: Likewise.
34814         * tests/test-truncl.c: Likewise.
34815         * tests/test-uname.c: Likewise.
34816         * tests/test-unlink.c: Likewise.
34817         * tests/test-unlinkat.c: Likewise.
34818         * tests/test-unsetenv.c: Likewise.
34819         * tests/test-usleep.c: Likewise.
34820         * tests/test-utimens.c: Likewise.
34821         * tests/test-utimensat.c: Likewise.
34822         * tests/test-vasnprintf-posix.c: Likewise.
34823         * tests/test-vasnprintf-posix2.c: Likewise.
34824         * tests/test-vasnprintf.c: Likewise.
34825         * tests/test-vasprintf-posix.c: Likewise.
34826         * tests/test-vasprintf.c: Likewise.
34827         * tests/test-vdprintf-posix.c: Likewise.
34828         * tests/test-vfprintf-posix.c: Likewise.
34829         * tests/test-vprintf-posix.c: Likewise.
34830         * tests/test-vsnprintf-posix.c: Likewise.
34831         * tests/test-vsnprintf.c: Likewise.
34832         * tests/test-vsprintf-posix.c: Likewise.
34833         * tests/test-wcrtomb.c: Likewise.
34834         * tests/test-wcsnrtombs.c: Likewise.
34835         * tests/test-wcsrtombs.c: Likewise.
34836         * tests/test-wctype.c: Likewise.
34837         * tests/test-wcwidth.c: Likewise.
34838         * tests/test-xfprintf-posix.c: Likewise.
34839         * tests/test-xmemdup0.c: Likewise.
34840         * tests/test-xprintf-posix.c: Likewise.
34841         * tests/test-xvasprintf.c: Likewise.
34842         * tests/unicase/test-locale-language.c: Likewise.
34843         * tests/unicase/test-mapping-part1.h: Likewise.
34844         * tests/unicase/test-predicate-part1.h: Likewise.
34845         * tests/unicase/test-u8-casecmp.c: Likewise.
34846         * tests/unicase/test-u8-casecoll.c: Likewise.
34847         * tests/unicase/test-u8-casefold.c: Likewise.
34848         * tests/unicase/test-u8-is-cased.c: Likewise.
34849         * tests/unicase/test-u8-is-casefolded.c: Likewise.
34850         * tests/unicase/test-u8-is-lowercase.c: Likewise.
34851         * tests/unicase/test-u8-is-titlecase.c: Likewise.
34852         * tests/unicase/test-u8-is-uppercase.c: Likewise.
34853         * tests/unicase/test-u8-tolower.c: Likewise.
34854         * tests/unicase/test-u8-totitle.c: Likewise.
34855         * tests/unicase/test-u8-toupper.c: Likewise.
34856         * tests/unicase/test-u16-casecmp.c: Likewise.
34857         * tests/unicase/test-u16-casecoll.c: Likewise.
34858         * tests/unicase/test-u16-casefold.c: Likewise.
34859         * tests/unicase/test-u16-is-cased.c: Likewise.
34860         * tests/unicase/test-u16-is-casefolded.c: Likewise.
34861         * tests/unicase/test-u16-is-lowercase.c: Likewise.
34862         * tests/unicase/test-u16-is-titlecase.c: Likewise.
34863         * tests/unicase/test-u16-is-uppercase.c: Likewise.
34864         * tests/unicase/test-u16-tolower.c: Likewise.
34865         * tests/unicase/test-u16-totitle.c: Likewise.
34866         * tests/unicase/test-u16-toupper.c: Likewise.
34867         * tests/unicase/test-u32-casecmp.c: Likewise.
34868         * tests/unicase/test-u32-casecoll.c: Likewise.
34869         * tests/unicase/test-u32-casefold.c: Likewise.
34870         * tests/unicase/test-u32-is-cased.c: Likewise.
34871         * tests/unicase/test-u32-is-casefolded.c: Likewise.
34872         * tests/unicase/test-u32-is-lowercase.c: Likewise.
34873         * tests/unicase/test-u32-is-titlecase.c: Likewise.
34874         * tests/unicase/test-u32-is-uppercase.c: Likewise.
34875         * tests/unicase/test-u32-tolower.c: Likewise.
34876         * tests/unicase/test-u32-totitle.c: Likewise.
34877         * tests/unicase/test-u32-toupper.c: Likewise.
34878         * tests/unicase/test-ulc-casecmp.c: Likewise.
34879         * tests/unicase/test-ulc-casecoll.c: Likewise.
34880         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
34881         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
34882         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
34883         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
34884         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
34885         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
34886         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
34887         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
34888         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
34889         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
34890         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
34891         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
34892         * tests/unictype/test-bidi_byname.c: Likewise.
34893         * tests/unictype/test-bidi_name.c: Likewise.
34894         * tests/unictype/test-bidi_of.c: Likewise.
34895         * tests/unictype/test-bidi_test.c: Likewise.
34896         * tests/unictype/test-block_list.c: Likewise.
34897         * tests/unictype/test-block_of.c: Likewise.
34898         * tests/unictype/test-block_test.c: Likewise.
34899         * tests/unictype/test-categ_and.c: Likewise.
34900         * tests/unictype/test-categ_and_not.c: Likewise.
34901         * tests/unictype/test-categ_byname.c: Likewise.
34902         * tests/unictype/test-categ_name.c: Likewise.
34903         * tests/unictype/test-categ_none.c: Likewise.
34904         * tests/unictype/test-categ_of.c: Likewise.
34905         * tests/unictype/test-categ_or.c: Likewise.
34906         * tests/unictype/test-categ_test_withtable.c: Likewise.
34907         * tests/unictype/test-combining.c: Likewise.
34908         * tests/unictype/test-decdigit.c: Likewise.
34909         * tests/unictype/test-digit.c: Likewise.
34910         * tests/unictype/test-mirror.c: Likewise.
34911         * tests/unictype/test-numeric.c: Likewise.
34912         * tests/unictype/test-pr_byname.c: Likewise.
34913         * tests/unictype/test-pr_test.c: Likewise.
34914         * tests/unictype/test-predicate-part1.h: Likewise.
34915         * tests/unictype/test-scripts.c: Likewise.
34916         * tests/unictype/test-sy_c_ident.c: Likewise.
34917         * tests/unictype/test-sy_java_ident.c: Likewise.
34918         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
34919         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
34920         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
34921         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
34922         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
34923         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
34924         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
34925         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
34926         * tests/uninorm/test-canonical-decomposition.c: Likewise.
34927         * tests/uninorm/test-compat-decomposition.c: Likewise.
34928         * tests/uninorm/test-composition.c: Likewise.
34929         * tests/uninorm/test-decomposing-form.c: Likewise.
34930         * tests/uninorm/test-decomposition.c: Likewise.
34931         * tests/uninorm/test-u8-nfc.c: Likewise.
34932         * tests/uninorm/test-u8-nfd.c: Likewise.
34933         * tests/uninorm/test-u8-nfkc.c: Likewise.
34934         * tests/uninorm/test-u8-nfkd.c: Likewise.
34935         * tests/uninorm/test-u8-normcmp.c: Likewise.
34936         * tests/uninorm/test-u8-normcoll.c: Likewise.
34937         * tests/uninorm/test-u16-nfc.c: Likewise.
34938         * tests/uninorm/test-u16-nfd.c: Likewise.
34939         * tests/uninorm/test-u16-nfkc.c: Likewise.
34940         * tests/uninorm/test-u16-nfkd.c: Likewise.
34941         * tests/uninorm/test-u16-normcmp.c: Likewise.
34942         * tests/uninorm/test-u16-normcoll.c: Likewise.
34943         * tests/uninorm/test-u32-nfc.c: Likewise.
34944         * tests/uninorm/test-u32-nfd.c: Likewise.
34945         * tests/uninorm/test-u32-nfkc.c: Likewise.
34946         * tests/uninorm/test-u32-nfkd.c: Likewise.
34947         * tests/uninorm/test-u32-normalize-big.c: Likewise.
34948         * tests/uninorm/test-u32-normcmp.c: Likewise.
34949         * tests/uninorm/test-u32-normcoll.c: Likewise.
34950         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
34951         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
34952         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
34953         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
34954         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
34955         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
34956         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
34957         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
34958         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
34959         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
34960         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
34961         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
34962         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
34963         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
34964         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
34965         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
34966         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
34967         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
34968         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
34969         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
34970         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
34971         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
34972         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
34973         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
34974         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
34975         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
34976         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
34977         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
34978         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
34979         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
34980         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
34981         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
34982         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
34983         * tests/uniwidth/test-u8-strwidth.c: Likewise.
34984         * tests/uniwidth/test-u8-width.c: Likewise.
34985         * tests/uniwidth/test-u16-strwidth.c: Likewise.
34986         * tests/uniwidth/test-u16-width.c: Likewise.
34987         * tests/uniwidth/test-u32-strwidth.c: Likewise.
34988         * tests/uniwidth/test-u32-width.c: Likewise.
34989         * tests/uniwidth/test-uc_width.c: Likewise.
34990         * tests/uniwidth/test-uc_width2.c: Likewise.
34991         * modules/acl-tests (Files): Add tests/macros.h.
34992         * modules/areadlink-tests (Files): Likewise.
34993         * modules/areadlink-with-size-tests (Files): Likewise.
34994         * modules/areadlinkat-tests (Files): Likewise.
34995         * modules/areadlinkat-with-size-tests (Files): Likewise.
34996         * modules/argmatch-tests (Files): Likewise.
34997         * modules/argv-iter-tests (Files): Likewise.
34998         * modules/array-list-tests (Files): Likewise.
34999         * modules/array-mergesort-tests (Files): Likewise.
35000         * modules/array-oset-tests (Files): Likewise.
35001         * modules/avltree-list-tests (Files): Likewise.
35002         * modules/avltree-oset-tests (Files): Likewise.
35003         * modules/avltreehash-list-tests (Files): Likewise.
35004         * modules/base64-tests (Files): Likewise.
35005         * modules/binary-io-tests (Files): Likewise.
35006         * modules/bitrotate-tests (Files): Likewise.
35007         * modules/btowc-tests (Files): Likewise.
35008         * modules/byteswap-tests (Files): Likewise.
35009         * modules/c-ctype-tests (Files): Likewise.
35010         * modules/c-stack-tests (Files): Likewise.
35011         * modules/c-strcase-tests (Files): Likewise.
35012         * modules/c-strcasestr-tests (Files): Likewise.
35013         * modules/c-strstr-tests (Files): Likewise.
35014         * modules/canonicalize-lgpl-tests (Files): Likewise.
35015         * modules/canonicalize-tests (Files): Likewise.
35016         * modules/carray-list-tests (Files): Likewise.
35017         * modules/ceilf-tests (Files): Likewise.
35018         * modules/ceill-tests (Files): Likewise.
35019         * modules/chown-tests (Files): Likewise.
35020         * modules/cloexec-tests (Files): Likewise.
35021         * modules/copy-file-tests (Files): Likewise.
35022         * modules/count-one-bits-tests (Files): Likewise.
35023         * modules/dprintf-posix-tests (Files): Likewise.
35024         * modules/dup2-tests (Files): Likewise.
35025         * modules/dup3-tests (Files): Likewise.
35026         * modules/duplocale-tests (Files): Likewise.
35027         * modules/fbufmode-tests (Files): Likewise.
35028         * modules/fchdir-tests (Files): Likewise.
35029         * modules/fcntl-safer-tests (Files): Likewise.
35030         * modules/fcntl-tests (Files): Likewise.
35031         * modules/fdopendir-tests (Files): Likewise.
35032         * modules/fdutimensat-tests (Files): Likewise.
35033         * modules/fflush-tests (Files): Likewise.
35034         * modules/filevercmp-tests (Files): Likewise.
35035         * modules/flock-tests (Files): Likewise.
35036         * modules/floorf-tests (Files): Likewise.
35037         * modules/floorl-tests (Files): Likewise.
35038         * modules/fnmatch-tests (Files): Likewise.
35039         * modules/fopen-safer-tests (Files): Likewise.
35040         * modules/fopen-tests (Files): Likewise.
35041         * modules/fpending-tests (Files): Likewise.
35042         * modules/fprintf-posix-tests (Files): Likewise.
35043         * modules/fpurge-tests (Files): Likewise.
35044         * modules/freadable-tests (Files): Likewise.
35045         * modules/freadahead-tests (Files): Likewise.
35046         * modules/freading-tests (Files): Likewise.
35047         * modules/freadptr-tests (Files): Likewise.
35048         * modules/freadseek-tests (Files): Likewise.
35049         * modules/freopen-tests (Files): Likewise.
35050         * modules/frexp-nolibm-tests (Files): Likewise.
35051         * modules/frexp-tests (Files): Likewise.
35052         * modules/frexpl-nolibm-tests (Files): Likewise.
35053         * modules/frexpl-tests (Files): Likewise.
35054         * modules/fseek-tests (Files): Likewise.
35055         * modules/fseeko-tests (Files): Likewise.
35056         * modules/fstrcmp-tests (Files): Likewise.
35057         * modules/fsync-tests (Files): Likewise.
35058         * modules/ftell-tests (Files): Likewise.
35059         * modules/ftello-tests (Files): Likewise.
35060         * modules/func-tests (Files): Likewise.
35061         * modules/futimens-tests (Files): Likewise.
35062         * modules/fwritable-tests (Files): Likewise.
35063         * modules/fwriting-tests (Files): Likewise.
35064         * modules/getcwd-tests (Files): Likewise.
35065         * modules/getdate-tests (Files): Likewise.
35066         * modules/getdelim-tests (Files): Likewise.
35067         * modules/getdtablesize-tests (Files): Likewise.
35068         * modules/getgroups-tests (Files): Likewise.
35069         * modules/getline-tests (Files): Likewise.
35070         * modules/getndelim2-tests (Files): Likewise.
35071         * modules/glob-tests (Files): Likewise.
35072         * modules/hash-tests (Files): Likewise.
35073         * modules/i-ring-tests (Files): Likewise.
35074         * modules/iconv-tests (Files): Likewise.
35075         * modules/iconv_open-utf-tests (Files): Likewise.
35076         * modules/idpriv-drop-tests (Files): Likewise.
35077         * modules/idpriv-droptemp-tests (Files): Likewise.
35078         * modules/inet_ntop-tests (Files): Likewise.
35079         * modules/inet_pton-tests (Files): Likewise.
35080         * modules/isblank-tests (Files): Likewise.
35081         * modules/isfinite-tests (Files): Likewise.
35082         * modules/isinf-tests (Files): Likewise.
35083         * modules/isnan-tests (Files): Likewise.
35084         * modules/isnand-nolibm-tests (Files): Likewise.
35085         * modules/isnand-tests (Files): Likewise.
35086         * modules/isnanf-nolibm-tests (Files): Likewise.
35087         * modules/isnanf-tests (Files): Likewise.
35088         * modules/isnanl-nolibm-tests (Files): Likewise.
35089         * modules/isnanl-tests (Files): Likewise.
35090         * modules/lchown-tests (Files): Likewise.
35091         * modules/ldexpl-tests (Files): Likewise.
35092         * modules/link-tests (Files): Likewise.
35093         * modules/linkat-tests (Files): Likewise.
35094         * modules/linked-list-tests (Files): Likewise.
35095         * modules/linkedhash-list-tests (Files): Likewise.
35096         * modules/localename-tests (Files): Likewise.
35097         * modules/lseek-tests (Files): Likewise.
35098         * modules/lstat-tests (Files): Likewise.
35099         * modules/mbmemcasecmp-tests (Files): Likewise.
35100         * modules/mbmemcasecoll-tests (Files): Likewise.
35101         * modules/mbrtowc-tests (Files): Likewise.
35102         * modules/mbscasecmp-tests (Files): Likewise.
35103         * modules/mbscasestr-tests (Files): Likewise.
35104         * modules/mbschr-tests (Files): Likewise.
35105         * modules/mbscspn-tests (Files): Likewise.
35106         * modules/mbsinit-tests (Files): Likewise.
35107         * modules/mbsncasecmp-tests (Files): Likewise.
35108         * modules/mbsnrtowcs-tests (Files): Likewise.
35109         * modules/mbspbrk-tests (Files): Likewise.
35110         * modules/mbspcasecmp-tests (Files): Likewise.
35111         * modules/mbsrchr-tests (Files): Likewise.
35112         * modules/mbsrtowcs-tests (Files): Likewise.
35113         * modules/mbsspn-tests (Files): Likewise.
35114         * modules/mbsstr-tests (Files): Likewise.
35115         * modules/memchr-tests (Files): Likewise.
35116         * modules/memchr2-tests (Files): Likewise.
35117         * modules/memcmp-tests (Files): Likewise.
35118         * modules/memmem-tests (Files): Likewise.
35119         * modules/memrchr-tests (Files): Likewise.
35120         * modules/mkdir-tests (Files): Likewise.
35121         * modules/mkfifo-tests (Files): Likewise.
35122         * modules/mkfifoat-tests (Files): Likewise.
35123         * modules/mknod-tests (Files): Likewise.
35124         * modules/nanosleep-tests (Files): Likewise.
35125         * modules/nl_langinfo-tests (Files): Likewise.
35126         * modules/obstack-printf-tests (Files): Likewise.
35127         * modules/open-tests (Files): Likewise.
35128         * modules/openat-tests (Files): Likewise.
35129         * modules/pipe-filter-gi-tests (Files): Likewise.
35130         * modules/pipe-filter-ii-tests (Files): Likewise.
35131         * modules/pipe2-tests (Files): Likewise.
35132         * modules/popen-safer-tests (Files): Likewise.
35133         * modules/popen-tests (Files): Likewise.
35134         * modules/posixtm-tests (Files): Likewise.
35135         * modules/pread-tests (Files): Likewise.
35136         * modules/printf-frexp-tests (Files): Likewise.
35137         * modules/printf-frexpl-tests (Files): Likewise.
35138         * modules/printf-posix-tests (Files): Likewise.
35139         * modules/priv-set-tests (Files): Likewise.
35140         * modules/quotearg-tests (Files): Likewise.
35141         * modules/random_r-tests (Files): Likewise.
35142         * modules/rawmemchr-tests (Files): Likewise.
35143         * modules/rbtree-list-tests (Files): Likewise.
35144         * modules/rbtree-oset-tests (Files): Likewise.
35145         * modules/rbtreehash-list-tests (Files): Likewise.
35146         * modules/readlink-tests (Files): Likewise.
35147         * modules/remove-tests (Files): Likewise.
35148         * modules/rename-tests (Files): Likewise.
35149         * modules/renameat-tests (Files): Likewise.
35150         * modules/rmdir-tests (Files): Likewise.
35151         * modules/round-tests (Files): Likewise.
35152         * modules/roundf-tests (Files): Likewise.
35153         * modules/roundl-tests (Files): Likewise.
35154         * modules/safe-alloc-tests (Files): Likewise.
35155         * modules/setenv-tests (Files): Likewise.
35156         * modules/sigaction-tests (Files): Likewise.
35157         * modules/signbit-tests (Files): Likewise.
35158         * modules/sleep-tests (Files): Likewise.
35159         * modules/snprintf-posix-tests (Files): Likewise.
35160         * modules/snprintf-tests (Files): Likewise.
35161         * modules/sprintf-posix-tests (Files): Likewise.
35162         * modules/stat-tests (Files): Likewise.
35163         * modules/stat-time-tests (Files): Likewise.
35164         * modules/strcasestr-tests (Files): Likewise.
35165         * modules/strchrnul-tests (Files): Likewise.
35166         * modules/strerror-tests (Files): Likewise.
35167         * modules/striconv-tests (Files): Likewise.
35168         * modules/striconveh-tests (Files): Likewise.
35169         * modules/striconveha-tests (Files): Likewise.
35170         * modules/strsignal-tests (Files): Likewise.
35171         * modules/strstr-tests (Files): Likewise.
35172         * modules/strtod-tests (Files): Likewise.
35173         * modules/strverscmp-tests (Files): Likewise.
35174         * modules/symlink-tests (Files): Likewise.
35175         * modules/symlinkat-tests (Files): Likewise.
35176         * modules/trunc-tests (Files): Likewise.
35177         * modules/truncf-tests (Files): Likewise.
35178         * modules/truncl-tests (Files): Likewise.
35179         * modules/uname-tests (Files): Likewise.
35180         * modules/unicase/cased-tests (Files): Likewise.
35181         * modules/unicase/ignorable-tests (Files): Likewise.
35182         * modules/unicase/locale-language-tests (Files): Likewise.
35183         * modules/unicase/tolower-tests (Files): Likewise.
35184         * modules/unicase/totitle-tests (Files): Likewise.
35185         * modules/unicase/toupper-tests (Files): Likewise.
35186         * modules/unicase/u8-casecmp-tests (Files): Likewise.
35187         * modules/unicase/u8-casecoll-tests (Files): Likewise.
35188         * modules/unicase/u8-casefold-tests (Files): Likewise.
35189         * modules/unicase/u8-is-cased-tests (Files): Likewise.
35190         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
35191         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
35192         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
35193         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
35194         * modules/unicase/u8-tolower-tests (Files): Likewise.
35195         * modules/unicase/u8-totitle-tests (Files): Likewise.
35196         * modules/unicase/u8-toupper-tests (Files): Likewise.
35197         * modules/unicase/u16-casecmp-tests (Files): Likewise.
35198         * modules/unicase/u16-casecoll-tests (Files): Likewise.
35199         * modules/unicase/u16-casefold-tests (Files): Likewise.
35200         * modules/unicase/u16-is-cased-tests (Files): Likewise.
35201         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
35202         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
35203         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
35204         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
35205         * modules/unicase/u16-tolower-tests (Files): Likewise.
35206         * modules/unicase/u16-totitle-tests (Files): Likewise.
35207         * modules/unicase/u16-toupper-tests (Files): Likewise.
35208         * modules/unicase/u32-casecmp-tests (Files): Likewise.
35209         * modules/unicase/u32-casecoll-tests (Files): Likewise.
35210         * modules/unicase/u32-casefold-tests (Files): Likewise.
35211         * modules/unicase/u32-is-cased-tests (Files): Likewise.
35212         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
35213         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
35214         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
35215         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
35216         * modules/unicase/u32-tolower-tests (Files): Likewise.
35217         * modules/unicase/u32-totitle-tests (Files): Likewise.
35218         * modules/unicase/u32-toupper-tests (Files): Likewise.
35219         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
35220         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
35221         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
35222         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
35223         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
35224         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
35225         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
35226         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
35227         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
35228         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
35229         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
35230         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
35231         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
35232         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
35233         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
35234         * modules/unictype/bidicategory-name-tests (Files): Likewise.
35235         * modules/unictype/bidicategory-of-tests (Files): Likewise.
35236         * modules/unictype/bidicategory-test-tests (Files): Likewise.
35237         * modules/unictype/block-list-tests (Files): Likewise.
35238         * modules/unictype/block-of-tests (Files): Likewise.
35239         * modules/unictype/block-test-tests (Files): Likewise.
35240         * modules/unictype/category-C-tests (Files): Likewise.
35241         * modules/unictype/category-Cc-tests (Files): Likewise.
35242         * modules/unictype/category-Cf-tests (Files): Likewise.
35243         * modules/unictype/category-Cn-tests (Files): Likewise.
35244         * modules/unictype/category-Co-tests (Files): Likewise.
35245         * modules/unictype/category-Cs-tests (Files): Likewise.
35246         * modules/unictype/category-L-tests (Files): Likewise.
35247         * modules/unictype/category-Ll-tests (Files): Likewise.
35248         * modules/unictype/category-Lm-tests (Files): Likewise.
35249         * modules/unictype/category-Lo-tests (Files): Likewise.
35250         * modules/unictype/category-Lt-tests (Files): Likewise.
35251         * modules/unictype/category-Lu-tests (Files): Likewise.
35252         * modules/unictype/category-M-tests (Files): Likewise.
35253         * modules/unictype/category-Mc-tests (Files): Likewise.
35254         * modules/unictype/category-Me-tests (Files): Likewise.
35255         * modules/unictype/category-Mn-tests (Files): Likewise.
35256         * modules/unictype/category-N-tests (Files): Likewise.
35257         * modules/unictype/category-Nd-tests (Files): Likewise.
35258         * modules/unictype/category-Nl-tests (Files): Likewise.
35259         * modules/unictype/category-No-tests (Files): Likewise.
35260         * modules/unictype/category-P-tests (Files): Likewise.
35261         * modules/unictype/category-Pc-tests (Files): Likewise.
35262         * modules/unictype/category-Pd-tests (Files): Likewise.
35263         * modules/unictype/category-Pe-tests (Files): Likewise.
35264         * modules/unictype/category-Pf-tests (Files): Likewise.
35265         * modules/unictype/category-Pi-tests (Files): Likewise.
35266         * modules/unictype/category-Po-tests (Files): Likewise.
35267         * modules/unictype/category-Ps-tests (Files): Likewise.
35268         * modules/unictype/category-S-tests (Files): Likewise.
35269         * modules/unictype/category-Sc-tests (Files): Likewise.
35270         * modules/unictype/category-Sk-tests (Files): Likewise.
35271         * modules/unictype/category-Sm-tests (Files): Likewise.
35272         * modules/unictype/category-So-tests (Files): Likewise.
35273         * modules/unictype/category-Z-tests (Files): Likewise.
35274         * modules/unictype/category-Zl-tests (Files): Likewise.
35275         * modules/unictype/category-Zp-tests (Files): Likewise.
35276         * modules/unictype/category-Zs-tests (Files): Likewise.
35277         * modules/unictype/category-and-not-tests (Files): Likewise.
35278         * modules/unictype/category-and-tests (Files): Likewise.
35279         * modules/unictype/category-byname-tests (Files): Likewise.
35280         * modules/unictype/category-name-tests (Files): Likewise.
35281         * modules/unictype/category-none-tests (Files): Likewise.
35282         * modules/unictype/category-of-tests (Files): Likewise.
35283         * modules/unictype/category-or-tests (Files): Likewise.
35284         * modules/unictype/category-test-withtable-tests (Files): Likewise.
35285         * modules/unictype/combining-class-tests (Files): Likewise.
35286         * modules/unictype/ctype-alnum-tests (Files): Likewise.
35287         * modules/unictype/ctype-alpha-tests (Files): Likewise.
35288         * modules/unictype/ctype-blank-tests (Files): Likewise.
35289         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
35290         * modules/unictype/ctype-digit-tests (Files): Likewise.
35291         * modules/unictype/ctype-graph-tests (Files): Likewise.
35292         * modules/unictype/ctype-lower-tests (Files): Likewise.
35293         * modules/unictype/ctype-print-tests (Files): Likewise.
35294         * modules/unictype/ctype-punct-tests (Files): Likewise.
35295         * modules/unictype/ctype-space-tests (Files): Likewise.
35296         * modules/unictype/ctype-upper-tests (Files): Likewise.
35297         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
35298         * modules/unictype/decimal-digit-tests (Files): Likewise.
35299         * modules/unictype/digit-tests (Files): Likewise.
35300         * modules/unictype/mirror-tests (Files): Likewise.
35301         * modules/unictype/numeric-tests (Files): Likewise.
35302         * modules/unictype/property-alphabetic-tests (Files): Likewise.
35303         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
35304         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
35305         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
35306         Likewise.
35307         * modules/unictype/property-bidi-block-separator-tests (Files):
35308         Likewise.
35309         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
35310         Likewise.
35311         * modules/unictype/property-bidi-common-separator-tests (Files):
35312         Likewise.
35313         * modules/unictype/property-bidi-control-tests (Files): Likewise.
35314         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
35315         Likewise.
35316         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
35317         Likewise.
35318         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
35319         Likewise.
35320         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
35321         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
35322         Likewise.
35323         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
35324         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
35325         Likewise.
35326         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
35327         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
35328         * modules/unictype/property-bidi-segment-separator-tests (Files):
35329         Likewise.
35330         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
35331         * modules/unictype/property-byname-tests (Files): Likewise.
35332         * modules/unictype/property-combining-tests (Files): Likewise.
35333         * modules/unictype/property-composite-tests (Files): Likewise.
35334         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
35335         * modules/unictype/property-dash-tests (Files): Likewise.
35336         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
35337         * modules/unictype/property-default-ignorable-code-point-tests (Files):
35338         Likewise.
35339         * modules/unictype/property-deprecated-tests (Files): Likewise.
35340         * modules/unictype/property-diacritic-tests (Files): Likewise.
35341         * modules/unictype/property-extender-tests (Files): Likewise.
35342         * modules/unictype/property-format-control-tests (Files): Likewise.
35343         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
35344         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
35345         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
35346         * modules/unictype/property-hex-digit-tests (Files): Likewise.
35347         * modules/unictype/property-hyphen-tests (Files): Likewise.
35348         * modules/unictype/property-id-continue-tests (Files): Likewise.
35349         * modules/unictype/property-id-start-tests (Files): Likewise.
35350         * modules/unictype/property-ideographic-tests (Files): Likewise.
35351         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
35352         * modules/unictype/property-ids-trinary-operator-tests (Files):
35353         Likewise.
35354         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
35355         * modules/unictype/property-iso-control-tests (Files): Likewise.
35356         * modules/unictype/property-join-control-tests (Files): Likewise.
35357         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
35358         * modules/unictype/property-line-separator-tests (Files): Likewise.
35359         * modules/unictype/property-logical-order-exception-tests (Files):
35360         Likewise.
35361         * modules/unictype/property-lowercase-tests (Files): Likewise.
35362         * modules/unictype/property-math-tests (Files): Likewise.
35363         * modules/unictype/property-non-break-tests (Files): Likewise.
35364         * modules/unictype/property-not-a-character-tests (Files): Likewise.
35365         * modules/unictype/property-numeric-tests (Files): Likewise.
35366         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
35367         * modules/unictype/property-other-default-ignorable-code-point-tests
35368         (Files): Likewise.
35369         * modules/unictype/property-other-grapheme-extend-tests (Files):
35370         Likewise.
35371         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
35372         * modules/unictype/property-other-id-start-tests (Files): Likewise.
35373         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
35374         * modules/unictype/property-other-math-tests (Files): Likewise.
35375         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
35376         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
35377         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
35378         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
35379         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
35380         * modules/unictype/property-private-use-tests (Files): Likewise.
35381         * modules/unictype/property-punctuation-tests (Files): Likewise.
35382         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
35383         * modules/unictype/property-radical-tests (Files): Likewise.
35384         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
35385         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
35386         * modules/unictype/property-space-tests (Files): Likewise.
35387         * modules/unictype/property-terminal-punctuation-tests (Files):
35388         Likewise.
35389         * modules/unictype/property-test-tests (Files): Likewise.
35390         * modules/unictype/property-titlecase-tests (Files): Likewise.
35391         * modules/unictype/property-unassigned-code-value-tests (Files):
35392         Likewise.
35393         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
35394         * modules/unictype/property-uppercase-tests (Files): Likewise.
35395         * modules/unictype/property-variation-selector-tests (Files): Likewise.
35396         * modules/unictype/property-white-space-tests (Files): Likewise.
35397         * modules/unictype/property-xid-continue-tests (Files): Likewise.
35398         * modules/unictype/property-xid-start-tests (Files): Likewise.
35399         * modules/unictype/property-zero-width-tests (Files): Likewise.
35400         * modules/unictype/scripts-tests (Files): Likewise.
35401         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
35402         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
35403         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
35404         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
35405         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
35406         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
35407         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
35408         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
35409         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
35410         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
35411         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
35412         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
35413         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
35414         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
35415         * modules/uninorm/composition-tests (Files): Likewise.
35416         * modules/uninorm/decomposing-form-tests (Files): Likewise.
35417         * modules/uninorm/decomposition-tests (Files): Likewise.
35418         * modules/uninorm/filter-tests (Files): Likewise.
35419         * modules/uninorm/nfc-tests (Files): Likewise.
35420         * modules/uninorm/nfd-tests (Files): Likewise.
35421         * modules/uninorm/nfkc-tests (Files): Likewise.
35422         * modules/uninorm/nfkd-tests (Files): Likewise.
35423         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
35424         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
35425         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
35426         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
35427         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
35428         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
35429         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
35430         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
35431         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
35432         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
35433         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
35434         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
35435         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
35436         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
35437         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
35438         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
35439         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
35440         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
35441         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
35442         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
35443         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
35444         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
35445         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
35446         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
35447         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
35448         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
35449         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
35450         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
35451         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
35452         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
35453         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
35454         * modules/uniwidth/u8-width-tests (Files): Likewise.
35455         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
35456         * modules/uniwidth/u16-width-tests (Files): Likewise.
35457         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
35458         * modules/uniwidth/u32-width-tests (Files): Likewise.
35459         * modules/uniwidth/width-tests (Files): Likewise.
35460         * modules/unlink-tests (Files): Likewise.
35461         * modules/unsetenv-tests (Files): Likewise.
35462         * modules/usleep-tests (Files): Likewise.
35463         * modules/utimens-tests (Files): Likewise.
35464         * modules/utimensat-tests (Files): Likewise.
35465         * modules/vasnprintf-posix-tests (Files): Likewise.
35466         * modules/vasnprintf-tests (Files): Likewise.
35467         * modules/vasprintf-posix-tests (Files): Likewise.
35468         * modules/vasprintf-tests (Files): Likewise.
35469         * modules/vdprintf-posix-tests (Files): Likewise.
35470         * modules/vfprintf-posix-tests (Files): Likewise.
35471         * modules/vprintf-posix-tests (Files): Likewise.
35472         * modules/vsnprintf-posix-tests (Files): Likewise.
35473         * modules/vsnprintf-tests (Files): Likewise.
35474         * modules/vsprintf-posix-tests (Files): Likewise.
35475         * modules/wcrtomb-tests (Files): Likewise.
35476         * modules/wcsnrtombs-tests (Files): Likewise.
35477         * modules/wcsrtombs-tests (Files): Likewise.
35478         * modules/wctype-tests (Files): Likewise.
35479         * modules/wcwidth-tests (Files): Likewise.
35480         * modules/xmemdup0-tests (Files): Likewise.
35481         * modules/xprintf-posix-tests (Files): Likewise.
35482         * modules/xvasprintf-tests (Files): Likewise.
35483
35484 2009-12-24  Eric Blake  <ebb9@byu.net>
35485
35486         test-nanosleep: fix typo
35487         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
35488         patch.
35489         Reported by Bruno Haible.
35490
35491 2009-12-24  Bruno Haible  <bruno@clisp.org>
35492
35493         Reduce namespace pollution on glibc systems.
35494         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
35495         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
35496         systems.
35497         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
35498         <getopt.h> on glibc systems.
35499         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
35500         systems.
35501         * lib/fcntl.c: Include <unistd.h> here instead.
35502
35503 2009-12-24  Bruno Haible  <bruno@clisp.org>
35504
35505         * lib/stdlib.in.h (includes): Fix typo in today's commit.
35506
35507 2009-12-24  Eric Blake  <ebb9@byu.net>
35508
35509         tests: add signature checks
35510         * tests/signature.h (SIGNATURE_CHECK): New file.
35511         * modules/atexit-tests (Files): Use it.
35512         * modules/btowc-tests (Files): Likewise.
35513         * modules/canonicalize-lgpl-tests (Files): Likewise.
35514         * modules/ceilf-tests (Files): Likewise.
35515         * modules/ceill-tests (Files): Likewise.
35516         * modules/chown-tests (Files): Likewise.
35517         * modules/dprintf-posix-tests (Files): Likewise.
35518         * modules/dup2-tests (Files): Likewise.
35519         * modules/dup3-tests (Files): Likewise.
35520         * modules/duplocale-tests (Files): Likewise.
35521         * modules/fchdir-tests (Files): Likewise.
35522         * modules/fcntl-tests (Files): Likewise.
35523         * modules/fdopendir-tests (Files): Likewise.
35524         * modules/fflush-tests (Files): Likewise.
35525         * modules/flock-tests (Files): Likewise.
35526         * modules/floorf-tests (Files): Likewise.
35527         * modules/floorl-tests (Files): Likewise.
35528         * modules/fnmatch-tests (Files): Likewise.
35529         * modules/fopen-tests (Files): Likewise.
35530         * modules/fprintf-posix-tests (Files): Likewise.
35531         * modules/freopen-tests (Files): Likewise.
35532         * modules/frexp-nolibm-tests (Files): Likewise.
35533         * modules/frexp-tests (Files): Likewise.
35534         * modules/frexpl-nolibm-tests (Files): Likewise.
35535         * modules/frexpl-tests (Files): Likewise.
35536         * modules/fseek-tests (Files): Likewise.
35537         * modules/fseeko-tests (Files): Likewise.
35538         * modules/fsync-tests (Files): Likewise.
35539         * modules/ftell-tests (Files): Likewise.
35540         * modules/ftello-tests (Files): Likewise.
35541         * modules/futimens-tests (Files): Likewise.
35542         * modules/getaddrinfo-tests (Files): Likewise.
35543         * modules/getcwd-tests (Files): Likewise.
35544         * modules/getdelim-tests (Files): Likewise.
35545         * modules/getdtablesize-tests (Files): Likewise.
35546         * modules/getgroups-tests (Files): Likewise.
35547         * modules/gethostname-tests (Files): Likewise.
35548         * modules/getline-tests (Files): Likewise.
35549         * modules/getopt-posix-tests (Files): Likewise.
35550         * modules/gettimeofday-tests (Files): Likewise.
35551         * modules/glob-tests (Files): Likewise.
35552         * modules/iconv-tests (Files): Likewise.
35553         * modules/inet_ntop-tests (Files): Likewise.
35554         * modules/inet_pton-tests (Files): Likewise.
35555         * modules/isblank-tests (Files): Likewise.
35556         * modules/lchown-tests (Files): Likewise.
35557         * modules/ldexpl-tests (Files): Likewise.
35558         * modules/link-tests (Files): Likewise.
35559         * modules/linkat-tests (Files): Likewise.
35560         * modules/lseek-tests (Files): Likewise.
35561         * modules/lstat-tests (Files): Likewise.
35562         * modules/mbrtowc-tests (Files): Likewise.
35563         * modules/mbsinit-tests (Files): Likewise.
35564         * modules/mbsnrtowcs-tests (Files): Likewise.
35565         * modules/mbsrtowcs-tests (Files): Likewise.
35566         * modules/memchr-tests (Files): Likewise.
35567         * modules/memcmp-tests (Files): Likewise.
35568         * modules/memmem-tests (Files): Likewise.
35569         * modules/memrchr-tests (Files): Likewise.
35570         * modules/mkdir-tests (Files): Likewise.
35571         * modules/mkfifo-tests (Files): Likewise.
35572         * modules/mkfifoat-tests (Files): Likewise.
35573         * modules/mknod-tests (Files): Likewise.
35574         * modules/nanosleep-tests (Files): Likewise.
35575         * modules/nl_langinfo-tests (Files): Likewise.
35576         * modules/obstack-printf-tests (Files): Likewise.
35577         * modules/open-tests (Files): Likewise.
35578         * modules/openat-tests (Files): Likewise.
35579         * modules/perror-tests (Files): Likewise.
35580         * modules/pipe2-tests (Files): Likewise.
35581         * modules/poll-tests (Files): Likewise.
35582         * modules/popen-tests (Files): Likewise.
35583         * modules/posix_spawn-tests (Files): Likewise.
35584         * modules/posix_spawnp-tests (Files): Likewise.
35585         * modules/pread-tests (Files): Likewise.
35586         * modules/printf-posix-tests (Files): Likewise.
35587         * modules/pty-tests (Files): Likewise.
35588         * modules/random_r-tests (Files): Likewise.
35589         * modules/rawmemchr-tests (Files): Likewise.
35590         * modules/readlink-tests (Files): Likewise.
35591         * modules/remove-tests (Files): Likewise.
35592         * modules/rename-tests (Files): Likewise.
35593         * modules/renameat-tests (Files): Likewise.
35594         * modules/rmdir-tests (Files): Likewise.
35595         * modules/round-tests (Files): Likewise.
35596         * modules/roundf-tests (Files): Likewise.
35597         * modules/roundl-tests (Files): Likewise.
35598         * modules/select-tests (Files): Likewise.
35599         * modules/setenv-tests (Files): Likewise.
35600         * modules/sigaction-tests (Files): Likewise.
35601         * modules/sleep-tests (Files): Likewise.
35602         * modules/snprintf-posix-tests (Files): Likewise.
35603         * modules/snprintf-tests (Files): Likewise.
35604         * modules/sprintf-posix-tests (Files): Likewise.
35605         * modules/stat-tests (Files): Likewise.
35606         * modules/strcasestr-tests (Files): Likewise.
35607         * modules/strchrnul-tests (Files): Likewise.
35608         * modules/strerror-tests (Files): Likewise.
35609         * modules/strsignal-tests (Files): Likewise.
35610         * modules/strstr-tests (Files): Likewise.
35611         * modules/strtod-tests (Files): Likewise.
35612         * modules/strverscmp-tests (Files): Likewise.
35613         * modules/symlink-tests (Files): Likewise.
35614         * modules/symlinkat-tests (Files): Likewise.
35615         * modules/times-tests (Files): Likewise.
35616         * modules/trunc-tests (Files): Likewise.
35617         * modules/truncf-tests (Files): Likewise.
35618         * modules/truncl-tests (Files): Likewise.
35619         * modules/tsearch-tests (Files): Likewise.
35620         * modules/uname-tests (Files): Likewise.
35621         * modules/unlink-tests (Files): Likewise.
35622         * modules/unsetenv-tests (Files): Likewise.
35623         * modules/usleep-tests (Files): Likewise.
35624         * modules/utimensat-tests (Files): Likewise.
35625         * modules/vasprintf-tests (Files): Likewise.
35626         * modules/vdprintf-posix-tests (Files): Likewise.
35627         * modules/vfprintf-posix-tests (Files): Likewise.
35628         * modules/vprintf-posix-tests (Files): Likewise.
35629         * modules/vsnprintf-posix-tests (Files): Likewise.
35630         * modules/vsnprintf-tests (Files): Likewise.
35631         * modules/vsprintf-posix-tests (Files): Likewise.
35632         * modules/wcrtomb-tests (Files): Likewise.
35633         * modules/wcsnrtombs-tests (Files): Likewise.
35634         * modules/wcsrtombs-tests (Files): Likewise.
35635         * modules/wcwidth-tests (Files): Likewise.
35636         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
35637         * tests/test-isinf.c (isinf): Likewise.
35638         * tests/test-isnan.c (isnan): Likewise.
35639         * tests/test-signbit.c (signbit): Likewise.
35640         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
35641         declaration, either as macro or with correct signature.
35642         (select): Ensure function under test is declared with correct
35643         signature in correct header.
35644         * tests/test-atexit.c (atexit): Likewise.
35645         * tests/test-btowc.c (btowc): Likewise.
35646         * tests/test-canonicalize-lgpl.c (realpath)
35647         (canonicalize_file_name): Likewise.
35648         * tests/test-ceilf1.c (ceilf): Likewise.
35649         * tests/test-ceill.c (ceill): Likewise.
35650         * tests/test-chown.c (chown): Likewise.
35651         * tests/test-dprintf-posix.c (dprintf): Likewise.
35652         * tests/test-dup2.c (dup2): Likewise.
35653         * tests/test-dup3.c (dup3): Likewise.
35654         * tests/test-duplocale.c (duplocale): Likewise.
35655         * tests/test-fchdir.c (fchdir): Likewise.
35656         * tests/test-fchownat.c (fchownat): Likewise.
35657         * tests/test-fcntl.c (fcntl): Likewise.
35658         * tests/test-fdopendir.c (fdopendir): Likewise.
35659         * tests/test-fflush.c (fflush): Likewise.
35660         * tests/test-flock.c (flock): Likewise.
35661         * tests/test-floorf1.c (floorf): Likewise.
35662         * tests/test-floorl.c (floorl): Likewise.
35663         * tests/test-fnmatch.c (fnmatch): Likewise.
35664         * tests/test-fopen.c (fopen): Likewise.
35665         * tests/test-fprintf-posix.c (fprintf): Likewise.
35666         * tests/test-freopen.c (freopen): Likewise.
35667         * tests/test-frexp.c (frexp): Likewise.
35668         * tests/test-frexpl.c (frexpl): Likewise.
35669         * tests/test-fseek.c (fseek): Likewise.
35670         * tests/test-fseeko.c (fseeko): Likewise.
35671         * tests/test-fstatat.c (fstatat): Likewise.
35672         * tests/test-fsync.c (fsync): Likewise.
35673         * tests/test-ftell.c (ftell): Likewise.
35674         * tests/test-ftello.c (ftello): Likewise.
35675         * tests/test-futimens.c (futimens): Likewise.
35676         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
35677         (gai_strerror): Likewise.
35678         * tests/test-getcwd.c (getcwd): Likewise.
35679         * tests/test-getdelim.c (getdelim): Likewise.
35680         * tests/test-getdtablesize.c (getdtablesize): Likewise.
35681         * tests/test-getgroups.c (getgroups): Likewise.
35682         * tests/test-gethostname.c (gethostname): Likewise.
35683         * tests/test-getline.c (getline): Likewise.
35684         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
35685         Likewise.
35686         * tests/test-gettimeofday.c (gettimeofday): Likewise.
35687         * tests/test-glob.c (glob, globfree): Likewise.
35688         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
35689         * tests/test-inet_ntop.c (inet_ntop): Likewise.
35690         * tests/test-inet_pton.c (inet_pton): Likewise.
35691         * tests/test-isblank.c (isblank): Likewise.
35692         * tests/test-lchown.c (lchown): Likewise.
35693         * tests/test-ldexpl.c (ldexpl): Likewise.
35694         * tests/test-link.c (link): Likewise.
35695         * tests/test-linkat.c (linkat): Likewise.
35696         * tests/test-lseek.c (lseek): Likewise.
35697         * tests/test-lstat.c (lstat): Likewise.
35698         * tests/test-mbrtowc.c (mbrtowc): Likewise.
35699         * tests/test-mbsinit.c (mbsinit): Likewise.
35700         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
35701         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
35702         * tests/test-memchr.c (memchr): Likewise.
35703         * tests/test-memcmp.c (memcmp): Likewise.
35704         * tests/test-memmem.c (memmem): Likewise.
35705         * tests/test-memrchr.c (memrchr): Likewise.
35706         * tests/test-mkdir.c (mkdir): Likewise.
35707         * tests/test-mkdirat.c (mkdirat): Likewise.
35708         * tests/test-mkfifo.c (mkfifo): Likewise.
35709         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
35710         * tests/test-mknod.c (mknod): Likewise.
35711         * tests/test-nanosleep.c (nanosleep): Likewise.
35712         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
35713         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
35714         Likewise.
35715         * tests/test-open.c (open): Likewise.
35716         * tests/test-openat.c (openat): Likewise.
35717         * tests/test-perror.c (perror): Likewise.
35718         * tests/test-pipe2.c (pipe2): Likewise.
35719         * tests/test-poll.c (poll): Likewise.
35720         * tests/test-popen.c (popen, pclose): Likewise.
35721         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
35722         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
35723         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
35724         (posix_spawn_file_actions_destroy)
35725         (posix_spawn_file_actions_addclose)
35726         (posix_spawn_file_actions_addopen)
35727         (posix_spawn_file_actions_adddup2): Likewise.
35728         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
35729         * tests/test-pread.c (pread): Likewise.
35730         * tests/test-printf-posix.c (printf): Likewise.
35731         * tests/test-pty.c (openpty, forkpty): Likewise.
35732         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
35733         (random_r): Likewise.
35734         * tests/test-rawmemchr.c (rawmemchr): Likewise.
35735         * tests/test-readlink.c (readlink): Likewise.
35736         * tests/test-remove.c (remove): Likewise.
35737         * tests/test-rename.c (rename): Likewise.
35738         * tests/test-renameat.c (renameat): Likewise.
35739         * tests/test-rmdir.c (rmdir): Likewise.
35740         * tests/test-round1.c (round): Likewise.
35741         * tests/test-roundf1.c (roundf): Likewise.
35742         * tests/test-roundl.c (roundl): Likewise.
35743         * tests/test-setenv.c (setenv): Likewise.
35744         * tests/test-sigaction.c (sigaction): Likewise.
35745         * tests/test-sleep.c (sleep): Likewise.
35746         * tests/test-snprintf.c (snprintf): Likewise.
35747         * tests/test-sprintf-posix.c (sprintf): Likewise.
35748         * tests/test-stat.c (stat): Likewise.
35749         * tests/test-stpncpy.c (stpncpy): Likewise.
35750         * tests/test-strcasestr.c (strcasestr): Likewise.
35751         * tests/test-strchrnul.c (strchrnul): Likewise.
35752         * tests/test-strerror.c (strerror): Likewise.
35753         * tests/test-strsignal.c (strsignal): Likewise.
35754         * tests/test-strstr.c (strstr): Likewise.
35755         * tests/test-strtod.c (strtod): Likewise.
35756         * tests/test-strverscmp.c (strverscmp): Likewise.
35757         * tests/test-symlink.c (symlink): Likewise.
35758         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
35759         * tests/test-times.c (times): Likewise.
35760         * tests/test-trunc1.c (trunc): Likewise.
35761         * tests/test-truncf1.c (truncf): Likewise.
35762         * tests/test-truncl.c (truncl): Likewise.
35763         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
35764         Likewise.
35765         * tests/test-uname.c (uname): Likewise.
35766         * tests/test-unlink.c (unlink): Likewise.
35767         * tests/test-unlinkat.c (unlinkat): Likewise.
35768         * tests/test-unsetenv.c (unsetenv): Likewise.
35769         * tests/test-usleep.c (usleep): Likewise.
35770         * tests/test-utimensat.c (utimensat): Likewise.
35771         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
35772         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
35773         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
35774         * tests/test-vprintf-posix.c (vprintf): Likewise.
35775         * tests/test-vsnprintf.c (vsnprintf): Likewise.
35776         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
35777         * tests/test-wcrtomb.c (wcrtomb): Likewise.
35778         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
35779         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
35780         * tests/test-wcwidth.c (wcwidth): Likewise.
35781
35782         build: pull in conditional headers during GNULIB_POSIXCHECK
35783         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
35784         definitions from any conditionally-included headers.
35785         * lib/stdlib.in.h (includes): Likewise.
35786         * lib/unistd.in.h (includes): Likewise.
35787
35788 2009-12-24  Bruno Haible  <bruno@clisp.org>
35789
35790         * tests/test-argv-iter.c: Include header file being tested immediately
35791         after config.h.
35792         * tests/test-base64.c: Likewise.
35793         * tests/test-flock.c: Likewise.
35794         * tests/test-fsync.c: Likewise.
35795         * tests/test-getdate.c: Likewise.
35796         * tests/test-getndelim2.c: Likewise.
35797         * tests/test-isfinite.c: Likewise.
35798         * tests/test-isinf.c: Likewise.
35799         * tests/test-strerror.c: Likewise.
35800         * tests/test-strsignal.c: Likewise.
35801
35802 2009-12-23  Eric Blake  <ebb9@byu.net>
35803
35804         unistd: work around cygwin bug
35805         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
35806         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
35807         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
35808
35809 2009-12-23  Bruno Haible  <bruno@clisp.org>
35810
35811         localename: More tests.
35812         * tests/test-localename.c (SIZEOF): New macro.
35813         (categories): New variable.
35814         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
35815         test_locale_name_default): Add test w.r.t. thread locale.
35816         (test_locale_name_thread): New function.
35817         (main): Invoke it.
35818
35819         localename: Make aware of thread locale.
35820         * lib/localename.h (gl_locale_name_thread): New declaration.
35821         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
35822         behaviour with respect to thread locale.
35823         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
35824         <langinfo.h>, glthread/lock.h.
35825         (SIZE_BITS): New macro.
35826         (string_hash): New function.
35827         (struct hash_node): New type.
35828         (HASH_TABLE_SIZE): New macro.
35829         (struniq_hash_table, struniq_lock): New variables.
35830         (struniq): New function.
35831         (gl_locale_name_thread): New function.
35832         (gl_locale_name): Invoke it.
35833         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
35834         * modules/localename (Depends-on): Add lock.
35835         Reported by Mike Gran <spk121@yahoo.com>.
35836
35837 2009-12-23  Eric Blake  <ebb9@byu.net>
35838
35839         va-args: new module
35840         * modules/va-args: New file.
35841         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
35842         * MODULES.html.sh (Core language properties): Mention it.
35843
35844         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
35845         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
35846         named alias for __attribute__((__unused__)).
35847         * lib/chown.c: Update client.
35848         * lib/fchmodat.c: Likewise.
35849         * lib/fts.c: Likewise.
35850         * lib/getdate.y: Likewise.
35851         * lib/getgroups.c: Likewise.
35852         * lib/getopt.c: Likewise.
35853         * lib/getugroups.c: Likewise.
35854         * lib/mkdir.c: Likewise.
35855         * lib/mkfifo.c: Likewise.
35856         * lib/mkfifoat.c: Likewise.
35857         * lib/mknod.c: Likewise.
35858         * lib/mknodat.c: Likewise.
35859         * lib/readlink.c: Likewise.
35860         * lib/se-context.in.h: Likewise.
35861         * lib/se-selinux.in.h: Likewise.
35862         * lib/sockets.c: Likewise.
35863         * lib/symlink.c: Likewise.
35864         * lib/symlinkat.c: Likewise.
35865         * lib/unicodeio.c: Likewise.
35866         * lib/unistr.h: Likewise.
35867         * tests/test-areadlink.c: Likewise.
35868         * tests/test-areadlinkat.c: Likewise.
35869         * tests/test-filenamecat.c: Likewise.
35870         * tests/test-fseeko.c: Likewise.
35871         * tests/test-ftello.c: Likewise.
35872         * tests/test-getdate.c: Likewise.
35873         * tests/test-getgroups.c: Likewise.
35874         * tests/test-gethostname.c: Likewise.
35875         * tests/test-quotearg.c: Likewise.
35876         * tests/test-version-etc.c: Likewise.
35877         * tests/test-xalloc-die.c: Likewise.
35878         * tests/test-xfprintf-posix.c: Likewise.
35879         * tests/test-xprintf-posix.c: Likewise.
35880         * tests/test-xvasprintf.c: Likewise.
35881
35882         tests: avoid compiler warnings
35883         * tests/test-fcntl.c (main): Delete unused parameters.
35884         * tests/test-freopen-safer.c (main): Likewise.
35885         * tests/test-xalloc-die.c (main): Mark unused parameters.
35886         * tests/test-fseeko.c (main): Likewise.
35887         * tests/test-ftello.c (main): Likewise.
35888         * tests/test-nanosleep.c (main): Avoid declaration warning.
35889         * tests/test-sleep.c (main): Likewise.
35890         * tests/test-unsetenv.c (main): Silence warning about string
35891         literal.
35892         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
35893
35894 2009-12-23  Bruno Haible  <bruno@clisp.org>
35895
35896         * tests/test-localename.c (test_locale_name): New function, extracted
35897         from main. Also test mixed situations.
35898         (test_locale_name_posix, test_locale_name_environ,
35899         test_locale_name_default): New functions.
35900         (main): Invoke them all.
35901         * modules/localename-tests (configure.ac): Test for newlocale.
35902
35903 2009-12-23  Bruno Haible  <bruno@clisp.org>
35904
35905         unistd: Ensure getcwd gets declared before being overridden.
35906         * lib/unistd.in.h: Conditionally include <io.h>.
35907
35908 2009-12-22  Bruno Haible  <bruno@clisp.org>
35909
35910         wchar: Diagnose broken combination of glibc and gcc versions and flags.
35911         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
35912         (gl_WCHAR_H): Invoke it.
35913         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
35914         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
35915         Reported by Karl Berry <karl@freefriends.org>.
35916
35917 2009-12-22  Eric Blake  <ebb9@byu.net>
35918
35919         math, unistd: avoid redundant includes
35920         * lib/math.in.h (isnan): No need to re-include <math.h>.
35921         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
35922
35923         getsubopt: work around cygwin bug
35924         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
35925         avoid conflicting with system getsubopt.
35926         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
35927         bug.
35928
35929         getopt: synchronize from glibc
35930         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
35931         parameter order.  Adjust all callers.
35932         (_getopt_internal_r, main): Adjust quoting in error messages.
35933         Drop considerations for outdated POSIX 1003.2 error message.
35934         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
35935         callers.
35936         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
35937
35938         test-getopt: test stderr behavior
35939         * modules/getopt-posix-tests (Depends-on): Add dup2.
35940         * tests/test-getopt.c (ASSERT): Avoid stderr.
35941         (main): Move stderr to a temporary file.
35942         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
35943         Instead, add parameter to inform caller if output occurred.
35944         (test_getopt): Adjust all existing tests to expect silence, and
35945         add new tests of leading ":".
35946         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
35947         glibc shortcomings with leading "-:" or "+:" in optstring.
35948         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
35949         Likewise.
35950         * doc/posix-functions/getopt.texi (getopt): Likewise.
35951
35952         test-getopt: enhance test
35953         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
35954         supports optind=0.
35955         * tests/test-getopt.c (OPTIND_MIN): Move...
35956         * tests/test-getopt.h (OPTIND_MIN): ...here.
35957         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
35958         Require that optind=0 works, since modern BSD supports it in
35959         addition to optreset, and since coreutils expects it.
35960         (test_getopt_long_only): New test.
35961         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
35962         glibc shortcomings with 'W;', and enforcement of optind=0.
35963         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
35964         Likewise.
35965
35966 2009-12-21  Bruno Haible  <bruno@clisp.org>
35967
35968         localename: Improvements for MacOS X and Cygwin.
35969         * lib/localename.h (gl_locale_name_environ): New declaration.
35970         * lib/localename.c (gl_locale_name_environ): New function, extracted from
35971         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
35972         (gl_locale_name_posix): Invoke it.
35973         (gl_locale_name_default): Add comments. Use Windows native API also on
35974         Cygwin.
35975
35976 2009-12-21  Bruno Haible  <bruno@clisp.org>
35977
35978         Update list of Win32 locale ids.
35979         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
35980         (LANG_SAMI): Renamed from LANG_SAAMI.
35981         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
35982         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
35983         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
35984         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
35985         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
35986         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
35987         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
35988         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
35989         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
35990         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
35991         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
35992         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
35993         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
35994         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
35995         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
35996         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
35997         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
35998         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
35999         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
36000         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
36001         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
36002         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
36003         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
36004         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
36005         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
36006         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
36007         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
36008         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
36009         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
36010         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
36011         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
36012         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
36013         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
36014         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
36015         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
36016         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
36017         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
36018         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
36019         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
36020         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
36021         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
36022         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
36023         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
36024         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
36025         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
36026         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
36027         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
36028         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
36029         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
36030         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
36031         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
36032         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
36033         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
36034         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
36035         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
36036         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
36037         Add more languages and countries for Sami, Sorbian. Add more countries
36038         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
36039         for Pashto. Change country for Syriac, Tswana.
36040
36041 2009-12-21  Eric Blake  <ebb9@byu.net>
36042
36043         test-utimens: avoid spurious failure
36044         * tests/test-chown.h (nap): Factor...
36045         * tests/nap.h: ...into new file.
36046         * tests/test-lchown.h (nap): Avoid duplication.
36047         * tests/test-utimens-common.h (nap): Use shared implementation,
36048         necessary on file systems with 1-second resolution.
36049         * modules/chown-tests (Files): Include new file.
36050         * modules/fdutimensat-tests (Files): Likewise.
36051         * modules/futimens-tests (Files): Likewise.
36052         * modules/lchown-tests (Files): Likewise.
36053         * modules/openat-tests (Files): Likewise.
36054         * modules/utimens-tests (Files): Likewise.
36055         * modules/utimensat-tests (Files): Likewise.
36056
36057 2009-12-19  Eric Blake  <ebb9@byu.net>
36058
36059         futimens, utimensat: work around Linux bug
36060         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
36061         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
36062         * lib/utimensat.c (rpl_utimensat): Work around it.
36063         * lib/futimens.c (rpl_futimens): Adjust comment.
36064
36065         utimens: work around Linux ctime bug
36066         * lib/utimens.c (detect_ctime_bug): New helper function.
36067         (update_timespec): Differentiate between workaround needed for
36068         this bug vs. what is needed for systems that lack utimensat.
36069         (fdutimens, lutimens): Work around bug.
36070
36071         utimens: check for ctime update
36072         * tests/test-utimens-common.h (check_ctime): Define.
36073         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
36074         * tests/test-futimens.h (test_futimens): Likewise.
36075         * tests/test-lutimens.h (test_lutimens): Likewise.
36076         * doc/posix-functions/futimens.texi (futimens): Document the bug.
36077         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
36078
36079 2009-12-19  Bruno Haible  <bruno@clisp.org>
36080
36081         dprintf-posix: Check against memory leak fixed on 2009-12-15.
36082         * tests/test-dprintf-posix2.sh: New file.
36083         * tests/test-dprintf-posix2.c: New file.
36084         * modules/dprintf-posix-tests (Files): Add them.
36085         (configure.ac): Check for getrlimit and setrlimit.
36086         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
36087
36088 2009-12-19  Bruno Haible  <bruno@clisp.org>
36089
36090         fprintf-posix: Check against memory leak fixed on 2009-12-15.
36091         * tests/test-fprintf-posix3.sh: New file.
36092         * tests/test-fprintf-posix3.c: New file.
36093         * modules/fprintf-posix-tests (Files): Add them.
36094         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
36095
36096 2009-12-19  Eric Blake  <ebb9@byu.net>
36097
36098         dirfd: fix prototype
36099         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
36100         * lib/dirfd.c (dirfd): Likewise.
36101
36102         canonicalize: reduce memory usage
36103         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
36104         allocation to size.
36105         Reported by Solar Designer <solar@openwall.com>.
36106
36107 2009-12-19  Bruno Haible  <bruno@clisp.org>
36108
36109         New module attribute 'Applicability'.
36110         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
36111         * gnulib-tool: New option --extract-applicability.
36112         (func_usage): Document it.
36113         (sed_extract_prog): Recognize it.
36114         (func_get_applicability): New function.
36115         (func_import): Generalize handling of 'link-warning' module.
36116         * modules/link-warning (Applicability): New section.
36117         * modules/arg-nonnull (Applicability): New section.
36118         Repoted by Simon Josefsson <simon@josefsson.org>.
36119
36120 2009-12-19  Bruno Haible  <bruno@clisp.org>
36121
36122         fflush: tweak
36123         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
36124         * lib/fseeko.c (rpl_fseeko): Likewise.
36125
36126 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
36127
36128         * lib/gl_list.h: Fix typo in comment.
36129
36130 2009-12-16  Eric Blake  <ebb9@byu.net>
36131
36132         fcntl: use to simplify other modules
36133         * modules/cloexec (Depends-on): Add fcntl.
36134         * modules/fchdir (Depends-on): Likewise.
36135         * modules/fd-safer-flag (Depends-on): Likewise.
36136         * modules/unistd-safer (Depends-on): Likewise.
36137         * modules/dup3 (configure.ac): Set module indicator.
36138         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
36139         missing.
36140         * lib/fchdir.c (_gl_register_dup): Fix comment.
36141         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
36142         * lib/dup-safer.c (dup_safer): Likewise.
36143         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
36144         * lib/dup3.c (dup3): Likewise.
36145         * tests/test-fchdir.c (main): Enhance test.
36146         Fixes a dup_cloexec bug reported by Ondřej Vašík.
36147
36148         fcntl: port portions of fcntl to mingw
36149         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
36150         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
36151         replacement for mingw.
36152         * modules/fcntl (Description): Update.
36153         (Depends-on): Add dup2.
36154         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
36155         * modules/fcntl-h (Makefile.am): Substitute it.
36156         * lib/fcntl.in.h (fcntl): Update declaration.
36157         (F_DUPFD, F_GETFD): New macros, when needed.
36158         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36159         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
36160         * tests/test-fcntl.c (check_flags, main): Enhance test for items
36161         we now guarantee.
36162
36163         fcntl: work around cygwin bug in F_DUPFD
36164         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
36165         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
36166         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
36167         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
36168         * doc/posix-functions/fcntl.texi (fcntl): Document it.
36169
36170         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
36171         * modules/fcntl (Files): List new files.
36172         (configure.ac): Run a test.
36173         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
36174         * lib/fcntl.c (rpl_fcntl): Likewise.
36175         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
36176         (gl_FCNTL_H): Always replace fcntl.h.
36177         * modules/fcntl-h (Makefile.am): Substitute witnesses.
36178         * lib/fcntl.in.h (fcntl): Declare replacement.
36179         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
36180         needed, plus a witness.
36181         * doc/posix-functions/fcntl.texi (fcntl): Document this.
36182         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
36183         * tests/test-fcntl.c: New file.
36184         * modules/fcntl-tests: Likewise.
36185
36186         binary-io: avoid potential compilation warning
36187         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
36188         directives.
36189
36190         fflush: avoid compilation error on NetBSD
36191         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
36192         between off_t and fpos_t, since the latter is sometimes a struct.
36193         * lib/fseeko.c (rpl_fseeko): Likewise.
36194         Reported by Alexander Nasonov <alnsn@yandex.ru>.
36195
36196 2009-12-15  Eric Blake  <ebb9@byu.net>
36197
36198         fcntl-h, stdio, sys_ioctl: fix declarations
36199         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
36200         function must not take arguments.
36201         * lib/sys_ioctl.in.h (ioctl): Likewise.
36202         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
36203         (open): Add a link warning.
36204
36205 2009-12-15  Jim Meyering  <meyering@redhat.com>
36206
36207         areadlink, areadlink-with-size: relax license to LGPLv2+
36208         * modules/areadlink (License): Relax to LGPLv2+.
36209         * modules/areadlink-with-size (License): Likewise.
36210
36211 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
36212             Bruno Haible  <bruno@clisp.org>
36213
36214         *printf: Fix memory leak.
36215         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
36216         * lib/vfprintf.c (vfprintf): Likewise.
36217         * lib/dprintf.c (dprintf): Likewise.
36218         * lib/vdprintf.c (vdprintf): Likewise.
36219
36220 2009-12-14  Eric Blake  <ebb9@byu.net>
36221
36222         accept4: adjust module dependencies
36223         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
36224
36225         utimens: one more try at avoiding compiler warning
36226         * lib/utimens.c (lutimens): Lower scope of result.
36227
36228 2009-12-13  Bruno Haible  <bruno@clisp.org>
36229
36230         Move the malloc checking from module 'list' to new module 'xlist'.
36231         * modules/xlist: New file.
36232         * lib/gl_xlist.h: New file.
36233         * lib/gl_xlist.c: New file.
36234         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
36235         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
36236         gl_list_add_last, gl_list_add_before, gl_list_add_after,
36237         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
36238         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
36239         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
36240         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
36241         gl_sortedlist_nx_add): New declarations.
36242         (struct gl_list_implementation): Rename and change methods accordingly.
36243         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
36244         (gl_list_nx_create): Renamed from gl_list_create.
36245         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
36246         (gl_list_nx_set_at): Renamed from gl_list_set_at.
36247         (gl_list_nx_add_first): Renamed from gl_list_add_first.
36248         (gl_list_nx_add_last): Renamed from gl_list_add_last.
36249         (gl_list_nx_add_before): Renamed from gl_list_add_before.
36250         (gl_list_nx_add_after): Renamed from gl_list_add_after.
36251         (gl_list_nx_add_at): Renamed from gl_list_add_at.
36252         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
36253         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
36254         gl_list_create_empty.
36255         (gl_list_nx_create): Renamed from gl_list_create.
36256         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
36257         (gl_list_nx_set_at): Renamed from gl_list_set_at.
36258         (gl_list_nx_add_first): Renamed from gl_list_add_first.
36259         (gl_list_nx_add_last): Renamed from gl_list_add_last.
36260         (gl_list_nx_add_before): Renamed from gl_list_add_before.
36261         (gl_list_nx_add_after): Renamed from gl_list_add_after.
36262         (gl_list_nx_add_at): Renamed from gl_list_add_at.
36263         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
36264         * lib/gl_array_list.c: Don't include xalloc.h.
36265         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
36266         NULL upon out-of-memory.
36267         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
36268         out-of-memory.
36269         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
36270         Change return type to 'int'.
36271         (gl_array_nx_set_at): Renamed from gl_array_set_at.
36272         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
36273         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
36274         upon out-of-memory.
36275         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
36276         upon out-of-memory.
36277         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
36278         upon out-of-memory.
36279         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
36280         upon out-of-memory.
36281         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
36282         out-of-memory.
36283         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
36284         Update.
36285         (gl_array_list_implementation): Update.
36286         * lib/gl_carray_list.c: Don't include xalloc.h.
36287         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
36288         Return NULL upon out-of-memory.
36289         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
36290         out-of-memory.
36291         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
36292         Change return type to 'int'.
36293         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
36294         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
36295         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
36296         upon out-of-memory.
36297         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
36298         upon out-of-memory.
36299         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
36300         out-of-memory.
36301         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
36302         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
36303         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
36304         Update.
36305         (gl_carray_list_implementation): Update.
36306         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
36307         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
36308         gl_linked_create_empty. Return NULL upon out-of-memory.
36309         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
36310         out-of-memory.
36311         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
36312         Change return type to 'int'. Return -1 upon out-of-memory.
36313         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
36314         out-of-memory.
36315         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
36316         upon out-of-memory.
36317         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
36318         upon out-of-memory.
36319         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
36320         NULL upon out-of-memory.
36321         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
36322         upon out-of-memory.
36323         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
36324         out-of-memory.
36325         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
36326         Update.
36327         * lib/gl_linked_list.c: Don't include xalloc.h.
36328         (gl_linked_list_implementation): Update.
36329         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
36330         (add_to_bucket): Change return type to 'int'.
36331         (gl_linkedhash_list_implementation): Update.
36332         * lib/gl_anytree_list1.h (free_subtree): New function.
36333         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
36334         gl_tree_create_empty. Return NULL upon out-of-memory.
36335         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
36336         Change return type to 'int'. Return -1 upon out-of-memory.
36337         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
36338         out-of-memory.
36339         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
36340         (gl_tree_remove_node): New function, moved here from
36341         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
36342         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
36343         Update.
36344         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
36345         malloc, not xmalloc. Return NULL upon out-of-memory.
36346         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
36347         out-of-memory.
36348         (gl_tree_remove_node_from_tree): New function, extracted from
36349         gl_tree_remove_node.
36350         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
36351         upon out-of-memory.
36352         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
36353         out-of-memory.
36354         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
36355         upon out-of-memory.
36356         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
36357         upon out-of-memory.
36358         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
36359         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
36360         not xmalloc. Return NULL upon out-of-memory.
36361         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
36362         out-of-memory.
36363         (gl_tree_remove_node_from_tree): New function, extracted from
36364         gl_tree_remove_node.
36365         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
36366         upon out-of-memory.
36367         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
36368         out-of-memory.
36369         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
36370         upon out-of-memory.
36371         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
36372         upon out-of-memory.
36373         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
36374         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
36375         gl_anytree_list1.h before gl_anyavltree_list2.h.
36376         (gl_avltree_list_implementation): Update.
36377         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
36378         gl_anytree_list1.h before gl_anyavltree_list2.h.
36379         (gl_rbtree_list_implementation): Update.
36380         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
36381         Change return type to 'int'. Return -1 upon out-of-memory. Use
36382         __builtin_expect.
36383         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
36384         (gl_avltreehash_list_implementation): Update.
36385         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
36386         (gl_rbtreehash_list_implementation): Update.
36387         * modules/array-list (Depends-on): Remove xalloc.
36388         * modules/carray-list (Depends-on): Likewise.
36389         * modules/linked-list (Depends-on): Likewise.
36390         * modules/linkedhash-list (Depends-on): Likewise.
36391         * modules/avltree-list (Depends-on): Likewise.
36392         * modules/rbtree-list (Depends-on): Likewise.
36393         * modules/avltreehash-list (Depends-on): Likewise.
36394         * modules/rbtreehash-list (Depends-on): Likewise.
36395
36396         * modules/xsublist: New file.
36397         * lib/gl_xsublist.h: New file.
36398         * lib/gl_xsublist.c: New file.
36399         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
36400         (gl_sublist_nx_create): New declaration.
36401         * lib/gl_sublist.c: Don't include xalloc.h.
36402         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
36403         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
36404         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
36405         Change return type to 'int'. Return -1 upon out-of-memory.
36406         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
36407         upon out-of-memory.
36408         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
36409         NULL upon out-of-memory.
36410         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
36411         upon out-of-memory.
36412         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
36413         NULL upon out-of-memory.
36414         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
36415         NULL upon out-of-memory.
36416         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
36417         upon out-of-memory.
36418         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
36419         (gl_sublist_list_implementation): Update.
36420         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
36421         upon out-of-memory.
36422         * modules/sublist (Depends-on): Remove xalloc.
36423
36424         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
36425         * tests/test-carray_list.c: Likewise.
36426         * tests/test-linked_list.c: Likewise.
36427         * tests/test-linkedhash_list.c: Likewise.
36428         * tests/test-avltree_list.c: Likewise.
36429         * tests/test-rbtree_list.c: Likewise.
36430         * tests/test-avltreehash_list.c: Likewise.
36431         * tests/test-rbtreehash_list.c: Likewise.
36432         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
36433         * modules/carray-list-tests (Makefile.am): Likewise.
36434         * modules/linked-list-tests (Makefile.am): Likewise.
36435         * modules/linkedhash-list-tests (Makefile.am): Likewise.
36436         * modules/avltree-list-tests (Makefile.am): Likewise.
36437         * modules/rbtree-list-tests (Makefile.am): Likewise.
36438         * modules/avltreehash-list-tests (Makefile.am): Likewise.
36439         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
36440
36441         * NEWS: Mention the changes.
36442
36443         * lib/clean-temp.c: Include gl_xlist.h.
36444         * modules/clean-temp (Depends-on): Add xlist.
36445
36446         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
36447         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
36448
36449         * tests/test-array_oset.c: Include gl_xlist.h.
36450         * modules/array-oset-tests (Depends-on): Add xlist.
36451
36452         Reported by José E. Marchesi <jemarch@gnu.org>.
36453
36454 2009-12-13  Bruno Haible  <bruno@clisp.org>
36455
36456         Move the malloc checking from module 'oset' to new module 'xoset'.
36457         * modules/xoset: New file.
36458         * lib/gl_xoset.h: New file.
36459         * lib/gl_xoset.c: New file.
36460         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
36461         declarations.
36462         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
36463         (struct gl_oset_implementation): Rename and change methods accordingly.
36464         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
36465         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
36466         'int'. Mark as __warn_unused_result__.
36467         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
36468         gl_oset_create_empty.
36469         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
36470         'int'.
36471         * lib/gl_array_oset.c: Don't include xalloc.h.
36472         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
36473         malloc, not xmalloc.
36474         (grow): Change return type to 'int'. Don't call xalloc_die.
36475         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
36476         to 'int'.
36477         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
36478         'int'.
36479         (gl_array_oset_implementation): Update.
36480         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
36481         gl_tree_create_empty.
36482         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
36483         'int'.
36484         * lib/gl_avltree_oset.c: Don't include xalloc.h.
36485         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
36486         xmalloc.
36487         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
36488         not xmalloc.
36489         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
36490         xmalloc.
36491         (gl_avltree_oset_implementation): Update.
36492         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
36493         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
36494         xmalloc.
36495         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
36496         not xmalloc.
36497         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
36498         xmalloc.
36499         (gl_rbtree_oset_implementation): Update.
36500         * modules/array-oset (Depends-on): Remove xalloc.
36501         * modules/avltree-oset (Depends-on): Likewise.
36502         * modules/rbtree-oset (Depends-on): Likewise.
36503         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
36504         * tests/test-avltree_oset.c: Likewise.
36505         * tests/test-rbtree_oset.c: Likewise.
36506         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
36507         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
36508         * modules/rbtree-oset-tests (Makefile.am): Likewise.
36509         * NEWS: Mention the change.
36510
36511 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
36512
36513         maint.mk: allow a project to override release-prep commands
36514         * top/maint.mk (alpha, beta, stable): Move release-preparatory
36515         commands into a new rule.
36516         (release-prep): New rule.
36517         (release-prep-hook): New overridable variable.
36518
36519 2009-12-13  Bruno Haible  <bruno@clisp.org>
36520
36521         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
36522
36523 2009-12-13  Jim Meyering  <meyering@redhat.com>
36524
36525         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
36526         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
36527
36528 2009-12-12  Bruno Haible  <bruno@clisp.org>
36529
36530         duplocale: Tweak.
36531         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
36532
36533 2009-12-12  Karl Berry  <karl@gnu.org>
36534
36535         * config/srclist.txt (strtoll.c): tab changes, no more sync.
36536
36537 2009-12-12  Bruno Haible  <bruno@clisp.org>
36538
36539         * m4/po.m4: Undo incorrect untabification.
36540
36541 2009-12-12  Bruno Haible  <bruno@clisp.org>
36542
36543         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
36544         * modules/c-strtod (Depends-on): Add locale.
36545         * modules/c-strtold (Depends-on): Likewise.
36546
36547 2009-12-12  Bruno Haible  <bruno@clisp.org>
36548
36549         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
36550
36551 2009-12-11  Eric Blake  <ebb9@byu.net>
36552
36553         setenv: relax requirement in light of POSIX ruling
36554         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
36555         not NULL.
36556         * tests/test-setenv.c (main): Relax test.
36557         * tests/test-unsetenv.c (main): Likewise.
36558         * doc/posix-functions/setenv.texi (setenv): Document this.
36559         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
36560
36561 2009-12-11  Bruno Haible  <bruno@clisp.org>
36562
36563         New module 'fd-safer-flag'.
36564         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
36565         * lib/dup-safer.c (dup_safer_flag): Remove function.
36566         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
36567         * lib/fd-safer.c (fd_safer_flag): Remove function.
36568         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
36569         * modules/cloexec (configure.ac): Drop indicator macro.
36570         * modules/fd-safer-flag: New file.
36571         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
36572         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
36573         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
36574
36575 2009-12-11  Bruno Haible  <bruno@clisp.org>
36576
36577         Tests for module 'nl_langinfo'.
36578         * modules/nl_langinfo-tests: New file.
36579         * tests/test-nl_langinfo.sh: New file.
36580         * tests/test-nl_langinfo.c: New file.
36581
36582         New module 'nl_langinfo'.
36583         * lib/nl_langinfo.c: New file.
36584         * m4/nl_langinfo.m4: New file.
36585         * modules/nl_langinfo: New file.
36586         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
36587
36588 2009-12-11  Bruno Haible  <bruno@clisp.org>
36589
36590         Tests for module 'langinfo'.
36591         * modules/langinfo-tests: New file.
36592         * tests/test-langinfo.c: New file.
36593
36594         New module 'langinfo'.
36595         * lib/langinfo.in.h: New file.
36596         * m4/langinfo_h.m4: New file.
36597         * modules/langinfo: New file.
36598         * doc/posix-headers/langinfo.texi: Mention the new module.
36599
36600 2009-12-11  Bruno Haible  <bruno@clisp.org>
36601
36602         * lib/config.charset: Untabify.
36603
36604 2009-12-11  Bruno Haible  <bruno@clisp.org>
36605
36606         * modules/unistd-safer (configure.ac): Drop indicator macro.
36607
36608 2009-12-11  Bruno Haible  <bruno@clisp.org>
36609
36610         Move pipe2-safer code to its own file.
36611         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
36612         * lib/pipe-safer.c (pipe2_safer): Remove function.
36613         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
36614         (Makefile.am): Add it to lib_SOURCES.
36615
36616 2009-12-10  Bruno Haible  <bruno@clisp.org>
36617
36618         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
36619
36620 2009-12-10  Bruno Haible  <bruno@clisp.org>
36621
36622         Declare which arguments expect non-NULL values, for GCC and clang.
36623         * build-aux/arg-nonnull.h: New file.
36624         * modules/arg-nonnull: New file.
36625         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
36626         (inet_ntop, inet_pton): Use it.
36627         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
36628         (closedir, dirfd, opendir, scandir, alphasort): Use it.
36629         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
36630         (open, openat): Use it.
36631         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
36632         (fnmatch): Use it.
36633         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
36634         (getopt, getopt_long, getopt_long_only): Use it.
36635         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
36636         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
36637         Use it.
36638         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
36639         (iconv_open): Use it.
36640         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
36641         (strtoimax, strtoumax): Use it.
36642         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
36643         (duplocale): Use it.
36644         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
36645         (frexp, frexpl): Use it.
36646         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
36647         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
36648         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
36649         (tsearch, tfind, tdelete, twalk): Use it.
36650         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
36651         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
36652         sigpending): Use it.
36653         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
36654         (posix_spawn, posix_spawnp, posix_spawnattr_init,
36655         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
36656         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
36657         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
36658         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
36659         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
36660         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
36661         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
36662         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
36663         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
36664         Use it.
36665         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
36666         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
36667         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
36668         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
36669         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
36670         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
36671         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
36672         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
36673         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
36674         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
36675         strtoull, unsetenv): Use it.
36676         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
36677         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
36678         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
36679         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
36680         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
36681         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
36682         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
36683         (strcasecmp, strncasecmp): Use it.
36684         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
36685         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
36686         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
36687         rpl_setsockopt): Use it.
36688         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
36689         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
36690         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
36691         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
36692         (gettimeofday): Use it.
36693         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
36694         (times): Use it.
36695         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
36696         (uname): Use it.
36697         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
36698         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
36699         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
36700         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
36701         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
36702         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
36703         unlinkat, write): Use it.
36704         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
36705         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
36706         * lib/argv-iter.h: Include arg-nonnull.h.
36707         (_ATTRIBUTE_NONNULL_): Remove macro.
36708         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
36709         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
36710         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
36711         optimization.
36712         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
36713         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
36714         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
36715         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
36716         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
36717         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
36718         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
36719         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
36720         * modules/arpa_inet (Depends-on): Add arg-nonnull.
36721         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
36722         * modules/dirent (Depends-on): Add arg-nonnull.
36723         (Makefile.am): Insert arg-nonnull.h into dirent.h.
36724         * modules/fcntl-h (Depends-on): Add arg-nonnull.
36725         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
36726         * modules/fnmatch (Depends-on): Add arg-nonnull.
36727         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
36728         * modules/getopt-posix (Depends-on): Add arg-nonnull.
36729         (Makefile.am): Insert arg-nonnull.h into getopt.h.
36730         * modules/glob (Depends-on): Add arg-nonnull.
36731         (Makefile.am): Insert arg-nonnull.h into glob.h.
36732         * modules/iconv_open (Depends-on): Add arg-nonnull.
36733         (Makefile.am): Insert arg-nonnull.h into iconv.h.
36734         * modules/inttypes (Depends-on): Add arg-nonnull.
36735         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
36736         * modules/locale (Depends-on): Add arg-nonnull.
36737         (Makefile.am): Insert arg-nonnull.h into locale.h.
36738         * modules/math (Depends-on): Add arg-nonnull.
36739         (Makefile.am): Insert arg-nonnull.h into math.h.
36740         * modules/netdb (Depends-on): Add arg-nonnull.
36741         (Makefile.am): Insert arg-nonnull.h into netdb.h.
36742         * modules/search (Depends-on): Add arg-nonnull.
36743         (Makefile.am): Insert arg-nonnull.h into search.h.
36744         * modules/signal (Depends-on): Add arg-nonnull.
36745         (Makefile.am): Insert arg-nonnull.h into signal.h.
36746         * modules/spawn (Depends-on): Add arg-nonnull.
36747         (Makefile.am): Insert arg-nonnull.h into spawn.h.
36748         * modules/stdio (Depends-on): Add arg-nonnull.
36749         (Makefile.am): Insert arg-nonnull.h into stdio.h.
36750         * modules/stdlib (Depends-on): Add arg-nonnull.
36751         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
36752         * modules/string (Depends-on): Add arg-nonnull.
36753         (Makefile.am): Insert arg-nonnull.h into string.h.
36754         * modules/strings (Depends-on): Add arg-nonnull.
36755         (Makefile.am): Insert arg-nonnull.h into strings.h.
36756         * modules/sys_socket (Depends-on): Add arg-nonnull.
36757         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
36758         * modules/sys_stat (Depends-on): Add arg-nonnull.
36759         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
36760         * modules/sys_time (Depends-on): Add arg-nonnull.
36761         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
36762         * modules/sys_times (Depends-on): Add arg-nonnull.
36763         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
36764         * modules/sys_utsname (Depends-on): Add arg-nonnull.
36765         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
36766         * modules/time (Depends-on): Add arg-nonnull.
36767         (Makefile.am): Insert arg-nonnull.h into time.h.
36768         * modules/unistd (Depends-on): Add arg-nonnull.
36769         (Makefile.am): Insert arg-nonnull.h into unistd.h.
36770         * modules/wchar (Depends-on): Add arg-nonnull.
36771         (Makefile.am): Insert arg-nonnull.h into wchar.h.
36772         * modules/argv-iter (Depends-on): Add arg-nonnull.
36773         * tests/test-canonicalize.c (null_ptr): New function.
36774         (main): Use it.
36775         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
36776         (main): Use it.
36777         * tests/test-memmem.c (null_ptr): New function.
36778         (main): Use it.
36779         Reported by Jim Meyering.
36780
36781 2009-12-10  Bruno Haible  <bruno@clisp.org>
36782
36783         Use spaces for indentation, not tabs.
36784         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
36785         * m4/*.m4: Untabify.
36786         * build-aux/*.h: Untabify.
36787         * tests/**/*.[hc]: Untabify.
36788         * README: New section "Indent with spaces, not TABs", based on
36789         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
36790         * NEWS: Mention the change.
36791
36792 2009-12-10  Bruno Haible  <bruno@clisp.org>
36793
36794         pty test: Fix link error.
36795         * modules/pty-tests (Makefile.am): Add the default LDADD value to
36796         test_pty_LDADD.
36797
36798 2009-12-07  Simon Josefsson  <simon@josefsson.org>
36799
36800         * modules/pty: New file.
36801         * modules/pty-tests: New file.
36802         * m4/pty.m4: New file.
36803         * tests/test-pty.c: New file.
36804         * doc/glibc-headers/pty.texi: Modified.
36805         * doc/glibc-functions/forkpty.texi: Modified.
36806         * doc/glibc-functions/openpty.texi: Modified.
36807
36808 2009-12-10  Bruno Haible  <bruno@clisp.org>
36809
36810         Avoid syntax error in C++ mode.
36811         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
36812
36813 2009-12-10  Bruno Haible  <bruno@clisp.org>
36814
36815         Use sed with option -e.
36816         * gnulib-tool (func_version, func_emit_copyright_notice,
36817         func_emit_initmacro_end, func_import, func_create_testdir): Pass
36818         option -e to sed.
36819         * modules/link-warning (Makefile.am): Likewise.
36820
36821 2009-12-10  Jim Meyering  <meyering@redhat.com>
36822
36823         mgetgroups: do not write bytes beyond end of malloc'd buffer
36824         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
36825         username, we call getgroups with a one-element-shorter buffer,
36826         but still told it the length was original, max_n_groups.
36827
36828 2009-12-09  Eric Blake  <ebb9@byu.net>
36829
36830         cloexec: relax license
36831         * modules/cloexec (Maintainer): Add myself.
36832         (License): Use LGPL, not GPL.
36833
36834         link-warning: optimize generation
36835         * modules/link-warning (Makefile.am): Reduce process usage.
36836
36837 2009-12-09  Bruno Haible  <bruno@clisp.org>
36838
36839         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
36840         workaround was added on 2009-11-17.
36841
36842 2009-12-09  Jim Meyering  <meyering@redhat.com>
36843             Bruno Haible  <bruno@clisp.org>
36844
36845         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
36846         * modules/link-warning (Makefile.am): Make the comment-removing sed
36847         command more robust in the face of bootstrap-prepended comment lines.
36848
36849 2009-12-09  Bruno Haible  <bruno@clisp.org>
36850
36851         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
36852         most one group.
36853
36854 2009-12-09  Simon Josefsson <simon@josefsson.org>
36855             Bruno Haible  <bruno@clisp.org>
36856
36857         * build-aux/link-warning.h: Add copyright notice.
36858         * modules/link-warning (Makefile.am): Generate link-warning.h from
36859         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
36860         * NEWS: Mention change in link-warning module.
36861         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
36862         * modules/dirent (Makefile.am): Add dependency to dirent.h.
36863         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
36864         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
36865         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
36866         * modules/math (Makefile.am): Add dependency to math.h.
36867         * modules/search (Makefile.am): Add dependency to search.h.
36868         * modules/signal (Makefile.am): Add dependency to signal.h.
36869         * modules/spawn (Makefile.am): Add dependency to spawn.h.
36870         * modules/stdio (Makefile.am): Add dependency to stdio.h.
36871         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
36872         * modules/string (Makefile.am): Add dependency to string.h.
36873         * modules/strings (Makefile.am): Add dependency to strings.h.
36874         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
36875         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
36876         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
36877         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
36878         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
36879         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
36880         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
36881         * modules/unistd (Makefile.am): Add dependency to unistd.h.
36882         * modules/wchar (Makefile.am): Add dependency to wchar.h.
36883
36884 2009-12-09  Bruno Haible  <bruno@clisp.org>
36885
36886         fchdir: Optimize away rpl_fstat when possible.
36887         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
36888         REPLACE_OPEN_DIRECTORY.
36889         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
36890
36891 2009-12-09  Bruno Haible  <bruno@clisp.org>
36892
36893         * lib/fchdir.c: Update comment.
36894
36895 2009-12-09  Bruno Haible  <bruno@clisp.org>
36896
36897         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
36898
36899 2009-12-08  Eric Blake  <ebb9@byu.net>
36900
36901         fchdir: avoid memory leak on re-registration.
36902         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
36903
36904 2009-12-08  Jim Meyering  <meyering@redhat.com>
36905
36906         init.sh: avoid Solaris 10 /bin/sh portability problem
36907         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
36908         sourced script:
36909           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
36910           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
36911           bar
36912         tests/init.sh relied on that, accepting a --set-path=DIR argument,
36913         and two tests used that idiom.
36914         * tests/init.sh: Update suggested usage comments.
36915         (path_prepend_): New function, to be used in place
36916         of the --src-path=DIR option.
36917         (setup_): Move PATH-prepending code into path_prepend_.
36918         * tests/test-pread.sh: Adapt to new usage.
36919         * tests/test-xalloc-die.sh: Likewise.
36920
36921 2009-12-08  Simon Josefsson  <simon@josefsson.org>
36922
36923         * doc/gnulib.texi (Glibc pty.h): Add.
36924         * doc/glibc-functions/forkpty.texi: Add.
36925         * doc/glibc-functions/openpty.texi: Add.
36926         Suggested by Bruno Haible.
36927
36928 2009-12-08  Eric Blake  <ebb9@byu.net>
36929
36930         fchdir: fix logic bugs
36931         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
36932         * tests/test-fchdir.c (main): Enhance test.
36933         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
36934         is in use.
36935
36936         dup2: fix logic bugs
36937         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
36938         REPLACE_DUP2 to decide when rpl_dup2 is needed.
36939         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
36940         exists.
36941         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
36942
36943 2009-12-07  Eric Blake  <ebb9@byu.net>
36944
36945         unlink: fix m4 detection
36946         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
36947
36948         unistd-safer: add unit test
36949         * modules/unistd-safer-tests: New file.
36950         * tests/test-dup-safer.c: Likewise.
36951         * tests/test-cloexec.c (setmode): Avoid compiler warning.
36952         * tests/test-dup2.c (setmode): Likewise.
36953         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
36954
36955         cloexec: preserve text vs. binary across dup_cloexec
36956         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
36957         mode.
36958         * modules/dup2-tests (Depends-on): Add binary-io.
36959         * modules/cloexec-tests (Depends-on): Likewise.
36960         * tests/test-dup2.c (setmode, is_mode): New helpers.
36961         (main): Add tests that translation mode is preserved.
36962         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
36963         Reported by Bruno Haible.
36964
36965         mgetgroups: reduce duplicate listings
36966         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
36967         resulting array.
36968         * tests/test-chown.h (test_chown): Simplify client.
36969         * tests/test-lchown.h (test_lchown): Likewise.
36970
36971 2009-12-06  Bruno Haible  <bruno@clisp.org>
36972
36973         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
36974         value.
36975
36976 2009-12-06  Bruno Haible  <bruno@clisp.org>
36977
36978         * lib/progname.c: Include stdio.h, stdlib.h.
36979         (set_program_name): Reject a NULL argument.
36980
36981 2009-12-05  Eric Blake  <ebb9@byu.net>
36982
36983         pipe2-safer: new module
36984         * modules/pipe2-safer: New file.
36985         * lib/unistd-safer.h (pipe2_safer): New prototype.
36986         * lib/unistd--.h (pipe2): New wrapper.
36987         * lib/pipe-safer.c (pipe2_safer): New function.
36988         * modules/pipe (Depends-on): Add pipe2-safer.
36989         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
36990
36991         stdlib-safer: preserve cloexec flag for mkostemp[s]
36992         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
36993         fd_safer_flag.
36994
36995         unistd-safer: allow preservation of cloexec status via flag
36996         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
36997         prototypes.
36998         * lib/dup-safer.c (dup_safer_flag): New function.
36999         * lib/fd-safer.c (fd_safer_flag): Likewise.
37000         * modules/cloexec (configure.ac): Set witness.
37001
37002         test-dup2: enhance test
37003         * modules/dup2-tests (Depends-on): Add cloexec.
37004         * tests/test-dup2.c (main): Enhance test.
37005
37006         cloexec: add dup_cloexec
37007         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
37008         header and comments.
37009         * lib/cloexec.c (set_cloexec_flag): Add comments.
37010         (dup_cloexec): New function, with mingw implementation borrowed
37011         from...
37012         * lib/w32spawn.h (dup_noinherit): ...here.
37013         * modules/execute (Depends-on): Add cloexec.
37014         * modules/pipe (Depends-on): Likewise.
37015         * modules/cloexec (Depends-on): Add dup2.
37016         * modules/cloexec-tests (Files): New file.
37017         * tests/test-cloexec.c: Likewise.
37018
37019         test-xalloc-die: fix test for mingw
37020         * modules/xalloc-die-tests (Files): Add tests/init.sh.
37021         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
37022         directory and .exe suffix off argv[0] output.
37023
37024         test-fseeko: fix test for mingw
37025         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
37026         than undefining fseek, so test will pass on mingw.
37027
37028 2009-12-05  Bruno Haible  <bruno@clisp.org>
37029
37030         * lib/progname.h (set_program_name): Clarify specification.
37031         * lib/progname.c (set_program_name): Likewise.
37032         Reported by Jim Meyering.
37033
37034 2009-12-05  Jim Meyering  <meyering@redhat.com>
37035
37036         maint.mk: backslash-escape parens in default regexp
37037         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
37038         backslash-escape the literal parentheses.
37039
37040         maint.mk: news-date-check: use grep -E
37041         * top/maint.mk (today): Define a Make variable, not a...
37042         (news-date-check): ...shell variable.
37043         (news-date-regexp): Use the Make variable.
37044         Use grep's -E option.  Change the failing diagnostic to mention
37045         the variable, $(news-date-regexp).
37046
37047 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
37048
37049         maintainer-makefile: allow customization of NEWS entry format
37050         * top/maint.mk (news-date-regexp): New overridable variable.
37051         (news-date-check): Use it.
37052
37053 2009-12-04  Eric Blake  <ebb9@byu.net>
37054
37055         mgetgroups: add xgetgroups, and avoid ENOSYS failures
37056         * lib/mgetgroups.h (xgetgroups): New prototype.
37057         * lib/mgetgroups.c (xgetgroups): New wrapper.
37058         (mgetgroups): Handle ENOSYS.
37059         * modules/mgetgroups (Depends-on): Add realloc.
37060         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
37061
37062         mgetgroups: avoid argument promotion issues with -1
37063         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
37064         for invalid gid_t.
37065         * tests/test-chown.h (getegid, test_chown): Likewise.
37066         * tests/test-lchown.h (getegid, test_lchown): Likewise.
37067
37068 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
37069
37070         exclude: Fix header file problems.
37071         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
37072
37073 2009-12-01  Jim Meyering  <meyering@redhat.com>
37074
37075         fts: fts_open: do not let an empty string cause immediate failure
37076         This is required in support of GNU rm, for which the command
37077         "rm A '' B" must process and remove both A and B, in spite of
37078         the empty string argument.
37079         * lib/fts.c (fts_open): Do not let the presence of an empty string
37080         cause fts_open to fail immediately.  Most fts-using tools must be
37081         able to process all arguments, in order, and can be expected to
37082         diagnose such arguments themselves.
37083
37084 2009-11-30  Eric Blake  <ebb9@byu.net>
37085
37086         utimens: fix compilation error
37087         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
37088         Declare variable at right scope.
37089
37090 2009-11-29  Jim Meyering  <meyering@redhat.com>
37091
37092         bootstrap: handle perl-5.11's changed --version output
37093         * build-aux/bootstrap (get_version): Handle perl separately,
37094         since perl-5.11's --version output is different.
37095
37096 2009-11-28  Jim Meyering  <meyering@redhat.com>
37097
37098         userspec: depend on the inttostr module, too
37099         * modules/userspec (Depends-on): Add inttostr.
37100
37101         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
37102         * lib/userspec.c (parse_with_separator): Do not accept a user ID
37103         number of MAXUID when it evaluates to (uid_t) -1.
37104         Likewise for group ID.  Reported by Matt McCutchen in
37105         <http://savannah.gnu.org/bugs/?28113>
37106
37107         userspec: reformat to use spaces, not TABs
37108         * lib/userspec.c: Expand TABs to spaces.
37109         Add Emacs' "indent-tabs-mode: nil" hint.
37110
37111 2009-11-27  Eric Blake  <ebb9@byu.net>
37112
37113         getopt-gnu: flush out another BSD bug
37114         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
37115         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
37116         flush out BSD bug.
37117         * tests/test-getopt.h (test_getopt): End lists with NULL.
37118         * tests/test-getopt_long.h (test_getopt_long): Likewise.
37119         (test_getopt_long_posix): Enhance test.
37120         * modules/getopt-posix-tests (Depends-on): Add stdbool.
37121         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
37122         getopt-gnu.
37123         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37124         Likewise.
37125
37126 2009-11-27  Simon Josefsson  <simon@josefsson.org>
37127
37128         * modules/idpriv-droptemp-tests (Notice): Fix text.
37129
37130 2009-11-27  Jim Meyering  <meyering@redhat.com>
37131
37132         test-xalloc-die: avoid spurious failure due to libtool argv difference
37133         In a libtool-enabled project, this test would fail due to a difference
37134         in the emitted program name, e.g.,
37135         -test-xalloc-die: memory exhausted
37136         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
37137         Use program to avoid that.
37138         * modules/xalloc-die-tests (Depends-on): Add progname.
37139         * tests/test-xalloc-die.c: Include progname.h".
37140         (program_name): Remove decl.
37141         (main): Call set_program_name.
37142         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
37143
37144 2009-11-26  Richard Jones  <rjones@redhat.com>
37145
37146         w32sock: leave win32 error in place.
37147         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
37148
37149 2009-11-26  Eric Blake  <ebb9@byu.net>
37150
37151         init.sh: suggest to use skip_ and fail_ functions in comments
37152         * tests/init.sh: Add a sentence.
37153
37154 2009-11-25  Bruno Haible  <bruno@clisp.org>
37155
37156         init.sh: add documentation in comments
37157         * tests/init.sh: Add some developer and user documentation.
37158
37159 2009-11-26  Jim Meyering  <meyering@redhat.com>
37160
37161         init.sh: accommodate even those who specify bogus srcdir manually
37162         * tests/init.sh: Normally, srcdir is guaranteed by automake and
37163         configure-time tests to be sanitized, so that there is no need to
37164         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
37165         (with no double quotes) suffices.  However, since tests may be
37166         invoked manually, and since you may explicitly set srcdir to the
37167         name of a directory containing spaces, do quote its uses here.
37168         * tests/test-pread.sh: Likewise.
37169         Suggested by Bruno Haible.
37170
37171         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
37172         * tests/test-pread.sh: Write no data into the pipe, because
37173         test-pread actually reads none.  This avoids a diagnostic,
37174         "bash: echo: write error: Broken pipe", that arises in the unusual
37175         event something is ignoring SIGPIPE, and might be interpreted
37176         as some sort of failure.  Reported by Bruno Haible.
37177
37178 2009-11-25  Jim Meyering  <meyering@redhat.com>
37179
37180         test-pread: cover failure with ESPIPE and EINVAL
37181         * tests/test-pread.c (main): Test for failure, too.
37182         * tests/test-pread.sh: Invoke with stdin on a pipe.
37183         Suggested by Eric Blake.
37184
37185         pread: improvement and fix
37186         * modules/pread (Depends-on): Depend on lseek, for portability to
37187         e.g., mingw.  Suggested by Eric Blake.
37188         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
37189
37190         unistd.in.h: correct declaration of pread
37191         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
37192         Reported by Richard W.M. Jones.
37193
37194         test-pread.sh: distribute the test script
37195         * modules/pread-tests (Files): Include test-pread.sh.
37196
37197         test-pread.sh: clean up
37198         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
37199         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
37200         That is unnecessary, since it's always ".".
37201         Suggestion from Eric Blake.
37202
37203         test-pread.sh: make executable
37204         * tests/test-pread.sh: Set executable bit.
37205         Reported by Eric Blake.
37206
37207         correct typo in test-pread.sh
37208         * tests/test-pread.sh: Add #! line.
37209
37210         test pread
37211         * tests/test-pread.c: New file.
37212         * tests/test-pread.sh: Likewise.
37213         * modules/pread-tests: Likewise.
37214
37215         pread: new module
37216         * modules/pread: New file.
37217         * lib/unistd.in.h (pread): Define/declare.
37218         * lib/pread.c (pread): New file.
37219         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
37220         * modules/unistd (Makefile.am): Substitute witnesses.
37221         * doc/posix-functions/pread.texi (pread): Update.
37222         * MODULES.html.sh: Add pread.
37223
37224 2009-11-25  Jim Meyering  <meyering@redhat.com>
37225
37226         tests/init.sh: new file to be used via most *.sh tests
37227         * tests/init.sh: New file.
37228
37229 2009-11-25  Eric Blake  <ebb9@byu.net>
37230
37231         utimens: work around older Linux failure with symlinks
37232         * lib/utimens.c (lutimensat_works_really): New variable.
37233         (fdutimens, lutimens): Use it to manage kernels that support
37234         nanosecond times on files, but not on symlinks.
37235         Reported by Ondřej Vašík.
37236
37237         utimes: fix configure grammar
37238         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
37239
37240 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
37241
37242         regex: Fix fastmap for multibyte character ranges.
37243         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
37244         characters when a multibyte character range is included.
37245
37246 2009-11-22  Andy Wingo  <wingo@pobox.com>
37247
37248         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
37249         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
37250
37251 2009-11-24  Bruno Haible  <bruno@clisp.org>
37252
37253         doc: Most *_l functions exist in MacOS X 10.5.
37254         * doc/posix-functions/duplocale.texi: Update platforms list.
37255         * doc/posix-functions/freelocale.texi: Likewise.
37256         * doc/posix-functions/newlocale.texi: Likewise.
37257         * doc/posix-functions/uselocale.texi: Likewise.
37258         * doc/posix-functions/isalnum_l.texi: Likewise.
37259         * doc/posix-functions/isalpha_l.texi: Likewise.
37260         * doc/posix-functions/isblank_l.texi: Likewise.
37261         * doc/posix-functions/iscntrl_l.texi: Likewise.
37262         * doc/posix-functions/isdigit_l.texi: Likewise.
37263         * doc/posix-functions/isgraph_l.texi: Likewise.
37264         * doc/posix-functions/islower_l.texi: Likewise.
37265         * doc/posix-functions/isprint_l.texi: Likewise.
37266         * doc/posix-functions/ispunct_l.texi: Likewise.
37267         * doc/posix-functions/isspace_l.texi: Likewise.
37268         * doc/posix-functions/isupper_l.texi: Likewise.
37269         * doc/posix-functions/iswalnum_l.texi: Likewise.
37270         * doc/posix-functions/iswalpha_l.texi: Likewise.
37271         * doc/posix-functions/iswblank_l.texi: Likewise.
37272         * doc/posix-functions/iswcntrl_l.texi: Likewise.
37273         * doc/posix-functions/iswctype_l.texi: Likewise.
37274         * doc/posix-functions/iswdigit_l.texi: Likewise.
37275         * doc/posix-functions/iswgraph_l.texi: Likewise.
37276         * doc/posix-functions/iswlower_l.texi: Likewise.
37277         * doc/posix-functions/iswprint_l.texi: Likewise.
37278         * doc/posix-functions/iswpunct_l.texi: Likewise.
37279         * doc/posix-functions/iswspace_l.texi: Likewise.
37280         * doc/posix-functions/iswupper_l.texi: Likewise.
37281         * doc/posix-functions/iswxdigit_l.texi: Likewise.
37282         * doc/posix-functions/isxdigit_l.texi: Likewise.
37283         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
37284         * doc/posix-functions/strcasecmp_l.texi: Likewise.
37285         * doc/posix-functions/strcoll_l.texi: Likewise.
37286         * doc/posix-functions/strfmon_l.texi: Likewise.
37287         * doc/posix-functions/strftime_l.texi: Likewise.
37288         * doc/posix-functions/strncasecmp_l.texi: Likewise.
37289         * doc/posix-functions/strxfrm_l.texi: Likewise.
37290         * doc/posix-functions/tolower_l.texi: Likewise.
37291         * doc/posix-functions/toupper_l.texi: Likewise.
37292         * doc/posix-functions/towctrans_l.texi: Likewise.
37293         * doc/posix-functions/towlower_l.texi: Likewise.
37294         * doc/posix-functions/towupper_l.texi: Likewise.
37295         * doc/posix-functions/wcscoll_l.texi: Likewise.
37296         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
37297         * doc/posix-functions/wctrans_l.texi: Likewise.
37298         * doc/posix-functions/wctype_l.texi: Likewise.
37299         * doc/glibc-functions/strptime_l.texi: Likewise.
37300         * doc/glibc-functions/strtod_l.texi: Likewise.
37301         * doc/glibc-functions/strtof_l.texi: Likewise.
37302         * doc/glibc-functions/strtol_l.texi: Likewise.
37303         * doc/glibc-functions/strtold_l.texi: Likewise.
37304         * doc/glibc-functions/strtoll_l.texi: Likewise.
37305         * doc/glibc-functions/strtoul_l.texi: Likewise.
37306         * doc/glibc-functions/strtoull_l.texi: Likewise.
37307         * doc/glibc-functions/wcsftime_l.texi: Likewise.
37308         * doc/glibc-functions/wcstod_l.texi: Likewise.
37309         * doc/glibc-functions/wcstof_l.texi: Likewise.
37310         * doc/glibc-functions/wcstol_l.texi: Likewise.
37311         * doc/glibc-functions/wcstold_l.texi: Likewise.
37312         * doc/glibc-functions/wcstoll_l.texi: Likewise.
37313         * doc/glibc-functions/wcstoul_l.texi: Likewise.
37314         * doc/glibc-functions/wcstoull_l.texi: Likewise.
37315
37316 2009-11-24  Bruno Haible  <bruno@clisp.org>
37317
37318         duplocale: Fix logic bug.
37319         * lib/duplocale.c: Don't include <langinfo.h>.
37320         (_NL_LOCALE_NAME): Remove macro.
37321         (rpl_duplocale): Use setlocale instead of nl_langinfo.
37322         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
37323
37324 2009-11-23  Jim Meyering  <meyering@redhat.com>
37325
37326         test-update-copyright: don't hard-code /usr/bin/perl
37327         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
37328         perl to print the current year.  Gilles Espinasse reported that
37329         the replaced use of perl was hard-coded as /usr/bin/perl.
37330
37331 2009-11-23  Bruno Haible  <bruno@clisp.org>
37332
37333         duplocale: Add support for glibc 2.3.x.
37334         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
37335
37336 2009-11-22  Bruno Haible  <bruno@clisp.org>
37337
37338         vasnprintf: Tiny optimization.
37339         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
37340         MacOS X.
37341
37342 2009-11-22  Bruno Haible  <bruno@clisp.org>
37343
37344         Tests for module 'duplocale'.
37345         * modules/duplocale-tests: New file.
37346         * tests/test-duplocale.c: New file.
37347
37348         New module 'duplocale'.
37349         * m4/duplocale.m4: New file.
37350         * lib/locale.in.h (duplocale): New declaration.
37351         * lib/duplocale.c: New file.
37352         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
37353         gl_LOCALE_H_DEFAULTS): New macros.
37354         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
37355         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
37356         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
37357         REPLACE_DUPLOCALE.
37358         * modules/duplocale: New file.
37359         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
37360
37361 2009-11-22  Bruno Haible  <bruno@clisp.org>
37362
37363         * modules/locale-tests (configure.ac): Test for newlocale function.
37364         * tests/test-locale.c: When the system has extended locale functions,
37365         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
37366
37367         locale: Make locale_t available when possible.
37368         * lib/locale.in.h: Include <xlocale.h> when it exists.
37369         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
37370         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
37371         * modules/locale (Depends-on): Add extensions.
37372         (Makefile.am): Also substitute HAVE_XLOCALE_H.
37373         * doc/posix-headers/locale.texi: Document the problem with locale_t.
37374
37375 2009-11-22  Bruno Haible  <bruno@clisp.org>
37376
37377         Add comments.
37378         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
37379         invocation.
37380         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
37381         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
37382         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37383
37384 2009-11-22  Bruno Haible  <bruno@clisp.org>
37385
37386         error: account for the possibility of freopen (stdout).
37387         * lib/error.c: Include <unistd.h>.
37388         (flush_stdout): New function, extracted from error and error_at_line.
37389         Determine stdout's fd dynamically.
37390         (error, error_at_line): Invoke flush_stdout.
37391         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
37392         * modules/error (Depends-on): Add unistd.
37393
37394 2009-11-22  Bruno Haible  <bruno@clisp.org>
37395
37396         diffseq: Add comment.
37397         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
37398
37399 2009-11-22  Jim Meyering  <meyering@redhat.com>
37400
37401         c-stack: avoid defining an unused static function
37402         * lib/c-stack.c (find_stack_direction): Do not define this function
37403         when it will not be used.
37404
37405         diffseq: avoid spurious gcc warnings
37406         * lib/diffseq.h (IF_LINT2): Define.
37407         (compareseq): Use it to initialize two members of "part".
37408         This avoids two used-uninitialized warnings.
37409
37410 2009-11-21  Jim Meyering  <meyering@redhat.com>
37411
37412         c-stack: avoid "ignoring return value of `write'" warning
37413         * lib/c-stack.c: Include "ignore-value.h".
37414         (die): Explicitly ignore each write return value.
37415         * modules/c-stack (Depends-on): Add ignore-value.
37416
37417 2009-11-21  Bruno Haible  <bruno@clisp.org>
37418
37419         diffseq: reduce scope of variable 'best'.
37420         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
37421         variable, earlier used for two different purposes.
37422
37423 2009-11-21  Jim Meyering  <meyering@redhat.com>
37424
37425         diffseq: remove useless assignment to "best"
37426         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
37427         assignment.  At that point "best" is already guaranteed to be zero.
37428
37429 2009-11-20  Eric Blake  <ebb9@byu.net>
37430
37431         build: mention ftp redirector in release announcements
37432         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
37433         values that used to come from cfg.mk; mention FTP redirect URL.
37434         * build-aux/announce-gen: Mention the mirror list.
37435         Suggested by Karl Berry.
37436
37437         nanosleep: improve port to mingw
37438         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
37439         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
37440         LIB_NANOSLEEP, but only when needed.
37441         * modules/select (Link): Document LIBSOCKET.
37442         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
37443         enough.
37444
37445         nanosleep: work around cygwin bug
37446         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
37447         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
37448         bug.
37449         (getnow): Delete, not needed.
37450         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
37451         LIB_CLOCK_GETTIME.
37452         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
37453         clock-time, gettime.
37454         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
37455         bug.
37456         * modules/nanosleep-tests: New test.
37457         * tests/test-nanosleep.c: New file.
37458
37459         sleep: work around cygwin bug
37460         * lib/sleep.c (rpl_sleep): Work around the bug.
37461         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
37462         (gl_PREREQ_SLEEP): Delete unused macro.
37463         * modules/sleep (Depends-on): Add verify.
37464         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
37465         * modules/unistd (Makefile.am): Substitute witness.
37466         * lib/unistd.in.h (sleep): Update prototype.
37467         * doc/posix-functions/sleep.texi (sleep): Document the bug.
37468         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
37469         * modules/sleep-tests (Depends-on): Check for alarm.
37470
37471 2009-11-20  Jim Meyering  <meyering@redhat.com>
37472
37473         maint.mk: improve sc_prohibit_magic_number_exit
37474         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
37475         so it does not match uses like System.exit(1).
37476         Add comments showing how to correct all offenders.
37477
37478 2009-11-19  Eric Blake  <ebb9@byu.net>
37479
37480         xalloc-die-tests: add missing library
37481         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
37482
37483         test-xvasprintf: silence compiler warnings
37484         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
37485         empty string from gcc.
37486
37487 2009-11-19  Jim Meyering  <meyering@redhat.com>
37488
37489         xfreopen: new module, from coreutils
37490         * modules/xfreopen: New module.
37491         * lib/xfreopen.c: New file.
37492         * lib/xfreopen.h: New file.
37493         * MODULES.html.sh (File stream based Input/Output"): Add it.
37494
37495 2009-11-19  Eric Blake  <ebb9@byu.net>
37496
37497         manywarnings: depend on warnings
37498         * modules/manywarnings (Depends-on): Add warnings.
37499
37500         build: avoid compiler warnings
37501         * lib/select.c (rpl_select): Delete unused variable.
37502         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
37503
37504 2009-11-18  Eric Blake  <ebb9@byu.net>
37505
37506         tests: avoid false negative with --with-packager
37507         * tests/test-version-etc.sh: Discard packager information.
37508         * tests/test-argp-version-etc-1.sh: Likewise.
37509         Reported by Mike Frysinger.
37510
37511         utimens: fix regression on Solaris
37512         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
37513         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
37514         can only change fd timestamps via futimesat.  Instead, use an
37515         additional witness macro to avoid BSD bug.
37516         Reported by Jim Meyering.
37517
37518 2009-11-17  Eric Blake  <ebb9@byu.net>
37519
37520         usleep: use it to simplify tests
37521         * modules/stat-time-tests (Depends-on): Add usleep.
37522         (configure.ac): Drop usleep check.
37523         * modules/chown-tests (Depends-on, configure.ac): Likewise.
37524         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
37525         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
37526         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
37527         * modules/openat-tests (Depends-on, configure.ac): Likewise.
37528         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
37529         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
37530         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
37531         Likewise.
37532         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
37533         * tests/test-lchown.h (nap): Likewise.
37534         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
37535         * tests/test-stat-time.c (nap): Likewise.
37536         * tests/test-utimens-common.h (nap): Update comments.
37537
37538         usleep: new module
37539         * modules/usleep: New file.
37540         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
37541         * lib/usleep.c (usleep): Likewise.
37542         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
37543         * modules/unistd (Makefile.am): Substitute witnesses.
37544         * lib/unistd.in.h (usleep): Add declaration.
37545         * doc/pastposix-functions/usleep.texi (usleep): Document this.
37546         * MODULES.html.sh (Date and time): Likewise.
37547         * modules/usleep-tests (Depends-on): New test.
37548         * tests/test-usleep.c: New file.
37549
37550         chown: work around OpenBSD bug
37551         * lib/chown.c (rpl_chown): Work around the bug.
37552         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
37553         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
37554         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
37555         * modules/chown (Depends-on): Add stdbool.
37556         * modules/lchown (Depends-on): Likewise.
37557         * doc/posix-functions/chown.texi (chown): Document the bug.
37558         * doc/posix-functions/lchown.texi (lchown): Likewise.
37559         * tests/test-lchown.h (test_chown): Relax test.
37560
37561         mkstemp: avoid conflict with C++ keyword template
37562         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
37563         * lib/mkostemp.c (mkostemp): Likewise.
37564         * lib/mkostemps.c (mkostemps): Likewise.
37565         * lib/mkstemp.c (mkstemp): Likewise.
37566         * lib/mkstemps.c (mkstemps): Likewise.
37567
37568         xalloc-die-tests: optimize
37569         * tests/test-xalloc-die.sh: Reduce number of processes.
37570
37571 2009-11-17  Simon Josefsson  <simon@josefsson.org>
37572
37573         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
37574         patch from ludo@gnu.org (Ludovic Courtès).
37575
37576 2009-11-17  Jim Meyering  <meyering@redhat.com>
37577
37578         version-etc: use proper license string
37579         * modules/version-etc (License): Use LGPL, not LGPLv3+.
37580         * modules/version-etc-fsf: Likewise.
37581
37582 2009-11-17  Simon Josefsson  <simon@josefsson.org>
37583
37584         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
37585         printed to stdout.  Deal with EOL differences.
37586
37587 2009-11-17  Eric Blake  <ebb9@byu.net>
37588
37589         unsetenv: work around Solaris bug
37590         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
37591         * lib/unsetenv.c (rpl_unsetenv): Work around it.
37592         Reported by Jim Meyering.
37593
37594         vasnprintf: avoid compiler warnings
37595         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
37596         variables.
37597         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
37598
37599 2009-11-17  Simon Josefsson  <simon@josefsson.org>
37600
37601         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
37602         settings since xalloc-die is no longer the self test,
37603         xalloc-die.sh is.
37604
37605 2009-11-17  Jim Meyering  <meyering@redhat.com>
37606
37607         test-xalloc-die.sh: make the code agree with the commit log
37608         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
37609         at the end, just in case you happen to have a test-xalloc-die
37610         program in some other PATH directory.
37611
37612         test-xalloc-die.sh: fix a portability bug
37613         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
37614         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
37615         Otherwise, argv[0] (as often seen in diagnostics) would be too
37616         system-dependent, sometimes with, and sometimes without the leading "./".
37617
37618         version-etc-fsf: relax license to LGPLv3+
37619         * modules/version-etc-fsf (License): Relax license.
37620
37621 2009-11-16  Eric Blake  <ebb9@byu.net>
37622
37623         xalloc-die-tests: avoid printing null pointer
37624         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
37625         shell script.
37626         * tests/test-xalloc-die.c (program_name): Declare.
37627         * tests/test-xalloc-die.sh (tmpfiles): New file.
37628
37629         setenv, unsetenv: work around various bugs
37630         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
37631         (setenv) [HAVE_SETENV]: Work around bugs.
37632         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
37633         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
37634         for bugs.
37635         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
37636         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
37637         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
37638         * modules/stdlib (Makefile.am): Update substitutions.
37639         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
37640         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
37641         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
37642         * modules/setenv-tests: New test.
37643         * modules/unsetenv-tests: Likewise.
37644         * tests/test-setenv.c: New file.
37645         * tests/test-unsetenv.c: Likewise.
37646
37647 2009-11-16  Jim Meyering  <meyering@redhat.com>
37648
37649         version-etc: relax license to LGPLv3+
37650         * modules/version-etc (License): Relax license.
37651
37652         better AC_REQUIRE expanded-before-required-warning avoidance
37653         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
37654         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
37655         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
37656         which is no longer needed.
37657
37658 2009-11-16  Eric Blake  <ebb9@byu.net>
37659
37660         test-freading: clean up temporary file
37661         * tests/test-freading.c (main): Remove file on success, and use
37662         ASSERT more liberally.
37663         Reported by Jim Meyering.
37664
37665 2009-11-16  Jim Meyering  <meyering@redhat.com>
37666
37667         avoid new AC_REQUIRE expanded-before-required warnings
37668         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
37669         merely using it.
37670         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
37671         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
37672
37673 2009-11-15  Simon Josefsson  <simon@josefsson.org>
37674
37675         * tests/test-xalloc-die.c: New file.
37676         * modules/xalloc-die-tests: New file.
37677         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
37678         XFAIL_TESTS so it can be appended by modules.
37679
37680 2009-11-15  Simon Josefsson  <simon@josefsson.org>
37681
37682         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
37683         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
37684
37685 2009-11-14  Eric Blake  <ebb9@byu.net>
37686
37687         fnmatch: avoid compiler warning
37688         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
37689         to silence compiler warning about mismatch signedness in ?:.
37690         Reported by Robert Millan.
37691
37692         intprops: add double-inclusion guard
37693         * lib/intprops.h: Allow idempotent includes.
37694         Suggested by Bruce Korb.
37695
37696         openat: detect Solaris fchownat bug
37697         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
37698         penalizing glibc chownat when only lchownat is broken.
37699         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
37700         trailing slash bugs.
37701         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
37702         * modules/openat-tests (Files): Include more files.
37703         (Depends-on): Add mgetgroups, sleep, stat-time.
37704         (configure.ac): Add additional checks.
37705         (Makefile.am): Build new test.
37706         * tests/test-fchownat.c: New file.
37707
37708         lchown: detect Solaris and FreeBSD bug
37709         * lib/lchown.c (rpl_lchown): Work around bug.
37710         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
37711         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37712         * modules/unistd (Makefile.am): Populate it.
37713         * lib/unistd.in.h (lchown): Update declaration.
37714         * doc/posix-functions/lchown.texi (lchown): Document the bug.
37715         * modules/lchown-tests: New file.
37716         * tests/test-lchown.h (test_lchown): Likewise.
37717         * tests/test-lchown.c (main): Likewise.
37718
37719         chown: detect Solaris and FreeBSD bug
37720         * lib/chown.c (rpl_chown): Work around bug.
37721         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
37722         (gl_PREREQ_CHOWN): Delete.
37723         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37724         * modules/unistd (Makefile.am): Populate it.
37725         * lib/unistd.in.h (chown): Update declaration.
37726         * lib/lchown.c (chown): Update client.
37727         * modules/lchown (Depends-on): Add lstat.
37728         * doc/posix-functions/chown.texi (chown): Document the bug.
37729         * doc/posix-functions/getgroups.texi (getgroups): Document
37730         getgroups pitfall.
37731         * modules/chown-tests: New file.
37732         * tests/test-chown.h (test_chown): Likewise.
37733         * tests/test-chown.c (main): Likewise.
37734
37735 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
37736
37737         gnulib-tool: correctly detect absence of m4 directories
37738         * gnulib-tool: Avoid extra newline on data passed to wc -l.
37739
37740 2009-11-14  Jim Meyering  <meyering@redhat.com>
37741
37742         maint.mk: Prohibit inclusion of "xalloc.h" without use.
37743         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
37744
37745 2009-11-14  John W. Eaton  <jwe@gnu.org>
37746
37747         strftime.h: wrap funtion declaration in extern "C" block
37748         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
37749
37750 2009-11-13  Eric Blake  <ebb9@byu.net>
37751
37752         getgroups: avoid compiler warning
37753         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
37754
37755         getgroups: work around FreeBSD bug
37756         * lib/getgroups.c (rpl_getgroups): Work around the bug.
37757         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
37758         * doc/posix-functions/getgroups.texi (getgroups): Document it.
37759         * tests/test-getgroups.c (main): Fix buffer overrun.
37760
37761         getgroups: avoid compilation failure
37762         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
37763         * modules/getgroups (Depends-on): Add stdint.
37764
37765 2009-11-13  Jim Meyering  <meyering@redhat.com>
37766
37767         test-getgroups: avoid compilation failure
37768         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
37769
37770 2009-11-13  Eric Blake  <ebb9@byu.net>
37771
37772         mgetgroups: new module, taken from coreutils
37773         * modules/mgetgroups: New file.
37774         * lib/mgetgroups.h: Likewise.
37775         * lib/mgetgroups.c (mgetgroups): Likewise.
37776         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
37777         * MODULES.html.sh (Users and groups): Mention it.
37778
37779         getgroups: don't expose GETGROUPS_T to user
37780         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
37781         an element at a time if GETGROUPS_T is wrong size.
37782         * lib/getugroups.h (getugroups): Change signature.
37783         * lib/unistd.in.h (getgroups): Likewise.
37784         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
37785         signature needs fixing.
37786         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
37787         AC_TYPE_GETGROUPS.
37788         * modules/group-member (Depends-on): Add getgroups.
37789         * lib/group-member.c (group_info, get_group_info): Use gid_t.
37790         (group_member): Rely on getgroups replacement.
37791         * lib/getugroups.c (getugroups): Use gid_t.
37792         * tests/test-getgroups.c (main): Likewise.
37793         * NEWS: Mention the signature change.
37794         * doc/posix-functions/getgroups.texi (getgroups): Mention the
37795         problem with signature.
37796         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
37797         GETGROUPS_T is still useful for setgroups.
37798
37799         getgroups, getugroups: provide stubs for mingw
37800         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
37801         * lib/getugroups.c (getugroups): Likewise.
37802         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
37803         function.  Modernize replacement scheme.
37804         (gl_PREREQ_GETGROUPS): Delete.
37805         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
37806         * modules/getgroups (configure.ac): Declare witness.
37807         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
37808         * modules/unistd (Depends-on): Substitute witness.
37809         * lib/unistd.in.h (getgroups): Declare replacement.
37810
37811         getgroups: avoid calling exit
37812         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
37813         drop xalloc.
37814         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
37815         dependencies.
37816         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
37817         exiting, in the rare case of malloc failure.
37818
37819         getgroups: fix logic error
37820         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
37821         has more than 20 groups.
37822         * modules/getgroups-tests: New test.
37823         * tests/test-getgroups.c: New file.
37824
37825 2009-11-13  Simon Josefsson  <simon@josefsson.org>
37826
37827         * tests/test-base64.c: Improve.
37828
37829 2009-11-13  Simon Josefsson  <simon@josefsson.org>
37830
37831         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
37832         Blake <ebb9@byu.net>.
37833
37834 2009-11-13  Simon Josefsson  <simon@josefsson.org>
37835
37836         * tests/test-xvasprintf.c: Add %s%s related checks.
37837
37838 2009-11-12  Eric Blake  <ebb9@byu.net>
37839
37840         version-etc: match standards.texi style
37841         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
37842         and use <> only for URLs.
37843
37844 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
37845
37846         fts: do not fail on a submount during traversal
37847         * lib/fts.c (fts_build): Read the stat info again after opening
37848         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
37849         Original report at http://bugzilla.redhat.com/501848.
37850
37851 2009-11-12  Jim Meyering  <meyering@redhat.com>
37852
37853         bootstrap: sync from coreutils
37854         * build-aux/bootstrap (bootstrap_epilogue): New function.
37855         Use git_modules_config in one more place.  This make bootstrap's
37856         --gnulib-srcdir option more useful for testing.
37857
37858         bootstrap: generalize autoheader check
37859         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
37860         AC_CONFIG_HEADERS.
37861
37862 2009-11-11  Eric Blake  <ebb9@byu.net>
37863
37864         mkfifoat: use new modules for Solaris and BSD bugs
37865         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
37866         * lib/mkfifoat.c (mknodat): Split...
37867         * lib/mknodat.c (mknodat): ...into new file.
37868         * modules/mkfifoat (Files): Ship new file.
37869         (Depends-on): Add mkfifo, mknod.
37870         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
37871         (Depends-on): Add symlink.
37872         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
37873         redundant with test_mkfifo.h.
37874         (do_mkfifoat, do_mknodat): New helpers.
37875
37876         mknod: new module
37877         * modules/mknod: New file.
37878         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
37879         * lib/mknod.c (mknod): Likewise.
37880         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
37881         defaults.
37882         * modules/sys_stat (Makefile.am): Substitute them.
37883         * lib/sys_stat.in.h (mknod): Declare replacement.
37884         * MODULES.html.sh (Support for systems lacking POSIX:2008):
37885         Document it.
37886         * doc/posix-functions/mknod.texi (mknod): Likewise.
37887         * modules/mknod-tests: New test.
37888         * tests/test-mknod.c: Likewise.
37889
37890         mkfifo: new module
37891         * modules/mkfifo: New file.
37892         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
37893         * lib/mkfifo.c (mkfifo): Likewise.
37894         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
37895         defaults.
37896         * modules/sys_stat (Makefile.am): Substitute them.
37897         * lib/sys_stat.in.h (mkfifo): Declare replacement.
37898         * MODULES.html.sh (Support for systems lacking POSIX:2008):
37899         Document it.
37900         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
37901         * modules/mkfifo-tests: New test.
37902         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
37903         from test-mkfifoat.c.
37904         * tests/test-mkfifo.c: New file.
37905
37906         readlink: detect FreeBSD bug
37907         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
37908         slash on symlink.
37909         * doc/posix-functions/readlink.texi (readlink): Document the bug.
37910         * tests/test-readlink.h (test_readlink): Enhance test.
37911
37912         symlink: detect FreeBSD bug
37913         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
37914         slash on symlink.
37915         * doc/posix-functions/symlink.texi (symlink): Document the bug.
37916         * tests/test-symlink.h (test_symlink): Enhance test.
37917
37918 2009-11-10  Eric Blake  <ebb9@byu.net>
37919
37920         link: detect FreeBSD bug
37921         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
37922         symlink.
37923         * doc/posix-functions/link.texi (link): Document the bug.
37924         * tests/test-link.h (test_link): Enhance test.
37925         * tests/test-linkat.c (main): Update caller.
37926
37927         unlink, remove: detect FreeBSD bug
37928         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
37929         slash on symlink.
37930         * doc/posix-functions/unlink.texi (unlink): Document the bug.
37931         * doc/posix-functions/remove.texi (remove): Likewise.
37932         * tests/test-unlink.h (test_unlink): Enhance test.
37933         * tests/test-remove.c (main): Likewise.
37934
37935 2009-11-09  Eric Blake  <ebb9@byu.net>
37936
37937         rename: detect FreeBSD bug
37938         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
37939         slash on symlink.
37940         * modules/renameat-tests (Depends-on): Add filenamecat.
37941         * tests/test-rename.h (test_rename): Allow one more errno.
37942         * tests/test-renameat.c (main): Likewise.
37943         * doc/posix-functions/rename.texi (rename): Document the bug.
37944
37945         open: detect FreeBSD bug
37946         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
37947         symlink.
37948         * doc/posix-functions/open.texi (open): Document the bug.
37949         * doc/posix-functions/utimes.texi (utimes): Likewise.
37950         * tests/test-open.h (test_open): Add parameters, and test symlink
37951         handling.
37952         * tests/test-open.c (main): Adjust caller.
37953         * tests/test-fcntl-safer.c (main): Likewise.
37954         * modules/open-tests (Depends-on): Add stdbool, symlink.
37955         * modules/fcntl-safer-tests (Depends-on): Likewise.
37956         * tests/test-openat.c (main): Add test-open tests.
37957
37958         stat: detect FreeBSD bug
37959         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
37960         symlink.
37961         * doc/posix-functions/stat.texi (stat): Document the bug.
37962         * tests/test-stat.h (test_stat_func): Add argument.
37963         * tests/test-stat.c (main): Adjust caller.
37964         * tests/test-fstatat.c (main): Likewise.
37965         * modules/stat-tests (Depends-on): Add stdbool, symlink.
37966         Reported by Jim Meyering.
37967
37968 2009-11-09  James Youngman  <jay@gnu.org>
37969
37970         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
37971         * lib/strftime.c: Correct placement of #include "ignore-value.h".
37972
37973 2009-11-08  Jim Meyering  <meyering@redhat.com>
37974
37975         utimens: remove invalid futimesat call
37976         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
37977         It used the file descriptor of the target file as the DIR_FD
37978         parameter and NULL as the file name.  That caused failure with
37979         errno == EFAULT on FreeBSD-8.0-rc2
37980
37981 2009-11-07  Eric Blake  <ebb9@byu.net>
37982
37983         fflush, freadseek: use fseeko, not fseek
37984         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
37985         (clear_ungetc_buffer): Avoid potential problems on large files.
37986         * lib/freadseek.c (freadseek): Likewise.
37987         * modules/freadseek (Depends-on): Add fseeko.
37988         * modules/fseek (configure.ac): Set a witness.
37989         * tests/test-fflush.c (main): Use fseeko.
37990         * tests/test-fpurge.c (fseek): Disable link warning.
37991         * tests/test-freadable.c (fseek): Likewise.
37992         * tests/test-freading.c (fseek): Likewise.
37993         * tests/test-fseeko.c (fseek): Likewise.
37994         * tests/test-ftell.c (fseek): Likewise.
37995         * tests/test-ftello.c (fseek): Likewise.
37996         * tests/test-fwritable.c (fseek): Likewise.
37997         * tests/test-fwriting.c (fseek): Likewise.
37998
37999 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38000
38001         * modules/memchr (Depends-on): Drop getpagesize dependency.
38002
38003 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38004
38005         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
38006         Reported by Ludovic Courtès.
38007         * build-aux/pmccabe2html: Improve example usage.
38008         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
38009
38010 2009-11-06  Jim Meyering  <meyering@redhat.com>
38011
38012         do-release-commit-and-tag: New module.
38013         Automate the release-commit and tag process.
38014         * build-aux/do-release-commit-and-tag: New script, from coreutils.
38015         * modules/do-release-commit-and-tag: New file.
38016         * MODULES.html.sh (Support for maintaining and releasing): Add it.
38017
38018 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38019
38020         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
38021         because test-select.c uses inet_pton.
38022
38023 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38024
38025         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
38026         GETADDRINFO_LIB.  Bump serial number.
38027         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
38028         Suggested by Eric Blake <ebb9@byu.net>.
38029
38030 2009-11-05  Eric Blake  <ebb9@byu.net>
38031
38032         strtod: detect darwin bug
38033         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
38034         Reported by Leo Davis.
38035
38036         freopen-safer: new module
38037         * modules/freopen-safer: New module.
38038         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
38039         * lib/freopen-safer.c (freopen_safer): New file.
38040         * lib/stdio-safer.h (freopen_safer): New declaration.
38041         * lib/stdio--.h (freopen): New override.
38042         * MODULES.html.sh (File stream based Input/Output): Mention it.
38043         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
38044         freopen-safer module.
38045         * doc/posix-functions/stderr.texi (stderr): Likewise.
38046         * doc/posix-functions/stdin.texi (stdin): Likewise.
38047         * doc/posix-functions/stdout.texi (stdout): Likewise.
38048         * modules/freopen-safer-tests: New test.
38049         * tests/test-reopen-safer.c: New file.
38050
38051 2009-11-05  Jim Meyering  <meyering@redhat.com>
38052
38053         maint.mk: Prohibit inclusion of "close-stream.h" without use.
38054         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
38055
38056 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38057
38058         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
38059
38060 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38061
38062         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
38063
38064 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38065
38066         Fix link error.
38067         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
38068         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38069
38070 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38071
38072         * tests/test-func.c: Also test value of __func__.
38073
38074 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38075
38076         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
38077         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
38078
38079 2009-11-05  Bruno Haible  <bruno@clisp.org>
38080
38081         Fix link error.
38082         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
38083         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38084         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
38085
38086 2009-11-05  Bruno Haible  <bruno@clisp.org>
38087
38088         Tests for module 'inet_pton'.
38089         * modules/inet_pton-tests: New file.
38090         * tests/test-inet_pton.c: New file.
38091
38092 2009-11-05  Bruno Haible  <bruno@clisp.org>
38093
38094         Tests for module 'inet_ntop'.
38095         * modules/inet_ntop-tests: New file.
38096         * tests/test-inet_ntop.c: New file.
38097
38098 2009-11-04  Eric Blake  <ebb9@byu.net>
38099
38100         stdlib-safer: wrap all mkstemp variants
38101         * modules/mkostemp (configure.ac): Set witness.
38102         * modules/mkostemps (configure.ac): Likewise.
38103         * modules/mkstemps (configure.ac): Likewise.
38104         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
38105         (mkstemps_safer): Wrap more functions.
38106         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
38107         wrapping.
38108         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
38109         (mkstemps_safer): Implement the wrappers.
38110
38111         mkstemps, mkostemps: new modules
38112         * modules/mkostemps: New module.
38113         * modules/mkstemps: Likewise.
38114         * lib/mkostemps.c (mkostemps): New file.
38115         * lib/mkstemps.c (mkstemps): Likewise.
38116         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
38117         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
38118         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
38119         * modules/stdlib (Makefile.am): Substitute them.
38120         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
38121         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
38122         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
38123         * doc/gnulib.texi (Glibc stdlib.h): Include them.
38124         * MODULES.html.sh (File system functions): Mention them.
38125
38126         tempname: resync from glibc
38127         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
38128         same values for __GT_FILE as glibc.  Abort even when assertions
38129         are disabled.
38130         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
38131         match its value otherwise.  Allow idempotent inclusion.
38132         * lib/mkdtemp.c (mkdtemp): Adjust caller.
38133         * lib/mkostemp.c (mkostemp): Likewise.
38134         * lib/mkstemp.c (mkstemp): Likewise.
38135         * lib/tmpfile.c (tmpfile): Likewise.
38136         * NEWS: Document this.
38137
38138         utimens: fix use of futimens on older Linux
38139         * lib/utimens.c (fdutimens): Use updated, rather than original,
38140         timespec to avoid bug in older Linux kernel.
38141         Reported by Simon Josefsson.
38142
38143 2009-11-04  Bruno Haible  <bruno@clisp.org>
38144
38145         Make num_processors more flexible and consistent.
38146         * lib/nproc.h (enum nproc_query): New type.
38147         (num_processors): Add a 'query' argument.
38148         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
38149         (num_processors): Add a 'query' argument. Test the value of the
38150         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
38151         mingw, count the number of CPUs available for the current process.
38152         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
38153         Check for sched_getaffinity and sched_getaffinity_np.
38154         * modules/nproc (Depends-on): Add c-ctype, extensions.
38155         * NEWS: Mention the change.
38156
38157 2009-11-03  Bruno Haible  <bruno@clisp.org>
38158
38159         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
38160
38161 2009-11-03  Jim Meyering  <meyering@redhat.com>
38162
38163         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
38164         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
38165         if it is defined.
38166
38167 2009-11-02  Eric Blake  <ebb9@byu.net>
38168
38169         mktime, timegm: share common declaration
38170         * lib/mktime-internal.h: New file.
38171         * lib/mktime.c: Use it rather than open-coding a declaration.
38172         * lib/timegm.c: Likewise.
38173         * modules/mktime (Files): Ship it.
38174         * modules/timegm (Files): Likewise.
38175         Suggested by Bruno Haible.
38176
38177         test-update-copyright: update test to match script changes
38178         * tests/test-update-copyright.sh: Avoid hard-coding perl
38179         location.  Don't update *.bak created by earlier runs.
38180
38181 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
38182             Simon Josefsson  <simon@josefsson.org>
38183             Bruno Haible  <bruno@clisp.org>
38184
38185         Fix link error on Solaris 8.
38186         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
38187         also in libnsl. Define also INET_PTON_LIB.
38188         * modules/inet_pton (Link): New section.
38189
38190 2009-11-02  Simon Josefsson  <simon@josefsson.org>
38191             Bruno Haible  <bruno@clisp.org>
38192
38193         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
38194         * modules/inet_ntop (Link): New section.
38195         Reported by Boyan Kasarov <bkasarov@gmail.com>.
38196
38197 2009-11-02  Eric Blake  <ebb9@byu.net>
38198
38199         maint: avoid compiler warnings in m4 macros
38200         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
38201         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
38202
38203 2009-11-02  Simon Josefsson  <simon@josefsson.org>
38204
38205         * m4/pmccabe2html.m4: Remove file.
38206         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
38207         function.  Change maintainer.
38208         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
38209         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
38210         Courtès).
38211
38212 2009-10-31  Eric Blake  <ebb9@byu.net>
38213
38214         fseeko: fix m4 regression
38215         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
38216         regression from 2009-10-27.
38217         Reported by Ralf Wildenhues.
38218
38219 2009-10-31  Jim Meyering  <meyering@redhat.com>
38220
38221         inttostr: aesthetics and improved (compile-time) safety
38222         Define inttype_is_signed rather than inttype_is_unsigned,
38223         since the sole use is via "#if inttype_is_signed".
38224         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
38225         inttype_is_unsigned.
38226         * lib/offtostr.c (inttype_is_signed): Likewise.
38227         * lib/uinttostr.c (inttype_is_signed): Likewise.
38228         * lib/umaxtostr.c (inttype_is_signed): Likewise.
38229         * lib/inttostr.c (inttostr): Use verify to cross-check the
38230         inttype_is_signed value and the signedness of the actual type.
38231         * modules/inttostr (Depends-on): Add verify.
38232
38233 2009-10-30  Eric Blake  <ebb9@byu.net>
38234
38235         build: avoid compiler warnings
38236         * lib/fchmodat.c (lchmod): Mark unused variables.
38237         * lib/getopt.c (_getopt_initialize): Likewise.
38238         * lib/mktime.c (__mktime_internal): Provide prototype.
38239         * lib/inttostr.c (inttostr): Avoid compiler warning even with
38240         older gcc that do not understand #pragma GCC diagnostic.
38241         * lib/uinttostr.c (inttype_is_unsigned): Define.
38242         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
38243
38244 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
38245
38246         stat: fix compilation on AIX
38247         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
38248         only see struct stat64.
38249
38250 2009-10-30  Eric Blake  <ebb9@byu.net>
38251
38252         exclude: make more robust
38253         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
38254         rather than masking a coding bug.
38255         Suggested by Bruno Haible.
38256
38257 2009-10-30  Jim Meyering  <meyering@redhat.com>
38258
38259         perl scripts: remove #!/usr/bin/perl in favor of more portable...
38260         Rather than putting #!/usr/bin/perl on the first line,
38261         start with a variant of what's recommended by "man perlrun" that
38262         invokes the first "perl" program from your shell's search path.
38263         * build-aux/gitlog-to-changelog: Replace #!... as above.
38264         Add a "Local Variables" perl mode setting.
38265         Prompted by a patch from Ludovic Courtès.
38266         Improved by Eric Blake.
38267         * build-aux/useless-if-before-free: Likewise.
38268         * build-aux/announce-gen: Likewise.
38269         * build-aux/update-copyright: Likewise.
38270
38271 2009-10-29  Eric Blake  <ebb9@byu.net>
38272
38273         filenamecat-lgpl: adjust clients
38274         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
38275         filenamecat.
38276         * modules/renameat (Depends-on): Likewise.
38277
38278         filenamecat: split into filenamecat-lgpl
38279         * modules/filenamecat-lgpl: New module.
38280         * modules/filenamecat (Files): Move library-safe files into
38281         filenamecat-lgpl.
38282         (Depends-on): Add filenamecat-lgpl.
38283         (configure.ac): Declare witness.
38284         * lib/filenamecat.h (file_name_concat): Only declare when using
38285         GPL module.
38286         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
38287         Move...
38288         * lib/filenamecat-lgpl.c: ...into new file.
38289         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
38290         (gl_FILE_NAME_CONCAT): Use it.
38291         * MODULES.html.sh (File system functions): Mention new module.
38292
38293         argp: avoid memory leak
38294         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
38295         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
38296         base_name, since the latter malloc()s and can call exit().
38297         Leak introduced 2006-07-03.
38298
38299         dirname-lgpl: adjust clients that don't need full dirname
38300         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
38301         * modules/filenamecat (Depends-on): Likewise.
38302         * modules/linkat (Depends-on): Likewise.
38303         * modules/mkancesdirs (Depends-on): Likewise.
38304         * modules/mkdir (Depends-on): Likewise.
38305         * modules/openat (Depends-on): Likewise.
38306         * modules/savewd (Depends-on): Likewise.
38307         * modules/rename (Depends-on): Likewise.
38308         (License): Relax license.
38309         * modules/mkdir-tests (Depends-on): Drop progname.
38310         (Makefile.am): Delete unneeded LDADD.
38311         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
38312
38313         dirname: split into dirname-lgpl
38314         * modules/dirname-lgpl: New module.
38315         * modules/dirname (Files): Move library-safe files into
38316         dirname-lgpl.
38317         (Depends-on): Add dirname-lgpl.
38318         (configure.ac): Declare witness.
38319         * modules/double-slash-root (License): Relax license.
38320         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
38321         module.
38322         * lib/dirname.c (dir_len, mdir_name): Move...
38323         * lib/dirname-lgpl.c: ...into new file.
38324         * lib/basename.c (last_component, base_len): Move...
38325         * lib/basename-lgpl.c: ...into new file.
38326         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
38327         (gl_DIRNAME): Use it.
38328         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
38329         Mention new module.
38330         * modules/dirname-tests (Depends-on): Add progname.
38331         * tests/test-dirname.c (program_name): Delete.
38332
38333         mkdir: make safe for libraries
38334         * modules/mkdir (Depends-on): Drop xalloc.
38335         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
38336         exit.
38337
38338         tests: avoid some compiler warnings
38339         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
38340         literals.
38341         * tests/test-memchr.c (main): Avoid type mismatch.
38342         * tests/test-arpa_inet.c (main): Avoid unused parameters.
38343         * tests/test-base64.c (main): Likewise.
38344         * tests/test-getdelim.c (main): Likewise.
38345         * tests/test-gethostname.c (main): Likewise.
38346         * tests/test-getline.c (main): Likewise.
38347         * tests/test-netinet_in.c (main): Likewise.
38348         * tests/test-select.c (open_server_socket, main): Likewise.
38349         * tests/test-select-stdin.c (main): Likewise.
38350         * tests/test-sockets.c (main): Likewise.
38351         * tests/test-strsignal.c (main): Likewise.
38352         * tests/test-sys_select.c (main): Likewise.
38353         * tests/test-sys_socket.c (main): Likewise.
38354         * tests/test-u64.c (main): Likewise.
38355         * tests/test-xfprintf-posix.c (main): Likewise.
38356         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
38357
38358         sockets: avoid compiler warning
38359         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
38360
38361         maint: detect usage(1) and other suspicious exits
38362         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
38363
38364 2009-10-29  Jim Meyering  <meyering@redhat.com>
38365
38366         timespec: long-to-int truncation could make timespec_cmp malfunction
38367         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
38368         a multiple of 2^32 nanoseconds as no difference.
38369
38370 2009-10-28  Jim Meyering  <meyering@redhat.com>
38371
38372         fprintftime: wrap macro code argument in "do {...} while(0)"
38373         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
38374         cpy macro must be a statement that can be followed by a semicolon.
38375         Now that the else clause contains a comment and is hence longer
38376         than one line, I require curly braces.  That in turn requires
38377         that we wrap this code block in the standard do...while(0).
38378
38379         fprintftime: remove stray semicolon from previous change
38380         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
38381
38382         fprintftime: avoid a warning about ignored fwrite return value
38383         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
38384         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
38385         that is unsafe.
38386         * modules/fprintftime (Depends-on): Add ignore-value.
38387
38388         exclude: avoid an unwarranted warning
38389         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
38390
38391 2009-10-27  Eric Blake  <ebb9@byu.net>
38392
38393         fseek: avoid compilation failure when fflush is replaced
38394         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
38395         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
38396         module is in use.
38397         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
38398         module is not in use; since REPLACE_FSEEK worked otherwise.
38399         (GNULIB_FTELLO): Likewise for ftell.
38400         Reported by Ian Beckwith and others.
38401
38402 2009-10-27  Bruno Haible  <bruno@clisp.org>
38403
38404         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
38405         Reported by Jim Meyering.
38406
38407 2009-10-27  Jim Meyering  <jim@meyering.net>
38408             Bruno Haible  <bruno@clisp.org>
38409
38410         Avoid warning despite dropping the return value of fwrite.
38411         * lib/unicodeio.c: Include ignore-value.h.
38412         (fwrite_success_callback): Explicitly ignore fwrite's return value.
38413         * modules/unicodeio (Depends-on): Add ignore-value.
38414
38415 2009-10-26  Eric Blake  <ebb9@byu.net>
38416
38417         areadlinkat: fix fallback path
38418         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
38419         pointer and zero.
38420
38421 2009-10-22  Pádraig Brady  <P@draigBrady.com>
38422
38423         Use a better IO block size for modern systems
38424         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
38425         * lib/md2.c: Likewise.
38426         * lib/md4.c: Likewise.
38427         * lib/md5.c: Likewise.
38428         * lib/sha1.c: Likewise.
38429         * lib/sha256.c: Likewise.
38430         * lib/sha512.c: Likewise.
38431
38432 2009-10-22  Eric Blake  <ebb9@byu.net>
38433
38434         tests: avoid several compiler warnings
38435         * tests/test-getcwd.c (main): Avoid buffer underflow.
38436         * tests/test-getdate.c (main): String literals are not safe with
38437         putenv, so use setenv.  Declare unused argument.
38438         * modules/getdate-tests (Depends-on): Add setenv.
38439         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
38440         problems with string literals in char *.
38441         * tests/test-hash.c (main): Avoid shadowing declaration.
38442         (insert_new): Treat string literals as char const *.
38443         * tests/test-getopt.h (test_getopt): Likewise.
38444         (getopt_loop): Alter types to minimize casting elsewhere.
38445         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
38446         (test_getopt_long_posix): Likewise.
38447         (do_getopt_long): Add wrapper to minimize casting.
38448         * tests/test-atexit.c (clear_temp_file): Use void.
38449         * tests/test-areadlink-with-size.c (main): Declare unused
38450         arguments.
38451         * tests/test-areadlink.c (main): Likewise.
38452         * tests/test-areadlinkat-with-size.c (main): Likewise.
38453         * tests/test-areadlinkat.c (main): Likewise.
38454         * tests/test-canonicalize-lgpl.c (main): Likewise.
38455         * tests/test-canonicalize.c (main): Likewise.
38456         * tests/test-dirent-safer.c (main): Likewise.
38457         * tests/test-dirname.c (main): Likewise.
38458         * tests/test-dup2.c (main): Likewise.
38459         * tests/test-fchdir.c (main): Likewise.
38460         * tests/test-fcntl-h.c (main): Likewise.
38461         * tests/test-fcntl-safer.c (main): Likewise.
38462         * tests/test-fdopendir.c (main): Likewise.
38463         * tests/test-fdutimensat.c (main): Likewise.
38464         * tests/test-fflush.c (main): Likewise.
38465         * tests/test-filenamecat.c (main): Likewise.
38466         * tests/test-filevercmp.c (main): Likewise.
38467         * tests/test-fopen-safer.c (main): Likewise.
38468         * tests/test-fopen.c (main): Likewise.
38469         * tests/test-fpending.c (main): Likewise.
38470         * tests/test-fpurge.c (main): Likewise.
38471         * tests/test-freading.c (main): Likewise.
38472         * tests/test-fstatat.c (main): Likewise.
38473         * tests/test-fsync.c (main): Likewise.
38474         * tests/test-futimens.c (main): Likewise.
38475         * tests/test-getndelim2.c (main): Likewise.
38476         * tests/test-gettimeofday.c (main): Likewise.
38477         * tests/test-getopt.c (main): Likewise.
38478         * tests/test-i-ring.c (main): Likewise.
38479         * tests/test-inttypes.c (main): Likewise.
38480         * tests/test-link.c (main): Likewise.
38481         * tests/test-lstat.c (main): Likewise.
38482         * tests/test-math.c (main): Likewise.
38483         * tests/test-md5.c (main): Likewise.
38484         * tests/test-memchr2.c (main): Likewise.
38485         * tests/test-memrchr.c (main): Likewise.
38486         * tests/test-mkdir.c (main): Likewise.
38487         * tests/test-mkdirat.c (main): Likewise.
38488         * tests/test-mkfifoat.c (main): Likewise.
38489         * tests/test-open.c (main): Likewise.
38490         * tests/test-openat-safer.c (main): Likewise.
38491         * tests/test-openat.c (main): Likewise.
38492         * tests/test-quotearg.c (main): Likewise.
38493         * tests/test-rawmemchr.c (main): Likewise.
38494         * tests/test-readlink.c (main): Likewise.
38495         * tests/test-remove.c (main): Likewise.
38496         * tests/test-rename.c (main): Likewise.
38497         * tests/test-renameat.c (main): Likewise.
38498         * tests/test-rmdir.c (main): Likewise.
38499         * tests/test-sha1.c (main): Likewise.
38500         * tests/test-signal.c (main): Likewise.
38501         * tests/test-sigaction.c (main): Likewise.
38502         * tests/test-stat.c (main): Likewise.
38503         * tests/test-stat-time.c (main): Likewise.
38504         * tests/test-stddef.c (main): Likewise.
38505         * tests/test-stdint.c (main): Likewise.
38506         * tests/test-stdio.c (main): Likewise.
38507         * tests/test-stdlib.c (main): Likewise.
38508         * tests/test-strchrnul.c (main): Likewise.
38509         * tests/test-strerror.c (main): Likewise.
38510         * tests/test-string.c (main): Likewise.
38511         * tests/test-strtod.c (main): Likewise.
38512         * tests/test-strverscmp.c (main): Likewise.
38513         * tests/test-symlink.c (main): Likewise.
38514         * tests/test-symlinkat.c (main): Likewise.
38515         * tests/test-sys_stat.c (main): Likewise.
38516         * tests/test-sys_time.c (main): Likewise.
38517         * tests/test-time.c (main): Likewise.
38518         * tests/test-unistd.c (main): Likewise.
38519         * tests/test-unlink.c (main): Likewise.
38520         * tests/test-unlinkat.c (main): Likewise.
38521         * tests/test-utimens.c (main): Likewise.
38522         * tests/test-utimensat.c (main): Likewise.
38523         * tests/test-version-etc.c (main): Likewise.
38524         * tests/test-wchar.c (main): Likewise.
38525         * tests/test-wctype.c (main): Likewise.
38526         * tests/test-xprintf-posix.c (main): Likewise.
38527         * tests/test-posixtm.c (main): Likewise.
38528         (STREQ): Delete unused macro.
38529         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
38530         shadowed variables.
38531         * tests/test-memchr.c (main): Likewise.
38532
38533 2009-10-21  Eric Blake  <ebb9@byu.net>
38534
38535         areadlinkat: avoid failure on older glibc
38536         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
38537         rather than mis-comparing 0 against FUNC_RESULT of char*.
38538
38539 2009-10-21  Bruno Haible  <bruno@clisp.org>
38540
38541         * modules/stpncpy (License): Relicense under LGPLv2+.
38542         Reported by David Lutterkort <lutter@redhat.com>.
38543
38544 2009-10-20  Eric Blake  <ebb9@byu.net>
38545
38546         utimensat: work around Solaris 9 bug
38547         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
38548         has trailing slash bugs.
38549         * tests/test-lutimens.h (test_lutimens): Enhance test.
38550         * tests/test-utimens.h (test_utimens): Likewise.
38551         * doc/posix-functions/utime.texi (utime): Enhance documentation.
38552         * doc/posix-functions/utimes.texi (utimes): Likewise.
38553         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
38554         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
38555         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
38556         * doc/posix-functions/futimens.texi (futimens): Likewise.
38557
38558         fdutimensat: new module
38559         * modules/fdutimensat: New file.
38560         * lib/fdutimensat.c (fdutimensat): Likewise.
38561         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
38562         * MODULES.html.sh (File system functions): Mention module.
38563         * modules/fdutimensat-tests: New test.
38564         * tests/test-fdutimensat.c: Likewise.
38565
38566         doc: regenerate INSTALL
38567         * doc/INSTALL: Reflect recent autoconf update.
38568         * doc/INSTALL.ISO: Likewise.
38569         * doc/INSTALL.UTF-8: Likewise.
38570
38571 2009-10-20  Pádraig Brady  <P@draigBrady.com>
38572
38573         acl: warn if ACL support is not detected
38574         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
38575
38576 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
38577
38578         * lib/nproc.h: Add extern "C" block for C++.
38579
38580 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
38581             Bruno Haible  <bruno@clisp.org>
38582
38583         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
38584         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
38585         * doc/posix-functions/isalpha.texi: Likewise.
38586         * doc/posix-functions/isblank.texi: Likewise.
38587         * doc/posix-functions/iscntrl.texi: Likewise.
38588         * doc/posix-functions/isdigit.texi: Likewise.
38589         * doc/posix-functions/isgraph.texi: Likewise.
38590         * doc/posix-functions/islower.texi: Likewise.
38591         * doc/posix-functions/isprint.texi: Likewise.
38592         * doc/posix-functions/ispunct.texi: Likewise.
38593         * doc/posix-functions/isspace.texi: Likewise.
38594         * doc/posix-functions/isupper.texi: Likewise.
38595         * doc/posix-functions/isxdigit.texi: Likewise.
38596
38597 2009-10-18  Bruno Haible  <bruno@clisp.org>
38598
38599         Tests for module 'isblank'.
38600         * modules/isblank-tests: New file.
38601         * tests/test-isblank.c: New file.
38602
38603         New module 'isblank'.
38604         * lib/isblank.c: New file.
38605         * m4/isblank.m4: New file.
38606         * modules/isblank: New file.
38607         * doc/posix-functions/isblank.texi: Mention the new module.
38608
38609 2009-10-18  Bruno Haible  <bruno@clisp.org>
38610
38611         New module 'ctype'.
38612         * lib/ctype.in.h: New file.
38613         * m4/ctype.m4: New file.
38614         * modules/ctype: New file.
38615         * doc/posix-headers/ctype.texi: Mention the new module.
38616
38617 2009-10-18  Jim Meyering  <meyering@redhat.com>
38618
38619         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
38620         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
38621         right after its initialization, rather than farther down.
38622         Keeping these in close proximity makes it easier to ensure
38623         that each such variable is initialized.  E.g.,
38624
38625             LIB_CLOCK_GETTIME=
38626             AC_SUBST([LIB_CLOCK_GETTIME])
38627
38628         This change also increments these serial numbers.
38629         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
38630         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
38631         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
38632
38633 2009-10-18  Bruno Haible  <bruno@clisp.org>
38634
38635         Don't let environment variables perturb build.
38636         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
38637         (gl_PREREQ_GETHRXTIME): ... not here.
38638
38639 2009-10-18  Bruno Haible  <bruno@clisp.org>
38640
38641         Avoid symlink attack in localcharset module.
38642         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
38643         (O_NOFOLLOW): Define fallback.
38644         (get_charset_aliases): Don't open the file if it is a symbolic link.
38645         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
38646         gl_FCNTL_H.
38647         (gl_FCNTL_H): Require it.
38648         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
38649         * modules/localcharset (Files): Add m4/fcntl_h.m4.
38650         Reported by Fergal Glynn <fglynn@veracode.com>.
38651
38652 2009-10-18  Bruno Haible  <bruno@clisp.org>
38653
38654         Implement nproc for mingw.
38655         * lib/nproc.c: Include <windows.h>
38656         (num_processors): On native Windows platforms, try GetSystemInfo.
38657
38658 2009-10-18  Bruno Haible  <bruno@clisp.org>
38659
38660         Implement nproc for IRIX.
38661         * lib/nproc.c: Include <sys/sysmp.h>.
38662         (num_processors): On IRIX systems, try sysmp.
38663         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
38664
38665 2009-10-18  Bruno Haible  <bruno@clisp.org>
38666
38667         Implement nproc for HP-UX.
38668         * lib/nproc.c: Include <sys/pstat.h>
38669         (num_processors): On HP-UX systems, try pstat_getdynamic.
38670         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
38671         pstat_getdynamic.
38672
38673 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
38674             Bruno Haible  <bruno@clisp.org>
38675
38676         Implement nproc for NetBSD, OpenBSD.
38677         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
38678         (ARRAY_SIZE): New macro.
38679         (num_processors): On BSD systems, try sysctl of HW_NCPU.
38680         * m4/nproc.m4: New file.
38681         * modules/nproc (Files): Add m4/nproc.m4.
38682         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
38683         (Makefile.am): Instead, augment lib_SOURCES.
38684
38685 2009-10-18  Bruno Haible  <bruno@clisp.org>
38686
38687         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
38688         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
38689         sys/param.h.
38690
38691 2009-10-16  Eric Blake  <ebb9@byu.net>
38692
38693         utimensat: new module
38694         * modules/utimensat: New file.
38695         * lib/utimensat.c (utimensat): Likewise.
38696         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
38697         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
38698         so we can work around Linux bugs.
38699         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
38700         * modules/sys_stat (Makefile.am): Substitute them.
38701         * lib/sys_stat.in.h (utimensat): Declare it.
38702         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
38703         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
38704         * modules/utimensat-tests: New test.
38705         * tests/test-utimensat.c: Likewise.
38706
38707         utimens: let lutimens work on non-symlinks
38708         * lib/utimens.c (lutimens): Fall back to utimens rather than
38709         failing with ENOSYS, when file is not a symlink.
38710         (utimens): Reduce redirection.
38711         * tests/test-lutimens.h (test_lutimens): Update test to cover
38712         non-symlinks.
38713         * tests/test-utimens.h (test_utimens): Update test to cover
38714         symlinks.
38715         * tests/test-utimens.c (main): Update caller.
38716
38717         utimens: cache whether utimensat syscall works
38718         * lib/utimens.c (utimensat_works_really): New cache variable.
38719         (fdutimens, lutimens): Use it to avoid failing syscall.
38720
38721         test-stat-time, test-utimens: improve portability
38722         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
38723         ext4 on alpha, and for cygwin.
38724         * tests/test-utimens-common.h: New file.
38725         (nap): Factor delays into single function.
38726         * tests/test-lutimens.h (test_lutimens): Use new header.
38727         * tests/test-futimens.h (test_futimens): Likewise.
38728         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
38729         timestamps to occur from same machine, as was done previously for
38730         test_utimens.
38731         * modules/utimens-tests (Files): Ship new file.
38732         * modules/futimens-tests (Files): Likewise.
38733         Reported in part by Jim Meyering.
38734
38735         sys_stat: sort replacement declarations
38736         * lib/sys_stat.in.h: Sort declarations.
38737         * lib/futimens.c (futimens): Fix typo.
38738
38739 2009-10-15  Jim Meyering  <meyering@redhat.com>
38740
38741         don't let environment settings perturb build
38742         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
38743         could cause a configure-time and/or build-time malfunction.
38744         Typically, a configure-time function-in-library test is performed
38745         via code like this:
38746
38747           LIB_VAR=
38748           AC_SUBST([LIB_VAR])
38749           prefix_saved_LIBS=$LIBS
38750             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
38751                        [test "$ac_cv_search_FUNC" = "none required" ||
38752                         LIB_VAR=$ac_cv_search_FUNC])
38753           LIBS=$prefix_saved_LIBS
38754
38755         However, in each of the files affected by this change, the LIB_VAR=
38756         initialization was omitted.  Thus, when set in the environment, its
38757         value would propagate into generated Makefiles when FUNC is not found
38758         in LIB_NAME.
38759         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
38760         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
38761         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
38762
38763 2009-10-14  Eric Blake  <ebb9@byu.net>
38764
38765         fchdir: avoid infinite recursion in mingw
38766         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
38767         recursing.
38768
38769         test-stat-time: port to mingw
38770         * tests/test-stat-time.c (force_unlink): Return a value.
38771         (test_ctime) [W32]: Fix compilation error.
38772         (nap): Don't call usleep with too large an argument.  Use
38773         force_unlink.
38774         * doc/pastposix-functions/usleep.texi (usleep): Document the
38775         portability issue.
38776
38777 2009-10-13  Jim Meyering  <meyering@redhat.com>
38778
38779         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
38780         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
38781         * modules/pipe-filter-ii: Likewise.
38782         * modules/sys_socket-tests: Likewise.
38783         * modules/tsearch-tests: Likewise.
38784         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
38785         (check): Depend on it.
38786
38787 2009-10-12  Eric Blake  <ebb9@byu.net>
38788
38789         utimens-tests: port to NFS file systems
38790         * tests/test-utimens.h (test_utimens): Refactor utimecmp
38791         comparisons to avoid spurious failures from timestamp drift
38792         between NFS machines.
38793
38794 2009-10-12  Eric Blake  <ebb9@byu.net>
38795
38796         stat-time-tests: minor cleanups
38797         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
38798         * tests/test-stat-time.c (nap): Separate assignment from call.
38799         Suggested by Paolo Bonzini and Bruno Haible.
38800
38801         sys_stat: guarantee struct timespec
38802         * lib/sys_stat.in.h (includes): Always include <time.h>
38803         * modules/sys_stat (Depends-on): Add time.
38804         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
38805         mode_t permission values.
38806         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
38807         get at subsecond timestamps.
38808
38809 2009-10-10  Eric Blake  <ebb9@byu.net>
38810
38811         futimens: new module
38812         * modules/futimens: New file.
38813         * lib/futimens.c (futimens): Likewise.
38814         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
38815         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
38816         we can work around Linux bugs.
38817         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
38818         * modules/sys_stat (Makefile.am): Substitute them.
38819         * lib/sys_stat.in.h (futimens): Declare it.
38820         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
38821         * doc/posix-functions/futimens.texi (futimens): Likewise.
38822         * modules/futimens-tests: New test.
38823         * tests/test-futimens.c: Likewise.
38824
38825         utimens: introduce fdutimens
38826         * lib/utimens.h (fdutimens): New prototype.
38827         * lib/utimens.c (gl_futimens): Move guts...
38828         (fdutimens): ...to new interface.
38829         * tests/test-utimens.c (do_fdutimens): Use it.
38830
38831         utimens: add UTIME_NOW and UTIME_OMIT support
38832         * lib/utimens.c (validate_timespec, update_timespec): New helper
38833         functions.
38834         (gl_futimens, lutimens): Use them.
38835         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
38836         stdbool, sys_stat.
38837         (Link): Mention resulting library dependency.
38838         * modules/utimecmp (Link): Likewise.
38839         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
38840         (Makefile.am): Pick up library dependency.
38841         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
38842         definition.
38843         * tests/test-sys_stat.c: Test the definitions.
38844         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
38845         * NEWS: Document library dependency.
38846
38847         utimecmp: support symlink timestamps
38848         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
38849         hashing when possible.  Use pathconf when available.
38850         (SYSCALL_RESOLUTION): Recognize tighter resolution.
38851         * modules/utimecmp (Depends-on): Add lstat.
38852
38853         utimens: add lutimens interface
38854         * lib/utimens.c (lutimens): New function.
38855         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
38856         * lib/utimens.h (lutimens): Declare new interface.
38857         * tests/test-utimens.c (main): Enhance test.
38858         * tests/test-lutimens.h (test_lutimens): New file.
38859         * modules/utimens-tests (Files): Distribute it.
38860         (Depends-on): Add symlink.
38861         (configure.ac): Check for usleep.
38862
38863         utimens: validate futimens usage
38864         * lib/utimens.c (gl_futimens): Require valid fd up front, using
38865         fewer syscalls on failure later on.  Avoid compiler warning on
38866         mingw.
38867         * modules/utimens (Depends-on): Add dup2.
38868
38869         utimens: add test
38870         * modules/utimens-tests: New test.
38871         * tests/test-utimens.h: New file.
38872         * tests/test-futimens.h: Likewise.
38873         * tests/test-utimens.c: Likewise.
38874
38875         doc: mention timestamp portability issues
38876         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
38877         instead.
38878         * doc/posix-functions/utime.texi (utime): Likewise.
38879         * doc/posix-functions/utimes.texi (utimes): Likewise.
38880         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
38881         instead.
38882         * doc/posix-functions/futimens.texi (futimens): Mention utimens
38883         module.
38884         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
38885         Mention weakness with symlink timestamps.
38886         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
38887         to utimensat/futimens instead.
38888         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
38889
38890         test-dup2: enhance test
38891         * tests/test-dup2.c (main): Also check AT_FDCWD.
38892
38893         test-stat-time: avoid more spurious failures
38894         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
38895         xfs; and avoid race if the two timestamps cross quantization edge.
38896
38897         relocatable: prefer 'file system' over 'filesystem'
38898         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
38899         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
38900         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
38901         * doc/relocatable.texi (Enabling Relocatability): Likewise.
38902         * lib/relocatable.c (compute_curr_prefix): Likewise.
38903
38904 2009-10-10  Jim Meyering  <meyering@redhat.com>
38905
38906         stat-time-tests: check for the usleep function
38907         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
38908
38909 2009-10-10  Bruno Haible  <bruno@clisp.org>
38910
38911         * modules/xnanosleep: Put the Link section after the Include section.
38912
38913 2009-10-09  Eric Blake  <ebb9@byu.net>
38914
38915         dup2: work around FreeBSD 6.1 bug
38916         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
38917         * doc/posix-functions/dup2.texi (dup2): Document it.
38918         Reported by Nelson H. F. Beebe and Jim Meyering.
38919
38920         test-stat-time: port to buggy NFS clients
38921         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
38922         (test_ctime): Also skip test if mtime and ctime are skewed.
38923
38924         maint: prefer 'file system' over 'filesystem'
38925         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
38926         * doc/posix-functions/lstat.texi (lstat): Likewise.
38927         * lib/file-has-acl.c (file_has_acl): Likewise.
38928         * lib/fwriteerror.c [TEST]: Likewise.
38929         * tests/test-areadlink.h (test_areadlink): Likewise.
38930         * tests/test-areadlinkat-with-size.c (main): Likewise.
38931         * tests/test-areadlinkat.c (main): Likewise.
38932         * tests/test-canonicalize-lgpl.c (main): Likewise.
38933         * tests/test-canonicalize.c (main): Likewise.
38934         * tests/test-fstatat.c (main): Likewise.
38935         * tests/test-linkat.c (main): Likewise.
38936         * tests/test-lstat.h (test_lstat_func): Likewise.
38937         * tests/test-mkdir.h (test_mkdir): Likewise.
38938         * tests/test-readlink.h (test_readlink): Likewise.
38939         * tests/test-remove.c (main): Likewise.
38940         * tests/test-rename.h (test_rename): Likewise.
38941         * tests/test-renameat.c (main): Likewise.
38942         * tests/test-rmdir.h (test_rmdir_func): Likewise.
38943         * tests/test-symlink.h (test_symlink): Likewise.
38944         * tests/test-symlinkat.c (main): Likewise.
38945         * tests/test-unlink.h (test_unlink_func): Likewise.
38946         * tests/test-unlinkat.c (main): Likewise.
38947
38948         maint: make realtime library usage explicit
38949         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
38950         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
38951         * modules/settime (Link): Likewise.
38952         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
38953
38954         test-stat-time: speed up execution
38955         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
38956         warning on mingw.
38957         (nap): New helper function.
38958         (prepare_test): Use it to reduce sleep time.
38959         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
38960         execution.
38961         * modules/stat-time-tests (configure.ac): Check for usleep.
38962
38963 2009-10-09  Jim Meyering  <meyering@redhat.com>
38964
38965         selinux-h: always use getfilecon wrappers
38966         * lib/getfilecon.c: New file.
38967         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
38968         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
38969         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
38970         (fgetfilecon): Provide a stub.
38971         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
38972         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
38973         file unconditionally.
38974         When <selinux/selinux.h> is found, arrange to use wrappers.
38975         * modules/selinux-h (Files): Add getfilecon.c.
38976         (Makefile.am): Substitute include-next-related bits
38977         into the now-always-generated selinux/selinux.h file.
38978         * doc/glibc-functions/lgetfilecon.texi: New file.
38979         * doc/glibc-functions/fgetfilecon.texi: New file.
38980         * doc/glibc-functions/getfilecon.texi: New file.
38981         * doc/glibc-functions/getfilecon-desc.texi: New file.
38982         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
38983         which to pull in the new files.
38984         * MODULES.html.sh (Misc): Add selinux-h.
38985
38986 2009-10-08  Jim Meyering  <meyering@redhat.com>
38987
38988         unistd: fix comment typo
38989         * lib/unistd.in.h (euidaccess): Fix a comment typo.
38990
38991 2009-10-08  Eric Blake  <ebb9@byu.net>
38992
38993         areadlink: use SIZE_MAX consistently
38994         * modules/areadlink (Depends-on): Add stdint.
38995         * modules/areadlink-with-size (Depends-on): Likewise.
38996         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
38997         gives NULL; drop sys/types, since unistd gives size_t; and add
38998         stdint for SIZE_MAX.
38999         (SIZE_MAX): Rely on headers.
39000         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
39001         and add stdint.
39002         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
39003         (SIZE_MAX): Likewise.
39004         (INITIAL_BUF_SIZE): Turn into enum.
39005         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
39006
39007 2009-10-08  Jim Meyering  <meyering@redhat.com>
39008
39009         areadlinkat: avoid compilation failure
39010         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
39011         Fix typo in comment.
39012
39013 2009-10-07  Eric Blake  <ebb9@byu.net>
39014
39015         areadlinkat-with-size: new module
39016         * modules/areadlinkat-with-size: New module.
39017         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
39018         * lib/areadlink.h (areadlinkat): Declare it.
39019         * MODULES.html.sh (File system functions): Mention it.
39020         * modules/areadlinkat-with-size-tests: New test.
39021         * tests/test-areadlinkat-with-size.c: New file.
39022
39023         xreadlinkat: new module
39024         * modules/xreadlinkat: New module.
39025         * lib/xreadlinkat.c (xreadlinkat): New file.
39026         * lib/xreadlink.h (xreadlinkat): Declare it.
39027         * MODULES.html.sh (File system functions): Mention it.
39028
39029         areadlinkat: new module
39030         * lib/at-func.c (FUNC_FAIL): New define.
39031         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
39032         * modules/areadlinkat: New module.
39033         * lib/linkat.c (areadlinkat): Move...
39034         * lib/areadlinkat.c (areadlinkat): ...to new file.
39035         * lib/areadlink.h (areadlinkat): Declare it.
39036         * modules/linkat (Depends-on): Add areadlinkat.
39037         * MODULES.html.sh (File system functions): Mention it.
39038         * modules/areadlinkat-tests: New test.
39039         * tests/test-areadlinkat.c: New file.
39040
39041         areadlink, areadlink-with-size: add tests
39042         * modules/areadlink-tests: New test.
39043         * modules/areadlink-with-size-tests: Likewise.
39044         * tests/test-areadlink.h: New file.
39045         * tests/test-areadlink.c: Likewise.
39046         * tests/test-areadlink-with-size.c: Likewise.
39047
39048         maint: minor cleanups
39049         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
39050         _UNUSED_PARAMETER_ instead.
39051         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
39052         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
39053         * modules/linkat-tests (Files): Distribute test-link.h.
39054
39055         openat, utimens: whitespace cleanup
39056         * lib/openat.c: Prefer space throughout, rather than mix of 8
39057         spaces vs. tabs.
39058         * lib/at-func.c: Likewise.
39059         * lib/utimens.c: Likewise.
39060
39061         openat: avoid using wrong fd
39062         * lib/openat.c (openat_permissive): Reject user's fd if saving the
39063         working directory chooses same fd.
39064         * lib/at-func.c (AT_FUNC_NAME): Likewise.
39065
39066         mkdir, mkdirat: fix cygwin 1.5.x bug
39067         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
39068         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
39069         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
39070         bug.
39071         (gl_PREREQ_MKDIR): Delete unused macro.
39072         * modules/mkdir (Files): Track file rename.
39073         (configure.ac): Update macro name.
39074         * modules/openat (Depends-on): Add mkdir.
39075         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
39076
39077         mkdir, mkdirat: add tests
39078         * modules/mkdir-tests: New test.
39079         * tests/test-mkdir.h: New file.
39080         * tests/test-mkdir.c: Likewise.
39081         * tests/test-mkdirat.c: Likewise.
39082         * modules/openat-tests (Files): Add new files.
39083         (Makefile.am): Run new test.
39084
39085 2009-10-06  Eric Blake  <ebb9@byu.net>
39086
39087         doc: tweak *at function documentation
39088         * doc/posix-functions/faccessat.texi (faccessat): Mention
39089         known issue with replacement.
39090         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
39091         * doc/posix-functions/linkat.texi (linkat): Likewise.
39092         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
39093         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
39094         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
39095         * doc/posix-functions/renameat.texi (renameat): Likewise.
39096         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
39097
39098         openat: fix GNU/Hurd bug in unlinkat
39099         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
39100         broken.
39101         * doc/posix-functions/unlink.texi (unlink): Document this.
39102         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
39103
39104         fdopendir: fix GNU/Hurd bug
39105         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
39106         allowing non-directory fds.
39107         * lib/fdopendir.c (rpl_fdopendir): Work around it.
39108         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
39109         * modules/dirent (Makefile.am): Substitute it.
39110         * lib/dirent.in.h (fdopendir): Declare replacement.
39111         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
39112         * tests/test-fdopendir.c (main): Test something other than
39113         /dev/null, since on Hurd that behaves like a directory.
39114
39115         test-symlink: port to GNU/Hurd
39116         * tests/test-symlink.h (test_symlink): Relax expected errno.
39117
39118         doc: tweak more cygwin information
39119         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
39120         now compatible with glibc.
39121         * doc/posix-functions/getopt.texi (getopt): Likewise.
39122
39123         getopt-gnu: add another test
39124         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
39125         guarantee behavior relied on by m4.
39126         * tests/test-getopt.c (main): Use it.
39127         * modules/getopt-posix-tests (Depends-on): Add setenv.
39128         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
39129
39130         getopt: fix compilation on darwin
39131         * lib/getopt.in.h (includes): Leave breadcrumbs during system
39132         include.
39133         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
39134         Reported by Ludovic Courtès.
39135
39136 2009-10-06  Bruno Haible  <bruno@clisp.org>
39137
39138         * modules/size_max (Description): Discourage its use.
39139         Reported by Simon Josefsson.
39140
39141 2009-10-06  Jim Meyering  <meyering@redhat.com>
39142
39143         linkat: avoid compilation failure
39144         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
39145
39146 2009-10-05  Eric Blake  <ebb9@byu.net>
39147
39148         linkat: support Linux 2.6.17
39149         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
39150         linkat on Linux, but allow cache variable override.
39151         * lib/linkat.c (rpl_linkat): Define override.
39152         * modules/linkat (Depends-on): Add symlinkat.
39153         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
39154         * modules/unistd (Makefile.am): Substitute it.
39155         * lib/unistd.in.h (linkat): Declare replacement.
39156         Reported by Pádraig Brady.
39157
39158         quotearg: port test to systems with C.UTF-8 locale
39159         * tests/test-quotearg.c (struct result_strings): Add another
39160         member, differentiating between C.ASCII and C.UTF-8 handling.
39161         (compare_strings): Add parameter.
39162         (main): Adjust all callers.
39163
39164         getopt: avoid clash with FreeBSD _getopt_internal
39165         * lib/getopt.in.h (_getopt_internal): Override the name.
39166         * lib/getopt_int.h (includes): Pick up any overrides.
39167         Reported by Reuben Thomas.
39168
39169         hash: allow C89 compilation
39170         * lib/hash.c (check_tuning): Move declaration before statement.
39171         Reported by Reuben Thomas.
39172
39173 2009-10-05  Karl Berry  <karl@gnu.org>
39174
39175         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
39176
39177 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
39178             Bruno Haible  <bruno@clisp.org>
39179
39180         * lib/uname.c (uname): Use a table-driven algorithm to compute
39181         Windows NT versions.
39182
39183 2009-10-04  Bruno Haible  <bruno@clisp.org>
39184
39185         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
39186         program_invocation_short_name.
39187         * modules/progname (configure.ac): Test for presence of
39188         program_invocation_short_name.
39189         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
39190
39191 2009-10-04  Bruno Haible  <bruno@clisp.org>
39192
39193         * lib/progname.c (set_program_name): Fix comment.
39194         Reported by Jim Meyering.
39195
39196 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
39197             Bruno Haible  <bruno@clisp.org>
39198
39199         * lib/uname.c: Include <string.h>.
39200         (uname): Do only one call to GetVersionEx in the common case.
39201
39202 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
39203             Bruno Haible  <bruno@clisp.org>
39204
39205         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
39206         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
39207         (uname): Add support for Windows CE and various non-x86 CPU types.
39208
39209 2009-10-03  Bruno Haible  <bruno@clisp.org>
39210
39211         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
39212         invocation to tests/configure.ac.
39213         Reported by Ian Beckwith <ianb@erislabs.net>.
39214
39215 2009-10-02  Eric Blake  <ebb9@byu.net>
39216
39217         fchdir: avoid compiler warning
39218         * lib/fchdir.c (canonicalize_file_name)
39219         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
39220
39221         test-open: support mingw errno values
39222         * tests/test-open.h (test_open): Relax test.
39223         * tests/test-fopen.h (test_fopen): Likewise.
39224         * tests/test-openat-safer.c (main): Likewise.
39225
39226         open: fix opening directory on mingw
39227         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
39228
39229         test-open: on GNU/Hurd, /dev/null is a directory
39230         * tests/test-fopen.h (main): Rename...
39231         (test_fopen): ...to this.  Use a guaranteed non-directory when
39232         confirming open behavior on trailing slash.
39233         * tests/test-openat-safer.c (main): Likewise.
39234         * tests/test-open.h (main): Likewise....
39235         (test_open): ...to this.
39236         * tests/test-fopen.c (main): Adjust caller.
39237         * tests/test-fopen-safer.c (main): Likewise.
39238         * tests/test-open.c (main): Likewise.
39239         * tests/test-fcntl-safer.c (main): Likewise.
39240         Reported by Samuel Thibault.
39241
39242         rename, fchdir: don't ignore chdir failure
39243         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
39244         * lib/rename.c (rpl_rename) [W32]: Likewise.
39245         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
39246         an empty destination directory if source cannot be renamed,
39247         although there is still possibility for failure.
39248         * doc/posix-functions/rename.texi (rename): Document the race.
39249         Reported by Jim Meyering.
39250
39251         maint: cleanup whitespace in recent commits
39252         * lib/rename.c (rpl_rename): Remove tabs.
39253         * tests/test-link.h (test_link): Likewise.
39254         * lib/fchdir.c (get_name): Likewise.
39255         Reported by Jim Meyering.
39256
39257 2009-10-02  Ben Pfaff  <blp@gnu.org>
39258
39259         relocatable-prog-wrapper: Add missing dependency on
39260         double-slash-root.
39261         * modules/relocatable-prog-wrapper: Add dependency.
39262         Reported by Ian Beckwith <ianb@erislabs.net>.
39263
39264 2009-10-02  Eric Blake  <ebb9@byu.net>
39265
39266         renameat: fix Solaris bugs
39267         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
39268         needed fixing.
39269         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
39270         * modules/stdio (Makefile.am): Substitute it.
39271         * lib/stdio.in.h (renameat): Declare replacement.
39272         * lib/renameat.c (rpl_renameat): Implement fix.
39273
39274         renameat: new module
39275         * modules/renameat: New file.
39276         * lib/renameat.c (renameat): Likewise.
39277         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
39278         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
39279         * modules/stdio (Makefile.am): Substitute them.
39280         * lib/stdio.in.h (renameat): Declare it.
39281         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39282         * doc/posix-functions/renameat.texi (renameat): Likewise.
39283         * modules/renameat-tests: New test.
39284         * tests/test-renameat.c: Likewise.
39285
39286         rename: fix mingw bugs
39287         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
39288         directory overwrite bugs.
39289
39290         rename: fix another cygwin 1.5 bug
39291         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
39292         checks.
39293         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
39294         unnecessary cygwin workarounds.  Also work around bug with moving
39295         full directory onto an empty one.
39296         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
39297
39298         rename-dest-slash: merge into rename module
39299         * modules/rename-dest-slash (Status): Mark obsolete.
39300         (Depends-on): Add rename.
39301         (Files): Let rename do it all.
39302         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
39303         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
39304         * m4/rename-dest-slash.m4: ...so this file can be deleted.
39305         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
39306         * lib/rename.c (rpl_rename): Update comments.
39307
39308         rename: fix cygwin 1.5.x bugs
39309         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
39310         * lib/rename.c (rpl_rename): Work around them.
39311         * modules/rename (Depends-on): Add same-inode.
39312
39313         rename: fix Solaris 10 bug
39314         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
39315         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
39316         was the only bug.
39317
39318         rename: fix Solaris 9 bug
39319         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
39320         on non-directory.  Avoid calling exit.
39321         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
39322         strdup.
39323         * modules/rename-tests (Depends-on): Drop lstat.
39324         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
39325         (gl_PREREQ_RENAME): Delete unused macro.
39326
39327         rename-dest-slash: fix NetBSD bug
39328         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
39329         links.
39330         * modules/rename-dest-slash (Depends-on): Add same-inode.
39331
39332         rename-tests: new test, exposes several platform bugs
39333         * modules/rename-tests: New file.
39334         * tests/test-rename.h: Likewise.
39335         * tests/test-rename.c: Likewise.
39336         * doc/posix-functions/rename.texi (rename): Improve documentation,
39337         including bugs that will eventually be fixed in gnulib.
39338
39339 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
39340
39341         * lib/uname.c: Include <stdlib.h>
39342         (uname): Assume version info is available.
39343
39344 2009-10-02  Jim Meyering  <meyering@redhat.com>
39345
39346         gnu-web-doc-update: correct --help output
39347         * build-aux/gnu-web-doc-update: Make --help output relevant.
39348
39349         gnu-web-doc-update: add standard options
39350         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
39351
39352         gnu-web-doc-update: New module.
39353         Use this script to automatically update the on-line web documentation
39354         for your GNU project at http://www.gnu.org/software/$pkg/manual/
39355         * modules/gnu-web-doc-update: New file, from coreutils.
39356         * build-aux/gnu-web-doc-update: New script.
39357
39358 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
39359
39360         link: LoadLibrary is not needed.
39361         * lib/link.c: Use GetModuleHandle.
39362
39363 2009-10-01  Eric Blake  <ebb9@byu.net>
39364
39365         getopt: bump serial number
39366         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
39367         change.
39368
39369         tests: tighten link, rmdir, and remove tests
39370         * tests/test-link.h (includes): No need to use <config.h> here.
39371         Clean up if directory hard link was created, otherwise test for
39372         trailing '.'.
39373         * tests/test-linkat.c (main): Simplify.
39374         * tests/test-remove.c (main): Enhance test for trailing '.'.
39375         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39376
39377 2009-10-01  Jim Meyering  <meyering@redhat.com>
39378
39379         maint.mk: requiring "make major" was annoying, for a "minor" release.
39380         What is intended is "stable", to contrast with alpha and beta,
39381         so require "make stable", not "make major".
39382         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
39383         (get_tool_versions): Likewise.
39384         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
39385
39386 2009-09-30  Ben Pfaff  <blp@gnu.org>
39387
39388         Fix broken build of replacement for Windows tmpfile().
39389         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
39390         flags argument added along with the 'mkostemp' module.
39391
39392 2009-09-28  Bruno Haible  <bruno@clisp.org>
39393
39394         Avoid identifier clash with POSIX function 'remove' defined as a macro.
39395         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
39396         to 'remove_elt'.
39397         (gl_list_remove): Update.
39398         * lib/gl_list.c (gl_list_remove): Update.
39399         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
39400         to 'remove_elt'.
39401         (gl_oset_remove): Update.
39402         * lib/gl_list.c (gl_oset_remove): Update.
39403         Reported by Eric Blake.
39404
39405 2009-09-28  Eric Blake  <ebb9@byu.net>
39406
39407         doc: mention yet more cygwin 1.7 status
39408         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
39409         cygwin.
39410         * doc/glibc-functions/execvpe.texi (execvpe): New file.
39411         * doc/gnulib.texi (Glibc unistd.h): Mention it.
39412
39413         argp: fix test failure
39414         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
39415         that are not upper-case.  Pass correct range to tolower.
39416
39417 2009-09-27  Jim Meyering  <meyering@redhat.com>
39418
39419         test-yesno: work around sparc-dash here-document infelicity
39420         Without this change, the literal \177 byte in a here document
39421         would make dash 0.5.5.1-3 access uninitialized memory.
39422         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
39423         Instead, use a marker, "@", and filter through tr to create the desired
39424         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
39425
39426 2009-09-27  Bruno Haible  <bruno@clisp.org>
39427
39428         Disable untested support for new flavours of ACLs on AIX.
39429         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
39430         progress.
39431         * lib/set-mode-acl.c (qset_acl): Likewise.
39432
39433 2008-12-07  Bruno Haible  <bruno@clisp.org>
39434
39435         Add support for new flavours of ACLs on AIX. (Untested.)
39436         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
39437         (file_has_acl): Add support for newer AIX.
39438         * lib/set-mode-acl.c (qset_acl): Likewise.
39439         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
39440         Rainer Tammer <tammer@tammer.net>.
39441
39442 2009-09-26  Eric Blake  <ebb9@byu.net>
39443
39444         argp: fix compilation of getopt
39445         * lib/getopt.in.h (includes): Use different guard than glibc.
39446         Reported by Sergey Poznyakoff.
39447
39448         doc: mention more cygwin 1.7 status
39449         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
39450         bug.
39451         * doc/posix-functions/execl.texi (execl): Likewise.
39452         * doc/posix-functions/execle.texi (execle): Likewise.
39453         * doc/posix-functions/execlp.texi (execlp): Likewise.
39454         * doc/posix-functions/execv.texi (execv): Likewise.
39455         * doc/posix-functions/execve.texi (execve): Likewise.
39456         * doc/posix-functions/execvp.texi (execvp): Likewise.
39457         * doc/glibc-functions/canonicalize_file_name.texi
39458         (canonicalize_file_name): Cygwin 1.7 now provides this.
39459         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
39460         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
39461         on AT_SYMLINK_NOFOLLOW.
39462
39463 2009-09-24  Eric Blake  <ebb9@byu.net>
39464
39465         test-linkat: make test more robust
39466         * tests/test-linkat.c (main): Avoid collision with EEXIST.
39467
39468         getopt: fix inclusion guards for cygwin
39469         * modules/getopt-posix (Depends-on): Add include-next.
39470         (Makefile.am): Substitute more items in replacement header.
39471         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
39472         <getopt.h>.
39473         * lib/getopt.in.h (includes): Use split inclusion guard, and
39474         prefer <getopt.h> over include <unistd.h> when one is present.
39475         (option): Also override name of 'struct option'.
39476
39477         same-inode: revert prior change; it is not yet ready
39478         * NEWS: Undo mention of this change.
39479         * lib/same-inode.h (same-inode.h): Undo tri-state change.
39480         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
39481         * lib/cycle-check.c (cycle_check): Likewise.
39482         * lib/same.c (same_name): Likewise.
39483         * lib/at-func2.c (at_func2): Likewise.
39484
39485 2009-09-23  Eric Blake  <ebb9@byu.net>
39486
39487         linkat: new module
39488         * modules/linkat: New file.
39489         * lib/at-func2.c (at_func2): Likewise.
39490         * lib/linkat.c (linkat): Likewise.
39491         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
39492         * lib/openat-priv.h (at_func2): Add declaration.
39493         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
39494         * modules/unistd (Makefile.am): Substitute them.
39495         * lib/unistd.in.h (linkat): Declare it.
39496         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39497         * doc/posix-functions/linkat.texi (linkat): Likewise.
39498         * doc/posix-functions/link.texi (link): Tweak wording.
39499         * tests/test-link.c (main): Move guts...
39500         * tests/test-link.h (test_link): ...into new file.
39501         * modules/linkat-tests: New test.
39502         * tests/test-linkat.c: Likewise.
39503         * modules/link-tests (Files): Ship new file.
39504         (Depends-on): Add stdbool.
39505
39506         dirname: add library-safe mdir_name
39507         * lib/dirname.h (mdir_name): New prototype.
39508         * lib/dirname.c (dir_name): Move guts...
39509         (mdir_name): ...to new function that avoids xalloc_die.
39510
39511         fchdir: another mingw fix
39512         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
39513         * lib/fchdir.c (get_name): New helper method; skips canonicalize
39514         on mingw (where it has not yet been ported), and make it optional
39515         elsewhere.
39516         (_gl_register_fd): Use it.
39517
39518         same-inode: make SAME_INODE tri-state, to port to mingw
39519         * NEWS: Mention this change.
39520         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
39521         st_ino always being 0.
39522         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
39523         * lib/cycle-check.c (cycle_check): Likewise.
39524         * lib/same.c (same_name): Likewise.
39525
39526         lstat: avoid mingw compilation error
39527         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
39528         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
39529         lstat ourselves.
39530         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
39531         was adequate.
39532         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
39533         the checks for lstat.
39534         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
39535
39536         link: fix test failure on Solaris 9
39537         * lib/link.c (rpl_link): Don't assume link will catch bogus
39538         trailing slash on source.
39539
39540         test-symlinkat: enhance test
39541         * tests/test-readlink.c (main): Move guts...
39542         * tests/test-readlink.h (test_readlink): ...into new file.
39543         * tests/test-symlink.c (main): Move guts...
39544         * tests/test-symlink.h (test_symlink): ...into new file.
39545         * tests/test-symlinkat.c (main): Use new files for further
39546         coverage.
39547         (do_symlink, do_readlink): New helper functions.
39548         * modules/symlink-tests (Files): Ship new file.
39549         (Depends-on): Add stdbool.
39550         * modules/readlink-tests (Files): Ship new file.
39551         (Depends-on): Add stdbool.
39552         * modules/symlinkat-tests (Files): Use new files.
39553
39554 2009-09-23  Eric Blake  <ebb9@byu.net>
39555
39556         readlink: document portability issue with symlink length
39557         * doc/posix-functions/lstat.texi (lstat): Mention that some file
39558         systems have bogus st_size on symlinks, and mention the
39559         areadlink-with-size module.
39560         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
39561         * doc/posix-functions/readlink.texi (readlink): Mention the
39562         areadlink module, and ERANGE failure.
39563         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
39564         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
39565
39566         readlink: fix Solaris 9 bug with trailing slash
39567         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
39568         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
39569         * doc/posix-functions/readlink.texi (readlink): Document this.
39570         * modules/readlink-tests: New test.
39571         * tests/test-readlink.c: Likewise.
39572
39573         readlink: fix cygwin 1.5.x bug with return type
39574         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
39575         * lib/unistd.in.h (readlink): Use ssize_t.
39576         * lib/readlink.c (readlink): Likewise.
39577         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39578         * modules/unistd (Makefile.am): Substitute it.
39579         * lib/unistd.in.h (readlink): Declare replacement.
39580         * doc/posix-functions/readlink.texi (readlink): Document this.
39581
39582         symlink: use throughout gnulib
39583         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
39584         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
39585         symlink is not used.
39586         * modules/symlinkat (Depends-on): Add symlink.
39587         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
39588         * modules/canonicalize-tests (Depends-on): Likewise.
39589         * modules/lstat-tests (Depends-on): Likewise.
39590         * modules/openat-tests (Depends-on): Likewise.
39591         * modules/remove-tests (Depends-on): Likewise.
39592         * modules/rmdir-tests (Depends-on): Likewise.
39593         * modules/unlink-tests (Depends-on): Likewise.
39594         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
39595         * tests/test-canonicalize.c (symlink): Likewise.
39596         * tests/test-fstatat.c (symlink): Likewise.
39597         * tests/test-lstat.c (symlink): Likewise.
39598         * tests/test-remove.c (symlink): Likewise.
39599         * tests/test-rmdir.c (symlink): Likewise.
39600         * tests/test-unlink.c (symlink): Likewise.
39601         * tests/test-unlinkat.c (symlink): Likewise.
39602
39603         symlink: new module, for Solaris 9 bug
39604         * modules/symlink: New file.
39605         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
39606         * lib/symlink.c: Likewise.
39607         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
39608         * modules/unistd (Makefile.am): Substitute them.
39609         * lib/unistd.in.h (symlink): Declare replacement.
39610         * MODULES.html.sh (File system functions): Mention it.
39611         * doc/posix-functions/symlink.texi (symlink): Likewise.
39612         * modules/symlink-tests: New test.
39613         * tests/test-symlink.c: Likewise.
39614
39615 2009-09-23  Bruno Haible  <bruno@clisp.org>
39616
39617         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
39618         when needed.
39619         Test case: gnulib-tool --import --with-tests atexit inttypes.
39620         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
39621
39622 2009-09-23  Bruno Haible  <bruno@clisp.org>
39623
39624         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
39625         subcommand, not in a subshell.
39626
39627 2009-09-22  Eric Blake  <ebb9@byu.net>
39628
39629         unistd: sort replacement declarations
39630         * lib/unistd.in.h: Sort declarations.
39631
39632         open, openat: minor optimization
39633         * lib/open.c (open): If open succeeded, len is non-zero.
39634         * lib/openat.c (rpl_openat): Likewise.
39635
39636         link-follow: ensure correct result
39637         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
39638         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
39639         distinguish between possible failures.
39640
39641 2009-09-21  Eric Blake  <ebb9@byu.net>
39642
39643         fts: avoid compiler warning
39644         * lib/fts.c (dirent_inode_sort_may_be_useful)
39645         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
39646
39647 2009-09-19  Bruno Haible  <bruno@clisp.org>
39648
39649         * lib/progreloc.c (canonicalize_file_name): New declaration.
39650
39651 2009-09-19  Eric Blake  <ebb9@byu.net>
39652
39653         link: fix quoting
39654         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
39655
39656         openat: fix openat bugs on Solaris 9
39657         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
39658         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
39659         * modules/openat (Depends-on): Add open.
39660         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
39661         * modules/fcntl-h (Makefile.am): Substitute it.
39662         * lib/fcntl.in.h (openat): Declare replacement.
39663         * doc/posix-functions/openat.texi (openat): Document this.
39664
39665         openat: move fstatat and unlinkat into correct files
39666         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
39667         compiled.
39668         * lib/openat.c (fstatat, unlinkat): Move...
39669         * lib/fstatat.c (fstatat): ...into correct files.
39670         * lib/unlinkat.c (unlinkat): Likewise.
39671
39672         openat: fix unlinkat bugs on Solaris 9
39673         * lib/unlinkat.c (unlinkat): New file.
39674         * modules/openat (Depends-on): Add unlink.
39675         (Files): Distribute it.
39676         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
39677         trailing slash behavior is broken.
39678         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39679         * modules/unistd (Makefile.am): Substitute it.
39680         * lib/unistd.in.h (unlinkat): Declare replacement.
39681         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
39682
39683         openat: fix fstatat bugs on Solaris 9
39684         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
39685         stat.
39686         * doc/posix-functions/fstatat.texi (fstatat): Document this.
39687
39688         test-unlinkat: enhance test, to expose Solaris 9 bug
39689         * tests/test-unlink.c (main): Factor guts...
39690         * tests/test-unlink.h (test_rmdir_func): ...into new file.
39691         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
39692         * tests/test-rmdir.c (main): Adjust caller.
39693         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
39694         (unlinker): New helper function.
39695         (rmdirat): Enhance check.
39696         * modules/rmdir-tests (Depends-on): Add stdbool.
39697         * modules/unlink-tests (Depends-on): Likewise.
39698         (Files): Add test-unlink.h.
39699         * modules/openat-tests (Files): Likewise.
39700         (Depends-on): Add unlinkdir.
39701
39702         test-fstatat: new test, to expose Solaris 9 bugs
39703         * tests/test-stat.c (main): Factor guts...
39704         * tests/test-stat.h (test_stat_func): ...into new file.
39705         * tests/test-lstat.c (main): Factor guts...
39706         * tests/test-lstat.h (test_lstat_func): ...into new file.
39707         * tests/test-fstatat.c: New file.
39708         * modules/stat-tests (Files): Add test-stat.h.
39709         * modules/lstat-tests (Files): Add test-lstat.h.
39710         (Depends-on): Add stdbool.
39711         * modules/openat-tests (Depends-on): Add pathmax.
39712         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
39713         (Makefile.am): Run new test.
39714
39715         remove: new module, for mingw and Solaris 9 bugs
39716         * modules/remove: New file.
39717         * lib/remove.c: Likewise.
39718         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
39719         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
39720         * modules/stdio (Makefile.am): Use them.
39721         * lib/stdio.in.h (remove): Declare replacement.
39722         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39723         * doc/posix-functions/remove.texi (remove): Likewise.
39724         * modules/remove-tests: New test.
39725         * tests/test-remove.c: Likewise.
39726
39727         unlink: new module, for Solaris 9 bug
39728         * modules/unlink: New file.
39729         * lib/unlink.c: Likewise.
39730         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
39731         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
39732         * modules/unistd (Makefile.am): Use them.
39733         * lib/unistd.in.h (stat): Declare replacement.
39734         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39735         * doc/posix-functions/unlink.texi (unlink): Likewise.
39736         * modules/unlink-tests: New test.
39737         * tests/test-unlink.c: Likewise.
39738
39739         lstat: fix Solaris 9 bug
39740         * lib/lstat.c (lstat): Also check for trailing slash on
39741         non-symlink, non-directories.  Use stat module to simplify logic.
39742         * doc/posix-functions/lstat.texi (lstat): Document it.
39743         * modules/lstat-tests (Depends-on): Add errno, same-inode.
39744         (configure.ac): Check for symlink.
39745         * tests/test-lstat.c (main): Add more tests.
39746
39747         stat: add as dependency to other modules
39748         * modules/chown (Depends-on): Add stat.
39749         * modules/euidaccess (Depends-on): Likewise.
39750         * modules/fchdir (Depends-on): Likewise.
39751         * modules/isdir (Depends-on): Likewise.
39752         * modules/link (Depends-on): Likewise.
39753         * modules/lstat (Depends-on): Likewise.
39754         * modules/mkdir-p (Depends-on): Likewise.
39755         * modules/modechange (Depends-on): Likewise.
39756         * modules/open (Depends-on): Likewise.
39757         * modules/readlink (Depends-on): Likewise.
39758         * modules/same (Depends-on): Likewise.
39759
39760         stat: fix Solaris 9 bug
39761         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
39762         slash.
39763         * lib/stat.c (rpl_stat): Work around it.
39764         * doc/posix-functions/stat.texi (stat): Update documentation.
39765
39766         stat: new module, for mingw bug
39767         * modules/stat: New file.
39768         * lib/stat.c: Likewise.
39769         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
39770         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39771         * modules/sys_stat (Makefile.am): Use them.
39772         * lib/sys_stat.in.h (stat): Declare replacement.
39773         * lib/openat.c (fstatat): Deal with lstat and stat being function
39774         macros.
39775         * modules/openat (Depends-on): Add inline.
39776         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39777         * doc/posix-functions/stat.texi (stat): Likewise.
39778         * modules/stat-tests: New test.
39779         * tests/test-stat.c: Likewise.
39780
39781 2009-09-19  Jim Meyering  <meyering@redhat.com>
39782
39783         syntax-check: detect unnecessary inclusion of canonicalize.h
39784         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
39785
39786 2009-09-19  Eric Blake  <ebb9@byu.net>
39787
39788         canonicalize-lgpl: adjust clients to use correct header
39789         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
39790         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
39791         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
39792         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
39793         * lib/progreloc.c (includes): Likewise.
39794
39795 2009-09-19  Jim Meyering  <meyering@redhat.com>
39796
39797         test-posixtm.c: correct a comment
39798         * tests/test-posixtm.c: Correct first-line comment.
39799         Spotted by Eric Blake.
39800
39801 2009-09-16  Jim Meyering  <meyering@redhat.com>
39802
39803         posixtm-tests: make T const-correct; add a test case
39804         * tests/test-posixtm.c (T): Declare const.
39805         Add a test for -(2^31+1).
39806         Remove useless can-succeed-only-in-2002 test.
39807
39808         posixtm-tests: adjust the sole failing test
39809         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
39810         expected output matches what mktime now produces.  Cross-checked via
39811         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
39812
39813         posixtm: move #ifdef'd tests into a new module
39814         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
39815         * tests/test-posixtm.c: ... this new file.
39816         * modules/posixtm-tests: New module.
39817
39818 2009-09-19  Eric Blake  <ebb9@byu.net>
39819
39820         openat: simplify use of at-func.c
39821         * lib/at-func.c (includes): Include prerequisites here, to
39822         simplify requirements on client files.
39823         * lib/openat-priv.h: Add double-inclusion guard.
39824         * lib/faccessat.c (includes): Simplify.
39825         * lib/fchmodat.c (includes): Likewise.
39826         * lib/fchownat.c (includes): Likewise.
39827         * lib/mkdirat.c (includes): Likewise.
39828         * lib/mkfifoat.c (includes): Likewise.
39829         * lib/symlinkat.c (includes): Likewise.
39830
39831         openat: allow return of fd 0
39832         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
39833         * modules/save-cwd (Depends-on): Replace fcntl-safer with
39834         unistd-safer.
39835         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
39836         <fcntl.h>; this module does not leak fds.
39837         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
39838         must be allowed to return 0, leaving openat_safer to add the
39839         safety.
39840         (openat_permissive): Avoid writing to just-opened fd 2 if
39841         restoring the current directory fails.
39842         * lib/openat-die.c (openat_restore_fail): Add comment.
39843         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
39844         (save_cwd): Guarantee safe fd, but without use of open_safer.
39845         * tests/test-openat.c: New test.
39846         * modules/openat-tests (Files, Makefile.am): Distribute and build
39847         new file.
39848
39849         relocatable-prog-wrapper: fix build
39850         * modules/relocatable-prog-wrapper (Files): Update name of
39851         canonicalize m4 file, broken on 2009-09-17.
39852         Reported by emad hajjar <aleppos@hotmail.com>.
39853
39854 2009-09-19  Bruno Haible  <bruno@clisp.org>
39855
39856         * lib/safe-alloc.h: Use the standard header with GPL copyright.
39857         * lib/safe-alloc.c: Likewise.
39858         Reported by Ian Beckwith <ianb@erislabs.net>.
39859
39860 2009-09-18  Bruno Haible  <bruno@clisp.org>
39861
39862         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
39863         Reported by <erobles@sensacd.com.mx>.
39864
39865 2009-09-17  Eric Blake  <ebb9@byu.net>
39866
39867         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
39868         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
39869         slashes when checking if last component is missing.
39870         * tests/test-canonicalize.c (main): Test this.
39871
39872         canonicalize, canonicalize-lgpl: honor // if distinct from /
39873         * modules/canonicalize (Files): Add double-slash-root.m4.
39874         * modules/canonicalize-lgpl (Files): Likewise.
39875         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
39876         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
39877         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
39878         fallback definition.
39879         (canonicalize_filename_mode): Use it to protect //.
39880         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
39881         (__realpath): Likewise.
39882         * tests/test-canonicalize.c (main): Test this.
39883         * tests/test-canonicalize-lgpl.c (main): Likewise.
39884         * modules/canonicalize-tests (Depends-on): Add same-inode.
39885         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
39886
39887         canonicalize-lgpl: fix glibc bug with trailing slash
39888         * m4/canonicalize-lgpl.m4: Move contents...
39889         * m4/canonicalize.m4: ...here.
39890         (gl_CANONICALIZE_LGPL): Factor realpath check...
39891         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
39892         glibc 2.3.5 bug, fixed 2005-04-27.
39893         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
39894         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
39895         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
39896         * modules/canonicalize-lgpl (Files): Manage file rename.
39897         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
39898         * modules/stdlib (Makefile.am): Substitute witness.
39899         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
39900         is needed.
39901         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
39902         replacement is required.
39903         * lib/canonicalize.c (canonicalize_file_name): Likewise.
39904         * doc/glibc-functions/canonicalize_file_name.texi
39905         (canonicalize_file_name): Document this.
39906         * doc/posix-functions/realpath.texi (realpath): Likewise.
39907
39908         canonicalize-lgpl: reject non-directory with trailing slash
39909         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
39910         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
39911         catches failures in glibc 2.3.5.
39912         * tests/test-canonicalize.c (main): Likewise.
39913
39914         canonicalize-lgpl: use native realpath if it works
39915         * lib/canonicalize-lgpl.c (realpath): Guard with
39916         FUNC_REALPATH_WORKS.
39917         * lib/stdlib.in.h (realpath): Make declaration optional based on
39918         HAVE_REALPATH.
39919         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
39920         native realpath works.
39921         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
39922         * modules/stdlib (Makefile.am): Substitute witness.
39923
39924         canonicalize, canonicalize-lgpl: use <stdlib.h>
39925         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
39926         (Include): Mention <stdlib.h>.
39927         (configure.ac): Mention functions we provide.
39928         * modules/canonicalize (configure.ac): Likewise.
39929         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
39930         realpath if canonicalize_file_name is missing.
39931         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
39932         * modules/stdlib (Makefile.am): Substitute witnesses.
39933         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
39934         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
39935         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
39936         * NEWS: Document this.
39937         * doc/glibc-functions/canonicalize_file_name.texi
39938         (canonicalize_file_name): Likewise.
39939         * doc/posix-functions/realpath.texi (realpath): Likewise.
39940         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
39941
39942         test-canonicalize: consolidate into single C program
39943         * tests/test-canonicalize.sh: Delete; move setup into...
39944         * tests/test-canonicalize.c (main): ...the program, making it
39945         easier to run in debugger.  Add some tests.
39946         * modules/canonicalize-tests (Files): Remove unused file.
39947         (Depends-on): Add progname.
39948         (configure.ac, Makefile.am): Simplify.
39949
39950         test-canonicalize-lgpl: consolidate into single C program
39951         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
39952         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
39953         easier to run in debugger.  Add some tests.
39954         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
39955         (configure.ac, Makefile.am): Simplify.
39956
39957         canonicalize: avoid resolvepath
39958         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
39959         unnecessary checks.
39960         * lib/canonicalize.c (includes): Simplify.
39961         (canonicalize_file_name): Drop resolvepath implementation.
39962         * modules/canonicalize (Depends-on): Drop filenamecat.
39963
39964         canonicalize: don't lose errno
39965         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
39966         over calls to free.
39967
39968         canonicalize: simplify errno handling
39969         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
39970         assignment.
39971
39972         canonicalize, canonicalize-lgpl: update module dependencies
39973         * modules/canonicalize (Depends-on): Add extensions, lstat,
39974         pathmax, stdlib.
39975         (Files): Drop pathmax.h.
39976         (configure.ac): Adjust macro name.
39977         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
39978         lstat, stdlib, sys_stat.
39979         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
39980         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
39981         extensions.
39982         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
39983         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
39984         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
39985         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
39986         declaration, if available.
39987         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
39988         we can rely on the readlink module.
39989         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
39990         (includes): Use <unistd.h> unconditionally.
39991
39992 2009-09-17  Eric Blake  <ebb9@byu.net>
39993
39994         maint: make Include sections of modules consistent
39995         * modules/alloca: Use only header name; no need to list #include.
39996         * modules/alloca-opt: Likewise.
39997         * modules/arpa_inet: Likewise.
39998         * modules/canon-host: Likewise.
39999         * modules/configmake: Likewise.
40000         * modules/dirent: Likewise.
40001         * modules/eealloc: Likewise.
40002         * modules/environ: Likewise.
40003         * modules/fchdir: Likewise.
40004         * modules/fcntl: Likewise.
40005         * modules/fcntl-h: Likewise.
40006         * modules/gethrxtime: Likewise.
40007         * modules/gettime: Likewise.
40008         * modules/ignore-value: Likewise.
40009         * modules/inet_ntop: Likewise.
40010         * modules/inet_pton: Likewise.
40011         * modules/inttypes: Likewise.
40012         * modules/isnand-nolibm: Likewise.
40013         * modules/isnanf-nolibm: Likewise.
40014         * modules/mbchar: Likewise.
40015         * modules/mbfile: Likewise.
40016         * modules/mbiter: Likewise.
40017         * modules/mbuiter: Likewise.
40018         * modules/netdb: Likewise.
40019         * modules/netinet_in: Likewise.
40020         * modules/nproc: Likewise.
40021         * modules/pagealign_alloc: Likewise.
40022         * modules/poll: Likewise.
40023         * modules/printf-frexp: Likewise.
40024         * modules/pthread: Likewise.
40025         * modules/putenv: Likewise.
40026         * modules/random_r: Likewise.
40027         * modules/relocatable-prog: Likewise.
40028         * modules/search: Likewise.
40029         * modules/select: Likewise.
40030         * modules/selinux-h: Likewise.
40031         * modules/settime: Likewise.
40032         * modules/signal: Likewise.
40033         * modules/size_max: Likewise.
40034         * modules/socklen: Likewise.
40035         * modules/ssize_t: Likewise.
40036         * modules/stdarg: Likewise.
40037         * modules/stdbool: Likewise.
40038         * modules/stddef: Likewise.
40039         * modules/stdint: Likewise.
40040         * modules/stdio: Likewise.
40041         * modules/stdlib: Likewise.
40042         * modules/string: Likewise.
40043         * modules/strings: Likewise.
40044         * modules/sys_file: Likewise.
40045         * modules/sys_ioctl: Likewise.
40046         * modules/sys_select: Likewise.
40047         * modules/sys_socket: Likewise.
40048         * modules/sys_stat: Likewise.
40049         * modules/sys_time: Likewise.
40050         * modules/sys_times: Likewise.
40051         * modules/sys_utsname: Likewise.
40052         * modules/sys_wait: Likewise.
40053         * modules/sysexits: Likewise.
40054         * modules/time: Likewise.
40055         * modules/times: Likewise.
40056         * modules/tmpfile: Likewise.
40057         * modules/trim: Likewise.
40058         * modules/unistd: Likewise.
40059         * modules/wchar: Likewise.
40060         * modules/wctype: Likewise.
40061
40062 2009-09-17  Bruno Haible  <bruno@clisp.org>
40063
40064         Make getdate.y compile on QNX and NetBSD 5 / i386.
40065         * m4/getdate.m4 (gl_GETDATE): Conditionally define
40066         TIME_T_FITS_IN_LONG_INT.
40067         * lib/getdate.y (long_time_t): New type.
40068         (relative_time): Change type of 'seconds' field to long_time_t.
40069         (get_date): Update types of local variables. Check against overflow
40070         during conversion from long_time_t to time_t.
40071         Reported by Matt Kraai <kraai@ftbfs.org>
40072         and Hasso Tepper <hasso@netbsd.org>.
40073
40074 2009-09-17  Bruno Haible  <bruno@clisp.org>
40075
40076         * modules/COPYING: Update copyright years.
40077         * modules/README: Likeiwse.
40078         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
40079         Reported by Ian Beckwith <ianb@erislabs.net>.
40080
40081 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
40082
40083         * users.txt: Update references for gnuit package.
40084
40085 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
40086
40087         * m4/getdelim.m4: Fix typo in copyright line.
40088
40089 2009-09-17  Bruno Haible  <bruno@clisp.org>
40090
40091         * lib/atoll.c: Use the standard header with GPL copyright.
40092         * lib/argz.in.h: Likewise.
40093         * lib/glob.c: Likewise.
40094         * lib/glob-libc.h: Likewise.
40095         * lib/random_r.c: Likewise.
40096         * lib/siglist.h: Likewise.
40097         * lib/strsignal.c: Likewise.
40098         Reported by Ian Beckwith <ianb@erislabs.net>.
40099
40100 2009-09-17  Eric Blake  <ebb9@byu.net>
40101
40102         rmdir: ensure correct dependency order
40103         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
40104
40105 2009-09-17  Bruno Haible  <bruno@clisp.org>
40106
40107         Disable assertion that fails on NetBSD 5 / i386.
40108         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
40109         Reported by Sam Steingold <sds@gnu.org>
40110         and Hasso Tepper <hasso@netbsd.org>.
40111
40112 2009-09-16  Eric Blake  <ebb9@byu.net>
40113
40114         unlinkdir: port to mingw
40115         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
40116         on which no one can unlink a directory.
40117
40118         stdlib: sort witness names
40119         * modules/stdlib (Makefile.am): Sort replacements.
40120         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
40121         * lib/stdlib.in.h: Likewise.
40122
40123         parse-duration-tests: avoid link failure
40124         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
40125         LIBINTL.
40126         Reported by Tom G. Christensen.
40127
40128         openat-tests: ensure unlinkat behaves like rmdir
40129         * tests/test-rmdir.c (main): Factor guts...
40130         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
40131         * modules/rmdir-tests (Files): Ship new file.
40132         * modules/openat-tests: New test.
40133         * tests/test-unlinkat.c: Likewise.
40134
40135         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
40136         * modules/rmdir-errno (Status, Notice): Now obsolete.
40137
40138         rmdir: work around cygwin 1.5.x and mingw bugs
40139         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
40140         * lib/rmdir.c (rmdir): Work around it.
40141         * modules/rmdir (Status, Notice): No longer obsolete.
40142         (Files): Add dos.m4.
40143         (Depends-on): Add unistd.
40144         (configure.ac): Set witnesses.
40145         (License): Relax to LGPLv2+.
40146         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
40147         * modules/unistd (Makefile.am): Substitute witnesses.
40148         * lib/unistd.in.h (rmdir): Declare replacement.
40149         * doc/posix-functions/rmdir.texi (rmdir): Document this.
40150         * modules/rmdir-tests: New tests.
40151         * tests/test-rmdir.c: Likewise.
40152
40153 2009-09-15  Eric Blake  <ebb9@byu.net>
40154
40155         fchdir: improve use of replacement functions
40156         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
40157         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
40158         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
40159         REPLACE_CLOSEDIR.
40160         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
40161         * modules/sys_stat (Makefile.am): Substitute correct witness.
40162         * modules/dirent (Makefile.am): Likewise.
40163         * modules/unistd (Makefile.am): Likewise.
40164         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
40165         * lib/unistd.in.h (dup): Likewise.
40166         * lib/sys_stat.in.h (fstat): Likewise.
40167
40168         maint: ignore gnulib-tool temp files
40169         * .gitignore: Ignore files created during gnulib-tool --test.
40170
40171 2009-09-13  Jim Meyering  <meyering@redhat.com>
40172
40173         posixtm: don't reject a time that specify "60" as the number of seconds
40174         * lib/posixtm.c (posixtime): The code to reject invalid dates
40175         would also reject a time specified with the .60 suffix.
40176         But POSIX allows that, in order to accommodate leap seconds.
40177         So don't reject it.
40178         (main): Adjust tests accordingly.
40179         * modules/posixtm (Depends-on): Add stpcpy.
40180
40181 2009-09-11  Jim Meyering  <meyering@redhat.com>
40182
40183         announce-gen: include [$release_type] in emitted Subject:
40184         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
40185         e.g., [stable] in the emitted Subject: line.
40186
40187 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40188
40189         Remove obsolete macros from several modules.
40190         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
40191         obsolete Autoconf macros with their modern counterparts.
40192         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
40193         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
40194         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
40195         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
40196         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
40197         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
40198         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
40199         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
40200         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
40201         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
40202         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
40203         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
40204         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
40205         * m4/sockets.m4 (gl_SOCKETS): Likewise.
40206         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
40207         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
40208         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
40209         * m4/time_r.m4 (gl_TIME_R): Likewise.
40210         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
40211         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
40212         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
40213
40214         Fix copyright header in build-aux scripts.
40215         * build-aux/git-version-gen: Fix copyright header to match GPLv3
40216         recommendation.
40217         * build-aux/ncftpput-ftp: Likewise.
40218         * build-aux/update-copyright: Likewise.
40219
40220 2009-09-09  Eric Blake  <ebb9@byu.net>
40221
40222         test-link: allow Linux choice of errno
40223         * tests/test-link.c (main): Relax test for alternate error.
40224
40225         strndup: fix improper m4 caching
40226         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
40227         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
40228         (gl_PREREQ_STRNDUP): Delete.
40229         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
40230         * modules/string (Makefile.am): Substitute it.
40231         * lib/string.in.h (strndup): Modernize prototype.
40232
40233         getcwd: port to mingw
40234         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
40235         different from the POSIX assumptions made throughout the getcwd
40236         module; fortunately, the mingw getcwd does not need replacement.
40237         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
40238         * modules/getcwd-tests: New test.
40239         * tests/test-getcwd.c: Likewise.
40240
40241         link: fix platform bugs
40242         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
40243         * lib/link.c (link): Work around them.  Fix related mingw bug.
40244         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
40245         * modules/unistd (Makefile.am): Substitute it.
40246         * lib/unistd.in.h (link): Declare replacement.
40247         * doc/posix-functions/link.texi (link): Document this.
40248         * modules/link (Depends-on): Add strdup-posix, sys_stat.
40249
40250         test-link: consolidate into single C program, test more cases
40251         * tests/test-link.sh: Delete.
40252         * tests/test-link.c: Test more error conditions.  Exposes bugs on
40253         at least Cygwin and Solaris.
40254         * modules/link-tests (Files): Remove unused file.
40255         (Depends-on): Add errno, sys_stat.
40256         (Makefile.am): Simplify.
40257
40258 2009-09-08  Bruno Haible  <bruno@clisp.org>
40259
40260         Work around towlower, towupper bug on mingw.
40261         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
40262         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
40263         * doc/posix-functions/towlower.texi: Mention the mingw bug.
40264         * doc/posix-functions/towupper.texi: Likewise.
40265         Reported by Eric Blake.
40266
40267 2009-09-08  Jim Meyering  <meyering@redhat.com>
40268
40269         build: don't try to run autoheader if we don't use it
40270         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
40271         is not used in configure.ac.
40272
40273 2009-09-08  Eric Blake  <ebb9@byu.net>
40274
40275         euidaccess: fix compilation error
40276         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
40277
40278         rawmemchr: relax license
40279         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
40280         okay.
40281         Reported by Jim Meyering.
40282
40283         mkfifoat: new module
40284         * modules/mkfifoat: New file.
40285         * lib/mkfifoat.c: Likewise.
40286         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
40287         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40288         * modules/sys_stat (Makefile.am): Use them.
40289         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
40290         * MODULES.html.sh (File system functions): Mention module.
40291         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
40292         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
40293         * modules/mkfifoat-tests: New test.
40294         * tests/test-mkfifoat.c: Likewise.
40295
40296         strchrnul: relax license
40297         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
40298         okay.
40299         Reported by Jim Meyering.
40300
40301 2009-09-08  Eric Blake  <ebb9@byu.net>
40302
40303         fstatat: fix compilation on Solaris
40304         * lib/fstatat.c (includes): Add fcntl.h.
40305         Reported by Pádraig Brady.
40306
40307 2009-09-07  Eric Blake  <ebb9@byu.net>
40308
40309         rename: modernize replacement
40310         * modules/rename (Depends-on): Add stdio.
40311         (configure.ac): Declare witness.
40312         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
40313         stdio take care of replacement.
40314         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
40315         * modules/stdio (Makefile.am): Substitute them.
40316         * lib/stdio.in.h (rename): Declare replacement.
40317         * lib/rename.c (includes): Allow cross-compilation to non-windows
40318         machines.
40319         * doc/posix-functions/rename.texi (rename): Improve
40320         documentation.
40321
40322         stdio: sort witness names
40323         * modules/stdio (Makefile.am): Sort replacements.
40324         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40325         * lib/stdio.in.h: Likewise.
40326
40327         getcwd: minor cleanups
40328         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
40329         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
40330
40331         openat: provide more convenience names
40332         * modules/faccessat (configure.ac): Add C witness.
40333         * lib/unistd.in.h (readlinkat): Fix typo.
40334         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
40335         convenience wrappers.
40336         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
40337         wrappers in syntax checks.
40338
40339 2009-09-06  Eric Blake  <ebb9@byu.net>
40340
40341         doc: fix comments in recent patches
40342         * lib/faccessat.c: Mention correct function.
40343         * lib/fchmodat.c: Likewise.
40344         * lib/fchownat.c: Likewise.
40345         * lib/symlinkat.c: Likewise.
40346         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
40347         constants.
40348
40349         faccessat, symlinkat: continue cleanup of previous patch
40350         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
40351         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
40352         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
40353         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
40354         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
40355         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
40356         set.
40357
40358 2009-09-06  Bruno Haible  <bruno@clisp.org>
40359
40360         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
40361         (fstatat): Declare if GNULIB_FSTATAT is set.
40362         (mkdirat): Declare if GNULIB_MKDIRAT is set.
40363         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
40364         (unlinkat): Declare if GNULIB_UNLINKAT is set.
40365         * modules/fcntl-h (Files): Remove m4/openat.m4.
40366         * modules/sys_stat (Files): Remove m4/openat.m4.
40367         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
40368         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
40369         * modules/unistd (Files): Remove m4/openat.m4.
40370         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
40371         GNULIB_OPENAT.
40372         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
40373         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
40374         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
40375         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
40376         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
40377         gl_OPENAT_DEFAULTS.
40378         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
40379         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
40380         Don't require gl_OPENAT_DEFAULTS.
40381         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
40382         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
40383         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
40384         (gl_OPENAT_DEFAULTS): Remove macro.
40385
40386 2009-09-06  Bruno Haible  <bruno@clisp.org>
40387
40388         * modules/openat (configure.ac): Remove unneeded witness.
40389
40390 2009-09-06  Bruno Haible  <bruno@clisp.org>
40391
40392         Set errno to ENOSYS when a function is entirely unsupported.
40393         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
40394         EOPNOTSUPP.
40395         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
40396         * modules/chown (Depends-on): Remove errno.
40397
40398 2009-09-06  Bruno Haible  <bruno@clisp.org>
40399
40400         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
40401
40402 2009-09-06  Bruno Haible  <bruno@clisp.org>
40403
40404         * lib/sys_stat.in.h: Fix preprocessor command indentation.
40405
40406 2009-09-06  Ben Pfaff  <blp@gnu.org>
40407             Bruno Haible  <bruno@clisp.org>
40408
40409         Work around a glibc bug in strtok_r.
40410         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
40411         Undefine if UNDEFINE_STRTOK_R is set.
40412         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
40413         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
40414         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
40415         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
40416         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
40417         UNDEFINE_STRTOK_R.
40418         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
40419
40420 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
40421
40422         exclude: minor fix
40423         * lib/exclude.c: Include wctype.h
40424
40425 2009-09-06  Akim Demaille  <demaille@gostai.com>
40426
40427         bootstrap: improve error message
40428         * build-aux/bootstrap (find_tool): Upon failure, report the list
40429         of candidates.
40430         Honor the initial value of the envvar.
40431
40432 2009-09-05  Eric Blake  <ebb9@byu.net>
40433
40434         symlinkat: new module
40435         * modules/symlinkat: New file.
40436         * lib/symlinkat.c: Likewise.
40437         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
40438         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40439         * modules/unistd (Makefile.am): Use them.
40440         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
40441         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
40442         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
40443         * MODULES.html.sh (File system functions): Mention module.
40444         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40445         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40446         * modules/symlinkat-tests: New test.
40447         * tests/test-symlinkat.c: Likewise.
40448
40449         test-openat-safer: add more checks
40450         * tests/test-openat-safer.c (main): Check more code paths.
40451
40452 2009-09-05  Jim Meyering  <meyering@redhat.com>
40453
40454         syntax-check: detect unnecessary inclusion of openat.h
40455         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
40456
40457 2009-09-05  Bruno Haible  <bruno@clisp.org>
40458
40459         Support towlower, towupper.
40460         * doc/posix-functions/towlower.texi: Mention module wctype.
40461         * doc/posix-functions/towupper.texi: Likewise.
40462         * lib/wctype.in.h (towlower, towupper): New functions.
40463         * tests/test-wctype.c: Include stdio.h, stdlib.h.
40464         (ASSERT): New macro.
40465         (e): New variable.
40466         (main): Test also towlower, towupper. Test WEOF argument.
40467         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40468
40469 2009-09-05  Bruno Haible  <bruno@clisp.org>
40470
40471         Fix conversion behaviour when the input is invalid.
40472         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
40473         mark occurring in first pass of indirect conversion.
40474         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
40475         input.
40476         Found by clang's static analyzer.
40477
40478 2009-09-05  Bruno Haible  <bruno@clisp.org>
40479
40480         * tests/test-striconveh.c (main): Test indirect conversion on platforms
40481         where direct conversion is possible.
40482
40483 2009-09-04  Eric Blake  <ebb9@byu.net>
40484
40485         openat: fail with ENOENT on empty name
40486         * lib/openat-proc.c (openat_proc_name): Special-case the empty
40487         buffer.
40488
40489         link-follow: fix logic bug in prior patch
40490         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
40491         reversed sense of yes and no in prior patch.  Avoid confusing
40492         compilation failure with desired semantics.
40493
40494         link-follow: accomodate mingw and cross-compilation
40495         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
40496         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
40497         cross-compilation results to -1, to make linkat easier to
40498         implement when cross-compiling.  Trivially support mingw.
40499         * modules/link-follow (configure.ac): Call new name.
40500         * NEWS: Mention this.
40501
40502 2009-09-03  Eric Blake  <ebb9@byu.net>
40503
40504         faccessat: compile replacement
40505         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
40506         needed.
40507
40508         fts: fix compilation error
40509         * lib/fts.c (includes): Re-add "openat.h", for
40510         openat_needs_fchdir.
40511
40512         faccessat: new module
40513         * modules/faccessat: New file.
40514         * lib/faccessat.c: Likewise.
40515         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
40516         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40517         * modules/unistd (Makefile.am): Use it.
40518         * lib/unistd.in.h (faccessat): Declare it.
40519         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
40520         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
40521         * MODULES.html.sh (File system functions): Mention it.
40522         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
40523         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
40524
40525         euidaccess: prefer POSIX over non-standard implementation
40526         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
40527         * lib/euidaccess.c (euidaccess): Use it if available.
40528
40529         openat: make template easier to use
40530         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
40531         AT_FUNC_F2 to be undefined.
40532         (VALIDATE_FLAG): New macro; use it to reject bad flags.
40533         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
40534         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
40535         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
40536         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
40537         Likewise.
40538         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
40539         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
40540         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
40541         Likewise.
40542
40543         openat: declare in POSIX headers
40544         * NEWS: Mention this.
40545         * modules/openat (configure.ac): Declare witnesses.
40546         (Depends-on): Add fcntl-h, sys_stat, unistd.
40547         (Include): Mention correct headers.
40548         * modules/fcntl-h (Depends-on): Add link-warning.
40549         (Files): Add openat.m4.
40550         (Makefile.am): Substitute witnesses.
40551         * modules/sys_stat (Files, Makefile.am): Likewise.
40552         * modules/unistd (Files, Makefile.am): Likewise.
40553         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
40554         (gl_OPENAT_DEFAULTS): New macro.
40555         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
40556         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
40557         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
40558         (SYS_STAT_H): Remove unused variable.
40559         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
40560         * lib/fcntl--.h (includes): Remove unneeded header.
40561         * lib/openat-safer.c (includes): Likewise.
40562         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
40563         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
40564         appropriate headers.
40565         (__OPENAT_PREFIX): Delete.
40566         * lib/fcntl.in.h (openat): Provide declaration.
40567         (AT_FDCWD): Fix Solaris bug.
40568         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
40569         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
40570         * lib/fchmodat.c (includes):  Adjust to find declaration.
40571         * lib/fchownat.c (includes): Likewise.
40572         * lib/mkdirat.c (includes): Likewise.
40573         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
40574         still visible.
40575
40576 2009-09-02  Eric Blake  <ebb9@byu.net>
40577
40578         errno: use consistently
40579         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
40580         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
40581         * lib/canonicalize.c (ELOOP): Likewise.
40582         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
40583         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
40584         * lib/lchown.c (EOPNOTSUPP): Likewise.
40585         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
40586         * lib/savewd.c (ESTALE): Likewise.
40587         * lib/settime.c (ENOSYS): Likewise.
40588         * lib/utimens.c (ENOSYS): Likewise.
40589         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
40590         * lib/chdir-safer.c (ELOOP): Likewise.
40591         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
40592         * modules/c-stack (Depends-on): Add errno.
40593         * modules/canonicalize (Depends-on): Likewise.
40594         * modules/chdir-safer (Depends-on): Likewise.
40595         * modules/fdopendir (Depends-on): Likewise.
40596         * modules/inet_ntop (Depends-on): Likewise.
40597         * modules/inet_pton (Depends-on): Likewise.
40598         * modules/lchown (Depends-on): Likewise.
40599         * modules/openat (Depends-on): Likewise.
40600         * modules/savewd (Depends-on): Likewise.
40601         * modules/settime (Depends-on): Likewise.
40602         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
40603
40604         fts: avoid leaking fds
40605         * modules/fts (Depends-on): Add cloexec.
40606         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
40607         flag.
40608
40609         fts: make directory fds more robust
40610         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
40611         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
40612
40613         backupfile, chdir-long, fts, savedir: make safer
40614         * lib/backupfile.c (includes): Use "dirent--.h", since
40615         numbered_backup can write to stderr during readdir.
40616         * lib/savedir.c (includes): Likewise.
40617         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
40618         emulation can write to stderr on failure.
40619         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
40620         * lib/getcwd.c: Document why opendir_safer is unused.
40621         * lib/glob.c: Likewise.
40622         * lib/scandir.c: Likewise.
40623         * lib/openat-proc.c: Likewise, for open_safer.
40624         * modules/backupfile (Depends-on): Add dirent-safer.
40625         * modules/savedir (Depends-on): Likewise.
40626         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
40627         * modules/chdir-long (Depends-on): Add openat-safer.
40628
40629         openat-safer: new module
40630         * modules/openat-safer: New file.
40631         * lib/openat-safer.c: Likewise.
40632         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
40633         * lib/fcntl-safer.h (openat_safer): Declare.
40634         * lib/fcntl--.h (openat): Override.
40635         * MODULES.html.sh (File descriptor based I/O): Mention it.
40636         * lib/openat.h: Add double-inclusion guards.
40637         * lib/openat.c (includes): Only include "fcntl-safer.h", not
40638         "fcntl--.h", so we can implement openat.
40639         * modules/openat-safer-tests: New test.
40640         * tests/test-openat-safer.c: New file.
40641
40642         dirent-safer: new module
40643         * modules/dirent-safer: New file.
40644         * lib/dirent--.h: Likewise.
40645         * lib/dirent-safer.h: Likewise.
40646         * lib/opendir-safer.c: Likewise.
40647         * m4/dirent-safer.m4: Likewise.
40648         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
40649         * modules/dirent-safer-tests: New test.
40650         * tests/test-dirent-safer.c: New file.
40651         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
40652
40653         fdopendir: optimize on mingw
40654         * lib/unistd.in.h (_gl_directory_name): New prototype.
40655         * lib/fchdir.c (_gl_directory_name): Implement it.
40656         (fchdir): Use it to simplify implementation.
40657         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
40658         fchdir, when available, to avoid calling [f]chdir().
40659
40660         fdopendir: split into its own module
40661         * lib/openat.c (fdopendir): Move...
40662         * lib/fdopendir.c: ...into new file.
40663         * modules/fdopendir: New module.
40664         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
40665         * modules/openat (Depends-on): Add fdopendir.
40666         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
40667         fdopendir here.
40668         * modules/savedir (Depends-on): Only need fdopendir, not full
40669         openat.
40670         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
40671         * lib/openat.h (fdopendir): Drop prototype.
40672         * lib/dirent.in.h (fdopendir): Provide prototype.
40673         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
40674         * modules/dirent (Makefile.am): Substitute them.
40675         * MODULES.html.sh (File system functions): Mention it.
40676         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
40677         * modules/fdopendir-tests: New file.
40678         * tests/test-fdopendir.c: Likewise.
40679
40680         fchdir: use more consistent macro convention
40681         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
40682         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
40683         REPLACE_FCHDIR, rather than relying on config.h macros.
40684         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
40685         inside a single make-time REPLACE_FCHDIR block, rather than using
40686         the config.h FCHDIR_REPLACEMENT.
40687         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
40688         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
40689         Manage fstat replacement.
40690         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
40691         REPLACE_FCHDIR.
40692         * modules/sys_stat (Files): Add m4/unistd_h.m4.
40693         (Makefile.am): Substitute REPLACE_FCHDIR.
40694         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
40695         FCHDIR_REPLACEMENT.
40696         * lib/dup-safer.c (dup_safer): Likewise.
40697         * lib/dup2.c (rpl_dup2): Likewise.
40698         * lib/dup3.c (rpl_dup3): Likewise.
40699         * lib/open.c (rpl_open): Likewise.
40700
40701         fchdir: simplify error handling, and support dup3
40702         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
40703         stdbool, malloc-posix, realloc-posix.
40704         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
40705         (ensure_dirs_slot): Return false on allocation failure.
40706         (rpl_dup2): Delete.
40707         (_gl_register_dup): New function.
40708         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
40709         (_gl_register_fd): Close fd on allocation failure.
40710         * lib/fcntl.in.h (_gl_register_fd): Update signature.
40711         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
40712         prototype.
40713         (rpl_dup2_fchdir): Delete prototype.
40714         * lib/open.c (open): Update caller.
40715         * lib/dup2.c (dup2): Track fchdir metadata.
40716         * lib/dup3.c (dup3): Likewise.
40717         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
40718         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
40719
40720 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40721
40722         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
40723         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
40724         don't pass arguments to AC_OUTPUT.
40725
40726 2009-09-02  Bruno Haible  <bruno@clisp.org>
40727
40728         * modules/mkdtemp (License): Relicense under LGPLv2+.
40729         Reported by Paolo Bonzini.
40730
40731 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40732
40733         Replace uses of obsolete autoconf macros in Jim's modules.
40734         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
40735         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
40736         can evoke a warning from autoconf when run with -Wobsolete
40737         enabled.  They were declared obsolete for good reasons (see
40738         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
40739         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
40740         should not continue using the deprecated macros.
40741         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
40742         obsolete Autoconf macros with modern counterparts.
40743         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
40744         * m4/dos.m4 (gl_AC_DOS): Likewise.
40745         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
40746         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
40747         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
40748         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
40749         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
40750         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
40751         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
40752         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
40753         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
40754         Likewise.
40755         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
40756         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
40757         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
40758         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
40759         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
40760         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
40761
40762 2009-09-01  Eric Blake  <ebb9@byu.net>
40763
40764         fchdir: fix off-by-one bug in previous patch
40765         * lib/fchdir.c (rpl_fstat): Use correct bounds.
40766         (_gl_unregister_fd): Delete useless if.
40767
40768 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
40769
40770         maint.mk: sort the list of syntax-check rules
40771         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
40772         easier to get a sense of progress when the rules are run sequentially
40773         and take a long time.
40774
40775 2009-09-01  Simon Josefsson  <simon@josefsson.org>
40776
40777         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
40778         * modules/netinet_in: Likewise.
40779         * modules/sys_file: Likewise.
40780         * modules/sys_ioctl: Likewise.
40781         * modules/sys_select: Likewise.
40782         * modules/sys_socket: Likewise.
40783         * modules/sys_stat: Likewise.
40784         * modules/sys_time: Likewise.
40785         * modules/sys_times: Likewise.
40786         * modules/sys_utsname: Likewise.
40787         * modules/sys_wait: Likewise.
40788
40789 2009-09-01  Jim Meyering  <meyering@redhat.com>
40790
40791         fts: help ensure that return values are not ignored
40792         * lib/fts_.h (__GNUC_PREREQ): Define.
40793         (__attribute_warn_unused_result__): Define.
40794         (fts_children, fts_close, fts_open, fts_read): Declare with
40795         __attribute_warn_unused_result__.
40796
40797         fts: fts_close now fails also when closing a dir file descriptor fails
40798         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
40799         and propagate to caller, along with errno.
40800
40801         announce-gen: correct formatting in --help output
40802         * build-aux/announce-gen (usage): Move the one-line description in
40803         --help output "up", to where it belongs, just after Usage:.
40804
40805 2009-08-31  Eric Blake  <ebb9@byu.net>
40806
40807         fchdir: port to mingw
40808         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
40809         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
40810         opened, then use a substitute.
40811         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
40812         replacement.
40813         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
40814         (_gl_register_fd): No need to check stat if open already filters
40815         all directories.
40816         (fchdir): Fix error condition to match POSIX.
40817         * modules/fchdir (Depends-on): Add sys_stat.
40818         * doc/posix-functions/open.texi (open): Document the limitation.
40819         * modules/fchdir-tests: New file.
40820         * tests/test-fchdir.c: Likewise.
40821
40822         canonicalize: allow cross-testing from cygwin to mingw
40823         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
40824         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
40825         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
40826         Likewise.
40827         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
40828         target does not support symlinks.
40829         * tests/test-canonicalize-lgpl.sh: Likewise.
40830
40831         chown: avoid compilation warning on mingw
40832         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
40833         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
40834         mingw.
40835         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
40836         * modules/chown (Depends-on): Add errno.
40837
40838 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
40839
40840         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
40841         command.
40842
40843 2009-08-31  Jim Meyering  <meyering@redhat.com>
40844
40845         canonicalize: remove useless initialization
40846         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
40847         initialization of local, "end".
40848
40849 2009-08-30  Bruno Haible  <bruno@clisp.org>
40850
40851         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
40852         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
40853         ENOSYS.
40854
40855 2009-08-30  Bruno Haible  <bruno@clisp.org>
40856
40857         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
40858         /usr/xpg4/bin/tr when it exists.
40859         * tests/test-pipe-filter-gi1.sh: Likewise.
40860
40861 2009-08-30  Bruno Haible  <bruno@clisp.org>
40862
40863         Work around deficient /usr/bin/id program on Solaris.
40864         * tests/test-file-has-acl.sh (ID): New variable.
40865         * tests/test-set-mode-acl.sh (ID): Likewise.
40866         * tests/test-copy-acl.sh (ID): Likewise.
40867         * tests/test-copy-file.sh (ID): Likewise.
40868
40869 2009-08-30  Bruno Haible  <bruno@clisp.org>
40870
40871         New module 'xstriconveh'.
40872         * lib/xstriconveh.h: New file.
40873         * lib/xstriconveh.c: New file.
40874         * modules/xstriconveh: New file.
40875
40876 2009-08-30  Bruno Haible  <bruno@clisp.org>
40877
40878         Make it easier to use mem_cd_iconveh.
40879         * lib/striconveh.h (iconveh_t): New type.
40880         (iconveh_open, iconveh_close): New declarations.
40881         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
40882         with a single 'const iconveh_t *' argument.
40883         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
40884         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
40885         with a single 'const iconveh_t *' argument.
40886         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
40887         * tests/test-striconveh.c (main): Update.
40888         * NEWS: Mention the change.
40889
40890 2009-08-30  Bruno Haible  <bruno@clisp.org>
40891
40892         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
40893         problem.
40894
40895 2009-08-30  Bruno Haible  <bruno@clisp.org>
40896
40897         Work around iconv_open problem on Solaris.
40898         * lib/iconv_open-solaris.gperf: New file.
40899         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
40900         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
40901         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
40902         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
40903         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
40904         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
40905
40906 2009-08-29  Jim Meyering  <meyering@redhat.com>
40907
40908         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
40909         * top/maint.mk (cvs-check): Remove target; it was just an alias
40910         to the better-named vc-diff-check.
40911         (maintainer-distcheck): Remove rule.  It was used only from
40912         the (alpha/beta/major) target, and all of its commands but one
40913         were coreutils-specific.
40914         (vc-dist): Remove rule.
40915         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
40916         Run vc-diff-check, not vc-dist.
40917         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
40918
40919 2009-08-27  Bruno Haible  <bruno@clisp.org>
40920
40921         * tests/test-bitrotate.c (main): Remove test that uses a shift count
40922         of 0.
40923
40924 2009-08-27  Bruno Haible  <bruno@clisp.org>
40925
40926         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
40927         compilers.
40928         * doc/func.texi: Document the SunPRO C bug.
40929
40930 2009-08-27  Bruno Haible  <bruno@clisp.org>
40931
40932         Fix link error on Solaris.
40933         * tests/test-parse-duration.c (xstrdup): Remove function.
40934
40935 2009-08-26  Pádraig Brady  <P@draigbrady.com>
40936
40937         ignore-value: handle pointer types, too
40938         * lib/ignore-value.h (__attribute__): Remove definition.
40939         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
40940         of a more concise and more-often effective "(void) i" statement.
40941         (ignore_ptr): New function to suppress warnings from functions that
40942         return pointers, and to make it explicit that one function doesn't
40943         handle all cases.
40944
40945 2009-08-25  Bruno Haible  <bruno@clisp.org>
40946
40947         dup2: work around a Linux bug.
40948         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
40949         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
40950         * doc/posix-functions/dup2.texi: Mention the Linux bug.
40951         Reported by Simon Josefsson.
40952
40953 2009-08-25  Jim Meyering  <meyering@redhat.com>
40954
40955         libguestfs uses gnulib
40956         * users.txt: Add libguestfs.
40957
40958 2009-08-24  Eric Blake  <ebb9@byu.net>
40959
40960         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
40961         * lib/pipe2.c (includes): Add binary-io.h.
40962         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
40963
40964 2009-08-24  Bruno Haible  <bruno@clisp.org>
40965
40966         Tolerate declared but missing accept4 syscall.
40967         * lib/accept4.c (accept4): Invoke original accept4 function first, if
40968         available.
40969         * lib/sys_socket.in.h (accept4): If the function is already present,
40970         override it.
40971         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
40972         * modules/accept4 (Makefile.am): Compile accept4.c always.
40973         Reported by Paolo Bonzini and Eric Blake.
40974
40975 2009-08-23  Bruno Haible  <bruno@clisp.org>
40976
40977         New module 'accept4'.
40978         * lib/sys_socket.in.h (accept4): New declaration.
40979         * lib/accept4.c: New file.
40980         * m4/accept4.m4: New file.
40981         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
40982         GNULIB_ACCEPT4, HAVE_ACCEPT4.
40983         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
40984         HAVE_ACCEPT4.
40985         * modules/accept4: New file.
40986         * doc/glibc-functions/accept4.texi: Mention the new module.
40987
40988 2009-08-24  Jim Meyering  <meyering@redhat.com>
40989
40990         progname: also set global program_invocation_name, when possible
40991         Before this change, a libtool-enabled program that calls glibc's
40992         error function would report the program name as
40993         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
40994         * modules/progname (configure.ac): Check for a declaration of
40995         program_invocation_name.
40996         * lib/progname.c:  Include <errno.h>.
40997         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
40998         Set program_invocation_name.
40999
41000 2009-08-23  Bruno Haible  <bruno@clisp.org>
41001
41002         * lib/dup3.c: Include <string.h>.
41003
41004 2009-08-23  Bruno Haible  <bruno@clisp.org>
41005
41006         * lib/dup3.c (dup3): Test only once whether the system actually exists.
41007         * lib/pipe2.c (pipe2): Likewise.
41008         Suggested by Eric Blake.
41009
41010 2009-08-23  Bruno Haible  <bruno@clisp.org>
41011
41012         Tolerate declared but missing dup3 syscall.
41013         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
41014         * lib/unistd.in.h (dup3): If the function is already present,
41015         override it.
41016         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
41017         * modules/dup3 (Makefile.am): Compile dup3.c always.
41018         Reported by Paolo Bonzini.
41019
41020 2009-08-23  Bruno Haible  <bruno@clisp.org>
41021
41022         Tolerate declared but missing pipe2 syscall.
41023         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
41024         available.
41025         * lib/unistd.in.h (pipe2): If the function is already present,
41026         override it.
41027         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
41028         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
41029         Reported by Paolo Bonzini.
41030
41031 2009-08-23  Bruno Haible  <bruno@clisp.org>
41032
41033         * lib/pipe2.c (pipe2): Move #ifs inside function.
41034
41035 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41036
41037         quotearg: document limitations of quote_these_too
41038         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
41039         those limitations are created.
41040         * lib/quotearg.h (set_char_quoting): Document that digits and
41041         letters that are special after backslash are not permitted.
41042         (quotearg_char): Cross-reference set_char_quoting documentation.
41043
41044 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
41045
41046         quotearg: implement custom_quoting_style
41047         * lib/quotearg.c: (struct quoting_options): Add left_quote and
41048         right_quote fields.
41049         (set_custom_quoting): New public function.
41050         (quotearg_buffer_restyled): Add left_quote and right_quote
41051         arguments, handle them very much like locale quoting, and update
41052         all uses.
41053         (quotearg_n_custom): New public function.
41054         (quotearg_n_custom_mem): New public function.
41055         (quotearg_custom): New public function.
41056         (quotearg_custom_mem): New public function.
41057         * lib/quotearg.h: Prototype and document new public functions.
41058         (enum quoting_style): For escape_quoting_style and
41059         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
41060         ignored even though they're otherwise like c_quoting_style.
41061         Add custom_quoting_style member and document with comparison to
41062         clocale_quoting_style.
41063         * tests/test-quotearg.c (custom_quotes): New array.
41064         (custom_results): New array.
41065         (main): Extend to test custom quoting.
41066
41067 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41068
41069         quotearg: fix right quote escaping when it's in quote_these_too
41070         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
41071         quote, be sure to prepend only one backslash.
41072         * tests/test-quotearg.c (use_quote_double_quotes): New function.
41073         (main): Test it.
41074
41075 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41076
41077         quotearg-tests: test escaping of embedded locale quotes
41078         * tests/test-quotearg.c (struct result_strings): Add member for
41079         new input.
41080         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
41081         (inputs): Add new input.
41082         (results_g): Add expected results.
41083         (flag_results): Likewise.
41084         (locale_results): Likewise.
41085         (compare_strings): Check those.
41086
41087 2009-08-23  Bruno Haible  <bruno@clisp.org>
41088
41089         Tests for module 'dup3'.
41090         * modules/dup3-tests: New file.
41091         * tests/test-dup3.c: New file.
41092
41093         New module 'dup3'.
41094         * lib/unistd.in.h (dup3): New declaration.
41095         * lib/dup3.c: New file.
41096         * m4/dup3.m4: New file.
41097         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
41098         HAVE_DUP3.
41099         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
41100         * modules/dup3: New file.
41101         * doc/glibc-functions/dup3.texi: Mention the new module.
41102
41103 2009-08-23  Bruno Haible  <bruno@clisp.org>
41104
41105         Tweak the dup2 test.
41106         * tests/test-dup2.c (main): Create the test file empty. Verify that an
41107         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
41108         the test file is still empty. Fix argument order of lseek.
41109
41110 2009-08-23  Bruno Haible  <bruno@clisp.org>
41111
41112         Avoid test link errors when the modules getopt-gnu, gettext are used.
41113         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
41114         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41115
41116 2009-08-23  Bruno Haible  <bruno@clisp.org>
41117
41118         Fix getdtablesize() on mingw.
41119         * lib/getdtablesize.c (getdtablesize): Implement differently.
41120         * lib/unistd.in.h (getdtablesize): Improve comment.
41121
41122 2009-08-23  Bruno Haible  <bruno@clisp.org>
41123
41124         New module 'mkostemp'.
41125         Based on Ulrich Drepper's 2007-08-10 change in glibc.
41126         * lib/stdlib.in.h (mksotemp): New declaration.
41127         * lib/mkostemp.c: New file, from glibc with modifications.
41128         * lib/tempname.h (GT_FILE): Remove outdated comment.
41129         (gen_tempname): Add flags argument.
41130         * lib/tempname.c (__GT_BIGFILE): Remove macro.
41131         (__GT_FILE): Map to 1.
41132         (small_open, large_open): Remove macros.
41133         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
41134         * lib/mkstemp.c (mkstemp): Update.
41135         * lib/mkdtemp.c (mkdtemp): Likewise.
41136         * m4/mkostemp.m4: New file.
41137         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
41138         HAVE_MKOSTEMP.
41139         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
41140         HAVE_MKOSTEMP.
41141         * modules/mkostemp: New file, based on modules/mkstemp.
41142         * doc/glibc-functions/mkostemp.texi: Mention the new module.
41143         * NEWS: Mention the change.
41144
41145 2009-08-23  Bruno Haible  <bruno@clisp.org>
41146
41147         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
41148         Reported by Eric Blake.
41149
41150 2009-08-23  Bruno Haible  <bruno@clisp.org>
41151
41152         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
41153         Reported by Eric Blake.
41154
41155 2009-08-23  Bruno Haible  <bruno@clisp.org>
41156
41157         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
41158         * modules/pipe2 (Depends-on): Likewise.
41159
41160 2009-08-23  Eric Blake  <ebb9@byu.net>
41161
41162         fcntl-h: add O_TTY_INIT support
41163         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
41164         * tests/test-fcntl-h.c (o): Test it.
41165         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41166
41167         fcntl-h: rename from fcntl, in preparation for fcntl(2)
41168         * modules/fcntl: Move <fcntl.h> header replacement...
41169         * modules/fcntl-h: ...to new name, so as not to collide with
41170         like-named function.
41171         * tests/test-fcntl.c: Rename...
41172         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
41173         * modules/fcntl-tests: Rename...
41174         * modules/fcntl-h-tests: ...to this.  Update test file name.
41175         * modules/chdir-long (Depends-on): Update clients.
41176         * modules/chdir-safer (Depends-on): Likewise.
41177         * modules/fcntl-safer (Depends-on): Likewise.
41178         * modules/fts (Depends-on): Likewise.
41179         * modules/mkancesdirs (Depends-on): Likewise.
41180         * modules/mkdir-p (Depends-on): Likewise.
41181         * modules/open (Depends-on): Likewise.
41182         * modules/savewd (Depends-on): Likewise.
41183         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
41184         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41185
41186 2009-08-22  Bruno Haible  <bruno@clisp.org>
41187
41188         * modules/binary-io (License): Relicense under LGPL.
41189         * modules/pipe2 (License): Likewise.
41190
41191 2009-08-22  Bruno Haible  <bruno@clisp.org>
41192
41193         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
41194         return value.
41195         * lib/pipe-filter-gi.c (filter_init): Likewise.
41196         Reported by Eric Blake.
41197
41198 2009-08-22  Bruno Haible  <bruno@clisp.org>
41199
41200         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
41201         * modules/pipe (Depends-on): Add pipe2.
41202
41203 2009-08-22  Bruno Haible  <bruno@clisp.org>
41204
41205         Tests for module 'pipe2'.
41206         * modules/pipe2-tests: New file.
41207         * tests/test-pipe2.c: New file.
41208
41209         New module 'pipe2'.
41210         * lib/unistd.in.h (pipe2): New declaration.
41211         * lib/pipe2.c: New file.
41212         * m4/pipe2.m4: New file.
41213         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
41214         HAVE_PIPE2.
41215         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
41216         * modules/pipe2: New file.
41217         * doc/glibc-functions/pipe2.texi: Mention the new module.
41218
41219 2009-08-22  Bruno Haible  <bruno@clisp.org>
41220
41221         Reference some new glibc functions.
41222         * doc/glibc-functions/accept4.texi: New file.
41223         * doc/glibc-functions/dup3.texi: New file.
41224         * doc/glibc-functions/mkostemp.texi: New file.
41225         * doc/glibc-functions/pipe2.texi: New file.
41226         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
41227         (Glibc sys/socket.h): Refer to accept4.
41228         (Glibc unistd.h): Refer to dup3, pipe2.
41229         Reported by Eric Blake.
41230
41231 2009-08-22  Jim Meyering  <meyering@redhat.com>
41232             Bruno Haible  <bruno@clisp.org>
41233
41234         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
41235         This makes it so packages using automake-1.11's silent-rules option
41236         can print e.g., a single "GEN    configmake.h" line, rather than
41237         the 30+ statements that perform the job.  If you want to see the
41238         actual commands, you can still run "make V=1".
41239         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
41240         so that make output is abbreviated when those variables are defined
41241         appropriately.
41242         * modules/argz: Likewise.
41243         * modules/arpa_inet: Likewise.
41244         * modules/byteswap: Likewise.
41245         * modules/configmake: Likewise.
41246         * modules/dirent: Likewise.
41247         * modules/errno: Likewise.
41248         * modules/fcntl: Likewise.
41249         * modules/float: Likewise.
41250         * modules/fnmatch: Likewise.
41251         * modules/getopt-posix: Likewise.
41252         * modules/glob: Likewise.
41253         * modules/iconv_open: Likewise.
41254         * modules/inttypes: Likewise.
41255         * modules/localcharset: Likewise.
41256         * modules/locale: Likewise.
41257         * modules/math: Likewise.
41258         * modules/netdb: Likewise.
41259         * modules/netinet_in: Likewise.
41260         * modules/poll: Likewise.
41261         * modules/posix_spawnp-tests: Likewise.
41262         * modules/sched: Likewise.
41263         * modules/search: Likewise.
41264         * modules/selinux-h: Likewise.
41265         * modules/signal: Likewise.
41266         * modules/spawn: Likewise.
41267         * modules/stdarg: Likewise.
41268         * modules/stdbool: Likewise.
41269         * modules/stddef: Likewise.
41270         * modules/stdint: Likewise.
41271         * modules/stdio: Likewise.
41272         * modules/stdlib: Likewise.
41273         * modules/string: Likewise.
41274         * modules/strings: Likewise.
41275         * modules/sys_file: Likewise.
41276         * modules/sys_ioctl: Likewise.
41277         * modules/sys_select: Likewise.
41278         * modules/sys_socket: Likewise.
41279         * modules/sys_stat: Likewise.
41280         * modules/sys_time: Likewise.
41281         * modules/sys_times: Likewise.
41282         * modules/sys_utsname: Likewise.
41283         * modules/sys_wait: Likewise.
41284         * modules/sysexits: Likewise.
41285         * modules/time: Likewise.
41286         * modules/unistd: Likewise.
41287         * modules/wchar: Likewise.
41288         * modules/wctype: Likewise.
41289
41290 2009-08-22  Jim Meyering  <meyering@redhat.com>
41291
41292         announce-gen: detect write failure
41293         * build-aux/announce-gen: Add Coda at end.
41294         Remove equivalent-but-more-verbose block at top.
41295
41296 2009-08-19  Akim Demaille  <demaille@gostai.com>
41297
41298         bootstrap: --help to stdout.
41299         * bootstrap (usage): Don't send --help to stderr.
41300         Use a here doc instead of a long string.
41301
41302 2009-08-21  Eric Blake  <ebb9@byu.net>
41303
41304         test-popen-safer: split from test-popen
41305         * tests/test-popen.c (main): Move...
41306         * tests/test-popen.h: ...into new file.
41307         * tests/test-popen-safer2.c: New file.
41308         * modules/popen-tests (Files): Add test-popen.h.
41309         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
41310         Suggested by Bruno Haible.
41311
41312         test-fcntl-safer: split from test-open
41313         * tests/test-open.c (main): Move...
41314         * tests/test-open.h: ...into new file.
41315         * tests/test-fcntl-safer.c: New file.
41316         * modules/open-tests (Files): Add test-open.h.
41317         * modules/fcntl-safer-tests: New file.
41318         Suggested by Bruno Haible.
41319
41320         test-fopen-safer: split from test-fopen
41321         * tests/test-fopen.c (main): Move...
41322         * tests/test-fopen.h: ...into new file.
41323         * tests/test-fopen-safer.c: New file.
41324         * modules/fopen-tests (Files): Add test-fopen.h.
41325         * modules/fopen-safer-tests: New file.
41326         Suggested by Bruno Haible.
41327
41328 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
41329
41330         popen-safer: test O_CLOEXEC at run-time.
41331         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
41332
41333 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
41334
41335         fcntl: move more flags to the header
41336         * lib/cloexec.c: Do not define FD_CLOEXEC here.
41337         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
41338         * lib/fcntl.in.h: Do both things here.
41339
41340 2009-08-21  Jim Meyering  <meyering@redhat.com>
41341
41342         consistently remove $@-t before redirecting to it
41343         * modules/argz: Remove $@-t and $@ before redirecting to the former.
41344         * modules/alloca-opt: Likewise.
41345         * modules/byteswap: Likewise.
41346         * modules/fnmatch: Likewise.
41347         * modules/getopt-posix: Likewise.
41348         * modules/glob: Likewise.
41349         * modules/poll: Likewise.
41350         * modules/posix_spawnp-tests: Likewise.
41351         * modules/sys_socket: Likewise.
41352         * modules/sysexits: Likewise.
41353
41354 2009-08-21  Eric Blake  <ebb9@byu.net>
41355
41356         popen: simplify access to original popen
41357         * lib/popen.c (rpl_popen): No need to worry about popen being a
41358         macro.
41359         Reported by Bruno Haible.
41360
41361 2009-08-20  Eric Blake  <ebb9@byu.net>
41362
41363         build: avoid some compiler warnings
41364         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
41365         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
41366         type.
41367         (new_exclude_segment, excluded_file_pattern_p)
41368         (excluded_file_name_p): Reduce scope.
41369         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
41370         old-style declaration.
41371
41372 2009-08-20  Simon Josefsson  <simon@josefsson.org>
41373
41374         * tests/test-exclude1.sh: Handle Windows EOL.
41375         * tests/test-exclude2.sh: Likewise.
41376         * tests/test-exclude3.sh: Likewise.
41377         * tests/test-exclude4.sh: Likewise.
41378         * tests/test-exclude5.sh: Likewise.
41379         * tests/test-exclude6.sh: Likewise.
41380         * tests/test-exclude7.sh: Likewise.
41381
41382 2009-08-19  Akim Demaille  <demaille@gostai.com>
41383
41384         bootstrap: find sha1sum when named gsha1sum.
41385         * bootstrap (find_tool): New.
41386         ($SHA1SUM): New.
41387         Use it.
41388
41389 2009-08-20  Jim Meyering  <meyering@redhat.com>
41390
41391         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
41392         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
41393         expression that converts "." in a file name to "\." in the resulting
41394         regexp.  Start with a dummy statement, so that prior shell variable
41395         definitions are expanded portably.  Reported by Simon Josefsson.
41396
41397 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
41398
41399         Fix polling for writeability of a screen buffer.
41400         * lib/poll.c: Distinguish input and screen buffers for the
41401         Win32 implementation.
41402         * lib/select.c: Likewise.
41403
41404 2009-08-19  Eric Blake  <ebb9@byu.net>
41405
41406         popen-safer: prevent popen from clobbering std descriptors
41407         * modules/popen-safer: New file.
41408         * lib/popen-safer.c: Likewise.
41409         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
41410         * lib/stdio--.h (popen): Provide override.
41411         * lib/stdio-safer.h (popen_safer): Provide declaration.
41412         * tests/test-popen.c (includes): Partially test this.
41413         * modules/popen-safer-tests: New file, for more tests.
41414         * tests/test-popen-safer.c: Likewise.
41415         * MODULES.html.sh (file stream based Input/Output): Mention it.
41416
41417         tests: test some of the *-safer modules
41418         * modules/fopen-safer (Depends-on): Add fopen.
41419         * modules/fcntl-safer (Depends-on): Add fcntl.
41420         * modules/stdlib-safer (Depends-on): Add stdlib.
41421         (configure.ac): Set indicator.
41422         * modules/unistd-safer (configure.ac): Likewise.
41423         * modules/tmpfile-safer (configure.ac): Likewise.
41424         (Depends-on): Add tmpfile.
41425         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
41426         active.
41427         * tests/test-fopen.c (includes): Test safer versions when they are
41428         in use.
41429         * tests/test-open.c (includes): Likewise.
41430
41431         popen: fix cygwin 1.5 bug when stdin closed
41432         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
41433         * modules/popen: New file.
41434         * modules/popen-tests: Likewise.
41435         * tests/test-popen.c: Likewise.
41436         * m4/popen.m4: Likewise.
41437         * lib/popen.c: Likewise.
41438         * lib/stdio.in.h (popen): New declaration.
41439         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
41440         * modules/stdio (Makefile.am): Likewise.
41441         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
41442
41443 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
41444
41445         maint.mk: give full control over update-copyright exclusions
41446         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
41447         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
41448         (update-copyright): Don't force inclusion of top-level
41449         ChangeLog.  Don't force exclusion of all COPYING files, but make
41450         them the default exclusion instead.
41451
41452 2009-08-16  Bruno Haible  <bruno@clisp.org>
41453
41454         Fix test failures on Solaris 10.
41455         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
41456         tests when Solaris iconv() is used.
41457         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
41458         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
41459         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
41460         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
41461         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
41462
41463 2009-08-16  Bruno Haible  <bruno@clisp.org>
41464
41465         Fix test failures on Solaris 10.
41466         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
41467         'tr' program and pass it as first argument.
41468         * tests/test-pipe-filter-gi1.sh: Likewise.
41469         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
41470         program as first argument.
41471         * tests/test-pipe-filter-gi1.c (main): Likewise.
41472
41473 2009-08-16  Eric Blake  <ebb9@byu.net>
41474
41475         fpurge: fix previous commits
41476         * modules/fpurge (Makefile.am): Make replacement conditional,
41477         partially reverting 2007-04-29 change; missed in previous
41478         attempt.
41479         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
41480         is missing.
41481
41482 2009-08-16  Bruno Haible  <bruno@clisp.org>
41483
41484         Clarify fpurge's effect on the file position.
41485         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
41486         * tests/test-fpurge.c (main): Make a second pass for checking the file
41487         position.
41488
41489 2009-08-16  Bruno Haible  <bruno@clisp.org>
41490
41491         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
41492         declaration of fpurge is missing.
41493         * tests/test-fpurge.c (main): Check that the file has not more contents
41494         than expected. Close the file before removing it.
41495
41496 2009-08-15  Eric Blake  <ebb9@byu.net>
41497
41498         fpurge: don't wrap working cygwin implementation
41499         * lib/fpurge.c (fpurge): Fix comment typo.
41500         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
41501         1.7 to avoid replacement.
41502         * tests/test-fpurge.c (main): Enhance test.
41503
41504 2009-08-15  Eric Blake  <ebb9@byu.net>
41505         and Jim Meyering  <meyering@redhat.com>
41506
41507         test-update-copyright: skip if perl is insufficient
41508         * tests/test-update-copyright.sh: Failure to run maintainer tool
41509         should not cause testsuite failure on cygwin 1.5.
41510
41511 2009-08-14  Eric Blake  <ebb9@byu.net>
41512
41513         doc: mention more functions added in cygwin 1.7.0
41514         * doc/posix-headers/limits.texi (limits.h): Update for recent
41515         cygwin additions.
41516         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
41517         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
41518         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
41519         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
41520         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
41521
41522 2009-08-14  Eric Blake  <ebb9@byu.net>
41523
41524         maint.mk: simplify update-copyright rule
41525         * top/maint.mk (update-copyright-local): Delete, and document how
41526         to do it in cfg.mk instead.
41527         (update-copyright-exclude-regexp): Delete, and document how to do
41528         it in .x-update-copyright instead.
41529         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
41530         exclude ChangeLog.
41531
41532 2009-08-14  Bruno Haible  <bruno@clisp.org>
41533
41534         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
41535
41536 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
41537
41538         maint.mk: support update-copyright-env
41539         * top/maint.mk (update-copyright-env): Define place-holder.
41540         (update-copyright): Expand $(update-copyright-env) before
41541         invoking update-copyright.
41542
41543 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
41544
41545         update-copyright: implement forced reformatting
41546         * build-aux/update-copyright: Implement and document
41547         UPDATE_COPYRIGHT_FORCE.
41548         * tests/test-update-copyright.sh: Test it.
41549
41550 2009-08-14  Eric Blake  <ebb9@byu.net>
41551         and Bruno Haible  <bruno@clisp.org>
41552
41553         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
41554         * tests/test-locale.c: Revert previous patch related to NULL.
41555         * tests/test-stdio.c: Likewise.
41556         * tests/test-stdlib.c: Likewise.
41557         * tests/test-string.c: Likewise.
41558         * tests/test-unistd.c: Likewise.
41559         * modules/time-tests (Depends-on): Add verify.
41560         * modules/wchar-tests (Depends-on): Likewise.
41561         * tests/test-time.c: Test for NULL compliance.
41562         * tests/test-wchar.c: Likewise.
41563         * modules/locale (Depends-on): Add stddef.
41564         * modules/stdio (Depends-on): Likewise.
41565         * modules/stdlib (Depends-on): Likewise.
41566         * modules/string (Depends-on): Likewise.
41567         * modules/time (Depends-on): Likewise.
41568         * modules/unistd (Depends-on): Likewise.
41569         * modules/wchar (Depends-on): Likewise.
41570         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
41571         * lib/stdlib.in.h (includes): Likewise.
41572         * lib/string.in.h (includes): Likewise.
41573         * lib/time.in.h (includes): Likewise.
41574         * lib/unistd.in.h (includes): Likewise.
41575         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
41576         replaced.
41577         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
41578         * m4/stddef_h.m4: New file.
41579         * modules/stddef: Likewise.
41580         * lib/stddef.in.h: Likewise.
41581         * modules/stddef-tests: Likewise.
41582         * tests/test-stddef.c: Likewise.
41583         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
41584         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
41585         * doc/posix-headers/locale.texi (locale.h): Likewise.
41586         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
41587         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
41588         * doc/posix-headers/string.texi (string.h): Likewise.
41589         * doc/posix-headers/time.texi (time.h): Likewise.
41590         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
41591         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
41592
41593 2009-08-14  Eric Blake  <ebb9@byu.net>
41594
41595         doc: improve git diff of texinfo files
41596         * .gitattributes: Add rule for *.texi files, with hint on how to
41597         use it.
41598         Copied from m4, and based on a report by Bruno Haible.
41599
41600 2009-08-14  Bruno Haible  <bruno@clisp.org>
41601
41602         Disable multithread support by default on Cygwin 1.5.x for real.
41603         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
41604
41605 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
41606
41607         update-copyright: much ado about intervals
41608         * build-aux/update-copyright: Implement and document
41609         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
41610         of copyright year intervals.
41611         Also, document UPDATE_COPYRIGHT_YEAR.
41612         * tests/test-update-copyright.sh: Test it.
41613
41614         update-copyright: convert 2-digit to 4-digit years
41615         * build-aux/update-copyright: Implement and document.
41616         * tests/test-update-copyright.sh: Update.
41617
41618 2009-08-14  Jim Meyering  <meyering@redhat.com>
41619
41620         test-exclude: avoid coreutils "make check" failure
41621         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
41622         just as in test-argmatch.c.
41623
41624 2009-08-13  Eric Blake  <ebb9@byu.net>
41625
41626         test-dup2: fix bad assumption
41627         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
41628         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
41629
41630         test-version-etc: fix CRLF portability issue
41631         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
41632         recognize \r.
41633         * tests/test-argp-version-etc-1.sh: Likewise.
41634
41635         getopt: update client modules
41636         * modules/argp (Depends-on): Use getopt-gnu.
41637         * modules/git-merge-changelog (Depends-on): Likewise.
41638         * modules/long-options (Depends-on): Likewise.
41639         * modules/xstrtol (Depends-on): Likewise.
41640
41641 2009-08-13  Simon Josefsson  <simon@josefsson.org>
41642
41643         * tests/test-version-etc.sh: Don't fail on different
41644         project/version.  Don't fail on CRLF differences.  Rewrite to use
41645         multiple -e instead of multiple sed forks, suggested by Eric Blake
41646         <ebb9@byu.net>.
41647         * tests/test-argp-version-etc-1.sh: Likewise.
41648
41649 2009-08-13  Simon Josefsson  <simon@josefsson.org>
41650
41651         * tests/test-version-etc.sh: Don't fail on different
41652         project/version.
41653
41654 2009-08-12  Bruno Haible  <bruno@clisp.org>
41655
41656         Tests for modules 'getopt-posix', 'getopt-gnu'.
41657         * modules/getopt-posix-tests: New file.
41658         * tests/test-getopt.c: New file.
41659         * tests/test-getopt.h: New file.
41660         * tests/test-getopt_long.h: New file.
41661
41662         New modules 'getopt-posix', 'getopt-gnu'.
41663         * modules/getopt-gnu: New file, renamed from modules/getopt.
41664         * modules/getopt-posix: New file.
41665         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
41666         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
41667         (gl_GETOPT): Remove macro.
41668         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
41669         Disable the test against BSD systems that declare optreset. Test
41670         against mingw bug. Test against lack of support of optional arguments
41671         on many platforms.
41672         * doc/glibc-headers/getopt.texi: Update module name and list of
41673         relevant platforms.
41674         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
41675         'getopt-gnu' and more portability problems.
41676         * NEWS: Mention the changes.
41677
41678 2009-08-12  Bruno Haible  <bruno@clisp.org>
41679
41680         Ensure that optarg etc. get declared by <unistd.h>.
41681         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
41682         AC_USE_SYSTEM_EXTENSIONS.
41683         * modules/getopt (Depends-on): Add 'extensions'.
41684
41685 2009-08-12  Bruno Haible  <bruno@clisp.org>
41686
41687         Avoid test link errors.
41688         * modules/pipe-filter-ii-tests (Makefile.am): Define
41689         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
41690         * modules/pipe-filter-gi-tests (Makefile.am): Define
41691         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
41692         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41693
41694 2009-08-12  Bruno Haible  <bruno@clisp.org>
41695
41696         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
41697         gl_GETOPT_SUBSTITUTE before.
41698         (gl_GETOPT): Use it.
41699         * m4/argp.m4 (gl_ARGP): Update.
41700         Reported by Sergey Poznyakoff.
41701
41702         * m4/getopt.m4: Reorder macros.
41703         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
41704         (gl_GETOPT_SUBSTITUTE): Remove macro.
41705
41706 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
41707
41708         Minor improvement in gitlog-to-changelog
41709
41710         * build-aux/gitlog-to-changelog: New option `--format' makes
41711         output format string configurable.
41712
41713 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
41714
41715         Optimize exclude: use hash tables for non-wildcard patterns.
41716
41717         * lib/exclude.c: Include hash.h and mbuiter.h
41718         (struct exclude_pattern, exclude_segment): New data types.
41719         (struct exclude): Rewrite.
41720         (fnmatch_pattern_has_wildcards): New function.
41721         (new_exclude_segment, free_exclude_segment): New functions.
41722         (excluded_file_pattern_p, excluded_file_name_p): New functions.
41723         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
41724         * lib/exclude.h (is_fnmatch_pattern): New prototype.
41725         * modules/exclude: Depend on hash and mbuiter.
41726
41727         * modules/exclude-tests: New file.
41728         * tests/test-exclude.c: New file.
41729         * tests/test-exclude1.sh: New file.
41730         * tests/test-exclude2.sh: New file.
41731         * tests/test-exclude3.sh: New file.
41732         * tests/test-exclude4.sh: New file.
41733         * tests/test-exclude5.sh: New file.
41734         * tests/test-exclude6.sh: New file.
41735         * tests/test-exclude7.sh: New file.
41736
41737 2009-08-12  Bruno Haible  <bruno@clisp.org>
41738
41739         Ensure that getopt() gets declared by <unistd.h>.
41740         * lib/unistd.in.h: Conditionally include getopt.h.
41741         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
41742         Set GNULIB_UNISTD_H_GETOPT.
41743         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41744         GNULIB_UNISTD_H_GETOPT.
41745         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
41746
41747 2009-08-12  Bruno Haible  <bruno@clisp.org>
41748
41749         Clarify logic.
41750         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
41751         gl_replace_getopt instead of GETOPT_H.
41752
41753 2009-08-12  Bruno Haible  <bruno@clisp.org>
41754
41755         * m4/getopt.m4: Add comments.
41756
41757 2009-08-12  Bruno Haible  <bruno@clisp.org>
41758
41759         Disable multithread support by default on Cygwin 1.5.x.
41760         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
41761         set gl_use_threads=no if not specified otherwise.
41762
41763 2009-08-11  Bruno Haible  <bruno@clisp.org>
41764
41765         Avoid compilation error on NetBSD 5.0.
41766         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
41767         * tests/test-stdio.c: Likewise.
41768         * tests/test-stdlib.c: Likewise.
41769         * tests/test-string.c: Likewise.
41770         * tests/test-unistd.c: Likewise.
41771         Reported by Greg Troxel <gdt@ir.bbn.com>
41772         at <https://savannah.gnu.org/support/?106973>.
41773
41774 2009-08-11  Bruno Haible  <bruno@clisp.org>
41775
41776         * modules/dup2-tests (Depends-on): Remove close.
41777
41778         Undo 2009-07-19 commit.
41779         * modules/acl-tests (Depends-on): Remove close.
41780         * modules/binary-io-tests (Depends-on): Likewise.
41781         * modules/closein-tests (Depends-on): Likewise.
41782         * modules/flock-tests (Depends-on): Likewise.
41783         * modules/fsync-tests (Depends-on): Likewise.
41784         * modules/lseek-tests (Depends-on): Likewise.
41785         * modules/pipe-tests (Depends-on): Likewise.
41786         * modules/posix_spawn-tests (Depends-on): Likewise.
41787         * modules/posix_spawnp-tests (Depends-on): Likewise.
41788         * modules/stat-time-tests (Depends-on): Likewise.
41789         * modules/yesno-tests (Depends-on): Likewise.
41790
41791 2009-08-10  Bruno Haible  <bruno@clisp.org>
41792
41793         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
41794
41795 2009-08-10  Bruno Haible  <bruno@clisp.org>
41796
41797         Fix a gcc warning.
41798         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
41799
41800 2009-08-10  Bruno Haible  <bruno@clisp.org>
41801
41802         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
41803         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
41804         not only the first time.
41805         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
41806         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
41807         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
41808         is 1, not only the the first time.
41809
41810 2009-08-10  Bruno Haible  <bruno@clisp.org>
41811
41812         Make it possible to use module 'gethostname' without module 'close'.
41813         * lib/unistd.in.h (close): Evoke a link error only if
41814         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
41815         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41816         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
41817         * modules/unistd (Makefile.am): Substitute
41818         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
41819         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
41820         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
41821         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
41822         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
41823         * modules/sys_ioctl (Makefile.am): Substitute
41824         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
41825         * modules/socket (configure.ac): On native Windows, set
41826         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
41827         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
41828         Reported by Sam Steingold <sds@gnu.org>.
41829
41830 2009-08-10  Bruno Haible  <bruno@clisp.org>
41831
41832         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
41833         * modules/ioctl (configure.ac): Likewise.
41834
41835 2009-08-10  Bruno Haible  <bruno@clisp.org>
41836
41837         Avoid collision between gnulib wrapper and libintl wrapper.
41838         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
41839         already defined in intl/printf.c.
41840         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
41841         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
41842
41843 2009-08-09  Bruno Haible  <bruno@clisp.org>
41844
41845         Make <sys/select.h> really self-contained, also on Solaris 10.
41846         * lib/sys_select.in.h: Include <string.h>.
41847         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
41848         Solaris 10 problem.
41849         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
41850         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
41851         Reported by Jim Meyering.
41852
41853 2009-08-09  Bruno Haible  <bruno@clisp.org>
41854
41855         Avoid warnings from 'aclocal' that are due to a use of macro name
41856         AM_XGETTEXT_OPTION that is not defined in automake.
41857         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
41858         automake.
41859         * modules/error (configure.ac): Likewise.
41860         * modules/propername (configure.ac): Likewise.
41861         * modules/vasprintf (configure.ac): Likewise.
41862         * modules/verror (configure.ac): Likewise.
41863         * modules/xprintf (configure.ac): Likewise.
41864         * modules/xvasprintf (configure.ac): Likewise.
41865
41866 2009-08-08  Bruno Haible  <bruno@clisp.org>
41867
41868         Avoid compilation error in C++ mode.
41869         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
41870         Reported by Sam Steingold <sds@gnu.org>.
41871
41872 2009-08-08  Bruno Haible  <bruno@clisp.org>
41873
41874         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
41875         for the various Unix platforms.
41876         * doc/posix-headers/limits.texi: Update platforms list regarding
41877         HOST_NAME_MAX.
41878         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41879
41880 2009-08-07  Jim Meyering  <meyering@redhat.com>
41881
41882         selinux-at: fix typo in a comment
41883         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
41884         Spotted by Paolo Bonzini.
41885
41886         selinux-at: remove redundant m4 code, add documentation
41887         * modules/selinux-at (configure.ac): Remove redundant code.
41888         LIB_SELINUX is already set via the dependent module, selinux-h.
41889         (Include): Add quotes around selinux-at.h.
41890         * lib/selinux-at.h: Add documentation.
41891         Reported by Bruno Haible in
41892         http://marc.info/?l=gnulib-bug&m=124958988300749
41893
41894 2009-08-07  Bruno Haible  <bruno@clisp.org>
41895
41896         Avoid link error on MacOS X 10.3 and 10.4.
41897         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
41898         on non-ELF systems.
41899         * lib/argp-pv.c (argp_program_version): Likewise.
41900         Reported by Simon Josefsson.
41901
41902 2009-08-07  Simon Josefsson  <simon@josefsson.org>
41903
41904         * tests/test-version-etc.sh: Use $EXEEXT.
41905
41906 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
41907
41908         update-copyright: update documentation to point to maint.mk
41909         * build-aux/update-copyright: Here.
41910
41911 2009-08-06  Jim Meyering  <meyering@redhat.com>
41912
41913         maint.mk: support update-copyright-local
41914         * top/maint.mk (update-copyright-local): Define place-holder.
41915         (update-copyright): Depend on $(update-copyright-local).
41916
41917 2009-08-06  Jim Meyering  <meyering@redhat.com>
41918
41919         selinux-at: new module
41920         Initially written for coreutils, this module will soon be
41921         used by findutils, too.
41922         * MODULES.html.sh [Misc]: Add selinux-at.
41923         * lib/selinux-at.h: New file, from coreutils.
41924         * lib/selinux-at.c: Likewise.
41925         * modules/selinux-at: Likewise.
41926         (License): Change from LGPL to GPL, since it depends
41927         on the GPL'd openat module.
41928
41929         doc: update README
41930         * README: Remove references to cogito.
41931         Remove cvs-repo-updating instructions from 2007.
41932         Don't imply that CVS is better if you have limited disk space.
41933
41934 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
41935
41936         update-copyright: support C-style comments
41937         * build-aux/update-copyright: Implement and document.
41938         * tests/test-update-copyright.sh: Test.
41939
41940 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
41941
41942         update-copyright: support omitted "(C)"
41943         * build-aux/update-copyright: Implement and document.  Also,
41944         allow variable whitespace before "(C)".
41945         * tests/test-update-copyright.sh: Test.
41946
41947 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
41948
41949         update-copyright: don't trip on non-FSF copyright statements
41950         * build-aux/update-copyright: Fix so that the first correctly
41951         formatted FSF copyright statement is recognized no matter what
41952         appears before it.  Update documentation.
41953         * tests/test-update-copyright.sh: Test that.
41954
41955 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
41956
41957         update-copyright: clean up code a little
41958         * build-aux/update-copyright: Append "_re" to the name of any
41959         variable holding a regular expression.
41960         Replace "old" and "new" with "stmt" in variable names.
41961         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
41962         handled correctly.
41963         Format code more consistently.
41964
41965 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
41966
41967         update-copyright-tests: improve portability
41968         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
41969         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
41970
41971 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
41972
41973         update-copyright: support @copyright{} and &copy;
41974         * build-aux/update-copyright: Implement and document.
41975         * tests/test-update-copyright.sh: Test.
41976
41977 2009-08-04  Jim Meyering  <meyering@redhat.com>
41978
41979         update-copyright-tests: correctly test EOL=\r\n handling
41980         * tests/test-update-copyright.sh: Put \r at the end of some lines
41981         for the dos-eol tests.  Based on a patch by Joel E. Denny.
41982
41983         maint.mk: make update-copyright exclusion list more configurable
41984         * top/maint.mk (update-copyright): Default to excluding COPYING,
41985         but allow an override, in case someone does want to update that file.
41986
41987         maint.mk: don't update copyright date in COPYING
41988         * top/maint.mk (update-copyright): Exclude COPYING.
41989
41990         maint.mk: add a copyright-updating rule
41991         * top/maint.mk (update-copyright): New rule.
41992         Derived from coreutils/Makefile.am.
41993
41994         update-copyright: rename some variables
41995         * build-aux/update-copyright: Rename a few variables for clarity.
41996         Tweak syntax.  List Joel E. Denny as coauthor.
41997
41998 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
41999
42000         update-copyright: fix bug for 2-digit last year and add tests
42001         * build-aux/update-copyright: Fix bug.
42002         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
42003         specified.
42004         * modules/update-copyright-tests: New
42005         * tests/test-update-copyright.sh: New.
42006
42007 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42008
42009         update-copyright: handle leading tabs in line prefix
42010         * build-aux/update-copyright: Count leading tabs as 8 spaces
42011         when computing margin.  This helps with the formatting of
42012         ChangeLogs, for example.
42013         Fix documentation a little.
42014
42015 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42016
42017         update-copyright: support EOL=\r\n
42018         * build-aux/update-copyright: Implement that.
42019
42020 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42021
42022         update-copyright: automatically format copyright statements
42023         * build-aux/update-copyright: Implement that.
42024         Also, be a little more predictable and safer by always failing
42025         when the full copyright format is not perfectly recognized as an
42026         unbroken whole.  Discussed at
42027         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
42028         Rewrite documentation.
42029
42030 2009-08-03  Bruno Haible  <bruno@clisp.org>
42031
42032         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
42033
42034 2009-08-02  Bruno Haible  <bruno@clisp.org>
42035
42036         Tests for module 'uname'.
42037         * modules/uname-tests: New file.
42038         * tests/test-uname.c: New file.
42039
42040         New module 'uname'.
42041         * lib/uname.c: New file.
42042         * m4/uname.m4: New file.
42043         * modules/uname: New file.
42044         * doc/posix-functions/uname.texi: Mention the new module.
42045
42046 2009-08-02  Bruno Haible  <bruno@clisp.org>
42047
42048         Tests for module 'sys_utsname'.
42049         * modules/sys_utsname-tests: New file.
42050         * tests/test-sys_utsname.c: New file.
42051
42052         New module 'sys_utsname'.
42053         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
42054         * m4/sys_utsname_h.m4: New file.
42055         * modules/sys_utsname: New file.
42056         * doc/posix-headers/sys_utsname.texi: Mention the new module.
42057
42058 2009-08-02  Bruno Haible  <bruno@clisp.org>
42059
42060         Implicitly initialize the sockets library.
42061         * lib/gethostname.c: Include sockets.h.
42062         (rpl_gethostname): Invoke gl_sockets_startup.
42063         * lib/socket.c: Include sockets.h.
42064         (rpl_socket): Invoke gl_sockets_startup.
42065         * modules/gethostname (Depends-on): Add sockets.
42066         * modules/socket (Depends-on): Likewise.
42067         * tests/test-poll.c: Don't include sockets.h.
42068         (main): Don't invoke gl_sockets_startup.
42069         * tests/test-select.c: Don't include sockets.h.
42070         (main): Don't invoke gl_sockets_startup.
42071
42072 2009-08-02  Bruno Haible  <bruno@clisp.org>
42073
42074         Allow multiple calls to gl_sockets_startup.
42075         * lib/sockets.c (initialized_sockets_version): New variable.
42076         (gl_sockets_startup): Do nothing if already called for this or a higher
42077         version.
42078         (gl_sockets_cleanup): Reset initialized_sockets_version.
42079
42080 2009-08-03  Simon Josefsson  <simon@josefsson.org>
42081
42082         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
42083         different project/version.
42084
42085 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
42086             Bruno Haible  <bruno@clisp.org>
42087
42088         Tests for module 'pipe-filter-gi'.
42089         * modules/pipe-filter-gi-tests: New file.
42090         * tests/test-pipe-filter-gi1.sh: New file.
42091         * tests/test-pipe-filter-gi1.c: New file.
42092         * tests/test-pipe-filter-gi2.sh: New file.
42093         * tests/test-pipe-filter-gi2-main.c: New file.
42094         * tests/test-pipe-filter-gi2-child.c: New file.
42095
42096         New module 'pipe-filter-gi'.
42097         * lib/pipe-filter-gi.c: New file.
42098         * modules/pipe-filter-gi: New file.
42099
42100 2009-08-02  Bruno Haible  <bruno@clisp.org>
42101             Paolo Bonzini  <bonzini@gnu.org>
42102
42103         Tests for module 'pipe-filter-ii'.
42104         * modules/pipe-filter-ii-tests: New file.
42105         * tests/test-pipe-filter-ii1.sh: New file.
42106         * tests/test-pipe-filter-ii1.c: New file.
42107         * tests/test-pipe-filter-ii2.sh: New file.
42108         * tests/test-pipe-filter-ii2-main.c: New file.
42109         * tests/test-pipe-filter-ii2-child.c: New file.
42110
42111         New module 'pipe-filter-ii'.
42112         * lib/pipe-filter.h: New file.
42113         * lib/pipe-filter-ii.c: New file.
42114         * lib/pipe-filter-aux.h: New file.
42115         * modules/pipe-filter-ii: New file.
42116
42117 2009-08-02  Simon Josefsson  <simon@josefsson.org>
42118
42119         * lib/gc-libgcrypt.c: Change copyright to FSF.
42120         * lib/gc-gnulib.c: Likewise.
42121
42122 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
42123
42124         * lib/gethostname.c: Include limits.h.
42125
42126 2009-08-02  Simon Josefsson  <simon@josefsson.org>
42127             Bruno Haible  <bruno@clisp.org>
42128
42129         Ensure HOST_NAME_MAX as part of the gethostname module.
42130         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
42131         define also HOST_NAME_MAX.
42132         * tests/test-gethostname.c: Include <limits.h>.
42133         (main): Check also HOST_NAME_MAX.
42134         * doc/posix-headers/limits.texi: Document the mingw problem.
42135
42136 2009-08-02  Bruno Haible  <bruno@clisp.org>
42137
42138         * lib/gethostname.c (gethostname): Fix handling of large len argument.
42139         Add comments.
42140
42141 2009-03-31  Simon Josefsson  <simon@josefsson.org>
42142
42143         * lib/gethostname.c: Add Windows wrapper.
42144         * m4/gethostname.m4: Look for gethostname in -lws2_32.
42145         * modules/gethostname: Depend on sys_socket & errno, for also
42146         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
42147         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
42148
42149 2009-07-31  Jim Meyering  <meyering@redhat.com>
42150
42151         getloadavg: fix symbol name in comment
42152         * lib/getloadavg.c: Correct a typo I introduced when adding
42153         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
42154         Matt Kraai spotted the problem.
42155
42156 2009-07-29  Matt Kraai  <mkraai@beckman.com>
42157
42158         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
42159         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
42160         code also if ! defined N_NAME_POINTER.
42161         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
42162         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
42163         but the n_name member is a 12-byte array.
42164
42165 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
42166
42167         update-copyright: generalize comment handling
42168         * build-aux/update-copyright: Handle copyright statements
42169         within more comment styles.
42170         Document usage.
42171         Report any file with an external copyright holder or parse failure.
42172
42173 2009-07-29  Jim Meyering  <meyering@redhat.com>
42174
42175         mktime: correct setting of REPLACE_MKTIME
42176         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
42177
42178         update-copyright: new module
42179         * modules/update-copyright: New file.
42180         * build-aux/update-copyright: New file.
42181         * MODULES.html.sh (maint+release support): Add update-copyright.
42182
42183 2009-07-27  Bruno Haible  <bruno@clisp.org>
42184
42185         Fix compilation error when <ctime> is used and mktime is replaced.
42186         * lib/time.in.h (mktime): New declaration.
42187         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
42188         REPLACE_MKTIME instead of defining mktime in config.h.
42189         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
42190         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
42191         Reported by Ross McFarland <rwmcfa1@neces.com>.
42192
42193 2009-07-27  Bruno Haible  <bruno@clisp.org>
42194
42195         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
42196         Reported by Matt Kraai <mkraai@beckman.com>.
42197
42198 2009-07-25  Jim Meyering  <meyering@redhat.com>
42199
42200         maint.mk: avoid warnings about missing files
42201         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
42202         diagnostic when .prev-version does not exist.
42203         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
42204         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
42205         nonexistent cfg.mk.
42206         Suggestions from Simon Josefsson.
42207
42208 2009-07-25  Bruno Haible  <bruno@clisp.org>
42209
42210         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
42211         defined as macros. Needed on QNX 6.4.1.
42212         Reported by Matt Kraai <mkraai@beckman.com>.
42213
42214 2009-07-23  Jim Meyering  <meyering@redhat.com>
42215
42216         maint.mk: invoke "make dist" with a working value of XZ_OPT
42217         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
42218
42219 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
42220
42221         Make fseeko.c compile on QNX.
42222         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
42223
42224 2009-07-22  Peter Simons  <simons@cryp.to>
42225
42226         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
42227         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
42228         * lib/md4.h: Likewise.
42229         * lib/md5.h: Likewise.
42230         * lib/sha1.h: Likewise.
42231         * lib/sha256.h: Likewise.
42232         * lib/sha512.h: Likewise.
42233
42234         tests-sha1: don't assign literal string to 'char *' variable
42235         * tests/test-sha1.c (main): Declare locals with "const" to match
42236         attributes of the right hand side.
42237
42238 2009-07-21  Eric Blake  <ebb9@byu.net>
42239
42240         dup2: fix more mingw problems
42241         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
42242         fd to itself.
42243         * doc/posix-functions/dup2.texi (dup2): Document the bug.
42244         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
42245         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
42246         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
42247         care of mingw bugs.
42248
42249 2009-07-21  Jim Meyering  <meyering@redhat.com>
42250
42251         vc-list-files: avoid failure when /bin/sh is dash
42252         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
42253         On some Debian based systems, /bin/sh is a symlink to dash, and running
42254         this command would omit the "/" following each 'tests' prefix:
42255           dash -x build-aux/vc-list-files -C . tests
42256         That is because bash and dash work differently:
42257           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
42258           bash ok
42259           dash odd
42260
42261 2009-07-21  Eric Blake  <ebb9@byu.net>
42262
42263         dup2-tests: test previous patch
42264         * modules/dup2-tests: New file.
42265         * tests/test-dup2.c: Likewise.
42266         * tests/test-open.c (main): Avoid unspecified behavior.
42267         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
42268         test.
42269
42270         dup2: work around mingw and cygwin 1.5 bug
42271         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
42272         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42273         * modules/unistd (Makefile.am): Substitute it.
42274         * lib/unistd.in.h (dup2): Declare the replacement.
42275         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
42276         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
42277         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
42278         * modules/execute (Depends-on): Add dup2.
42279         * modules/fseterr (Depends-on): Likewise.
42280         * modules/pipe (Depends-on): Likewise.
42281         * modules/posix_spawn-internal (Depends-on): Likewise.
42282
42283 2009-07-21  Bruno Haible  <bruno@clisp.org>
42284
42285         * modules/.gitattributes: New file.
42286
42287 2009-07-20  Bruno Haible  <bruno@clisp.org>
42288
42289         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
42290         (main): Use it.
42291
42292 2009-07-20  Eric Blake  <ebb9@byu.net>
42293
42294         test-pipe: make a bit more robust.
42295         * tests/test-pipe.c (myerr): Allow error messages regardless of
42296         what we do to stderr.
42297         (test_pipe): Rearrange to avoid deadlock.
42298         (child_main): Try a larger read, to ensure we avoided deadlock.
42299         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
42300         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
42301         if misused.
42302
42303 2009-07-19  Jim Meyering  <meyering@redhat.com>
42304
42305         fts: avoid false-positive cycle-detection
42306         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
42307         for each new command line argument.
42308
42309 2009-07-19  Bruno Haible  <bruno@clisp.org>
42310
42311         Fix build error on mingw with the modules sys_select and unistd.
42312         * modules/acl-tests (Depends-on): Add close.
42313         * modules/binary-io-tests (Depends-on): Likewise.
42314         * modules/closein-tests (Depends-on): Likewise.
42315         * modules/flock-tests (Depends-on): Likewise.
42316         * modules/fsync-tests (Depends-on): Likewise.
42317         * modules/lseek-tests (Depends-on): Likewise.
42318         * modules/pipe-tests (Depends-on): Likewise.
42319         * modules/posix_spawn-tests (Depends-on): Likewise.
42320         * modules/posix_spawnp-tests (Depends-on): Likewise.
42321         * modules/stat-time-tests (Depends-on): Likewise.
42322         * modules/yesno-tests (Depends-on): Likewise.
42323
42324 2009-07-19  Bruno Haible  <bruno@clisp.org>
42325
42326         Unify conditionals.
42327         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
42328         macros, not at the compiler macros.
42329         * lib/pipe.c: Likewise.
42330         * lib/execute.c: Likewise.
42331         * lib/spawni.c: Likewise.
42332
42333 2009-07-19  Bruno Haible  <bruno@clisp.org>
42334
42335         Fix handling of closed stdin/stdout/stderr on mingw.
42336         * lib/w32spawn.h: Include unistd.h.
42337         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
42338         file descriptor with O_NOINHERIT flag.
42339         (fd_safer_noinherit): New function, based on fd-safer.c.
42340         (dup_safer_noinherit): New function, based on dup-safer.c.
42341         (undup_safer_noinherit): New function.
42342         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
42343         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
42344         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
42345         instead of fd_safer.
42346         * tests/test-pipe.c: Include <windows.h>.
42347         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
42348         result.
42349
42350         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
42351         from main.
42352         (test_pipe): Pass an extra argument for disambiguation.
42353         (main): Invoke parent_main or child_main.
42354
42355         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
42356         consistently.
42357
42358 2009-07-18  Eric Blake  <ebb9@byu.net>
42359
42360         test-pipe: fix mingw build
42361         * tests/test-pipe.c (main): Avoid fcntl on mingw.
42362
42363 2009-07-18  Bruno Haible  <bruno@clisp.org>
42364
42365         * modules/pipe-tests (Makefile.am): Fix typo.
42366
42367 2009-07-18  Eric Blake  <ebb9@byu.net>
42368
42369         error: fix mingw build
42370         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
42371         Reported by Bruno Haible.
42372
42373         error: avoid undefined use of stdout
42374         * lib/error.c (error, error_at_line): Check that fd 1 is open
42375         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
42376         is handling faults and the close_stdout module wants to report the
42377         detection of closed stdout as an error.
42378
42379 2009-07-17  Eric Blake  <ebb9@byu.net>
42380
42381         pipe: be robust in face of closed fds
42382         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
42383         should cause child to misbehave.
42384         * modules/pipe-tests: New module.
42385         * tests/test-pipe.c: New file.
42386         * tests/test-pipe.sh: New file.
42387         Reported by Akim Demaille.
42388
42389 2009-07-14  Bruno Haible  <bruno@clisp.org>
42390
42391         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
42392         Reported by anonymous kc.
42393
42394 2009-07-07  Jim Meyering  <meyering@redhat.com>
42395
42396         maint.mk: don't look for translatable strings in *.m4 or *.mk
42397         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
42398         when searching for translatable strings.
42399
42400 2009-07-05  Jim Meyering  <meyering@redhat.com>
42401
42402         remove superfluous parentheses in STREQ definition
42403         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
42404         * lib/getugroups.c (STREQ): Likewise.
42405         * lib/fnmatch.c (STREQ): Likewise.
42406         Spotted by Bruno Haible.
42407
42408 2009-07-04  Jim Meyering  <meyering@redhat.com>
42409
42410         argv-iter: new module
42411         * MODULES.html.sh: Add argv-iter.
42412         * lib/argv-iter.c, lib/argv-iter.h: New files.
42413         * modules/argv-iter: New file.
42414         * modules/argv-iter-tests: New file.
42415         * tests/test-argv-iter.c: Test it.
42416
42417 2009-07-04  Bruno Haible  <bruno@clisp.org>
42418
42419         Fix assertion.
42420         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
42421         contains more exact copies of a given entry than file2, leave the extra
42422         copies unpaired rather than aborting.
42423         Reported by Eric Blake.
42424
42425 2009-07-02  Bruno Haible  <bruno@clisp.org>
42426
42427         Speedup git-merge-changelog for git cherry-pick.
42428         * lib/git-merge-changelog.c (struct entries_mapping): New type.
42429         (entries_mapping_get): New function, extracted from compute_mapping.
42430         (entries_mapping_reverse_get): New function.
42431         (compute_mapping): Add a 'full' argument. Return the result in a
42432         'struct entries_mapping'.
42433         (main): Update. Access the mappings through entries_mapping_get.
42434         Reported by Eric Blake.
42435
42436 2009-07-02  Bruno Haible  <bruno@clisp.org>
42437
42438         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
42439         best_i.
42440
42441 2009-07-02  Bruno Haible  <bruno@clisp.org>
42442
42443         Speed up approximate search for matching ChangeLog entries.
42444         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
42445         argument. Call fstrcmp_bounded instead of fstrcmp.
42446         (compute_mapping, try_split_merged_entry, main): Update callers.
42447
42448 2009-07-02  Bruno Haible  <bruno@clisp.org>
42449
42450         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
42451
42452 2009-06-30  Bruno Haible  <bruno@clisp.org>
42453
42454         Reduce the number of uc_is_cased calls.
42455         * lib/unicase.h (casing_suffix_context_t): Add
42456         'first_char_except_ignorable' field.
42457         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
42458         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
42459         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
42460         Update initializer.
42461         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
42462         case-ignorable characters.
42463         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
42464         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
42465         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
42466         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
42467         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
42468
42469 2009-06-30  Bruno Haible  <bruno@clisp.org>
42470
42471         Tests for module 'unicase/ignorable'.
42472         * modules/unicase/ignorable-tests: New file.
42473         * tests/unicase/test-ignorable.c: New file, generated by
42474         gen-uni-tables.
42475
42476         Tests for module 'unicase/cased'.
42477         * modules/unicase/cased-tests: New file.
42478         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
42479         * tests/unicase/test-predicate-part1.h: New file, derived from
42480         tests/unictype/test-predicate-part1.h.
42481         * tests/unicase/test-predicate-part2.h: New file, same as
42482         tests/unictype/test-predicate-part2.h.
42483
42484         Fix evaluation of "Before C" condition of FINAL_SIGMA.
42485         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
42486         (output_casing_properties): New function.
42487         (main): Call it.
42488         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
42489         * lib/unicase/cased.c: Include unictype/bitmap.h.
42490         (uc_is_cased): Define through a bitmap lookup.
42491         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
42492         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
42493         (uc_is_case_ignorable): Define through a bitmap lookup.
42494         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
42495         lib/unictype/bitmap.h.
42496         (Depends-on): Add inline. Clean up.
42497         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
42498         lib/unictype/bitmap.h.
42499         (Depends-on): Add inline. Clean up.
42500         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
42501         recognition.
42502         * tests/unicase/test-u16-tolower.c (main): Likewise.
42503         * tests/unicase/test-u32-tolower.c (main): Likewise.
42504
42505 2009-06-30  Bruno Haible  <bruno@clisp.org>
42506
42507         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
42508         * lib/unicase/u16-casemap.c: Likewise.
42509         * lib/unicase/u32-casemap.c: Likewise.
42510
42511 2009-06-29  Bruno Haible  <bruno@clisp.org>
42512
42513         Define u32_casefold as a wrapper around u32_ct_casefold.
42514         * lib/unicase/u32-casefold.c: Update.
42515         * modules/unicase/u32-casefold (Depends-on): Add
42516         unicase/u32-ct-casefold, unicase/empty-prefix-context,
42517         unicase/empty-suffix-context. Clean up.
42518
42519         Define u16_casefold as a wrapper around u16_ct_casefold.
42520         * lib/unicase/u16-casefold.c: Update.
42521         * modules/unicase/u16-casefold (Depends-on): Add
42522         unicase/u16-ct-casefold, unicase/empty-prefix-context,
42523         unicase/empty-suffix-context. Clean up.
42524
42525         Define u8_casefold as a wrapper around u8_ct_casefold.
42526         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
42527         * lib/unicase/u8-casefold.c: Update.
42528         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
42529         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42530
42531         Define u32_totitle as a wrapper around u32_ct_totitle.
42532         * lib/unicase/u32-totitle.c: Update.
42533         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
42534         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42535
42536         Define u16_totitle as a wrapper around u16_ct_totitle.
42537         * lib/unicase/u16-totitle.c: Update.
42538         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
42539         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42540
42541         Define u8_totitle as a wrapper around u8_ct_totitle.
42542         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
42543         functions.
42544         (FUNC): Delegate to U_CT_TOTITLE.
42545         * lib/unicase/u8-totitle.c: Update.
42546         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
42547         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42548
42549         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
42550         invocation.
42551         * modules/unicase/u32-tolower (Depends-on): Add
42552         unicase/empty-prefix-context, unicase/empty-suffix-context.
42553
42554         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
42555         invocation.
42556         * modules/unicase/u16-tolower (Depends-on): Add
42557         unicase/empty-prefix-context, unicase/empty-suffix-context.
42558
42559         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
42560         * modules/unicase/u8-tolower (Depends-on): Add
42561         unicase/empty-prefix-context, unicase/empty-suffix-context.
42562
42563         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
42564         invocation.
42565         * modules/unicase/u32-toupper (Depends-on): Add
42566         unicase/empty-prefix-context, unicase/empty-suffix-context.
42567
42568         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
42569         invocation.
42570         * modules/unicase/u16-toupper (Depends-on): Add
42571         unicase/empty-prefix-context, unicase/empty-suffix-context.
42572
42573         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
42574         * modules/unicase/u8-toupper (Depends-on): Add
42575         unicase/empty-prefix-context, unicase/empty-suffix-context.
42576
42577         New module 'unicase/u32-ct-casefold'.
42578         * lib/unicase/u32-ct-casefold.c: New file.
42579         * modules/unicase/u32-ct-casefold: New file.
42580
42581         New module 'unicase/u16-ct-casefold'.
42582         * lib/unicase/u16-ct-casefold.c: New file.
42583         * modules/unicase/u16-ct-casefold: New file.
42584
42585         New module 'unicase/u8-ct-casefold'.
42586         * lib/unicase/u8-ct-casefold.c: New file.
42587         * lib/unicase/u-ct-casefold.h: New file, derived from
42588         lib/unicase/u-casefold.h.
42589         * modules/unicase/u8-ct-casefold: New file.
42590
42591         New module 'unicase/u32-ct-totitle'.
42592         * lib/unicase/u32-ct-totitle.c: New file.
42593         * modules/unicase/u32-ct-totitle: New file.
42594
42595         New module 'unicase/u16-ct-totitle'.
42596         * lib/unicase/u16-ct-totitle.c: New file.
42597         * modules/unicase/u16-ct-totitle: New file.
42598
42599         New module 'unicase/u8-ct-totitle'.
42600         * lib/unicase/u8-ct-totitle.c: New file.
42601         * lib/unicase/u-ct-totitle.h: New file, derived from
42602         lib/unicase/u-totitle.h.
42603         * modules/unicase/u8-ct-totitle: New file.
42604
42605         New module 'unicase/u32-ct-tolower'.
42606         * lib/unicase/u32-ct-tolower.c: New file.
42607         * modules/unicase/u32-ct-tolower: New file.
42608
42609         New module 'unicase/u16-ct-tolower'.
42610         * lib/unicase/u16-ct-tolower.c: New file.
42611         * modules/unicase/u16-ct-tolower: New file.
42612
42613         New module 'unicase/u8-ct-tolower'.
42614         * lib/unicase/u8-ct-tolower.c: New file.
42615         * modules/unicase/u8-ct-tolower: New file.
42616
42617         New module 'unicase/u32-ct-toupper'.
42618         * lib/unicase/u32-ct-toupper.c: New file.
42619         * modules/unicase/u32-ct-toupper: New file.
42620
42621         New module 'unicase/u16-ct-toupper'.
42622         * lib/unicase/u16-ct-toupper.c: New file.
42623         * modules/unicase/u16-ct-toupper: New file.
42624
42625         New module 'unicase/u8-ct-toupper'.
42626         * lib/unicase/u8-ct-toupper.c: New file.
42627         * modules/unicase/u8-ct-toupper: New file.
42628
42629         Add context arguments to u*_casemap functions.
42630         * lib/unicase/unicasemap.h: Include unicase.h.
42631         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
42632         suffix_context arguments.
42633         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
42634         functions.
42635         (FUNC): Add prefix_context and suffix_context arguments. Use
42636         uc_is_cased and uc_is_case_ignorable.
42637         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
42638         * lib/unicase/u16-casemap.c: Likewise.
42639         * lib/unicase/u32-casemap.c: Likewise.
42640         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
42641         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
42642         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
42643         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
42644         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
42645         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
42646
42647         New module 'unicase/u32-suffix-context'.
42648         * lib/unicase/u32-suffix-context.c: New file.
42649         * modules/unicase/u32-suffix-context: New file.
42650
42651         New module 'unicase/u16-suffix-context'.
42652         * lib/unicase/u16-suffix-context.c: New file.
42653         * modules/unicase/u16-suffix-context: New file.
42654
42655         New module 'unicase/u8-suffix-context'.
42656         * lib/unicase/u8-suffix-context.c: New file.
42657         * lib/unicase/u-suffix-context.h: New file.
42658         * modules/unicase/u8-suffix-context: New file.
42659
42660         New module 'unicase/empty-suffix-context'.
42661         * lib/unicase/empty-suffix-context.c: New file.
42662         * modules/unicase/empty-suffix-context: New file.
42663
42664         New module 'unicase/u32-prefix-context'.
42665         * lib/unicase/u32-prefix-context.c: New file.
42666         * modules/unicase/u32-prefix-context: New file.
42667
42668         New module 'unicase/u16-prefix-context'.
42669         * lib/unicase/u16-prefix-context.c: New file.
42670         * modules/unicase/u16-prefix-context: New file.
42671
42672         New module 'unicase/u8-prefix-context'.
42673         * lib/unicase/u8-prefix-context.c: New file.
42674         * lib/unicase/u-prefix-context.h: New file.
42675         * lib/unicase/context.h: New file.
42676         * modules/unicase/u8-prefix-context: New file.
42677
42678         New module 'unicase/empty-prefix-context'.
42679         * lib/unicase/empty-prefix-context.c: New file.
42680         * modules/unicase/empty-prefix-context: New file.
42681
42682         New module 'unicase/ignorable'.
42683         * lib/unicase/ignorable.c: New file.
42684         * modules/unicase/ignorable: New file.
42685
42686         New module 'unicase/cased'.
42687         * lib/unicase/caseprop.h: New file.
42688         * lib/unicase/cased.c: New file.
42689         * modules/unicase/cased: New file.
42690
42691         New functions for case mapping of substrings.
42692         * lib/unicase.h (casing_prefix_context_t): New type.
42693         (unicase_empty_prefix_context): New variable.
42694         (u8_casing_prefix_context, u16_casing_prefix_context,
42695         u32_casing_prefix_context, u8_casing_prefixes_context,
42696         u16_casing_prefixes_context, u32_casing_prefixes_context): New
42697         declarations.
42698         (casing_suffix_context_t): New type.
42699         (unicase_empty_suffix_context): New variable.
42700         (u8_casing_suffix_context, u16_casing_suffix_context,
42701         u32_casing_suffix_context, u8_casing_suffixes_context,
42702         u16_casing_suffixes_context, u32_casing_suffixes_context,
42703         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
42704         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
42705         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
42706         declarations.
42707
42708 2009-06-28  Jim Meyering  <meyering@redhat.com>
42709
42710         boostrap: indent only with spaces
42711         * build-aux/bootstrap: Indent only with spaces, never TABs.
42712
42713         bootstrap: split long lines
42714         * build-aux/bootstrap: Keep line length < 80.
42715
42716         bootstrap: sync from coreutils
42717         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
42718         just as autoreconf does.  Verify a list of prerequisite
42719         package-name,version-number pairs if defined in bootstrap.conf.
42720         Refer to README-prereq, if prerequisites are not satisfied.
42721
42722 2009-06-27  Eric Blake  <ebb9@byu.net>
42723
42724         tests: add test for bogus NULL definition
42725         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
42726         * tests/test-stdlib.c: Likewise.
42727         * tests/test-string.c: Likewise.
42728         * tests/test-locale.c: Likewise.
42729         * tests/test-unistd.c: Likewise.
42730         * modules/stdio-tests (Depends-on): Add verify.
42731         * modules/stdlib-tests (Depends-on): Likewise.
42732         * modules/string-tests (Depends-on): Likewise.
42733         * modules/locale-tests (Depends-on): Likewise.
42734         * modules/unistd-tests (Depends-on): Likewise.
42735
42736 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
42737
42738         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
42739         self-explaining comment.
42740         * m4/selinux-selinux-h: Update serial.
42741         (gl_LIBSELINUX): New macro, adding a warning for missing development
42742         packages to code extracted from...
42743         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
42744         Add warning for missing development packages here, too.
42745
42746 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
42747
42748         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
42749
42750 2009-06-25  Eric Blake  <ebb9@byu.net>
42751
42752         version-etc: fix regression
42753         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
42754         gcc.
42755         (version_etc): Use it, to catch bugs with trailing NULL.
42756         * lib/version-etc.c (version_etc_arn): Delete unused argument.
42757         (version_etc_va): Fix logic bug.
42758         * modules/version-etc-tests: Add test.
42759         * tests/test-version-etc.c: New file.
42760         * tests/test-version-etc.sh: Likewise.
42761
42762 2009-06-25  Sam Steingold  <sds@gnu.org>
42763
42764         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
42765         mbtowc declaration.
42766
42767 2009-06-25  Eric Blake  <ebb9@byu.net>
42768
42769         fpurge: migrate into <stdio.h>
42770         * lib/fpurge.h: Delete...
42771         * lib/stdio.in.h (fpurge): ...and declare here, instead.
42772         * lib/fpurge.c (fpurge): Change declaring header.
42773         * modules/fpurge (Files): Drop deleted file.
42774         (Depends-on): Add stdio.
42775         (configure.ac): Set witness.
42776         * modules/stdio (Makefile.am): Support fpurge macros.
42777         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
42778         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
42779         * lib/fflush.c: Update client.
42780         * tests/test-fpurge.c: Likewise.
42781         * NEWS: Mention the change.
42782
42783 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
42784
42785         * lib/argp-version-etc.c (program_authors): Add const
42786         qualifier.
42787         * lib/version-etc.c: Fix typos in the comments.
42788         * modules/argp-version-etc: Depends on version-etc.
42789
42790 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
42791
42792         argp-version-etc: new module.
42793
42794         * lib/argp-version-etc.c: New file.
42795         * lib/argp-version-etc.h: New file.
42796         * modules/argp-version-etc: New file.
42797         * modules/argp-version-etc-tests: New file.
42798         * tests/test-argp-version-etc.c: New test.
42799         * tests/test-argp-version-etc-1.sh: New test.
42800
42801 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
42802
42803         Provide additional interfaces and documentation for version-etc
42804         module.
42805
42806         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
42807         interfaces.
42808         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
42809         prototypes.
42810
42811 2009-06-24  Bruno Haible  <bruno@clisp.org>
42812
42813         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
42814         HAVE_LIB${NAME} macro.
42815         Reported by Sam Steingold <sds@gnu.org>.
42816
42817 2009-06-23  Simon Josefsson  <simon@josefsson.org>
42818
42819         * modules/hash-tests (test_hash_LDADD): Link to libintl when
42820         needed.
42821
42822 2009-06-21  Bruno Haible  <bruno@clisp.org>
42823
42824         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
42825         work.
42826         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
42827         together with LIB${NAME}, LTLIB${NAME}.
42828         Reported by Sam Steingold <sds@gnu.org>.
42829
42830 2009-06-20  Jim Meyering  <meyering@redhat.com>
42831
42832         tests: make sc_require_test_exit_idiom more generic
42833         * top/maint.mk (Exit_witness_file): New overridable variable.
42834         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
42835         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
42836
42837 2009-06-19  Jim Meyering  <meyering@redhat.com>
42838
42839         hash: reverse order of src/dst parameters in an internal interface
42840         * lib/hash.c (transfer_entries): Reverse order of parameters to
42841         put DST before SRC.  Adjust callers.
42842
42843         tests: test-hash: avoid wholesale duplication
42844         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
42845         Instead, use a loop and add a single conditional.
42846
42847         tests: test-hash: allow seed selection via a command line argument
42848         * tests/test-hash.c (get_seed): New function.
42849         (main): Use it.
42850
42851 2009-06-19  Eric Blake  <ebb9@byu.net>
42852
42853         hash: avoid memory leak on allocation failure
42854         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
42855         failure.  Factor repeated algorithm...
42856         (transfer_entries): ...into new helper routine.
42857         (hash_delete): React to hash_rehash return value.
42858
42859         hash: reduce memory pressure in hash_rehash no-op case
42860         * lib/hash.c (next_prime): Avoid overflow.
42861         (hash_initialize): Factor bucket size computation...
42862         (compute_bucket_size): ...into new helper function.
42863         (hash_rehash): Use new function and open coding to reduce memory
42864         pressure, and avoid a memory leak in USE_OBSTACK code.
42865         Reported by Jim Meyering.
42866
42867 2009-06-18  Eric Blake  <ebb9@byu.net>
42868
42869         hash: make rotation more obvious
42870         * modules/hash (Depends-on): Add bitrotate and stdint.
42871         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
42872         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
42873         (SIZE_MAX): Rely on headers for definition.
42874         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
42875         (raw_hasher): Use rotr_sz.
42876         Suggested by Jim Meyering.
42877
42878         hash: fix memory leak in last patch
42879         * lib/hash.c (hash_rehash): Avoid memory leak.
42880
42881         hash: avoid no-op rehashing
42882         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
42883
42884         hash: provide default callback functions
42885         * lib/hash.c (raw_hasher, raw_comparator): New functions.
42886         (hash_initialize): Use them as defaults.
42887         * tests/test-hash.c (main): Test this.
42888
42889         hash: minor optimization
42890         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
42891         when possible.
42892         (hash_initialize): Document this promise.
42893         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
42894         * tests/test-hash.c (hash_compare_strings): Test this.
42895
42896 2009-06-18  Bruno Haible  <bruno@clisp.org>
42897
42898         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
42899         going to be replaced anyway.
42900
42901 2009-06-18  Bruno Haible  <bruno@clisp.org>
42902
42903         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
42904         in one place.
42905         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
42906         be replaced anyway.
42907
42908 2009-06-18  Eric Blake  <ebb9@byu.net>
42909
42910         hash: check for resize before insertion
42911         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
42912         threshold before insertion, so that a pathological hash_rehash
42913         that fills every bucket can still trigger another rehash.
42914
42915 2009-06-18  Jim Meyering  <meyering@redhat.com>
42916
42917         hash-tests: add a loop around the small tests
42918         * tests/test-hash.c (main): Repeat small tests with selected
42919         small initial table sizes.
42920
42921 2009-06-17  Eric Blake  <ebb9@byu.net>
42922
42923         hash: minor cleanups
42924         * lib/hash.h (hash_entry): Make opaque, by moving...
42925         * lib/hash.c (hash_entry): ...here.
42926         (hash_insert): Clarify restrictions on what can be inserted.
42927         (hash_get_next): Clarify when it is safe to remove an element
42928         during traversal.
42929         (check_tuning): Skip verification when tuning is known safe.
42930         (hash_initialize): Clarify restrictions on tuning.
42931
42932 2009-06-17  Jim Meyering  <jim@meyering.net>
42933         and Eric Blake  <ebb9@byu.net>
42934
42935         hash-tests: new module
42936         * modules/hash-tests: New file.
42937         * tests/test-hash.c: New file.
42938
42939 2009-06-17  Eric Blake  <ebb9@byu.net>
42940
42941         strstr-simple: document new module
42942         * MODULES.html.sh: Document new module.
42943
42944         strstr, strcasestr: replace on platforms with broken memchr
42945         * modules/strstr: Split into...
42946         * modules/strstr-simple: ...new module that does not care about
42947         performance, but does care about glibc bug.
42948         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
42949         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
42950         if platform memchr is broken, per Debian bug 521737.
42951         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
42952         memchr.
42953         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
42954         * doc/posix-functions/strstr.texi (strstr): Document the fix.
42955         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
42956         * modules/mountlist (Depends-on): Add strstr-simple.
42957         * modules/gen-uni-tables (Depends-on): Likewise.
42958         * modules/argz (Depends-on): Add strstr.
42959
42960 2009-06-17  Bruno Haible  <bruno@clisp.org>
42961
42962         * modules/posix_spawn-internal (Depends-on): Add errno.
42963
42964 2009-06-17  Bruno Haible  <bruno@clisp.org>
42965
42966         Define missing ESTALE on Interix 3.5.
42967         * lib/errno.in.h (ESTALE): Assign a value if missing.
42968         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
42969         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
42970         missing.
42971         * doc/posix-headers/errno.texi: Mention the Interix bug.
42972         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
42973
42974 2009-06-15  Eric Blake  <ebb9@byu.net>
42975
42976         memchr, memchr2: add valgrind exception
42977         * lib/memchr.valgrind: New file.
42978         * lib/memchr2.valgrind: New file.
42979         * modules/memchr (Files): Distribute valgrind file.
42980         * modules/memchr2 (Files): Likewise.
42981
42982         docs: memchr is no longer obsolete
42983         * MODULES.html.sh: Move memchr from obsolete to string.h section.
42984         * lib/string.in.h (memchr): Simplify logic.
42985
42986 2009-06-14  Jim Meyering  <meyering@redhat.com>
42987
42988         link-follow: fix the "checking..." message to not mention trailing slash
42989         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
42990         never considered trailing slashes.
42991
42992 2009-06-14  Bruno Haible  <bruno@clisp.org>
42993
42994         * m4/memchr.m4: Mention also the bug on IA-64.
42995         * doc/posix-functions/memchr.texi: Likewise.
42996
42997 2009-06-12  Eric Blake  <ebb9@byu.net>
42998
42999         memchr: detect broken x86_64 and alpha implementations
43000         * modules/memchr-tests (Depends-on): Move mmap detection...
43001         * modules/memchr (Depends-on): ...here.
43002         (configure.ac): Set indicator.
43003         * lib/string.in.h (memchr): Declare replacement.
43004         * modules/string (Makefile.am): Trigger replacement.
43005         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
43006         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
43007         bugs.
43008         * doc/posix-functions/memchr.texi (memchr): Document the bug.
43009         * modules/getpagesize (License): Relax license.
43010
43011 2009-06-11  Bruno Haible  <bruno@clisp.org>
43012
43013         * lib/idpriv.h: Add more references.
43014
43015 2009-06-08  Bruno Haible  <bruno@clisp.org>
43016
43017         Tests for module 'idpriv-droptemp'.
43018         * modules/idpriv-droptemp-tests: New file.
43019         * tests/test-idpriv-droptemp.sh: New file.
43020         * tests/test-idpriv-droptemp.su.sh: New file.
43021         * tests/test-idpriv-droptemp.c: New file.
43022
43023         New module 'idpriv-droptemp'.
43024         * lib/idpriv-droptemp.c: New file.
43025         * modules/idpriv-droptemp: New file.
43026
43027 2009-06-08  Bruno Haible  <bruno@clisp.org>
43028
43029         Tests for module 'idpriv-drop'.
43030         * modules/idpriv-drop-tests: New file.
43031         * tests/test-idpriv-drop.sh: New file.
43032         * tests/test-idpriv-drop.su.sh: New file.
43033         * tests/test-idpriv-drop.c: New file.
43034
43035         New module 'idpriv-drop'.
43036         * lib/idpriv.h: New file.
43037         * lib-idpriv-drop.c: New file.
43038         * m4/idpriv.m4: New file.
43039         * modules/idpriv-drop: New file.
43040
43041 2009-06-08  Bruno Haible  <bruno@clisp.org>
43042
43043         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
43044         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43045         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43046         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43047         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43048         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43049         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43050
43051 2009-06-08  Eric Blake  <ebb9@byu.net>
43052
43053         test-strstr: use memory fence, when possible
43054         * tests/test-strstr.c (main): Use memory fence, in order to be
43055         more likely to trigger Debian bug 521737.
43056         * modules/strstr-tests (Files): Pull in additional files.
43057
43058         memchr: no longer obsolete, for wider field testing
43059         * modules/memchr (Status, Notice): Delete, this module is no
43060         longer obsolete.
43061         * modules/vasnprintf (Depends-on): Add memchr.
43062
43063 2009-06-07  Jim Meyering  <meyering@redhat.com>
43064
43065         hash: declare some functions with the warn_unused_result attribute
43066         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
43067
43068 2009-06-07  Bruno Haible  <bruno@clisp.org>
43069
43070         * tests/test-alignof.c: Don't test int64_t if it does not exist.
43071         Reported by Eric Blake.
43072
43073 2009-06-06  Eric Blake  <ebb9@byu.net>
43074
43075         test-alignof: fix typo with long double
43076         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
43077         compiler error.
43078
43079 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
43080
43081         Escape non-texinfo { and }s.
43082         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
43083         markup error.
43084
43085 2009-06-04  Jim Meyering  <meyering@redhat.com>
43086
43087         gitlog-to-changelog: don't infloop on an empty commit log
43088         * build-aux/gitlog-to-changelog: Warn about an empty log message.
43089         Reported by Boris Petersen <transacid@centerim.org>.
43090
43091 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
43092
43093         version-etc: extend for packagers
43094         Add three new configure options, intended for packagers:
43095           --with-packager="packager name"
43096           --with-packager-version="packager-specific version"
43097           --with-packager-bug-reports="packager bug reporting"
43098         An example with coreutils:
43099           $ ./configure \
43100             --with-packager=Gentoo \
43101             --with-packager-bug-report=http://bugs.gentoo.org/ \
43102             --with-packager-version="patchset 1.6"
43103           $ ./src/ls --version | head -n2
43104           ls (GNU coreutils) 7.1-dirty
43105           Packaged by Gentoo (patchset 1.6)
43106         Note that the bug reporting info via --help doesn't show up because
43107         coreutils uses its own custom emit_bug_reporting_address() implementation
43108         in src/system.h.  If it didn't, it'd look like:
43109           $ ./src/ls --help | tail -n4
43110           Report bugs to <bug-coreutils@gnu.org>.
43111           Report Gentoo bugs to <http://bugs.gentoo.org/>.
43112           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
43113           General help using GNU software: <http://www.gnu.org/gethelp/>.
43114         * lib/version-etc.c: Print new information, if provided.
43115         * m4/version-etc.m4: New file.
43116         * modules/version-etc (Files): Add m4/version-etc.m4.
43117         (configure.ac): Add gl_VERSION_ETC.
43118
43119 2009-05-31  Bruno Haible  <bruno@clisp.org>
43120
43121         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
43122         and 'int64_t'.
43123         * modules/alignof-tests (Dependencies): Add stdint.
43124         Reported by Eric Blake.
43125
43126 2009-05-31  Bruno Haible  <bruno@clisp.org>
43127
43128         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
43129         restriction due to compiler bugs.
43130         Reported by Eric Blake.
43131
43132 2009-05-31  Simon Josefsson  <simon@josefsson.org>
43133             Bruno Haible  <bruno@clisp.org>
43134
43135         Fix test-alignof failure.
43136         * lib/alignof.h (alignof_slot): New macro.
43137         (alignof_type): New macro, with the same semantics as the previous
43138         'alignof'.
43139         (alignof): Alias to alignof_slot.
43140         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
43141         check that the results are usable as constant expressions.
43142
43143 2009-05-31  Bruno Haible  <bruno@clisp.org>
43144
43145         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
43146         * tests/test-memchr.c (main): Check that memchr does not read past the
43147         first occurrence of the byte.
43148         * tests/test-strstr.c (main): Update comment.
43149         Suggested by Eric Blake.
43150
43151 2009-05-30  Bruno Haible  <bruno@clisp.org>
43152
43153         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
43154         detail how to use dumpbin.
43155         Reported by David Byron <dbyron@dbyron.com>.
43156
43157 2009-06-02  Simon Josefsson  <simon@josefsson.org>
43158
43159         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
43160
43161 2009-06-02  Simon Josefsson  <simon@josefsson.org>
43162
43163         * m4/manywarnings.m4: Add GCC 4.4 warnings.
43164
43165 2009-05-28  Bruno Haible  <bruno@clisp.org>
43166
43167         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
43168         build-aux/ files.
43169
43170 2009-05-28  Simon Josefsson  <simon@josefsson.org>
43171
43172         * gnulib-tool (func_import): Transform license on build-aux/ files too.
43173
43174 2009-05-27  Simon Josefsson  <simon@josefsson.org>
43175
43176         * gnulib-tool (sed_transform_main_lib_file)
43177         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
43178         regexps.
43179
43180 2009-05-26  Simon Josefsson  <simon@josefsson.org>
43181
43182         * tests/test-strstr.c: Add another self-test.
43183         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
43184         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
43185
43186 2009-05-23  Bruno Haible  <bruno@clisp.org>
43187
43188         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
43189         change.
43190
43191 2009-05-21  Bruno Haible  <bruno@clisp.org>
43192
43193         Simplify use of mode_t varargs.
43194         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
43195         uses 'mode_t' or 'int'.
43196         * lib/openat.c (openat): Likewise.
43197         * lib/open-safer.c (open_safer): Likewise.
43198         * m4/mode_t.m4: New file.
43199         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
43200         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
43201         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
43202         * modules/open (Files): Add m4/mode_t.m4.
43203         * modules/openat (Files): Likewise.
43204         * modules/fcntl-safer (Files): Likewise.
43205         Suggested by Eric Blake.
43206
43207 2009-05-21  Pádraig Brady  <P@draigbrady.com>
43208
43209         * doc/glibc-functions/fallocate.texi: New file.
43210         * doc/gnulib.texi: Include it.
43211
43212 2009-05-21  Eric Blake  <ebb9@byu.net>
43213             Bruno Haible  <bruno@clisp.org>
43214
43215         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
43216         invocations.
43217         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43218
43219 2009-05-21  Eric Blake  <ebb9@byu.net>
43220             Bruno Haible  <bruno@clisp.org>
43221
43222         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
43223         include_next. Fix of 2008-11-20 commit.
43224         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
43225         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
43226         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
43227         NEXT_MATH_H.
43228         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
43229         instead of NEXT_MATH_H.
43230
43231 2009-05-21  Bruno Haible  <bruno@clisp.org>
43232
43233         Avoid redefinition warnings for SIZE_MAX.
43234         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
43235         Reported by Simon Josefsson.
43236
43237 2009-05-21  Bruno Haible  <bruno@clisp.org>
43238
43239         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
43240         AC_CACHE_VAL.
43241
43242 2009-05-20  Bruno Haible  <bruno@clisp.org>
43243
43244         Make zeroptr.h work on mingw.
43245         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
43246         mprotect.
43247         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
43248         * modules/memchr2-tests (configure.ac): Likewise.
43249         * modules/memcmp-tests (configure.ac): Likewise.
43250         * modules/memmem-tests (configure.ac): Likewise.
43251         * modules/memrchr-tests (configure.ac): Likewise.
43252         Reported by Simon Josefsson.
43253
43254 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43255
43256         * tests/test-glob.c: Include string.h for strcmp prototype.
43257
43258 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43259
43260         * modules/getdelim (Depends-on): Add explicit stdint, although it
43261         was implicitly already pulled in via realloc-posix.
43262         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
43263
43264 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43265
43266         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
43267         G. Christensen" <tgc@jupiterrise.com>.
43268         * m4/sys_socket_h.m4: Check for sa_family_t.
43269         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
43270         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
43271         * tests/test-sys_socket.c: Check that sa_family_t works.
43272
43273 2009-05-18  Eric Blake  <ebb9@byu.net>
43274
43275         maint.mk: allow gnulib_dir in VPATH build
43276         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
43277
43278 2009-05-15  Jim Meyering  <meyering@redhat.com>
43279
43280         maint.mk: Give gnulib_dir a default definition.
43281         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
43282         Thus, most packages no longer need to specify this variable in cfg.mk
43283
43284 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
43285
43286         rename.m4: fix typos that would make non-mingw cross-configure fail
43287         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
43288
43289 2009-05-13  Eric Blake  <ebb9@byu.net>
43290
43291         mmap-anon: avoid out-of-order autoconf expansion
43292         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
43293         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
43294         * modules/memchr-tests (Depends-on): Add extensions.
43295         * modules/memchr2-tests (Depends-on): Add extensions.
43296         * modules/memcmp-tests (Depends-on): Add extensions.
43297         * modules/memmem-tests (Depends-on): Add extensions.
43298         * modules/memrchr-tests (Depends-on): Add extensions.
43299
43300 2009-05-13  Bruno Haible  <bruno@clisp.org>
43301
43302         Make some tests ISO C 99 compliant.
43303         * tests/zerosize-ptr.h: New file.
43304         * tests/test-memchr.c: Include zerosize-ptr.h.
43305         (main): Use a zero-size object pointer instead of NULL.
43306         * tests/test-memchr2.c: Include zerosize-ptr.h.
43307         (main): Use a zero-size object pointer instead of NULL.
43308         * tests/test-memcmp.c: Include zerosize-ptr.h.
43309         (main): Use a zero-size object pointer instead of NULL.
43310         * tests/test-memmem.c: Include zerosize-ptr.h.
43311         (main): Use a zero-size object pointer instead of NULL.
43312         * tests/test-memrchr.c: Include zerosize-ptr.h.
43313         (main): Use a zero-size object pointer instead of NULL.
43314         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
43315         m4/mmap-anon.m4.
43316         (Depends-on): Add getpagesize.
43317         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43318         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
43319         m4/mmap-anon.m4.
43320         (Depends-on): Add getpagesize.
43321         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43322         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
43323         m4/mmap-anon.m4.
43324         (Depends-on): Add getpagesize.
43325         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43326         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
43327         m4/mmap-anon.m4.
43328         (Depends-on): Add getpagesize.
43329         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43330         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
43331         m4/mmap-anon.m4.
43332         (Depends-on): Add getpagesize.
43333         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43334
43335 2009-05-12  Bruno Haible  <bruno@clisp.org>
43336
43337         Tests for module 'alignof'.
43338         * modules/alignof-tests: New file.
43339         * tests/test-alignof.c: New file.
43340
43341 2009-05-12  Bruno Haible  <bruno@clisp.org>
43342
43343         Fix alignof macro.
43344         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
43345         vendor compilers that are always correct.
43346
43347 2009-05-12  Bruno Haible  <bruno@clisp.org>
43348
43349         Make the MAP_ANONYMOUS detection work on HP-UX 11.
43350         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
43351         not whether its fully works.
43352
43353 2009-05-12  Bruno Haible  <bruno@clisp.org>
43354
43355         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
43356
43357 2009-05-12  Jim Meyering  <meyering@redhat.com>
43358
43359         * top/maint.mk: Adjust backslash alignment.
43360
43361 2009-05-11  Simon Josefsson  <simon@josefsson.org>
43362
43363         * top/maint.mk: Make $(srcdir)/build-aux configurable.
43364
43365 2009-05-11  Eric Blake  <ebb9@byu.net>
43366
43367         argp: avoid undefined behavior
43368         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
43369         macros.
43370
43371 2009-05-08  Simon Josefsson  <simon@josefsson.org>
43372
43373         * tests/test-vc-list-files-git.sh: Do git config of user.email and
43374         user.name to prevent git commit from complaining.
43375
43376 2009-05-10  Bruno Haible  <bruno@clisp.org>
43377
43378         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
43379         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
43380         it rewrites every file name only once.
43381         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
43382
43383 2009-05-08  Bruno Haible  <bruno@clisp.org>
43384
43385         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
43386         instead of 'max'.
43387
43388 2009-05-08  Simon Josefsson  <simon@josefsson.org>
43389
43390         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
43391         sockaddr_storage test.
43392
43393 2009-05-07  Simon Josefsson  <simon@josefsson.org>
43394
43395         * modules/sys_socket (Makefile.am): Substitute
43396         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
43397         * m4/sys_socket_h.m4: Check for sockaddr_storage.
43398         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
43399         * tests/test-sys_socket.c: Check sockaddr_storage.
43400
43401 2009-05-08  Bruno Haible  <bruno@clisp.org>
43402
43403         New module 'alignof'.
43404         * lib/alignof.h: New file.
43405         * modules/alignof: New file.
43406
43407 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43408             Bruno Haible  <bruno@clisp.org>
43409
43410         Fix test-file-has-acl on FreeBSD.
43411         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
43412         mask is implicitly added.
43413         * tests/test-file-has-acl.c: Include <signal.h>.
43414         (main): Terminate the test after 5 seconds.
43415         * modules/acl-tests (configure.ac): Check for alarm function.
43416
43417 2009-05-04  Bruno Haible  <bruno@clisp.org>
43418
43419         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
43420         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
43421         * modules/errno (configure.ac): Drop AC_REQUIRE.
43422         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
43423         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
43424
43425 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43426
43427         * modules/glob-tests: New module.
43428         * tests/test-glob.c: Add.
43429
43430 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43431
43432         * modules/fnmatch-tests: New module.
43433         * tests/test-fnmatch.c: Add.
43434
43435 2009-05-04  Eric Blake  <ebb9@byu.net>
43436
43437         maint: make the new no-submodule-changes rule VPATH-safe
43438         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
43439
43440 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43441             Bruno Haible  <bruno@clisp.org>
43442
43443         acl: Fix infinite loop on FreeBSD.
43444         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
43445         of return value from acl_get_entry.
43446         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
43447         Likewise.
43448
43449 2009-05-03  Bruno Haible  <bruno@clisp.org>
43450
43451         * lib/acl-internal.h (acl_entries): Clarify return value.
43452         * lib/acl_entries.c (acl_entries): Likewise.
43453
43454 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43455
43456         Bug fix in acl module.
43457         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
43458
43459 2009-05-03  Bruno Haible  <bruno@clisp.org>
43460
43461         Create gperf-generated file in the source dir, not in the build dir.
43462         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
43463         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
43464         * modules/unicase/locale-language (unicase/locale-languages.h):
43465         Likewise.
43466         * modules/unicase/special-casing (unicase/special-casing-table.h):
43467         Likewise.
43468         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
43469         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
43470         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
43471         Reported by Ralf Wildenhues.
43472
43473 2009-05-03  Bruno Haible  <bruno@clisp.org>
43474
43475         * modules/fnmatch (Description, configure.ac): Taken from
43476         fnmatch-posix.
43477         * modules/fnmatch-posix: Turn into a symbolic reference to the
43478         'fnmatch' module, and deprecate.
43479         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
43480
43481 2009-05-03  Bruno Haible  <bruno@clisp.org>
43482
43483         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
43484         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
43485         Reported by Ralf Wildenhues.
43486
43487 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43488
43489         * m4/fnmatch.m4: Fix fnmatch re-define.
43490
43491 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43492
43493         priv-set: new module and tests; adapt write-any-file
43494         * lib/priv-set.c: New file.
43495         * lib/priv-set.h: New file.
43496         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
43497         * lib/write-any-file.c: Simplify by using priv-set module.
43498         * m4/priv-set.m4: New file.
43499         * modules/priv-set: New file.
43500         * modules/unlinkdir: Add dependency on priv-set module.
43501         * modules/write-any-file: Likewise.
43502
43503         Tests for module 'priv-set'.
43504         * modules/priv-set-tests: New file.
43505         * tests/test-priv-set.c: New file.
43506
43507 2009-05-03  Jim Meyering  <meyering@redhat.com>
43508             Bruno Haible  <bruno@clisp.org>
43509
43510         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
43511         use the converted UTF-8 variant of the name instead.
43512
43513 2009-05-03  Jim Meyering  <meyering@redhat.com>
43514
43515         tests: tighten some getdate tests
43516         * tests/test-getdate.c (main): Tighten tests: require equality,
43517         not just greater than.  Set TZ envvar to UTC0.
43518
43519 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
43520
43521         getdate: correctly interpret "next monday" when run on a Monday
43522         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
43523         that e.g., "next tues" (when run on a tuesday) results in a date
43524         that is one week in the future, and not today's date.
43525         I.e., add a week when the wday is the same as the current one.
43526         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
43527         and earlier by Martin Bernreuther and Jan Minář.
43528         * tests/test-getdate.c (main): Check that "next DAY" is always in
43529         the future and that "last DAY" is always in the past.
43530
43531 2009-05-02  Jim Meyering  <meyering@redhat.com>
43532
43533         build: ensure that a release build fails when a submodule is unclean
43534         * top/maint.mk (no-submodule-changes): New rule.
43535         (alpha beta major): Depend on it.
43536
43537 2009-05-02  Bruno Haible  <bruno@clisp.org>
43538
43539         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
43540         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
43541         shell variable gl_fnmatch_required to detect which variant is
43542         requested.
43543         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
43544         gl_FUNC_FNMATCH_POSIX.
43545         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
43546         exclude fnmatch-posix.
43547
43548 2009-05-02  Bruno Haible  <bruno@clisp.org>
43549
43550         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
43551         * modules/mbsrtowcs (License): Change to LGPLv2+.
43552         * modules/strnlen1 (License): Likewise.
43553         Reported by Simon Josefsson.
43554
43555 2009-05-02  Bruno Haible  <bruno@clisp.org>
43556
43557         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
43558         "cross".
43559         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
43560         gnulib-tool was called with option --source-base=lib.
43561
43562 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43563
43564         Use automake *-local hooks without commands, for extensibility.
43565         * modules/localcharset (Makefile.am): Rename install-exec-local
43566         rule to install-exec-localcharset, and make it a prerequisite of
43567         install-exec-local.  Likewise, rename the uninstall-local rule to
43568         uninstall-localcharset, and make it a prerequisite of the former.
43569
43570 2009-05-01  Bruno Haible  <bruno@clisp.org>
43571
43572         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
43573         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
43574         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
43575         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
43576         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
43577         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
43578         m4/locale-zh.m4, m4/codeset.m4.
43579
43580         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
43581         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
43582         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
43583         m4/locale-zh.m4.
43584
43585         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
43586         REPLACE_WCRTOMB if mbstate_t must be replaced.
43587         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
43588         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
43589
43590 2009-05-01  Bruno Haible  <bruno@clisp.org>
43591
43592         Avoid compiler warnings when redefining macros defined by <libintl.h>.
43593         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
43594         dngettext, dcngettext, textdomain, bindtextdomain,
43595         bind_textdomain_codeset): Undefine before redefining.
43596
43597 2009-04-30  Bruno Haible  <bruno@clisp.org>
43598
43599         Fix bug introduced on 2009-04-25.
43600         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
43601         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
43602         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
43603         is defined.
43604         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
43605         is defined.
43606         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
43607         is defined.
43608         Reported by Elbert_Pol <elbert.pol@gmail.com>.
43609
43610 2009-04-28  Bruno Haible  <bruno@clisp.org>
43611
43612         Comment tweaks.
43613         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
43614         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
43615         * lib/unicase.h (u*_casexfrm): Likewise.
43616         Reported by Paolo Bonzini.
43617
43618 2009-04-28  Bruno Haible  <bruno@clisp.org>
43619
43620         Fix a compilation error.
43621         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
43622         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
43623         Reported by Jim Meyering.
43624
43625 2009-04-27  Bruno Haible  <bruno@clisp.org>
43626
43627         New module 'libunistring'.
43628         * modules/libunistring: New file.
43629         * m4/libunistring.m4: New file.
43630         * MODULES.html.sh (Unicode string functions): Add it.
43631
43632 2009-04-27  Eric Blake  <ebb9@byu.net>
43633
43634         maint.mk: allow package-specific header to provide <config.h>
43635         * top/maint.mk (sc_require_config_h): New variable.
43636         (sc_require_config_h, sc_require_config_h_first): Use it.
43637
43638 2009-04-27  Simon Josefsson  <simon@josefsson.org>
43639
43640         * top/maint.mk (sc_avoid_if_before_free): Except
43641         useless-if-before-free script.
43642
43643 2009-04-27  Eric Blake  <ebb9@byu.net>
43644
43645         maintainer-makefile: depend on all required helper scripts
43646         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
43647         useless-if-before-free.
43648         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
43649         version, rather than assuming gnulib checkout is available.
43650         Reported by Simen Josefsson.
43651
43652 2009-04-26  Bruno Haible  <bruno@clisp.org>
43653
43654         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
43655         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
43656         "../" or "..".
43657
43658 2009-04-26  Bruno Haible  <bruno@clisp.org>
43659
43660         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
43661         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
43662         AC_LIB_HAVE_LINKFLAGS.
43663
43664 2009-04-26  Bruno Haible  <bruno@clisp.org>
43665
43666         Simplify calling convention of u*_conv_from_encoding.
43667         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
43668         u32_conv_from_encoding): Expect a resultbuf argument and return the
43669         result directly as a pointer.
43670         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
43671         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
43672         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
43673         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
43674         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
43675         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
43676         Update.
43677         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
43678         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
43679         * lib/vasnprintf.c (VASNPRINTF): Update.
43680         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
43681         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
43682         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
43683         * NEWS: Mention the change.
43684
43685 2009-04-26  Bruno Haible  <bruno@clisp.org>
43686
43687         Simplify calling convention of u*_conv_to_encoding.
43688         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
43689         u32_conv_to_encoding): Expect a resultbuf argument and return the
43690         result directly as a pointer.
43691         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
43692         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
43693         freeing scaled_offsets if mem_iconveha failed.
43694         * lib/unicase/u-casexfrm.h (FUNC): Update.
43695         * lib/uninorm/u-normxfrm.h (FUNC): Update.
43696         * lib/vasnprintf.c (VASNPRINTF): Update.
43697         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
43698         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
43699         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
43700         * NEWS: Mention the change.
43701
43702 2009-04-26  Bruno Haible  <bruno@clisp.org>
43703
43704         Avoid test failures on AIX and OSF/1.
43705         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
43706         malloc(0).
43707         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
43708         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
43709         Likewise.
43710         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
43711         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
43712         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
43713         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
43714         * doc/posix-functions/malloc.texi: Document the portability problem
43715         related to malloc(0).
43716
43717 2009-04-26  Bruno Haible  <bruno@clisp.org>
43718
43719         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
43720         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
43721         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
43722
43723 2009-04-25  Bruno Haible  <bruno@clisp.org>
43724
43725         Avoid link error when creating a namespace clean library.
43726         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
43727         as macro with arguments if already defined as an alias.
43728         * lib/signbitf.c (gl_signbitf): Don't undefine.
43729         * lib/signbitd.c (gl_signbitd): Don't undefine.
43730         * lib/signbitl.c (gl_signbitl): Don't undefine.
43731
43732 2009-04-25  Jim Meyering  <meyering@redhat.com>
43733
43734         vc-list-files: fix another quoting bug
43735         * build-aux/vc-list-files: Avoid sed backslash expansion
43736         of pathological directory names.
43737
43738 2009-04-25  Eric Blake  <ebb9@byu.net>
43739
43740         vc-list-files: fix shell quoting error
43741         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
43742         timestamp.
43743
43744 2009-04-25  Jim Meyering  <meyering@redhat.com>
43745
43746         vc-list-files: restore lost functionality with subdir argument
43747         * build-aux/vc-list-files: When given a non-"." sub-directory
43748         argument, substitute the $dir/ prefix back onto each resulting name.
43749         Otherwise, coreutils' root_tests check would fail.
43750
43751 2009-04-24  Eric Blake  <ebb9@byu.net>
43752
43753         vc-list-files: ignore git symlinks
43754         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
43755         than ls-files, to ignore git symlinks.
43756
43757         maint.mk: import improvements from m4
43758         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
43759         (move_if_change): Delete unused macro.
43760         (news-date-check, vc-diff-check): Support VPATH builds.
43761         (announcement): Likewise.  Split --bootstrap-tools list...
43762         (boostrap-tools): ...into separate list, which can be overridden
43763         in cfg.mk.
43764         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
43765         requiring dependency on useless-if-before-free module.
43766         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
43767         Support VPATH builds.
43768
43769 2009-04-24  Jim Meyering  <meyering@redhat.com>
43770
43771         maint.mk: remove coreutils-specific rules and variables
43772         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
43773         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
43774         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
43775
43776         maint.mk: remove obsolete rule
43777         * top/maint.mk (rel-check): Remove rule.
43778         (WGET, WGETFLAGS): Remove now-unused variables.
43779
43780 2009-04-24  Simon Josefsson  <simon@josefsson.org>
43781
43782         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
43783         consistency.
43784
43785         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
43786         '$(PATH_SEPARATOR)' instead of ':'.
43787
43788 2009-04-24  Simon Josefsson  <simon@josefsson.org>
43789
43790         * lib/getopt1.c (main): Use 'const' for static array.
43791
43792 2009-04-24  Simon Josefsson  <simon@josefsson.org>
43793
43794         * top/maint.mk: Sync with coreutils.
43795         * NEWS: Explain incompatibilities.
43796
43797 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43798             Bruno Haible  <bruno@clisp.org>
43799
43800         Fix cross-compilation results.
43801         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
43802         statement, as third argument of AC_TRY_RUN.
43803         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
43804         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
43805         Likewise.
43806         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
43807         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
43808         Likewise.
43809         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
43810         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
43811         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
43812
43813 2009-04-20  Bruno Haible  <bruno@clisp.org>
43814
43815         Avoid test failure on mingw.
43816         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
43817
43818 2009-04-20  Bruno Haible  <bruno@clisp.org>
43819
43820         Avoid compilation error on mingw.
43821         * modules/localename-tests (Depends-on): Add locale.
43822
43823 2009-04-19  Bruno Haible  <bruno@clisp.org>
43824
43825         Support for building a shared library on Windows platforms.
43826         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
43827         (main): Test the presence of UNINORM_NFC here.
43828         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
43829         (main): Test the presence of UNINORM_NFD here.
43830         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
43831         (main): Test the presence of UNINORM_NFKC here.
43832         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
43833         (main): Test the presence of UNINORM_NFKD here.
43834
43835 2009-04-19  Bruno Haible  <bruno@clisp.org>
43836
43837         Avoid a compiler warning.
43838         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
43839         Change type of variable 'sequence'.
43840
43841 2009-04-19  Bruno Haible  <bruno@clisp.org>
43842
43843         * modules/configmake (Makefile.am): When the contents of configmake.h
43844         does not change, arrange to preserve its modification time.
43845
43846 2009-04-17  Simon Josefsson  <simon@josefsson.org>
43847
43848         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
43849         gettext domain.
43850
43851 2009-04-16  Jim Meyering  <meyering@redhat.com>
43852
43853         useless-if-before-free: improve conversion code
43854         * build-aux/useless-if-before-free: Adjust code-in-comment to match
43855         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
43856
43857 2009-04-14  Bruno Haible  <bruno@clisp.org>
43858
43859         * modules/fcntl (Depends-on): Add extensions.
43860         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
43861
43862 2009-04-12  Ben Pfaff  <blp@gnu.org>
43863
43864         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
43865         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
43866
43867 2009-03-20  Ben Pfaff  <blp@gnu.org>
43868
43869         Make rename replace existing destinations on Windows.
43870         * m4/rename.m4: Add test for Mingw.
43871         * lib/rename.c: Add rename replacement that uses MoveFileEx with
43872         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
43873         * doc/posix-functions/rename.texi: Document.
43874
43875 2009-04-10  Bruno Haible  <bruno@clisp.org>
43876
43877         New include file "iconveh.h".
43878         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
43879         * lib/striconveh.h: Include it.
43880         (enum iconv_ilseq_handler): Remove definition.
43881         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
43882         striconveh.h.
43883         * lib/striconveha.c: Include striconveh.h.
43884         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
43885         * modules/striconveh (Files): Add lib/iconveh.h.
43886         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
43887         lib/striconveh.h.
43888
43889 2009-04-10  Bruno Haible  <bruno@clisp.org>
43890
43891         * lib/uniconv.h: Update comment.
43892
43893 2009-04-10  Bruno Haible  <bruno@clisp.org>
43894
43895         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
43896         always.
43897         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
43898         * lib/unistr/u16-mbtouc-aux.c: Likewise.
43899         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
43900         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
43901         "unistring-notinline.h", so that the function gets defined always.
43902         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
43903         * lib/unistr/u8-uctomb.c: Likewise.
43904         * lib/unistr/u16-mbtouc.c: Likewise.
43905         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
43906         * lib/unistr/u16-uctomb.c: Likewise.
43907         * lib/unistr/u32-mbtouc.c: Likewise.
43908         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
43909         * lib/unistr/u32-uctomb.c: Likewise.
43910
43911 2009-04-10  Bruno Haible  <bruno@clisp.org>
43912
43913         Mark 'utime' obsolete.
43914         * modules/utime (Status, Notice): New sections.
43915         Suggested by Jim Meyering.
43916
43917         Fix cross-compile guess for utime test.
43918         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
43919         autoconf.
43920         * doc/posix-functions/utime.texi: Give more precisions.
43921         Reported by Jan <ipif@ymail.com>.
43922
43923 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
43924
43925         filevercmp: correct today's change
43926         * lib/filevercmp.c: Also handle coreutils' test inputs.
43927         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
43928
43929         Fix regression in 'filevercmp' module. Thanks Sven Joachim
43930         for reporting it.
43931         * lib/filevercmp.c: Special handle for "", "." and "..".
43932         * tests/test-filevercmp.c: Enlarge the set suite.
43933
43934 2009-04-07  Jim Meyering  <meyering@redhat.com>
43935
43936         useless-if-before-free: show how to remove braced useless free, too
43937         * build-aux/useless-if-before-free: still only in a comment, though.
43938
43939 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
43940
43941         maint.mk: import changes to syntax-check macros from coreutils
43942         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
43943         Use them in the relevant macros.
43944
43945 2009-04-06  Bruno Haible  <bruno@clisp.org>
43946
43947         Fix unportable use of bit-fields.
43948         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
43949         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
43950         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
43951
43952 2009-04-06  Bruno Haible  <bruno@clisp.org>
43953
43954         Avoid test failures on AIX and OSF/1.
43955         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
43956         that malloc(0) = NULL.
43957         * tests/unicase/test-u8-tolower.c (check): Likewise.
43958         * tests/unicase/test-u8-totitle.c (check): Likewise.
43959         * tests/unicase/test-u8-toupper.c (check): Likewise.
43960         * tests/unicase/test-u16-casefold.c (check): Likewise.
43961         * tests/unicase/test-u16-tolower.c (check): Likewise.
43962         * tests/unicase/test-u16-totitle.c (check): Likewise.
43963         * tests/unicase/test-u16-toupper.c (check): Likewise.
43964         * tests/unicase/test-u32-casefold.c (check): Likewise.
43965         * tests/unicase/test-u32-tolower.c (check): Likewise.
43966         * tests/unicase/test-u32-totitle.c (check): Likewise.
43967         * tests/unicase/test-u32-toupper.c (check): Likewise.
43968         * tests/uninorm/test-u8-nfc.c (check): Likewise.
43969         * tests/uninorm/test-u8-nfd.c (check): Likewise.
43970         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
43971         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
43972         * tests/uninorm/test-u16-nfc.c (check): Likewise.
43973         * tests/uninorm/test-u16-nfd.c (check): Likewise.
43974         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
43975         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
43976         * tests/uninorm/test-u32-nfc.c (check): Likewise.
43977         * tests/uninorm/test-u32-nfd.c (check): Likewise.
43978         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
43979         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
43980
43981 2009-04-05  Bruno Haible  <bruno@clisp.org>
43982
43983         Work around an autoconf limitation.
43984         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
43985         comment line if it would be longer than 3 KB.
43986
43987 2009-04-05  Bruno Haible  <bruno@clisp.org>
43988
43989         Avoid test failure with libiconv-1.13.
43990         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
43991         of the expected test results.
43992
43993 2009-04-05  Bruno Haible  <bruno@clisp.org>
43994
43995         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
43996         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
43997         that it should be installed.
43998
43999 2009-04-05  Bruno Haible  <bruno@clisp.org>
44000
44001         * gnulib-tool: New option --copy-file.
44002         (func_usage): Document it.
44003         (func_dest_tmpfilename): Moved out of func_import.
44004         (func_add_file, func_update_file): New functions, extracted from
44005         func_import.
44006         (func_import): Update.
44007
44008 2009-04-05  Karl Berry  <karl@gnu.org>
44009
44010         * README: prominently mention gnulib-tool.
44011         Rearrange sections so getting the code is near the top.
44012
44013 2009-04-05  Bruno Haible  <bruno@clisp.org>
44014
44015         * lib/unicase.h: Mention u*_cmp2.
44016         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
44017         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
44018         * lib/unicase/ulc-casecmp.c: Likewise.
44019         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
44020         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
44021         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
44022         unistr/u8-cmp.
44023         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
44024         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
44025         unistr/u16-cmp.
44026         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
44027         unistr/u32-cmp.
44028
44029         * lib/uninorm.h: Mention u*_cmp2.
44030         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
44031         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
44032         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
44033         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
44034         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
44035         unistr/u8-cmp.
44036         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
44037         unistr/u16-cmp.
44038         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
44039         unistr/u32-cmp.
44040
44041         New module 'unistr/u32-cmp2'.
44042         * lib/unistr/u32-cmp2.c: New file.
44043         * modules/unistr/u32-cmp2: New file.
44044
44045         New module 'unistr/u16-cmp2'.
44046         * lib/unistr/u16-cmp2.c: New file.
44047         * modules/unistr/u16-cmp2: New file.
44048
44049         New module 'unistr/u8-cmp2'.
44050         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
44051         * lib/unistr/u8-cmp2.c: New file.
44052         * lib/unistr/u-cmp2.h: New file.
44053         * modules/unistr/u8-cmp2: New file.
44054
44055 2009-04-05  Bruno Haible  <bruno@clisp.org>
44056
44057         * lib/unictype.h (uc_property_is_valid): New macro.
44058         * tests/unictype/test-pr_byname.c (main): Use it.
44059
44060         * lib/unistr.h: Doc fixes.
44061         * lib/uniconv.h: Doc fixes.
44062         * lib/unictype.h: Doc fixes.
44063
44064 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
44065
44066         Port coreutils 7.2 to Solaris 8.
44067
44068         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
44069         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
44070         for Solaris 8.  This is a bit of a hack, as it means it's the
44071         caller's responsibility to add -lnsl if needed, but most likely it
44072         won't be needed since only getaddrinfo uses this and getaddrinfo
44073         isn't needed on Solaris 8.
44074
44075         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
44076         problem to Solaris 8 encountered with coreutils 7.2, which
44077         resulted in a message "fnmatch.c:292: warning: passing argument 4
44078         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
44079         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
44080
44081 2009-04-03  Simon Josefsson  <simon@josefsson.org>
44082
44083         * m4/ld-version-script.m4: Add FIXME comment.
44084
44085 2009-04-02  Simon Josefsson  <simon@josefsson.org>
44086
44087         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
44088         SOVERSION variable.
44089
44090 2009-04-02  Bruno Haible  <bruno@clisp.org>
44091
44092         * Makefile (info, html, dvi, pdf): Combine the rules.
44093         Suggested by Jim Meyering.
44094
44095 2009-04-01  Bruno Haible  <bruno@clisp.org>
44096
44097         * Makefile (info, html, dvi, pdf): New targets.
44098         Reported by Reuben Thomas <rrt@sc3d.org>.
44099
44100 2009-04-01  Bruno Haible  <bruno@clisp.org>
44101
44102         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
44103         can be put into PATH.
44104         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
44105
44106 2009-04-01  Bruno Haible  <bruno@clisp.org>
44107
44108         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
44109
44110 2009-04-01  Bruno Haible  <bruno@clisp.org>
44111
44112         Rename module 'visibility'.
44113         * modules/lib-symbol-visibility: Renamed from modules/visibility.
44114         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
44115         * doc/gnulib.texi: Update.
44116         * MODULES.html.sh (Misc): Update.
44117         * NEWS: Mention the change.
44118
44119 2009-04-01  Simon Josefsson  <simon@josefsson.org>
44120
44121         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
44122         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
44123         Eric Blake <ebb9@byu.net> for review.
44124         * MODULES.html.sh: Add lib-msvc-compat.
44125         * doc/gnulib.texi: Link to new section.
44126         * m4/ld-output-def.m4: New file.
44127         * doc/ld-output-def.texi: New file.
44128
44129 2009-04-01  Simon Josefsson  <simon@josefsson.org>
44130
44131         Rename ld-version-script to lib-symbol-versions.  Suggested by
44132         Bruno Haible <bruno@clisp.org>.
44133         * modules/ld-version-script: Renamed to lib-symbol-versions.
44134         * doc/ld-version-script.texi: Fix module name.
44135         * MODULES.html.sh: Add lib-symbol-versions.
44136
44137 2009-03-31  Simon Josefsson  <simon@josefsson.org>
44138
44139         * modules/u64-tests: New file.
44140         * tests/test-u64.c: New file.
44141
44142 2009-03-04  Simon Josefsson  <simon@josefsson.org>
44143
44144         * MODULES.html.sh: Mention u64.
44145         * modules/u64: New module.
44146         * modules/crypto/sha512: Depend on u64 module instead of providing
44147         u64.h.
44148
44149 2009-03-27  Eric Blake  <ebb9@byu.net>
44150
44151         test-strerror: make debugging EAI_SYSTEM easier
44152         * modules/getaddrinfo-tests (Depends-on): Add strerror.
44153         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
44154         failure was EAI_SYSTEM.
44155
44156 2009-03-25  Bruno Haible  <bruno@clisp.org>
44157
44158         Fix a problem with --enable-relocatable on Solaris 7.
44159         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
44160         since 2008-02-24.
44161
44162 2009-03-25  Eric Blake  <ebb9@byu.net>
44163
44164         test-sockets: avoid gcc warning
44165         * tests/test-sockets.c (main): Silence compiler warning.
44166
44167 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
44168
44169         New modules nproc, pthread, contributed by Glen Lenker.
44170
44171         * MODULES.html.sh: Add pthread, nproc.
44172         * lib/nproc.c: New file.
44173         * lib/nproc.h: New file.
44174         * lib/pthread.in.h: New file.
44175         * m4/pthread.m4: New file.
44176         * modules/nproc: New file.
44177         * modules/pthread: New file.
44178
44179 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44180
44181         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
44182         New variable.
44183
44184 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
44185
44186         filevercmp: handle simple~ and numbered.~3~ backup suffixes
44187         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
44188         * tests/test-filevercmp.c: Add tests for backup suffixes.
44189
44190 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44191
44192         * modules/stdlib (Depends-on): Add stdint, needed when defining
44193         struct random_data on, for example, HP-UX 10.20.  Reported by
44194         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44195
44196 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44197
44198         * lib/readline.c (readline): Call fflush on stdout after printing
44199         prompt.
44200
44201 2009-03-20  Bruno Haible  <bruno@clisp.org>
44202
44203         Remove dependency from 'close' module to -lws2_32 on native Windows.
44204         * lib/close-hook.h: New file.
44205         * lib/close-hook.c: New file.
44206         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
44207         w32sock.h.
44208         (_gl_close_fd_maybe_socket): Remove function.
44209         (rpl_close): Invoke execute_all_close_hooks instead of
44210         _gl_close_fd_maybe_socket.
44211         * lib/sockets.c: Include close-hook.h, w32sock.h.
44212         (close_fd_maybe_socket): New function, essentially from lib/close.c.
44213         (close_sockets_hook): New variable.
44214         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
44215         (gl_sockets_cleanup): Unregister it.
44216         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
44217         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
44218         * modules/close-hook: New file.
44219         * modules/close (Files): Remove lib/w32sock.h.
44220         (Depends-on): Add close-hook.
44221         (Link): Remove section.
44222         * modules/sockets (Files): Add lib/w32sock.h.
44223         (Depends-on): Add close-hook.
44224         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
44225         invocation.
44226         * NEWS: Mention that LIB_CLOSE is gone.
44227
44228 2009-03-23  Eric Blake  <ebb9@byu.net>
44229
44230         signal-tests: test previous patch
44231         * tests/test-signal.c: New file.
44232         * modules/signal-tests: Likewise.
44233
44234         signal.h: always support 'volatile sig_atomic_t'
44235         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
44236         (gl_SIGNAL_H_DEFAULTS): Add a default.
44237         * modules/signal (Makefile.am): Substitute if needed.
44238         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
44239         users can blindly add volatile.
44240         * doc/posix-headers/signal.texi (signal.h): Document it.
44241         Reported by Matthew Woehlke.
44242
44243 2009-03-23  Jim Meyering  <meyering@redhat.com>
44244
44245         pathmax: PATH_MAX: use pathconf only when available
44246         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
44247         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
44248         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
44249         This avoids a link failure in a PSP cross-compilation environment
44250         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
44251
44252         * lib/vasnprintf.c (divide): Fix typo in comment.
44253
44254 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44255
44256         * gnulib-tool (func_filter_filelist): Fix comment.
44257
44258 2009-03-20  Bruno Haible  <bruno@clisp.org>
44259
44260         Make sockets.h self-contained.
44261         * lib/sockets.c: Include sockets.h first.
44262         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
44263
44264 2009-03-19  Eric Blake  <ebb9@byu.net>
44265
44266         doc: mention more functions added in cygwin 1.7.0
44267         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
44268         addition.
44269         * doc/posix-functions/log2f.texi: Likewise.
44270
44271 2009-03-19  Jim Meyering  <meyering@redhat.com>
44272
44273         fsusage: avoid syntax error due to statement-before-declaration
44274         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
44275         after all declarations.  Reported by Matthew Woehlke in
44276         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
44277
44278 2009-03-18  Eric Blake  <ebb9@byu.net>
44279
44280         build-aux/compile: sync from automake
44281         * build-aux/compile: New file, from automake.
44282         * config/srclist.txt: Mention build-aux/compile.
44283
44284 2009-03-17  Bruno Haible  <bruno@clisp.org>
44285
44286         * lib/git-merge-changelog.c: Fix typo in comment.
44287         Reported by Reuben Thomas <rrt@sc3d.org>.
44288
44289 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
44290
44291         * m4/regex.m4: update and improve help for
44292         --without-included-regex.
44293
44294 2009-03-17  Simon Josefsson  <simon@josefsson.org>
44295
44296         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
44297         failure on missing include files.
44298
44299 2009-03-17  Eric Blake  <ebb9@byu.net>
44300
44301         doc: mention more functions added in cygwin 1.7.0
44302         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
44303         addition.
44304         * doc/posix-functions/fwscanf.texi: Likewise.
44305         * doc/posix-functions/swprintf.texi: Likewise.
44306         * doc/posix-functions/swscanf.texi: Likewise.
44307         * doc/posix-functions/vfwprintf.texi: Likewise.
44308         * doc/posix-functions/vfwscanf.texi: Likewise.
44309         * doc/posix-functions/vswprintf.texi: Likewise.
44310         * doc/posix-functions/vswscanf.texi: Likewise.
44311         * doc/posix-functions/vwprintf.texi: Likewise.
44312         * doc/posix-functions/vwscanf.texi: Likewise.
44313         * doc/posix-functions/wcscasecmp.texi: Likewise.
44314         * doc/posix-functions/wcsdup.texi: Likewise.
44315         * doc/posix-functions/wcsftime.texi: Likewise.
44316         * doc/posix-functions/wcsncasecmp.texi: Likewise.
44317         * doc/posix-functions/wprintf.texi: Likewise.
44318         * doc/posix-functions/wscanf.texi: Likewise.
44319         * doc/glibc-functions/gethostbyname2.texi: Likewise.
44320
44321 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44322
44323         maint.mk: really add $(AM_MAKEFLAGS)
44324         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
44325         was inadvertently omitted in the last commit.
44326         Spotted by Bruno Haible.
44327
44328         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
44329         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
44330         $(AM_MAKEFLAGS)' rather than plain `make'.
44331
44332         gnulib-tool: execute $MAKE not make
44333         * gnulib-tool: Default $MAKE to 'make'.
44334         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
44335         than make.  Initialize $MAKE in the do-autobuild script.
44336
44337         gnulib-tool: use $MAKE not make in generated files
44338         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
44339         make, in generated files.  Initialize $MAKE in the do-autobuild
44340         script.
44341
44342         * top/GNUmakefile (_have-git-version-gen): Fix typo.
44343
44344         GNUmakefile: disable parallelism only for multiple, recursive targets
44345         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
44346         additions in the Makefile.
44347         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
44348         by Automake.
44349         (.NOTPARALLEL): Only disable parallel builds if multiple targets
44350         are listed on the command line and at least one of them is
44351         listed in $(ALL_RECURSIVE_TARGETS).
44352
44353 2009-03-14  Bruno Haible  <bruno@clisp.org>
44354
44355         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
44356         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
44357         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
44358         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
44359         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
44360         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
44361         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
44362         unistr/u8-uctomb.
44363         * modules/unistr/u8-strchr (Depends-on): Likewise.
44364         * modules/unistr/u8-strrchr (Depends-on): Likewise.
44365         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
44366         unistr/u16-uctomb.
44367         * modules/unistr/u16-strchr (Depends-on): Likewise.
44368         * modules/unistr/u16-strrchr (Depends-on): Likewise.
44369
44370 2009-03-12  Bruno Haible  <bruno@clisp.org>
44371
44372         Work around select() bug on Interix 3.5.
44373         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
44374         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
44375         * m4/select.m4: New file.
44376         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
44377         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
44378         * modules/select (Files): Add m4/select.m4.
44379         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
44380         * modules/nanosleep (Depends-on): Add select.
44381         * modules/poll (Depends-on): Likewise.
44382         * doc/posix-functions/select.texi: Mention the Interix bug.
44383         Reported by Markus Duft <mduft@gentoo.org>.
44384
44385         * lib/select.c: Renamed from lib/winsock-select.c.
44386         * modules/select (Files): Add lib/select.c, remove
44387         lib/winsock-select.c.
44388         (configure.ac): Update.
44389
44390 2009-03-12  Jim Meyering  <meyering@redhat.com>
44391
44392         avoid gcc warnings about unused macro definitions
44393         * lib/readtokens.c (STREQ): Remove unused definition.
44394         * lib/xmalloc.c (SIZE_MAX): Likewise.
44395         * lib/openat-die.c (N_): Likewise.
44396         * lib/mountlist.c (SIZE_MAX): Remove definition.
44397         Instead, include <stdint.h>.
44398         * lib/readutmp.c: Likewise.
44399         * modules/readutmp (Depends-on): Add stdint.
44400         * modules/mountlist (Depends-on): Add stdint.
44401         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
44402
44403 2009-03-10  Bruno Haible  <bruno@clisp.org>
44404
44405         Tests for module 'mbmemcasecoll'.
44406         * modules/mbmemcasecoll-tests: New file.
44407         * tests/test-mbmemcasecoll1.sh: New file.
44408         * tests/test-mbmemcasecoll2.sh: New file.
44409         * tests/test-mbmemcasecoll3.sh: New file.
44410         * tests/test-mbmemcasecoll.c: New file.
44411
44412         New module 'mbmemcasecoll'.
44413         * lib/mbmemcasecoll.h: New file.
44414         * lib/mbmemcasecoll.c: New file.
44415         * modules/mbmemcasecoll: New file.
44416
44417         * tests/test-mbmemcasecmp.h: New file, extracted from
44418         tests/test-mbmemcasecmp.c.
44419         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
44420         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
44421         (main): Update.
44422         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
44423
44424 2009-03-09  Bruno Haible  <bruno@clisp.org>
44425
44426         Tests for module 'mbmemcasecmp'.
44427         * modules/mbmemcasecmp-tests: New file.
44428         * tests/test-mbmemcasecmp1.sh: New file.
44429         * tests/test-mbmemcasecmp2.sh: New file.
44430         * tests/test-mbmemcasecmp3.sh: New file.
44431         * tests/test-mbmemcasecmp.c: New file.
44432
44433         New module 'mbmemcasecmp'.
44434         * lib/mbmemcasecmp.h: New file.
44435         * lib/mbmemcasecmp.c: New file.
44436         * modules/mbmemcasecmp: New file.
44437
44438 2009-03-09  Bruno Haible  <bruno@clisp.org>
44439
44440         Tests for module 'unicase/ulc-casecoll'.
44441         * modules/unicase/ulc-casecoll-tests: New file.
44442         * tests/unicase/test-ulc-casecoll1.sh: New file.
44443         * tests/unicase/test-ulc-casecoll2.sh: New file.
44444         * tests/unicase/test-ulc-casecoll.c: New file.
44445
44446         New module 'unicase/ulc-casecoll'.
44447         * lib/unicase.h (ulc_casecoll): New declaration.
44448         * lib/unicase/ulc-casecoll.c: New file.
44449         * modules/unicase/ulc-casecoll: New file.
44450
44451         New module 'unicase/ulc-casexfrm'.
44452         * lib/unicase.h (ulc_casexfrm): New declaration.
44453         * lib/unicase/ulc-casexfrm.c: New file.
44454         * modules/unicase/ulc-casexfrm: New file.
44455
44456 2009-03-09  Bruno Haible  <bruno@clisp.org>
44457
44458         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
44459         invocations.
44460
44461         * m4/mbscasecmp.m4: Remove file.
44462         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
44463         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
44464
44465         * m4/mbscasestr.m4: Remove file.
44466         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
44467         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
44468
44469         * m4/mbschr.m4: Remove file.
44470         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
44471         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
44472
44473         * m4/mbscspn.m4: Remove file.
44474         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
44475         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
44476
44477         * m4/mbslen.m4: Remove file.
44478         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
44479         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
44480
44481         * m4/mbsncasecmp.m4: Remove file.
44482         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
44483         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
44484
44485         * m4/mbsnlen.m4: Remove file.
44486         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
44487         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
44488
44489         * m4/mbspbrk.m4: Remove file.
44490         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
44491         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
44492
44493         * m4/mbspcasecmp.m4: Remove file.
44494         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
44495         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
44496
44497         * m4/mbsrchr.m4: Remove file.
44498         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
44499         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
44500
44501         * m4/mbssep.m4: Remove file.
44502         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
44503         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
44504
44505         * m4/mbsspn.m4: Remove file.
44506         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
44507         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
44508
44509         * m4/mbsstr.m4: Remove file.
44510         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
44511         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
44512
44513         * m4/mbstok_r.m4: Remove file.
44514         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
44515         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
44516
44517         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
44518
44519         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
44520         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
44521
44522         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
44523
44524 2009-03-08  Bruno Haible  <bruno@clisp.org>
44525
44526         Tests for module 'unicase/ulc-casecmp'.
44527         * modules/unicase/ulc-casecmp-tests: New file.
44528         * tests/unicase/test-ulc-casecmp1.sh: New file.
44529         * tests/unicase/test-ulc-casecmp2.sh: New file.
44530         * tests/unicase/test-ulc-casecmp.c: New file.
44531
44532         New module 'unicase/ulc-casecmp'.
44533         * lib/unicase.h (ulc_casecmp): New declaration.
44534         * lib/unicase/ulc-casecmp.c: New file.
44535         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
44536         'const SRC_UNIT *'.
44537         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
44538         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
44539         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
44540         * modules/unicase/ulc-casecmp: New file.
44541
44542         Tests for module 'unicase/u32-is-cased'.
44543         * modules/unicase/u32-is-cased-tests: New file.
44544         * tests/unicase/test-u32-is-cased.c: New file.
44545
44546         Tests for module 'unicase/u16-is-cased'.
44547         * modules/unicase/u16-is-cased-tests: New file.
44548         * tests/unicase/test-u16-is-cased.c: New file.
44549
44550         Tests for module 'unicase/u8-is-cased'.
44551         * modules/unicase/u8-is-cased-tests: New file.
44552         * tests/unicase/test-u8-is-cased.c: New file.
44553         * tests/unicase/test-is-cased.h: New file.
44554
44555         New module 'unicase/u32-is-cased'.
44556         * lib/unicase/u32-is-cased.c: New file.
44557         * modules/unicase/u32-is-cased: New file.
44558
44559         New module 'unicase/u16-is-cased'.
44560         * lib/unicase/u16-is-cased.c: New file.
44561         * modules/unicase/u16-is-cased: New file.
44562
44563         New module 'unicase/u8-is-cased'.
44564         * lib/unicase/u8-is-cased.c: New file.
44565         * lib/unicase/u-is-cased.h: New file.
44566         * modules/unicase/u8-is-cased: New file.
44567
44568         Tests for module 'unicase/u32-is-casefolded'.
44569         * modules/unicase/u32-is-casefolded-tests: New file.
44570         * tests/unicase/test-u32-is-casefolded.c: New file.
44571
44572         Tests for module 'unicase/u16-is-casefolded'.
44573         * modules/unicase/u16-is-casefolded-tests: New file.
44574         * tests/unicase/test-u16-is-casefolded.c: New file.
44575
44576         Tests for module 'unicase/u8-is-casefolded'.
44577         * modules/unicase/u8-is-casefolded-tests: New file.
44578         * tests/unicase/test-u8-is-casefolded.c: New file.
44579         * tests/unicase/test-is-casefolded.h: New file.
44580
44581         New module 'unicase/u32-is-casefolded'.
44582         * lib/unicase/u32-is-casefolded.c: New file.
44583         * modules/unicase/u32-is-casefolded: New file.
44584
44585         New module 'unicase/u16-is-casefolded'.
44586         * lib/unicase/u16-is-casefolded.c: New file.
44587         * modules/unicase/u16-is-casefolded: New file.
44588
44589         New module 'unicase/u8-is-casefolded'.
44590         * lib/unicase/u8-is-casefolded.c: New file.
44591         * modules/unicase/u8-is-casefolded: New file.
44592
44593         Tests for module 'unicase/u32-is-titlecase'.
44594         * modules/unicase/u32-is-titlecase-tests: New file.
44595         * tests/unicase/test-u32-is-titlecase.c: New file.
44596
44597         Tests for module 'unicase/u16-is-titlecase'.
44598         * modules/unicase/u16-is-titlecase-tests: New file.
44599         * tests/unicase/test-u16-is-titlecase.c: New file.
44600
44601         Tests for module 'unicase/u8-is-titlecase'.
44602         * modules/unicase/u8-is-titlecase-tests: New file.
44603         * tests/unicase/test-u8-is-titlecase.c: New file.
44604         * tests/unicase/test-is-titlecase.h: New file.
44605
44606         New module 'unicase/u32-is-titlecase'.
44607         * lib/unicase/u32-is-titlecase.c: New file.
44608         * modules/unicase/u32-is-titlecase: New file.
44609
44610         New module 'unicase/u16-is-titlecase'.
44611         * lib/unicase/u16-is-titlecase.c: New file.
44612         * modules/unicase/u16-is-titlecase: New file.
44613
44614         New module 'unicase/u8-is-titlecase'.
44615         * lib/unicase/u8-is-titlecase.c: New file.
44616         * modules/unicase/u8-is-titlecase: New file.
44617
44618         Tests for module 'unicase/u32-is-lowercase'.
44619         * modules/unicase/u32-is-lowercase-tests: New file.
44620         * tests/unicase/test-u32-is-lowercase.c: New file.
44621
44622         Tests for module 'unicase/u16-is-lowercase'.
44623         * modules/unicase/u16-is-lowercase-tests: New file.
44624         * tests/unicase/test-u16-is-lowercase.c: New file.
44625
44626         Tests for module 'unicase/u8-is-lowercase'.
44627         * modules/unicase/u8-is-lowercase-tests: New file.
44628         * tests/unicase/test-u8-is-lowercase.c: New file.
44629         * tests/unicase/test-is-lowercase.h: New file.
44630
44631         New module 'unicase/u32-is-lowercase'.
44632         * lib/unicase/u32-is-lowercase.c: New file.
44633         * modules/unicase/u32-is-lowercase: New file.
44634
44635         New module 'unicase/u16-is-lowercase'.
44636         * lib/unicase/u16-is-lowercase.c: New file.
44637         * modules/unicase/u16-is-lowercase: New file.
44638
44639         New module 'unicase/u8-is-lowercase'.
44640         * lib/unicase/u8-is-lowercase.c: New file.
44641         * modules/unicase/u8-is-lowercase: New file.
44642
44643         Tests for module 'unicase/u32-is-uppercase'.
44644         * modules/unicase/u32-is-uppercase-tests: New file.
44645         * tests/unicase/test-u32-is-uppercase.c: New file.
44646
44647         Tests for module 'unicase/u16-is-uppercase'.
44648         * modules/unicase/u16-is-uppercase-tests: New file.
44649         * tests/unicase/test-u16-is-uppercase.c: New file.
44650
44651         Tests for module 'unicase/u8-is-uppercase'.
44652         * modules/unicase/u8-is-uppercase-tests: New file.
44653         * tests/unicase/test-u8-is-uppercase.c: New file.
44654         * tests/unicase/test-is-uppercase.h: New file.
44655
44656         New module 'unicase/u32-is-uppercase'.
44657         * lib/unicase/u32-is-uppercase.c: New file.
44658         * modules/unicase/u32-is-uppercase: New file.
44659
44660         New module 'unicase/u16-is-uppercase'.
44661         * lib/unicase/u16-is-uppercase.c: New file.
44662         * modules/unicase/u16-is-uppercase: New file.
44663
44664         New module 'unicase/u8-is-uppercase'.
44665         * lib/unicase/u8-is-uppercase.c: New file.
44666         * modules/unicase/u8-is-uppercase: New file.
44667
44668         New module 'unicase/u32-is-invariant'.
44669         * lib/unicase/u32-is-invariant.c: New file.
44670         * modules/unicase/u32-is-invariant: New file.
44671
44672         New module 'unicase/u16-is-invariant'.
44673         * lib/unicase/u16-is-invariant.c: New file.
44674         * modules/unicase/u16-is-invariant: New file.
44675
44676         New module 'unicase/u8-is-invariant'.
44677         * lib/unicase/u8-is-invariant.c: New file.
44678         * lib/unicase/invariant.h: New file.
44679         * lib/unicase/u-is-invariant.h: New file.
44680         * modules/unicase/u8-is-invariant: New file.
44681
44682         Tests for module 'unicase/u32-casecoll'.
44683         * modules/unicase/u32-casecoll-tests: New file.
44684         * tests/unicase/test-u32-casecoll.c: New file.
44685
44686         Tests for module 'unicase/u16-casecoll'.
44687         * modules/unicase/u16-casecoll-tests: New file.
44688         * tests/unicase/test-u16-casecoll.c: New file.
44689
44690         Tests for module 'unicase/u8-casecoll'.
44691         * modules/unicase/u8-casecoll-tests: New file.
44692         * tests/unicase/test-u8-casecoll.c: New file.
44693
44694         New module 'unicase/u32-casecoll'.
44695         * lib/unicase/u32-casecoll.c: New file.
44696         * modules/unicase/u32-casecoll: New file.
44697
44698         New module 'unicase/u16-casecoll'.
44699         * lib/unicase/u16-casecoll.c: New file.
44700         * modules/unicase/u16-casecoll: New file.
44701
44702         New module 'unicase/u8-casecoll'.
44703         * lib/unicase/u8-casecoll.c: New file.
44704         * lib/unicase/u-casecoll.h: New file.
44705         * modules/unicase/u8-casecoll: New file.
44706
44707         New module 'unicase/u32-casexfrm'.
44708         * lib/unicase/u32-casexfrm.c: New file.
44709         * modules/unicase/u32-casexfrm: New file.
44710
44711         New module 'unicase/u16-casexfrm'.
44712         * lib/unicase/u16-casexfrm.c: New file.
44713         * modules/unicase/u16-casexfrm: New file.
44714
44715         New module 'unicase/u8-casexfrm'.
44716         * lib/unicase/u8-casexfrm.c: New file.
44717         * lib/unicase/u-casexfrm.h: New file.
44718         * modules/unicase/u8-casexfrm: New file.
44719
44720         Tests for module 'unicase/u32-casecmp'.
44721         * modules/unicase/u32-casecmp-tests: New file.
44722         * tests/unicase/test-u32-casecmp.c: New file.
44723
44724         Tests for module 'unicase/u16-casecmp'.
44725         * modules/unicase/u16-casecmp-tests: New file.
44726         * tests/unicase/test-u16-casecmp.c: New file.
44727
44728         Tests for module 'unicase/u8-casecmp'.
44729         * modules/unicase/u8-casecmp-tests: New file.
44730         * tests/unicase/test-u8-casecmp.c: New file.
44731         * tests/unicase/test-casecmp.h: New file.
44732
44733         New module 'unicase/u32-casecmp'.
44734         * lib/unicase/u32-casecmp.c: New file.
44735         * modules/unicase/u32-casecmp: New file.
44736
44737         New module 'unicase/u16-casecmp'.
44738         * lib/unicase/u16-casecmp.c: New file.
44739         * modules/unicase/u16-casecmp: New file.
44740
44741         New module 'unicase/u8-casecmp'.
44742         * lib/unicase/u8-casecmp.c: New file.
44743         * lib/unicase/u-casecmp.h: New file.
44744         * modules/unicase/u8-casecmp: New file.
44745
44746         Tests for module 'unicase/u32-casefold'.
44747         * modules/unicase/u32-casefold-tests: New file.
44748         * tests/unicase/test-u32-casefold.c: New file.
44749
44750         Tests for module 'unicase/u16-casefold'.
44751         * modules/unicase/u16-casefold-tests: New file.
44752         * tests/unicase/test-u16-casefold.c: New file.
44753
44754         Tests for module 'unicase/u8-casefold'.
44755         * modules/unicase/u8-casefold-tests: New file.
44756         * tests/unicase/test-u8-casefold.c: New file.
44757
44758         New module 'unicase/u32-casefold'.
44759         * lib/unicase/u32-casefold.c: New file.
44760         * modules/unicase/u32-casefold: New file.
44761
44762         New module 'unicase/u16-casefold'.
44763         * lib/unicase/u16-casefold.c: New file.
44764         * modules/unicase/u16-casefold: New file.
44765
44766         New module 'unicase/u8-casefold'.
44767         * lib/unicase/u8-casefold.c: New file.
44768         * lib/unicase/u-casefold.h: New file.
44769         * modules/unicase/u8-casefold: New file.
44770
44771         New module 'unicase/tocasefold'.
44772         * lib/unicase/casefold.h: New file.
44773         * lib/unicase/tocasefold.c: New file.
44774         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
44775         * modules/unicase/tocasefold: New file.
44776
44777         Tests for module 'unicase/u32-totitle'.
44778         * modules/unicase/u32-totitle-tests: New file.
44779         * tests/unicase/test-u32-totitle.c: New file.
44780
44781         Tests for module 'unicase/u16-totitle'.
44782         * modules/unicase/u16-totitle-tests: New file.
44783         * tests/unicase/test-u16-totitle.c: New file.
44784
44785         Tests for module 'unicase/u8-totitle'.
44786         * modules/unicase/u8-totitle-tests: New file.
44787         * tests/unicase/test-u8-totitle.c: New file.
44788
44789         New module 'unicase/u32-totitle'.
44790         * lib/unicase/u32-totitle.c: New file.
44791         * modules/unicase/u32-totitle: New file.
44792
44793         New module 'unicase/u16-totitle'.
44794         * lib/unicase/u16-totitle.c: New file.
44795         * modules/unicase/u16-totitle: New file.
44796
44797         New module 'unicase/u8-totitle'.
44798         * lib/unicase/u8-totitle.c: New file.
44799         * lib/unicase/u-totitle.h: New file.
44800         * modules/unicase/u8-totitle: New file.
44801
44802         Tests for module 'unicase/u32-tolower'.
44803         * modules/unicase/u32-tolower-tests: New file.
44804         * tests/unicase/test-u32-tolower.c: New file.
44805
44806         Tests for module 'unicase/u16-tolower'.
44807         * modules/unicase/u16-tolower-tests: New file.
44808         * tests/unicase/test-u16-tolower.c: New file.
44809
44810         Tests for module 'unicase/u8-tolower'.
44811         * modules/unicase/u8-tolower-tests: New file.
44812         * tests/unicase/test-u8-tolower.c: New file.
44813
44814         New module 'unicase/u32-tolower'.
44815         * lib/unicase/u32-tolower.c: New file.
44816         * modules/unicase/u32-tolower: New file.
44817
44818         New module 'unicase/u16-tolower'.
44819         * lib/unicase/u16-tolower.c: New file.
44820         * modules/unicase/u16-tolower: New file.
44821
44822         New module 'unicase/u8-tolower'.
44823         * lib/unicase/u8-tolower.c: New file.
44824         * modules/unicase/u8-tolower: New file.
44825
44826         Tests for module 'unicase/u32-toupper'.
44827         * modules/unicase/u32-toupper-tests: New file.
44828         * tests/unicase/test-u32-toupper.c: New file.
44829
44830         Tests for module 'unicase/u16-toupper'.
44831         * modules/unicase/u16-toupper-tests: New file.
44832         * tests/unicase/test-u16-toupper.c: New file.
44833
44834         Tests for module 'unicase/u8-toupper'.
44835         * modules/unicase/u8-toupper-tests: New file.
44836         * tests/unicase/test-u8-toupper.c: New file.
44837
44838         New module 'unicase/u32-toupper'.
44839         * lib/unicase/u32-toupper.c: New file.
44840         * modules/unicase/u32-toupper: New file.
44841
44842         New module 'unicase/u16-toupper'.
44843         * lib/unicase/u16-toupper.c: New file.
44844         * modules/unicase/u16-toupper: New file.
44845
44846         New module 'unicase/u8-toupper'.
44847         * lib/unicase/u8-toupper.c: New file.
44848         * modules/unicase/u8-toupper: New file.
44849
44850         New module 'unicase/u32-casemap'.
44851         * lib/unicase/u32-casemap.c: New file.
44852         * modules/unicase/u32-casemap: New file.
44853
44854         New module 'unicase/u16-casemap'.
44855         * lib/unicase/u16-casemap.c: New file.
44856         * modules/unicase/u16-casemap: New file.
44857
44858         New module 'unicase/u8-casemap'.
44859         * lib/unicase/unicasemap.h: New file.
44860         * lib/unicase/u8-casemap.c: New file.
44861         * lib/unicase/u-casemap.h: New file.
44862         * modules/unicase/u8-casemap: New file.
44863
44864         New module 'unicase/special-casing'.
44865         * lib/unicase/special-casing.h: New file.
44866         * lib/unicase/special-casing.c: New file.
44867         * lib/unicase/special-casing-table.gperf: New file, generated by
44868         gen-uni-tables.c.
44869         * modules/unicase/special-casing: New file.
44870
44871         Tests for module 'unicase/locale-language'.
44872         * modules/unicase/locale-language-tests: New file.
44873         * tests/unicase/test-locale-language.sh: New file.
44874         * tests/unicase/test-locale-language.c: New file.
44875
44876         New module 'unicase/locale-language'.
44877         * lib/unicase/locale-language.c: New file.
44878         * lib/unicase/locale-languages.gperf: New file.
44879         * modules/unicase/locale-language: New file.
44880
44881         Generate more tables for case conversion and case folding.
44882         * lib/gen-uni-tables.c (SCC_*): New enum items.
44883         (struct special_casing_rule): New type.
44884         (casing_rules, num_casing_rules, allocated_casing_rules): New
44885         variables.
44886         (add_casing_rule, fill_casing_rules): New functions.
44887         (struct casefold_rule): New type.
44888         (casefolding_rules, num_casefolding_rules,
44889         allocated_casefolding_rules): New variables.
44890         (fill_casefolding_rules): New function.
44891         (unicode_casefold): New variable.
44892         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
44893         sort_casing_rules, output_casing_rules): New functions.
44894         (main): Accept to more arguments: SpecialCasing.txt and
44895         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
44896         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
44897         Output mapping for casefolding.
44898
44899         * lib/unicase.h: Include stdbool.h, uninorm.h.
44900         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
44901         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
44902         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
44903         arguments.
44904         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
44905         resultp arguments.
44906         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
44907         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
44908         resultp arguments.
44909         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
44910         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
44911         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
44912         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
44913         declarations.
44914         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
44915
44916 2009-03-08  Bruno Haible  <bruno@clisp.org>
44917
44918         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
44919         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
44920         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
44921         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
44922
44923 2009-03-07  Bruno Haible  <bruno@clisp.org>
44924
44925         Adjust u*_normcmp, u*_normcoll API.
44926         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
44927         u16_normcoll, u32_normcoll): Change failure conventions.
44928         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
44929         errno and return -1.
44930         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
44931
44932 2009-03-07  Bruno Haible  <bruno@clisp.org>
44933
44934         Tests for module 'uninorm/u32-normcoll'.
44935         * modules/uninorm/u32-normcoll-tests: New file.
44936         * tests/uninorm/test-u32-normcoll.c: New file.
44937
44938         Tests for module 'uninorm/u16-normcoll'.
44939         * modules/uninorm/u16-normcoll-tests: New file.
44940         * tests/uninorm/test-u16-normcoll.c: New file.
44941
44942         Tests for module 'uninorm/u8-normcoll'.
44943         * modules/uninorm/u8-normcoll-tests: New file.
44944         * tests/uninorm/test-u8-normcoll.c: New file.
44945
44946 2009-03-07  Bruno Haible  <bruno@clisp.org>
44947
44948         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
44949         tests/uninorm/test-u32-normcmp.c.
44950         * tests/uninorm/test-u32-normcmp.c: Include it.
44951         (test_nonascii): New function, extracted from main. Add some more
44952         tests.
44953         (main): Invoke test_ascii and test_nonascii.
44954         * modules/uninorm/u32-normcmp-tests (Files): Add
44955         tests/uninorm/test-u32-normcmp.h.
44956         (Depends-on): Remove uninorm/u32-normcmp.
44957
44958         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
44959         tests/uninorm/test-u16-normcmp.c.
44960         * tests/uninorm/test-u16-normcmp.c: Include it.
44961         (test_nonascii): New function, extracted from main. Add some more
44962         tests.
44963         (main): Invoke test_ascii and test_nonascii.
44964         * modules/uninorm/u16-normcmp-tests (Files): Add
44965         tests/uninorm/test-u16-normcmp.h.
44966         (Depends-on): Remove uninorm/u16-normcmp.
44967
44968         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
44969         tests/uninorm/test-u8-normcmp.c.
44970         * tests/uninorm/test-u8-normcmp.c: Include it.
44971         (test_nonascii): New function, extracted from main. Add some more
44972         tests.
44973         (main): Invoke test_ascii and test_nonascii.
44974         * modules/uninorm/u8-normcmp-tests (Files): Add
44975         tests/uninorm/test-u8-normcmp.h.
44976         (Depends-on): Remove uninorm/u8-normcmp.
44977
44978 2009-03-07  Bruno Haible  <bruno@clisp.org>
44979
44980         New module 'uninorm/u32-normcoll'.
44981         * lib/uninorm/u32-normcoll.c: New file.
44982         * modules/uninorm/u32-normcoll: New file.
44983
44984         New module 'uninorm/u16-normcoll'.
44985         * lib/uninorm/u16-normcoll.c: New file.
44986         * modules/uninorm/u16-normcoll: New file.
44987
44988         New module 'uninorm/u8-normcoll'.
44989         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
44990         declarations.
44991         * lib/uninorm/u8-normcoll.c: New file.
44992         * lib/uninorm/u-normcoll.h: New file.
44993         * modules/uninorm/u8-normcoll: New file.
44994
44995         New module 'uninorm/u32-normxfrm'.
44996         * lib/uninorm/u32-normxfrm.c: New file.
44997         * modules/uninorm/u32-normxfrm: New file.
44998
44999         New module 'uninorm/u16-normxfrm'.
45000         * lib/uninorm/u16-normxfrm.c: New file.
45001         * modules/uninorm/u16-normxfrm: New file.
45002
45003         New module 'uninorm/u8-normxfrm'.
45004         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
45005         declarations.
45006         * lib/uninorm/u8-normxfrm.c: New file.
45007         * lib/uninorm/u-normxfrm.h: New file.
45008         * modules/uninorm/u8-normxfrm: New file.
45009
45010 2009-03-07  Bruno Haible  <bruno@clisp.org>
45011
45012         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
45013         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
45014         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
45015
45016 2009-03-07  Bruno Haible  <bruno@clisp.org>
45017
45018         New module 'memxfrm'.
45019         * lib/memxfrm.h: New file.
45020         * lib/memxfrm.c: New file.
45021         * modules/memxfrm: New file.
45022
45023 2009-03-07  Bruno Haible  <bruno@clisp.org>
45024
45025         New module 'memcmp2'.
45026         * lib/memcmp2.h: New file.
45027         * lib/memcmp2.c: New file.
45028         * modules/memcmp2: New file.
45029
45030 2009-03-07  Bruno Haible  <bruno@clisp.org>
45031
45032         Tests for module 'uninorm/decomposing-form'.
45033         * modules/uninorm/decomposing-form-tests: New file.
45034         * tests/uninorm/test-decomposing-form.c: New file.
45035
45036         New module 'uninorm/decomposing-form'.
45037         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
45038         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
45039         Add 'decomposing_variant' field.
45040         * lib/uninorm/decomposing-form.c: New file.
45041         * lib/uninorm/nfc.c (uninorm_nfc): Update.
45042         * lib/uninorm/nfd.c (uninorm_nfd): Update.
45043         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
45044         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
45045         * modules/uninorm/decomposing-form: New file.
45046         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
45047         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
45048
45049 2009-03-07  Bruno Haible  <bruno@clisp.org>
45050
45051         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
45052         strings.
45053
45054 2009-03-06  Bruno Haible  <bruno@clisp.org>
45055
45056         Tests for module 'uninorm/u32-normcmp'.
45057         * tests/uninorm/test-u32-normcmp.c: New file.
45058         * modules/uninorm/u32-normcmp-tests: New file.
45059
45060         Tests for module 'uninorm/u16-normcmp'.
45061         * tests/uninorm/test-u16-normcmp.c: New file.
45062         * modules/uninorm/u16-normcmp-tests: New file.
45063
45064         Tests for module 'uninorm/u8-normcmp'.
45065         * tests/uninorm/test-u8-normcmp.c: New file.
45066         * modules/uninorm/u8-normcmp-tests: New file.
45067
45068         New module 'uninorm/u32-normcmp'.
45069         * lib/uninorm/u32-normcmp.c: New file.
45070         * modules/uninorm/u32-normcmp: New file.
45071
45072         New module 'uninorm/u16-normcmp'.
45073         * lib/uninorm/u16-normcmp.c: New file.
45074         * modules/uninorm/u16-normcmp: New file.
45075
45076         New module 'uninorm/u8-normcmp'.
45077         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
45078         declarations.
45079         * lib/uninorm/u8-normcmp.c: New file.
45080         * lib/uninorm/u-normcmp.h: New file.
45081         * modules/uninorm/u8-normcmp: New file.
45082
45083 2009-03-06  Bruno Haible  <bruno@clisp.org>
45084
45085         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
45086         Reported by Eric Blake.
45087
45088 2009-03-06  Eric Blake  <ebb9@byu.net>
45089             Bruno Haible  <bruno@clisp.org>
45090
45091         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
45092         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
45093         condition.
45094         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
45095         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
45096         condition.
45097         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
45098
45099 2009-03-06  Eric Blake  <ebb9@byu.net>
45100
45101         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
45102         to avoid compiler warnings.
45103         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
45104
45105 2009-03-05  Bruno Haible  <bruno@clisp.org>
45106
45107         * tests/test-ftell.c (main): Disable test beyond end of file on
45108         FreeMiNT.
45109         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
45110
45111 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
45112
45113         * lib/filevercmp.c: Move hidden files up in ordering.
45114         * tests/test-filevercmp.c: Add tests for hidden files.
45115
45116 2009-03-04  Bruno Haible  <bruno@clisp.org>
45117
45118         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
45119         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
45120         AM_CFLAGS.
45121         Reported by Simon Josefsson.
45122
45123 2009-03-03  Bruno Haible  <bruno@clisp.org>
45124
45125         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
45126         Reported by Simon Josefsson.
45127
45128         * doc/ld-version-script.texi: Update node reference.
45129
45130 2009-03-03  Bruno Haible  <bruno@clisp.org>
45131
45132         * modules/visibility (License): Change to 'unlimited'.
45133         Suggested by Simon Josefsson.
45134
45135 2009-03-03  Jim Meyering  <meyering@redhat.com>
45136
45137         unlinkdir: cannot_unlink_dir may modify process state
45138         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
45139         it's neither thread-safe nor appropriate for use in a library.
45140
45141 2009-03-03  Eric Blake  <ebb9@byu.net>
45142
45143         test-closein: silence test under Darwin
45144         * tests/test-closein.sh: Ignore stderr from cat, since we don't
45145         care if it dies from EPIPE or EBADF.
45146
45147 2009-03-03  Bruno Haible  <bruno@clisp.org>
45148
45149         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
45150         earlier.
45151         * doc/visibility.texi: Fix @node and @section.
45152
45153 2009-03-03  Simon Josefsson  <simon@josefsson.org>
45154
45155         * doc/gnulib.texi: Link to sections for ld version script and
45156         visibility.
45157         * doc/visibility.texi: Add @node and @section.
45158         * modules/ld-version-script: New module.
45159         * m4/ld-version-script.m4: New file.
45160         * doc/ld-version-script.texi: New file.
45161
45162 2009-03-02  David Lutterkort  <lutter@redhat.com>
45163
45164         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
45165         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45166
45167 2009-03-02  Bruno Haible  <bruno@clisp.org>
45168
45169         * doc/visibility.texi: Mention libtool's -export-symbols option.
45170
45171 2009-03-02  Jim Meyering  <meyering@redhat.com>
45172
45173         announce-gen: new option: --no-print-checksums
45174         * build-aux/announce-gen (usage): Describe it.
45175         (print_checksums): Print a newline here, not in the [*] footnote.
45176         (main): Honor it.
45177
45178 2009-03-01  Bruno Haible  <bruno@clisp.org>
45179
45180         Use socklen_t in the native Windows replacements prototypes.
45181         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
45182         instead of 'int'.
45183         * lib/getsockopt.c (rpl_getsockopt): Likewise.
45184         * lib/setsockopt.c (rpl_setsockopt): Likewise.
45185         * modules/getsockopt (Depends-on): Add socklen.
45186         * modules/setsockopt (Depends-on): Add socklen.
45187
45188 2009-03-01  Bruno Haible  <bruno@clisp.org>
45189
45190         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
45191         least 4.2.
45192
45193 2009-03-01  Eric Blake  <ebb9@byu.net>
45194             Bruno Haible  <bruno@clisp.org>
45195
45196         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
45197         error messages.
45198         * lib/wait-process.c (wait_subprocess): Omit error message about
45199         deadly signal sent to the child of termsigp != NULL.
45200
45201 2009-03-01  Eric Blake  <ebb9@byu.net>
45202
45203         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
45204
45205 2009-03-01  Bruno Haible  <bruno@clisp.org>
45206
45207         Avoid a gcc warning.
45208         * tests/test-sched.c (b): Make global.
45209         Reported by Eric Blake.
45210
45211 2009-01-19  Martin Lambers  <marlam@marlam.de>
45212
45213         Provide POSIX semantics for socket timeout options on W32.
45214         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
45215         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
45216         * modules/setsockopt: Depend on sys_time module for struct timeval.
45217         * modules/getsockopt: Depend on sys_time module for struct timeval.
45218
45219 2009-03-01  Simon Josefsson  <simon@josefsson.org>
45220
45221         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
45222         __USE_GNU, for consistency with netdb.in.h.
45223         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45224
45225 2009-03-01  Bruno Haible  <bruno@clisp.org>
45226
45227         More support for FreeMiNT.
45228         * lib/fseeko.c (rpl_fseeko): Complete last commit.
45229         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45230
45231 2009-03-01  Bruno Haible  <bruno@clisp.org>
45232
45233         More support for FreeMiNT.
45234         * lib/fpurge.c (fpurge): Correct last commit.
45235         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45236
45237 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45238
45239         Fix unportable awk script in vc-list-files.
45240         * build-aux/vc-list-files: In the replacement awk script, use
45241         substr with a second argument of 1, not zero.
45242         Report by Simon Josefsson.
45243
45244 2009-02-28  Bruno Haible  <bruno@clisp.org>
45245
45246         More support for FreeMiNT.
45247         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
45248         to FreeMiNT today.
45249         * lib/fwriting.c (fwriting): Likewise.
45250         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
45251
45252 2009-02-28  Bruno Haible  <bruno@clisp.org>
45253
45254         * tests/test-freadseek.c (main): Disable test beyond end of file on
45255         FreeMiNT.
45256         * tests/test-ftello.c (main): Likewise.
45257         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
45258
45259 2009-02-28  Bruno Haible  <bruno@clisp.org>
45260
45261         Add tentative support for FreeMiNT.
45262         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
45263         * lib/fpurge.c (fpurge): Likewise.
45264         * lib/freadable.c (freadable): Likewise.
45265         * lib/freading.c (freading): Likewise.
45266         * lib/freadptr.c (freadptr): Likewise.
45267         * lib/freadseek.c (freadptrinc): Likewise.
45268         * lib/fseeko.c (rpl_fseeko): Likewise.
45269         * lib/fseterr.c (fseterr): Likewise.
45270         * lib/fwritable.c (fwritable): Likewise.
45271         * lib/fwriting.c (fwriting): Likewise.
45272         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
45273         Hourihane.
45274         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45275
45276 2009-02-28  Bruno Haible  <bruno@clisp.org>
45277
45278         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
45279         SIGCHLD.
45280         Reported by Jim Meyering.
45281
45282 2009-02-28  Bruno Haible  <bruno@clisp.org>
45283
45284         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
45285         Mention the results of these tests on various platforms.
45286         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
45287         order.
45288         * doc/posix-functions/printf.texi: Likewise.
45289         * doc/posix-functions/snprintf.texi: Likewise.
45290         * doc/posix-functions/sprintf.texi: Likewise.
45291         * doc/posix-functions/vfprintf.texi: Likewise.
45292         * doc/posix-functions/vprintf.texi: Likewise.
45293         * doc/posix-functions/vsnprintf.texi: Likewise.
45294         * doc/posix-functions/vsprintf.texi: Likewise.
45295         * doc/glibc-functions/obstack_printf.texi: Likewise.
45296         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
45297
45298 2009-02-28  Bruno Haible  <bruno@clisp.org>
45299
45300         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
45301         Reported by Loïc Minier <lool@dooz.org>.
45302
45303 2009-02-27  Bruno Haible  <bruno@clisp.org>
45304
45305         * gnulib-tool (func_import): Make the sed expression used to create the
45306         sed script for updating the .gitignore file POSIX compliant.
45307         Reported by Eric Blake.
45308
45309 2009-02-27  Bruno Haible  <bruno@clisp.org>
45310
45311         * gnulib-tool (sed): Don't alias as "sed --posix".
45312         Reported by Eric Blake.
45313
45314 2009-02-27  Bruno Haible  <bruno@clisp.org>
45315
45316         Avoid test link errors.
45317         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
45318         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
45319         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
45320         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
45321         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45322
45323 2009-02-27  Bruno Haible  <bruno@clisp.org>
45324
45325         Avoid spurious "(cached)" in configure output.
45326         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
45327         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
45328         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
45329         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
45330         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
45331         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
45332         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
45333         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
45334         Reported by Eric Blake.
45335
45336 2009-02-27  Eric Blake  <ebb9@byu.net>
45337
45338         printf: fix regression in previous patch
45339         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
45340
45341 2009-02-27  Bruno Haible  <bruno@clisp.org>
45342
45343         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
45344         value.
45345         * lib/stdint.in.h: Likewise.
45346         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
45347
45348 2009-02-27  Eric Blake  <ebb9@byu.net>
45349
45350         doc: mention more functions added in cygwin 1.7.0
45351         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
45352         addition.
45353         * doc/posix-functions/open_wmemstream.texi: Likewise.
45354         * doc/posix-functions/wcsnlen.texi: Likewise.
45355         * doc/posix-functions/wcsnrtombs.texi: Likewise.
45356         * doc/posix-functions/wcstod.texi: Likewise.
45357         * doc/posix-functions/wcstof.texi: Likewise.
45358         * doc/posix-functions/wcstoimax.texi: Likewise.
45359         * doc/posix-functions/wcstok.texi: Likewise.
45360         * doc/posix-functions/wcstoumax.texi: Likewise.
45361
45362         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
45363         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
45364         * doc/posix-functions/fprintf.texi: Update.
45365         * doc/posix-functions/printf.texi: Update.
45366         * doc/posix-functions/snprintf.texi: Update.
45367         * doc/posix-functions/sprintf.texi: Update.
45368         * doc/posix-functions/vfprintf.texi: Update.
45369         * doc/posix-functions/vprintf.texi: Update.
45370         * doc/posix-functions/vsnprintf.texi: Update.
45371         * doc/posix-functions/vsprintf.texi: Update.
45372         * doc/glibc-functions/obstack_printf.texi: Update.
45373         * doc/glibc-functions/obstack_vprintf.texi: Update.
45374
45375 2009-02-26  Eric Blake  <ebb9@byu.net>
45376
45377         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
45378         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
45379         compilation bug by using runtime conversion.
45380         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
45381         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
45382         * modules/ceill-tests (Files): Use nan.h.
45383         * modules/floorl-tests (Files): Likewise.
45384         * modules/frexpl-tests (Files): Likewise.
45385         * modules/isnanl-tests (Files): Likewise.
45386         * modules/ldexpl-tests (Files): Likewise.
45387         * modules/roundl-tests (Files): Likewise.
45388         * modules/truncl-tests (Files): Likewise.
45389         * tests/test-ceill.c (main): Use a working NaN.
45390         * tests/test-floorl.c (main): Likewise.
45391         * tests/test-frexpl.c (main): Likewise.
45392         * tests/test-isnan.c (test_long_double): Likewise.
45393         * tests/test-isnanl.h (main): Likewise.
45394         * tests/test-ldexpl.h (main): Likewise.
45395         * tests/test-roundl.h (main): Likewise.
45396         * tests/test-truncl.h (main): Likewise.
45397         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
45398
45399 2009-02-26  Eric Blake  <ebb9@byu.net>
45400             Bruno Haible  <bruno@clisp.org>
45401
45402         Work around a *printf bug with %ls on Solaris.
45403         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
45404         precision is specified, sprintf stops converting the wide string
45405         argument when the number of bytes that have been produced by this
45406         conversion equals or exceeds the precision.
45407         * doc/posix-functions/fprintf.texi: Update.
45408         * doc/posix-functions/printf.texi: Update.
45409         * doc/posix-functions/snprintf.texi: Update.
45410         * doc/posix-functions/sprintf.texi: Update.
45411         * doc/posix-functions/vfprintf.texi: Update.
45412         * doc/posix-functions/vprintf.texi: Update.
45413         * doc/posix-functions/vsnprintf.texi: Update.
45414         * doc/posix-functions/vsprintf.texi: Update.
45415         * doc/glibc-functions/obstack_printf.texi: Update.
45416         * doc/glibc-functions/obstack_vprintf.texi: Update.
45417
45418 2009-02-26  Eric Blake  <ebb9@byu.net>
45419
45420         stdlib: favor compiler check of random.h
45421         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
45422         to avoid an ObjC random.h installed by Swarm.
45423
45424 2009-02-26  Bruno Haible  <bruno@clisp.org>
45425
45426         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
45427         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
45428         Reported by Gary V. Vaughan <gary@gnu.org>.
45429
45430 2009-02-26  Bruno Haible  <bruno@clisp.org>
45431
45432         Fix *printf behaviour regarding the %ls directive.
45433         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
45434         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
45435         NEED_PRINTF_DIRECTIVE_LS.
45436         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
45437         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45438         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45439         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
45440         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
45441         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
45442         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
45443         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45444         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45445         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45446         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45447         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
45448         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45449         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45450         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45451         * doc/posix-functions/fprintf.texi: Update.
45452         * doc/posix-functions/printf.texi: Update.
45453         * doc/posix-functions/snprintf.texi: Update.
45454         * doc/posix-functions/sprintf.texi: Update.
45455         * doc/posix-functions/vfprintf.texi: Update.
45456         * doc/posix-functions/vprintf.texi: Update.
45457         * doc/posix-functions/vsnprintf.texi: Update.
45458         * doc/posix-functions/vsprintf.texi: Update.
45459         * doc/glibc-functions/obstack_printf.texi: Update.
45460         * doc/glibc-functions/obstack_vprintf.texi: Update.
45461         Reported by Eric Blake.
45462
45463 2009-02-25  Bruno Haible  <bruno@clisp.org>
45464
45465         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
45466         with known value.
45467         Reported by Gary V. Vaughan <gary@gnu.org>.
45468
45469 2009-02-25  Bruno Haible  <bruno@clisp.org>
45470
45471         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
45472         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
45473         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
45474         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
45475         Reported by Gary V. Vaughan <gary@gnu.org>.
45476
45477 2009-02-25  Bruno Haible  <bruno@clisp.org>
45478
45479         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
45480         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
45481         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
45482         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
45483         Reported by Gary V. Vaughan <gary@gnu.org>.
45484
45485 2009-02-25  Eric Blake  <ebb9@byu.net>
45486
45487         tests: skip fseek/ftell tests if ungetc is broken
45488         * m4/ungetc.m4: New file.
45489         * modules/fseek-tests: Split test, so ungetc dependency is
45490         separate from rest of test.
45491         * modules/fseeko-tests: Likewise.
45492         * modules/ftell-tests: Likewise.
45493         * modules/ftello-tests: Likewise.
45494         * tests/test-fseek.c (main): Isolate ungetc dependency.
45495         * tests/test-fseeko.c (main): Likewise.
45496         * tests/test-ftell.c (main): Likewise.
45497         * tests/test-ftello.c (main): Likewise.
45498         * tests/test-fseek2.sh: New file.
45499         * tests/test-fseeko2.sh: Likewise.
45500         * tests/test-ftell2.sh: Likewise.
45501         * tests/test-ftello2.sh: Likewise.
45502
45503 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
45504
45505         test-getaddrinfo: fix usage of skip return code 77
45506         * tests/test-gettaddrinfo.c: Return skip code 77 only
45507         for first occurance of skip (4x77 is not 77)
45508
45509 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
45510
45511         strtod: avoid C99 decl-after-statement
45512         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
45513
45514 2009-02-24  Eric Blake  <ebb9@byu.net>
45515
45516         strtod: detect HP-UX 11.31 bug
45517         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
45518         Reported by Gary V. Vaughan.
45519
45520 2009-02-23  Bruno Haible  <bruno@clisp.org>
45521
45522         Fix invalid read past end of memory block.
45523         * lib/vasnprintf.c (DCHAR_SET): Define.
45524         (local_wcslen): Define only when needed.
45525         (local_strnlen, local_wcsnlen): New functions.
45526         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
45527         directives that involve a conversion ourselves.
45528         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
45529         wcsnlen, mbrtowc, wcrtomb.
45530         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
45531         * tests/test-vasprintf-posix.c (test_function): Likewise.
45532         * tests/test-snprintf-posix.h (test_function): Likewise.
45533         * tests/test-sprintf-posix.h (test_function): Likewise.
45534         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45535
45536 2009-02-22  Bruno Haible  <bruno@clisp.org>
45537
45538         Implement new clarified decomposition of Hangul syllables.
45539         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
45540         of type LTV, return only a pairwise decomposition.
45541         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
45542         Likewise.
45543         * tests/uninorm/test-decomposition.c (main): Updated expected result.
45544         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
45545         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
45546
45547 2009-02-22  Bruno Haible  <bruno@clisp.org>
45548
45549         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
45550         zero-length results and shrink excess allocated memory.
45551         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
45552         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
45553         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
45554         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
45555         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
45556         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
45557         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
45558         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
45559         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
45560         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
45561         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
45562         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
45563
45564 2009-02-21  Bruno Haible  <bruno@clisp.org>
45565
45566         * doc/gnulib.texi: Include safe-alloc.texi earlier.
45567         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
45568         spaces after a period. Put a space between a macro name and its
45569         argument list. Trivial rewordings.
45570         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
45571         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
45572         (main): Return 0 explicitly.
45573
45574 2009-02-21  Bruno Haible  <bruno@clisp.org>
45575
45576         Tests for module 'uninorm/filter'.
45577         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
45578         * modules/uninorm/filter-tests: New file.
45579
45580         New module 'uninorm/filter'.
45581         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
45582         uninorm_filter_flush, uninorm_filter_free): New declarations.
45583         * lib/uninorm/uninorm-filter.c: New file.
45584         * modules/uninorm/filter: New file.
45585
45586 2009-02-21  Bruno Haible  <bruno@clisp.org>
45587
45588         Tests for module 'uninorm/nfkc'.
45589         * tests/uninorm/test-nfkc.c: New file.
45590         * tests/uninorm/test-u8-nfkc.c: New file.
45591         * tests/uninorm/test-u16-nfkc.c: New file.
45592         * tests/uninorm/test-u32-nfkc.c: New file.
45593         * tests/uninorm/test-u32-nfkc-big.sh: New file.
45594         * tests/uninorm/test-u32-nfkc-big.c: New file.
45595         * modules/uninorm/nfkc-tests: New file.
45596
45597         New module 'uninorm/nfkc'.
45598         * lib/uninorm/nfkc.c: New file.
45599         * modules/uninorm/nfkc: New file.
45600
45601         Tests for module 'uninorm/nfkd'.
45602         * tests/uninorm/test-nfkd.c: New file.
45603         * tests/uninorm/test-u8-nfkd.c: New file.
45604         * tests/uninorm/test-u16-nfkd.c: New file.
45605         * tests/uninorm/test-u32-nfkd.c: New file.
45606         * tests/uninorm/test-u32-nfkd-big.sh: New file.
45607         * tests/uninorm/test-u32-nfkd-big.c: New file.
45608         * modules/uninorm/nfkd-tests: New file.
45609
45610         New module 'uninorm/nfkd'.
45611         * lib/uninorm/nfkd.c: New file.
45612         * modules/uninorm/nfkd: New file.
45613
45614         Tests for module 'uninorm/nfc'.
45615         * tests/uninorm/test-nfc.c: New file.
45616         * tests/uninorm/test-u8-nfc.c: New file.
45617         * tests/uninorm/test-u16-nfc.c: New file.
45618         * tests/uninorm/test-u32-nfc.c: New file.
45619         * tests/uninorm/test-u32-nfc-big.sh: New file.
45620         * tests/uninorm/test-u32-nfc-big.c: New file.
45621         * modules/uninorm/nfc-tests: New file.
45622
45623         New module 'uninorm/nfc'.
45624         * lib/uninorm/nfc.c: New file.
45625         * modules/uninorm/nfc: New file.
45626
45627         Tests for module 'uninorm/nfd'.
45628         * tests/uninorm/test-nfd.c: New file.
45629         * tests/uninorm/test-u8-nfd.c: New file.
45630         * tests/uninorm/test-u16-nfd.c: New file.
45631         * tests/uninorm/test-u32-nfd.c: New file.
45632         * tests/uninorm/test-u32-nfd-big.sh: New file.
45633         * tests/uninorm/test-u32-nfd-big.c: New file.
45634         * tests/uninorm/test-u32-normalize-big.h: New file.
45635         * tests/uninorm/test-u32-normalize-big.c: New file.
45636         * tests/uninorm/NormalizationTest.txt: New file, created from
45637         Unicode 5.1.0 NormalizationTest.txt.
45638         * modules/uninorm/nfd-tests: New file.
45639
45640         New module 'uninorm/nfd'.
45641         * lib/uninorm/nfd.c: New file.
45642         * modules/uninorm/nfd: New file.
45643
45644         New module 'uninorm/u32-normalize'.
45645         * lib/uninorm/u32-normalize.c: New file.
45646         * modules/uninorm/u32-normalize: New file.
45647
45648         New module 'uninorm/u16-normalize'.
45649         * lib/uninorm/u16-normalize.c: New file.
45650         * modules/uninorm/u16-normalize: New file.
45651
45652         New module 'uninorm/u8-normalize'.
45653         * lib/uninorm/u8-normalize.c: New file.
45654         * lib/uninorm/normalize-internal.h: New file.
45655         * lib/uninorm/u-normalize-internal.h: New file.
45656         * modules/uninorm/u8-normalize: New file.
45657
45658         New module 'uninorm/decompose-internal'.
45659         * lib/uninorm/decompose-internal.c: New file.
45660         * modules/uninorm/decompose-internal: New file.
45661
45662         Tests for module 'uninorm/composition'.
45663         * tests/uninorm/test-composition.c: New file.
45664         * modules/uninorm/composition-tests: New file.
45665
45666         New module 'uninorm/composition'.
45667         * lib/uninorm/composition.c: New file.
45668         * lib/uninorm/composition-table.gperf: New file, generated by
45669         gen-uni-tables.
45670         * modules/uninorm/composition: New file.
45671
45672         Tests for module 'uninorm/compat-decomposition'.
45673         * tests/uninorm/test-compat-decomposition.c: New file.
45674         * modules/uninorm/compat-decomposition-tests: New file.
45675
45676         New module 'uninorm/compat-decomposition'.
45677         * lib/uninorm/decompose-internal.h: New file.
45678         * lib/uninorm/compat-decomposition.c: New file.
45679         * modules/uninorm/compat-decomposition: New file.
45680
45681         Tests for module 'uninorm/canonical-decomposition'.
45682         * tests/uninorm/test-canonical-decomposition.c: New file.
45683         * modules/uninorm/canonical-decomposition-tests: New file.
45684
45685         New module 'uninorm/canonical-decomposition'.
45686         * lib/uninorm/canonical-decomposition.c: New file.
45687         * modules/uninorm/canonical-decomposition: New file.
45688
45689         Tests for module 'uninorm/decomposition'.
45690         * tests/uninorm/test-decomposition.c: New file.
45691         * modules/uninorm/decomposition-tests: New file.
45692
45693         New module 'uninorm/decomposition'.
45694         * lib/uninorm/decomposition.c: New file.
45695         * modules/uninorm/decomposition: New file.
45696
45697         New module 'uninorm/decomposition-table'.
45698         * lib/uninorm/decomposition-table.h: New file.
45699         * lib/uninorm/decomposition-table.c: New file.
45700         * lib/uninorm/decomposition-table1.h: New file, generated by
45701         gen-uni-tables.
45702         * lib/uninorm/decomposition-table2.h: New file, generated by
45703         gen-uni-tables.
45704         * modules/uninorm/decomposition-table: New file.
45705
45706         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
45707         (UC_DECOMP_*): New enumeration items.
45708         (get_decomposition): New function.
45709         (struct decomp_table): New type.
45710         (output_decomposition, output_decomposition_tables): New functions.
45711         (unicode_composition_exclusions): New variable.
45712         (fill_composition_exclusions, debug_output_composition_tables): New
45713         functions.
45714         (main): Accept one more argument. Invoke fill_composition_exclusions.
45715         Output decomposition and composition tables.
45716
45717         New module 'uninorm/base'.
45718         * lib/uninorm.h: New file.
45719         * lib/unictype.h: Update comment.
45720         * modules/uninorm/base: New file.
45721
45722 2009-02-21  David Lutterkort  <lutter@redhat.com>
45723
45724         Tests for module 'safe-alloc'.
45725         * tests/test-safe-alloc.c: New file.
45726         * modules/safe-alloc-tests: New file.
45727
45728         New module 'safe-alloc'.
45729         * lib/safe-alloc.h: New file.
45730         * lib/safe-alloc.c: New file.
45731         * m4/safe-alloc.m4: New file.
45732         * modules/safe-alloc: New file.
45733         * doc/safe-alloc.texi: New file.
45734         * doc/gnulib.texi: Include it.
45735         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
45736         safe-alloc.
45737
45738 2009-02-18  Bruno Haible  <bruno@clisp.org>
45739
45740         Fix link error on non-glibc systems.
45741         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
45742         variable.
45743         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45744
45745 2009-02-18  Jim Meyering  <meyering@redhat.com>
45746
45747         fts: avoid used-uninitialized error due to recent change
45748         * lib/fts.c (fts_read): Guard uses of the new member,
45749         parent->fts_n_dirs_remaining, since it's not relevant for
45750         the parent of a directory specified on the command-line.
45751
45752 2009-02-17  James Youngman  <jay@gnu.org>
45753             Bruno Haible  <bruno@clisp.org>
45754
45755         * m4/include_next.m4: Reformulate comment.
45756
45757 2009-02-16  Jim Meyering  <meyering@redhat.com>
45758
45759         fts: add #if guards so that the fts_lgpl module still builds
45760         * lib/fts.c: Guard just-added hash-table-using parts with
45761         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
45762         Reported by Simon Josefsson.
45763
45764 2009-02-15  Bruno Haible  <bruno@clisp.org>
45765
45766         * modules/array-mergesort-tests: New file.
45767         * tests/test-array-mergesort.c: New file.
45768
45769         New module 'array-mergesort'.
45770         * modules/array-mergesort: New file.
45771         * lib/array-mergesort.h: New file.
45772
45773 2009-02-15  Bruno Haible  <bruno@clisp.org>
45774
45775         Fix 2009-02-07 commit.
45776         * lib/gen-uni-tables.c (output_predicate, output_category,
45777         output_combclass, output_bidi_category, output_decimal_digit,
45778         output_digit, output_numeric, output_mirror, output_scripts,
45779         output_ident_category, output_simple_mapping): Fix format directives.
45780         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
45781
45782 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
45783
45784         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
45785         fixes are available from IBM.
45786
45787 2009-02-13  Jim Meyering  <meyering@redhat.com>
45788
45789         fts: arrange not to stat non-directories in more cases
45790         This makes GNU find (when it doesn't need to stat each file)
45791         *much* more efficient at traversing reiserfs file systems.
45792         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
45793         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
45794         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
45795         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
45796         (leaf_optimization_applies): New function.
45797         (LCO_hash, LCO_compare): New helper functions.
45798         (link_count_optimize_ok): New function.
45799         (fts_stat): Initialize new member (if dir).
45800         (fts_read): Decrement parent's fts_n_dirs_remaining count if
45801         we've just stat'ed a directory.  Skip the stat call when possible.
45802         ---
45803         Note this AFS-related exchange:
45804         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
45805         and note find's pioctl call in find/fstype.c.
45806         But that is necessary only if you want to enable the
45807         optimization for AFS, and for now, I don't.
45808
45809         fts: move a function definition "up" (no semantic change)
45810         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
45811         "up" to precede upcoming use of a related function.
45812
45813 2009-02-11  Jim Meyering  <meyering@redhat.com>
45814
45815         fts: correct internal computation of nlinks (optimization-related)
45816         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
45817         whether the current entry is a directory, so don't test it.
45818
45819 2009-02-10  Bruno Haible  <bruno@clisp.org>
45820
45821         Tests for module 'uniwbrk/ulc-wordbreaks'.
45822         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
45823         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
45824         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
45825
45826         Tests for module 'uniwbrk/u32-wordbreaks'.
45827         * modules/uniwbrk/u32-wordbreaks-tests: New file.
45828         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
45829
45830         Tests for module 'uniwbrk/u16-wordbreaks'.
45831         * modules/uniwbrk/u16-wordbreaks-tests: New file.
45832         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
45833
45834         Tests for module 'uniwbrk/u8-wordbreaks'.
45835         * modules/uniwbrk/u8-wordbreaks-tests: New file.
45836         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
45837
45838 2009-02-10  Bruno Haible  <bruno@clisp.org>
45839
45840         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
45841         property.
45842         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
45843         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
45844         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
45845
45846 2009-02-10  Simon Josefsson  <simon@josefsson.org>
45847
45848         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
45849         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
45850
45851 2009-02-10  Bruno Haible  <bruno@clisp.org>
45852
45853         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
45854         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
45855         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
45856         * lib/unilbrk/u8-possible-linebreaks.c: Update.
45857         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
45858         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
45859
45860 2009-02-09  Simon Josefsson  <simon@josefsson.org>
45861
45862         * lib/sockets.h (gl_fd_to_handle): New function.
45863
45864         * tests/test-sockets.c: Call gl_fd_to_handle.
45865
45866 2009-02-09  Bruno Haible  <bruno@clisp.org>
45867
45868         * doc/havelib.texi: Document the conventions on bi-arch systems.
45869
45870 2009-02-08  Bruno Haible  <bruno@clisp.org>
45871
45872         Document the AC_LIB_LINKFLAGS macro.
45873         * doc/havelib.texi: New file, mostly written on 2005-05-24.
45874         * doc/gnulib.texi: Include it.
45875
45876 2009-02-08  Bruno Haible  <bruno@clisp.org>
45877
45878         Fix wrong order of sections, compared to TOC.
45879         * doc/gnulib.texi: Include relocatable-maint.texi after the
45880         "Regular expressions" node, not before.
45881
45882 2009-02-08  Bruno Haible  <bruno@clisp.org>
45883
45884         Tests for module 'unicase/totitle'.
45885         * modules/unicase/totitle-tests: New file.
45886
45887         Tests for module 'unicase/tolower'.
45888         * modules/unicase/tolower-tests: New file.
45889
45890         Tests for module 'unicase/toupper'.
45891         * modules/unicase/toupper-tests: New file.
45892         * tests/unicase/test-mapping-part1.h: New file.
45893         * tests/unicase/test-mapping-part2.h: New file.
45894
45895         New module 'unicase/totitle'.
45896         * modules/unicase/totitle: New file.
45897         * lib/unicase/totitle.c: New file.
45898
45899         New module 'unicase/tolower'.
45900         * modules/unicase/tolower: New file.
45901         * lib/unicase/tolower.c: New file.
45902
45903         New module 'unicase/toupper'.
45904         * modules/unicase/toupper: New file.
45905         * lib/unicase/toupper.c: New file.
45906         * lib/unicase/simple-mapping.h: New file.
45907
45908         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
45909         (mapping_table): New structure.
45910         (output_simple_mapping): New function.
45911         (main): Invoke output_simple_mapping_test and output_simple_mapping.
45912         * modules/gen-uni-tables (Description): Update.
45913         * lib/unicase/toupper.h: New file, automatically generated by
45914         gen-uni-tables.
45915         * lib/unicase/tolower.h: New file, automatically generated by
45916         gen-uni-tables.
45917         * lib/unicase/totitle.h: New file, automatically generated by
45918         gen-uni-tables.
45919         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
45920         gen-uni-tables.
45921         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
45922         gen-uni-tables.
45923         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
45924         gen-uni-tables.
45925
45926         New module 'unicase/base'.
45927         * modules/unicase/base: New file.
45928         * lib/unicase.h: New file.
45929
45930 2009-02-08  Bruno Haible  <bruno@clisp.org>
45931
45932         New module 'uniwbrk/ulc-wordbreaks'.
45933         * modules/uniwbrk/ulc-wordbreaks: New file.
45934         * lib/uniwbrk/ulc-wordbreaks.c: New file.
45935
45936         New module 'uniwbrk/u32-wordbreaks'.
45937         * modules/uniwbrk/u32-wordbreaks: New file.
45938         * lib/uniwbrk/u32-wordbreaks.c: New file.
45939
45940         New module 'uniwbrk/u16-wordbreaks'.
45941         * modules/uniwbrk/u16-wordbreaks: New file.
45942         * lib/uniwbrk/u16-wordbreaks.c: New file.
45943
45944         New module 'uniwbrk/u8-wordbreaks'.
45945         * modules/uniwbrk/u8-wordbreaks: New file.
45946         * lib/uniwbrk/u8-wordbreaks.c: New file.
45947         * lib/uniwbrk/u-wordbreaks.h: New file.
45948
45949         New module 'uniwbrk/table'.
45950         * modules/uniwbrk/table: New file.
45951         * lib/uniwbrk/wbrktable.h: New file.
45952         * lib/uniwbrk/wbrktable.c: New file.
45953
45954         New module 'uniwbrk/wordbreak-property'.
45955         * modules/uniwbrk/wordbreak-property: New file.
45956         * lib/uniwbrk/wordbreak-property.c: New file.
45957
45958         * lib/gen-uni-tables.c (WBP_*): New enum items.
45959         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
45960         (unicode_org_wbp): New variable.
45961         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
45962         New functions.
45963         (wbp_table): New structure.
45964         (output_wbp, output_wbrk_tables): New functions.
45965         (main): Accept additional argument. Invoke fill_org_wbp,
45966         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
45967         output_wbrk_tables.
45968         * modules/gen-uni-tables (Description): Update.
45969         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
45970         gen-uni-tables.
45971
45972         New module 'uniwbrk/base'.
45973         * modules/uniwbrk/base: New file.
45974         * lib/uniwbrk.h: New file.
45975
45976 2009-02-08  Bruno Haible  <bruno@clisp.org>
45977
45978         Update to Unicode 5.1.0.
45979         * lib/gen-uni-tables.c (is_property_alphabetic): Include
45980         U+2185..U+2188.
45981         (is_property_default_ignorable_code_point): Don't include characters
45982         of category Cc or Cs and not-a-characters.
45983         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
45984         U+0D79, U+109E, U+109F, U+A60C.
45985         * lib/unictype/bidi_of.h: Regenerated.
45986         * lib/unictype/blocks.h: Regenerated.
45987         * lib/unictype/categ_C.h: Regenerated.
45988         * lib/unictype/categ_Cf.h: Regenerated.
45989         * lib/unictype/categ_Cn.h: Regenerated.
45990         * lib/unictype/categ_L.h: Regenerated.
45991         * lib/unictype/categ_Ll.h: Regenerated.
45992         * lib/unictype/categ_Lm.h: Regenerated.
45993         * lib/unictype/categ_Lo.h: Regenerated.
45994         * lib/unictype/categ_Lu.h: Regenerated.
45995         * lib/unictype/categ_M.h: Regenerated.
45996         * lib/unictype/categ_Mc.h: Regenerated.
45997         * lib/unictype/categ_Me.h: Regenerated.
45998         * lib/unictype/categ_Mn.h: Regenerated.
45999         * lib/unictype/categ_N.h: Regenerated.
46000         * lib/unictype/categ_Nd.h: Regenerated.
46001         * lib/unictype/categ_Nl.h: Regenerated.
46002         * lib/unictype/categ_No.h: Regenerated.
46003         * lib/unictype/categ_P.h: Regenerated.
46004         * lib/unictype/categ_Pd.h: Regenerated.
46005         * lib/unictype/categ_Pe.h: Regenerated.
46006         * lib/unictype/categ_Pf.h: Regenerated.
46007         * lib/unictype/categ_Pi.h: Regenerated.
46008         * lib/unictype/categ_Po.h: Regenerated.
46009         * lib/unictype/categ_Ps.h: Regenerated.
46010         * lib/unictype/categ_S.h: Regenerated.
46011         * lib/unictype/categ_Sk.h: Regenerated.
46012         * lib/unictype/categ_Sm.h: Regenerated.
46013         * lib/unictype/categ_So.h: Regenerated.
46014         * lib/unictype/categ_of.h: Regenerated.
46015         * lib/unictype/combining.h: Regenerated.
46016         * lib/unictype/ctype_alnum.h: Regenerated.
46017         * lib/unictype/ctype_alpha.h: Regenerated.
46018         * lib/unictype/ctype_graph.h: Regenerated.
46019         * lib/unictype/ctype_lower.h: Regenerated.
46020         * lib/unictype/ctype_print.h: Regenerated.
46021         * lib/unictype/ctype_punct.h: Regenerated.
46022         * lib/unictype/ctype_upper.h: Regenerated.
46023         * lib/unictype/decdigit.h: Regenerated.
46024         * lib/unictype/digit.h: Regenerated.
46025         * lib/unictype/mirror.h: Regenerated.
46026         * lib/unictype/numeric.h: Regenerated.
46027         * lib/unictype/pr_alphabetic.h: Regenerated.
46028         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
46029         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
46030         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
46031         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
46032         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
46033         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
46034         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
46035         * lib/unictype/pr_combining.h: Regenerated.
46036         * lib/unictype/pr_dash.h: Regenerated.
46037         * lib/unictype/pr_decimal_digit.h: Regenerated.
46038         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
46039         * lib/unictype/pr_deprecated.h: Regenerated.
46040         * lib/unictype/pr_diacritic.h: Regenerated.
46041         * lib/unictype/pr_extender.h: Regenerated.
46042         * lib/unictype/pr_format_control.h: Regenerated.
46043         * lib/unictype/pr_grapheme_base.h: Regenerated.
46044         * lib/unictype/pr_grapheme_extend.h: Regenerated.
46045         * lib/unictype/pr_grapheme_link.h: Regenerated.
46046         * lib/unictype/pr_id_continue.h: Regenerated.
46047         * lib/unictype/pr_id_start.h: Regenerated.
46048         * lib/unictype/pr_ideographic.h: Regenerated.
46049         * lib/unictype/pr_ignorable_control.h: Regenerated.
46050         * lib/unictype/pr_lowercase.h: Regenerated.
46051         * lib/unictype/pr_math.h: Regenerated.
46052         * lib/unictype/pr_numeric.h: Regenerated.
46053         * lib/unictype/pr_other_alphabetic.h: Regenerated.
46054         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
46055         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
46056         * lib/unictype/pr_other_id_continue.h: Regenerated.
46057         * lib/unictype/pr_other_lowercase.h: Regenerated.
46058         * lib/unictype/pr_other_math.h: Regenerated.
46059         * lib/unictype/pr_punctuation.h: Regenerated.
46060         * lib/unictype/pr_sentence_terminal.h: Regenerated.
46061         * lib/unictype/pr_soft_dotted.h: Regenerated.
46062         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
46063         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
46064         * lib/unictype/pr_unified_ideograph.h: Regenerated.
46065         * lib/unictype/pr_uppercase.h: Regenerated.
46066         * lib/unictype/pr_xid_continue.h: Regenerated.
46067         * lib/unictype/pr_xid_start.h: Regenerated.
46068         * lib/unictype/pr_zero_width.h: Regenerated.
46069         * lib/unictype/scripts.h: Regenerated.
46070         * lib/unictype/scripts_byname.gperf: Regenerated.
46071         * lib/unictype/sy_java_ident.h: Regenerated.
46072         * lib/unilbrk/lbrkprop1.h: Regenerated.
46073         * lib/unilbrk/lbrkprop2.h: Regenerated.
46074         * tests/unictype/test-categ_C.c: Regenerated.
46075         * tests/unictype/test-categ_Cf.c: Regenerated.
46076         * tests/unictype/test-categ_Cn.c: Regenerated.
46077         * tests/unictype/test-categ_L.c: Regenerated.
46078         * tests/unictype/test-categ_Ll.c: Regenerated.
46079         * tests/unictype/test-categ_Lm.c: Regenerated.
46080         * tests/unictype/test-categ_Lo.c: Regenerated.
46081         * tests/unictype/test-categ_Lu.c: Regenerated.
46082         * tests/unictype/test-categ_M.c: Regenerated.
46083         * tests/unictype/test-categ_Mc.c: Regenerated.
46084         * tests/unictype/test-categ_Me.c: Regenerated.
46085         * tests/unictype/test-categ_Mn.c: Regenerated.
46086         * tests/unictype/test-categ_N.c: Regenerated.
46087         * tests/unictype/test-categ_Nd.c: Regenerated.
46088         * tests/unictype/test-categ_Nl.c: Regenerated.
46089         * tests/unictype/test-categ_No.c: Regenerated.
46090         * tests/unictype/test-categ_P.c: Regenerated.
46091         * tests/unictype/test-categ_Pd.c: Regenerated.
46092         * tests/unictype/test-categ_Pe.c: Regenerated.
46093         * tests/unictype/test-categ_Pf.c: Regenerated.
46094         * tests/unictype/test-categ_Pi.c: Regenerated.
46095         * tests/unictype/test-categ_Po.c: Regenerated.
46096         * tests/unictype/test-categ_Ps.c: Regenerated.
46097         * tests/unictype/test-categ_S.c: Regenerated.
46098         * tests/unictype/test-categ_Sk.c: Regenerated.
46099         * tests/unictype/test-categ_Sm.c: Regenerated.
46100         * tests/unictype/test-categ_So.c: Regenerated.
46101         * tests/unictype/test-ctype_alnum.c: Regenerated.
46102         * tests/unictype/test-ctype_alpha.c: Regenerated.
46103         * tests/unictype/test-ctype_graph.c: Regenerated.
46104         * tests/unictype/test-ctype_lower.c: Regenerated.
46105         * tests/unictype/test-ctype_print.c: Regenerated.
46106         * tests/unictype/test-ctype_punct.c: Regenerated.
46107         * tests/unictype/test-ctype_upper.c: Regenerated.
46108         * tests/unictype/test-decdigit.h: Regenerated.
46109         * tests/unictype/test-digit.h: Regenerated.
46110         * tests/unictype/test-numeric.h: Regenerated.
46111         * tests/unictype/test-pr_alphabetic.c: Regenerated.
46112         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
46113         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
46114         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
46115         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
46116         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
46117         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
46118         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
46119         * tests/unictype/test-pr_combining.c: Regenerated.
46120         * tests/unictype/test-pr_dash.c: Regenerated.
46121         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
46122         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
46123         * tests/unictype/test-pr_deprecated.c: Regenerated.
46124         * tests/unictype/test-pr_diacritic.c: Regenerated.
46125         * tests/unictype/test-pr_extender.c: Regenerated.
46126         * tests/unictype/test-pr_format_control.c: Regenerated.
46127         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
46128         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
46129         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
46130         * tests/unictype/test-pr_id_continue.c: Regenerated.
46131         * tests/unictype/test-pr_id_start.c: Regenerated.
46132         * tests/unictype/test-pr_ideographic.c: Regenerated.
46133         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
46134         * tests/unictype/test-pr_lowercase.c: Regenerated.
46135         * tests/unictype/test-pr_math.c: Regenerated.
46136         * tests/unictype/test-pr_numeric.c: Regenerated.
46137         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
46138         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
46139         Regenerated.
46140         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
46141         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
46142         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
46143         * tests/unictype/test-pr_other_math.c: Regenerated.
46144         * tests/unictype/test-pr_punctuation.c: Regenerated.
46145         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
46146         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
46147         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
46148         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
46149         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
46150         * tests/unictype/test-pr_uppercase.c: Regenerated.
46151         * tests/unictype/test-pr_xid_continue.c: Regenerated.
46152         * tests/unictype/test-pr_xid_start.c: Regenerated.
46153         * tests/unictype/test-pr_zero_width.c: Regenerated.
46154
46155         Update to Unicode 5.1.0.
46156         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
46157         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
46158         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
46159         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
46160         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
46161         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
46162         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
46163         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
46164         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
46165         (nonspacing_table_ind): Update.
46166         * tests/uniwidth/test-uc_width2.sh: Update expected result.
46167
46168         Update to Unicode 5.1.0.
46169         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
46170         code transform.
46171         * lib/uniname/uniname.c (unicode_character_name,
46172         unicode_name_character): Add the range 0x1Fxxx to the code transform.
46173         * lib/uniname/uninames.h: Regenerated.
46174         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
46175
46176 2009-02-07  Bruno Haible  <bruno@clisp.org>
46177
46178         Merge gen-ctype and gen-lbrk into a single program.
46179         * lib/gen-uni-tables.c: New file, incorporating
46180         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
46181         Add directory prefixes to the names of the generated files.
46182         * lib/unictype/gen-ctype.c: Remove file.
46183         * lib/unilbrk/gen-lbrk.c: Remove file.
46184         * modules/gen-uni-tables: New file.
46185         * modules/unictype/gen-ctype: Remove file.
46186         * modules/unilbrk/gen-lbrk: Remove file.
46187
46188 2009-02-07  Bruno Haible  <bruno@clisp.org>
46189
46190         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
46191
46192         New module 'unistr/u32-strcoll'.
46193         * modules/unistr/u32-strcoll: New file.
46194         * lib/unistr/u32-strcoll.c: New file.
46195
46196         New module 'unistr/u16-strcoll'.
46197         * modules/unistr/u16-strcoll: New file.
46198         * lib/unistr/u16-strcoll.c: New file.
46199
46200         New module 'unistr/u8-strcoll'.
46201         * modules/unistr/u8-strcoll: New file.
46202         * lib/unistr/u8-strcoll.c: New file.
46203         * lib/unistr/u-strcoll.h: New file.
46204
46205 2009-02-07  Bruno Haible  <bruno@clisp.org>
46206
46207         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
46208         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
46209         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
46210         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
46211         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
46212         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
46213
46214 2009-02-07  Bruno Haible  <bruno@clisp.org>
46215
46216         Make 64-bit clean.
46217         * lib/unictype/gen-ctype.c (output_predicate, output_category,
46218         output_combclass, output_bidi_category, output_decimal_digit,
46219         output_digit, output_numeric, output_mirror, output_scripts,
46220         output_ident_category): Use proper width specifier in format strings.
46221
46222 2009-02-07  Bruno Haible  <bruno@clisp.org>
46223
46224         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
46225         failure behaviour.
46226
46227 2009-02-07  Jim Meyering  <meyering@redhat.com>
46228
46229         regex: avoid compilation failure with upcoming gcc-4.4
46230         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
46231         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
46232         "... error: integer overflow in preprocessor expression".
46233
46234 2009-02-05  Ben Pfaff  <blp@gnu.org>
46235
46236         Fix link errors on Windows when close module is used.
46237         * modules/close: Add $(LIB_CLOSE) to Link section.
46238         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
46239         $(LIB_CLOSE) on Windows.
46240
46241 2009-02-05  Jim Meyering  <meyering@redhat.com>
46242
46243         still avoid unused-parameter warnings, but do it cleanly
46244         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
46245         (get_fs_usage): Cast to void instead.
46246         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
46247         (dev_from_mount_options, read_file_system_list): Cast to void.
46248         Prompted by Bruno Haible.
46249
46250 2009-02-04  Jim Meyering  <meyering@redhat.com>
46251
46252         fsusage.c: correct copyright year
46253         * lib/fsusage.c: Reflect year in which the change is pushed into
46254
46255         avoid misc. warnings
46256         * lib/fsusage.c (UNUSED_PARAM): Define.
46257         (get_fs_usage): Mark parameter "disk" as unused.
46258         * lib/getugroups.c (getgrent): Use "void" in prototype.
46259         * lib/mountlist.c: Mark unused parameters.
46260         (read_file_system_list): Declare a local with "const".
46261         * lib/nanosleep.c (getnow): Declare static.
46262         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
46263
46264         dirfd: set errno upon failure
46265         * lib/dirfd.c: Include <errno.h>.
46266         Set errno to ENOTSUP when returning -1.
46267         * modules/dirfd (Depends-on): Add errno.
46268         Suggested by John Kodis <kodis@comcast.net>.
46269
46270 2009-02-01  Bruno Haible  <bruno@clisp.org>
46271
46272         Don't assume sizeof (long) >= sizeof (void *).
46273         * lib/memcmp.c: Include stdint.h.
46274         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
46275         srcp2 to 'const byte *'.
46276         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
46277         types to uintptr_t.
46278         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
46279         * modules/memcmp (Depends-on): Add stdint.
46280         Reported by Ozkan Sezer <sezeroz@gmail.com>.
46281
46282 2009-01-30  Eric Blake  <ebb9@byu.net>
46283
46284         fix more require-before-expand issues
46285         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
46286         expand, AC_PROG_AWK.
46287         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
46288
46289 2009-01-28  Eric Blake  <ebb9@byu.net>
46290
46291         version-etc: use consistent URL formatting
46292         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
46293         Improve formatting.  Use fputs for string without %.
46294
46295 2009-01-28  Jim Meyering  <meyering@redhat.com>
46296
46297         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
46298         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
46299         "underquoted definition of NAME" from autoconf-2.59.
46300
46301 2009-01-28  Bruno Haible  <bruno@clisp.org>
46302
46303         * doc/gnulib.texi: Add "Obsolete modules" to index.
46304
46305 2009-01-28  Jim Meyering  <meyering@redhat.com>
46306
46307         useless-if-before-free: recognize more variants
46308         * build-aux/useless-if-before-free: Also recognize e.g.,
46309         if (NULL != p) free (p);
46310
46311 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
46312
46313         test-getaddrinfo: skip (don't fail) this test when there's no network
46314         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
46315         on the presumption that it means you lack network access.
46316
46317 2009-01-26  Jim Meyering  <meyering@redhat.com>
46318
46319         fflush: avoid warnings on modern systems
46320         * lib/fflush.c (rpl_fflush): Move declarations of locals,
46321         pos and result, into scopes where they're used.
46322
46323 2009-01-26  Eric Blake  <ebb9@byu.net>
46324
46325         Silence warning reintroduced by recent extensions patch.
46326         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
46327         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
46328         autoconf.
46329
46330         Backport improved autoconf semantics of AC_DEFUN_ONCE.
46331         * m4/00gnulib.m4: New file.
46332         * gnulib-tool (func_get_filelist): Always use it.
46333         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
46334         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
46335
46336 2009-01-25  Bruno Haible  <bruno@clisp.org>
46337
46338         Make test-quotearg work on MacOS X and AIX.
46339         * tests/test-quotearg.sh: New file.
46340         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
46341         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
46342         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
46343         include <libintl.h>.
46344         (fake_locale): Remove variable.
46345         (gettext, dgettext, dcgettext): Remove functions.
46346         (main): Instead of setting a fake locale, set a real locale. Call
46347         textdomain and bindtextdomain.
46348         * modules/quotearg-tests (Files): Add the new files.
46349         (Depends-on): Add gettext, setenv, unsetenv.
46350         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
46351         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
46352         Augment TESTS_ENVIRONMENT.
46353
46354 2009-01-25  Bruno Haible  <bruno@clisp.org>
46355
46356         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
46357         fr_FR.ISO8859-1 locale on MacOS X.
46358         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
46359         ja_JP.eucJP locale on MacOS X.
46360         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
46361         zh_CN.GB18030 locale on MacOS X.
46362
46363 2009-01-25  Bruno Haible  <bruno@clisp.org>
46364
46365         Avoid link errors on MacOS X 10.3.
46366         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
46367         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
46368
46369 2009-01-25  Bruno Haible  <bruno@clisp.org>
46370
46371         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
46372         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
46373         * modules/pipe (Files): Remove m4/posix_spawn.m4.
46374         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
46375         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
46376         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
46377         posix_spawnattr_init, posix_spawnattr_setsigmask,
46378         posix_spawnattr_setflags, posix_spawnattr_destroy.
46379
46380         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
46381         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
46382         * modules/execute (Files): Remove m4/posix_spawn.m4.
46383         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
46384         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
46385         posix_spawnattr_init, posix_spawnattr_setsigmask,
46386         posix_spawnattr_setflags, posix_spawnattr_destroy.
46387
46388 2009-01-25  Bruno Haible  <bruno@clisp.org>
46389
46390         * lib/glthread/threadlib.c: Include <stdlib.h>.
46391
46392 2009-01-25  Bruno Haible  <bruno@clisp.org>
46393
46394         * lib/glthread/threadlib.c (dummy): New declaration.
46395
46396 2009-01-25  Bruno Haible  <bruno@clisp.org>
46397
46398         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
46399         multibyte characters also for the GB18030 encoding. Don't crash when
46400         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
46401
46402 2009-01-25  Bruno Haible  <bruno@clisp.org>
46403
46404         Avoid redefining 'struct random_data' on OSF/1 5.1.
46405         * lib/stdlib.in.h: Include <random.h> if it exists.
46406         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
46407         HAVE_RANDOM_H. Include <random.h> when testing whether
46408         'struct random_data' exists.
46409         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
46410
46411 2009-01-25  Bruno Haible  <bruno@clisp.org>
46412
46413         Don't install charset.alias on MacOS X >= 10.3.
46414         * lib/localcharset.c (DARWIN7): New macro.
46415         (get_charset_aliases): Hardcode the result for Darwin7.
46416         * modules/localcharset (install-exec-local): Don't install
46417         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
46418
46419 2009-01-25  Bruno Haible  <bruno@clisp.org>
46420
46421         Don't install charset.alias on mingw and Cygwin.
46422         * modules/localcharset (install-exec-local): Don't install
46423         charset.alias on mingw and Cygwin, if the file does not yet exist.
46424         The result for these platforms is hardcoded in localcharset.c.
46425
46426 2009-01-25  Bruno Haible  <bruno@clisp.org>
46427
46428         Make it possible again to use AC_GNU_SOURCE together with gnulib.
46429         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
46430         before requiring AC_USE_SYSTEM_EXTENSIONS.
46431
46432 2009-01-25  Jim Meyering  <meyering@redhat.com>
46433
46434         c-strtod: avoid warnings
46435         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
46436         "assignment discards qualifiers from pointer target type" warnings.
46437
46438 2009-01-24  Bruno Haible  <bruno@clisp.org>
46439
46440         Add support for non-UTF-8 locales on MacOS X.
46441         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
46442         canonical encodings. For Darwin 7 and newer, don't map traditional
46443         encodings to UTF-8.
46444         Reported by Vincent Lefevre <vincent@vinc17.org>
46445         at <http://savannah.gnu.org/bugs/?25235>.
46446
46447 2009-01-24  Bruno Haible  <bruno@clisp.org>
46448
46449         * doc/gnulib.texi (Obsolete modules): New section.
46450         Reported by Mike Frysinger <vapier@gentoo.org>.
46451
46452 2009-01-24  Bruno Haible  <bruno@clisp.org>
46453
46454         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
46455         (%.dvi): New rule.
46456
46457 2009-01-24  Bruno Haible  <bruno@clisp.org>
46458
46459         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
46460         Reported by Eric Blake.
46461
46462 2009-01-24  Bruno Haible  <bruno@clisp.org>
46463
46464         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
46465         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
46466         Reported by Gary V. Vaughan <gary@gnu.org>.
46467
46468 2009-01-24  Bruno Haible  <bruno@clisp.org>
46469
46470         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
46471
46472 2009-01-23  Bruno Haible  <bruno@clisp.org>
46473
46474         Make c-strtod, c-strtold usable in libraries.
46475         * lib/c-strtod.c: Include string.h instead of xalloc.h.
46476         (C_STRTOD): Call strdup instead of xstrdup.
46477         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
46478         * modules/c-strtold (Depends-on): Likewise.
46479         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
46480         * NEWS: Mention the change.
46481         Reported by Michael Gold <mgold@ncf.ca>.
46482
46483 2009-01-23  Jim Meyering  <meyering@redhat.com>
46484
46485         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
46486         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
46487         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
46488
46489 2009-01-23  Simon Josefsson  <simon@josefsson.org>
46490
46491         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
46492         GNU CoreUtils.
46493         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
46494         * modules/version-etc (Description): Update.
46495
46496 2009-01-22  Bruno Haible  <bruno@clisp.org>
46497
46498         Cache the C locale object.
46499         * lib/c-strtod.c (c_locale_cache): New variable.
46500         (c_locale): New function.
46501         (C_STRTOD): Use it, and don't call freelocale.
46502         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
46503         Suggested by Paolo Bonzini.
46504
46505 2009-01-21  Bruno Haible  <bruno@clisp.org>
46506
46507         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
46508         conditions other than overflow.
46509
46510 2009-01-21  Bruno Haible  <bruno@clisp.org>
46511
46512         * lib/c-strtod.c: Include errno.h.
46513         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
46514         value from STRTOD_L and STRTOD.
46515
46516 2009-01-21  Bruno Haible  <bruno@clisp.org>
46517         and Jim Meyering  <meyering@redhat.com>
46518
46519         nanosleep: skip configure test (fail it) for apple universal builds
46520         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
46521         universal builds, assume that nanosleep does not work.
46522         * modules/nanosleep (Depends-on): Add multiarch.
46523
46524         mktime: skip configure test (fail it) for apple universal builds
46525         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
46526         universal builds, assume that mktime does not work.
46527         * modules/mktime (Depends-on): Add multiarch.
46528
46529 2009-01-21  Eric Blake  <ebb9@byu.net>
46530
46531         multiarch: avoid expand-before-require warning
46532         * modules/multiarch (configure.ac): Require, rather than expand,
46533         gl_MULTIARCH.
46534         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
46535         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
46536         enforce that all clients require it.  Partial reversion of
46537         2008-12-29 patch.
46538
46539         error: avoid expand-before-require warning
46540         * modules/errno (configure.ac): Require, rather than expand,
46541         gl_HEADER_ERRNO_H.
46542         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
46543         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
46544         enforce that all clients require it.
46545
46546         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
46547         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
46548         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
46549         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
46550
46551 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
46552
46553         Revert:
46554         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
46555
46556         regex: do not depend on obsolete modules.
46557         * modules/regex: Remove memcmp and memmove.
46558
46559 2009-01-20  Bruno Haible  <bruno@clisp.org>
46560
46561         Make the 'link' module link on Windows NT 4.
46562         * lib/link.c (_WIN32_WINNT): Don't define.
46563         (CreateHardLinkFuncType): New type.
46564         (CreateHardLinkFunc, initialized): New variables.
46565         (initialize): New function.
46566         (link): Invoke CreateHardLink indirectly through the function pointer.
46567
46568 2009-01-20  Bruno Haible  <bruno@clisp.org>
46569
46570         Fix compilation failure on mingw.
46571         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
46572
46573 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
46574
46575         * doc/c-strtod.texi: Mention a couple of restrictions.
46576
46577 2009-01-20  Jim Meyering  <meyering@redhat.com>
46578
46579         gettimeofday: move more declarations out of functions
46580         * lib/gettimeofday.c: Move extern declarations of tzset and
46581         gmtime out of containing functions.  Prompted by Bruno Haible.
46582
46583 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
46584
46585         regex: do not depend on obsolete modules.
46586         * modules/regex: Remove memcmp and memmove.
46587
46588 2009-01-19  Bruno Haible  <bruno@clisp.org>
46589
46590         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
46591         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
46592         gl_BIGENDIAN, not AC_C_BIGENDIAN.
46593         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
46594         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
46595
46596 2009-01-19  Bruno Haible  <bruno@clisp.org>
46597
46598         * tests/test-link.c: Include <errno.h>.
46599         (main): Exit with code 77 when a hard link cannot be created due to
46600         the file system.
46601         * tests/test-link.sh: Skip test when a hard link cannot be created due
46602         to the file system.
46603         Suggested by Eric Blake.
46604
46605 2009-01-19  Martin Lambers  <marlam@marlam.de>
46606
46607         * modules/link-tests: New file.
46608         * tests/test-link.sh: New file.
46609         * tests/test-link.c: New file.
46610
46611 2009-01-19  Eric Blake  <ebb9@byu.net>
46612
46613         doc: mention another function added in cygwin 1.7.0
46614         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
46615         Another new function in cygwin 1.7.
46616
46617 2009-01-19  Bruno Haible  <bruno@clisp.org>
46618
46619         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
46620         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
46621         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
46622         gl_BIGENDIAN, not AC_C_BIGENDIAN.
46623         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
46624         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
46625         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
46626         * m4/md4.m4 (gl_MD4): Likewise.
46627         * m4/md5.m4 (gl_MD5): Likewise.
46628         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
46629         * m4/sha1.m4 (gl_SHA1): Likewise.
46630         * m4/sha256.m4 (gl_SHA256): Likewise.
46631         * m4/sha512.m4 (gl_SHA512): Likewise.
46632
46633 2009-01-19  Bruno Haible  <bruno@clisp.org>
46634
46635         * modules/uniname/uniname-tests (Depends-on): Add progname.
46636         * tests/uniname/test-uninames.c: Include progname.h.
46637         (main): Call set_program_name.
46638
46639         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
46640         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
46641         (main): Call set_program_name.
46642
46643         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
46644         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
46645         (main): Call set_program_name.
46646
46647         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
46648         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
46649         (main): Call set_program_name.
46650
46651         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
46652         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
46653         (main): Call set_program_name.
46654
46655         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
46656         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
46657         (main): Call set_program_name.
46658
46659         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
46660         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
46661         (main): Call set_program_name.
46662
46663         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
46664         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
46665         (main): Call set_program_name.
46666
46667         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
46668         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
46669         (main): Call set_program_name.
46670
46671 2009-01-19  Eric Blake  <ebb9@byu.net>
46672
46673         test-unistd: test previous patch
46674         * tests/test-unistd.c: Test *_FILENO macros.
46675
46676         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
46677         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
46678         Guarantee a definition.
46679         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
46680         * modules/unistd-safer (Depends-on): Add dependency on unistd.
46681         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
46682         * lib/dup-safer.c (STDERR_FILENO): Likewise.
46683         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
46684         Likewise.
46685         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
46686         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
46687         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
46688         Likewise.
46689         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
46690         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
46691         (STDERR_FILENO): Likewise.
46692         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
46693         (STDERR_FILENO): Likewise.
46694         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
46695         (STDERR_FILENO): Likewise.
46696         Reported by Elbert Pol.
46697
46698 2009-01-19  Eric Blake  <ebb9@byu.net>
46699
46700         doc: mention more functions added in cygwin 1.7.0
46701         * doc/posix-functions/abort.texi (abort): Update wording related
46702         to cygwin.
46703         * doc/posix-functions/daylight.texi (daylight): Likewise.
46704         * doc/posix-functions/optarg.texi (optarg): Likewise.
46705         * doc/posix-functions/optarg.texi (opterr): Likewise.
46706         * doc/posix-functions/optarg.texi (optind): Likewise.
46707         * doc/posix-functions/optarg.texi (optopt): Likewise.
46708         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
46709         worked in 1.5.x, and was withdrawn in 1.7.
46710         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
46711         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
46712         cygwin versions.
46713         * doc/posix-functions/perror.texi (perror): Likewise.
46714         * doc/posix-functions/printf.texi (printf): Likewise.
46715         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
46716         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
46717         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
46718         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
46719         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
46720         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
46721         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
46722         Likewise.
46723         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
46724         Likewise.
46725         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
46726         this function.
46727         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
46728         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
46729         Likewise.
46730         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
46731         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
46732         * doc/posix-functions/confstr.texi (confstr): Likewise.
46733         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
46734         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
46735         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
46736         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
46737         * doc/posix-functions/fputws.texi (fputws): Likewise.
46738         * doc/posix-functions/fwide.texi (fwide): Likewise.
46739         * doc/posix-functions/getwc.texi (getwc): Likewise.
46740         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
46741         * doc/posix-functions/putwc.texi (putwc): Likewise.
46742         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
46743         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
46744         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
46745         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
46746         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
46747         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
46748         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
46749         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
46750         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
46751         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
46752         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
46753
46754 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
46755
46756         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
46757         * lib/ioctl.c: Include <sys/ioctl.h>.
46758
46759 2009-01-19  Simon Josefsson  <simon@josefsson.org>
46760
46761         * modules/getdate-tests (Depends-on): Add progname.
46762         * tests/test-getdate.c: Use progname module, to avoid link errors
46763         on non-glibc systems.
46764
46765 2009-01-18  Simon Josefsson  <simon@josefsson.org>
46766
46767         * modules/filenamecat-tests (Depends-on): Add progname.
46768         * modules/fstrcmp-tests (Depends-on): Likewise.
46769
46770         * tests/test-filenamecat.c: Use progname module, to avoid link
46771         errors on non-glibc systems.
46772         * tests/test-fstrcmp.c: Likewise.
46773
46774 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
46775
46776         gettimeofday: avoid warning: nested extern declaration of 'localtime'
46777         * lib/gettimeofday.c: Move extern declaration out of function.
46778
46779 2009-01-18  Bruno Haible  <bruno@clisp.org>
46780
46781         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
46782         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
46783         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
46784
46785 2009-01-18  Bruno Haible  <bruno@clisp.org>
46786
46787         * lib/strftime.c (MEMPCPY): Remove unused macro.
46788         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
46789
46790 2009-01-18  Martin Lambers  <marlam@marlam.de>
46791
46792         New module 'link'.
46793         * lib/unistd.in.h (link): New declaration.
46794         * lib/link.c: New file.
46795         * m4/link.m4: New file.
46796         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
46797         HAVE_LINK.
46798         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
46799         * modules/link: New file.
46800         * doc/posix-functions/link.texi: Mention the new module.
46801
46802 2009-01-18  Bruno Haible  <bruno@clisp.org>
46803
46804         * tests/test-avltree_list.c (main): Call set_program_name.
46805         * tests/test-avltree_oset.c (main): Likewise.
46806         * tests/test-obstack-printf.c: Include progname.h.
46807         (main): Call set_program_name.
46808         * tests/test-quotearg.c: Include progname.h.
46809         (main): Call set_program_name.
46810         * tests/test-xmemdup0.c: Include progname.h.
46811         (main): Call set_program_name.
46812
46813 2009-01-18  Bruno Haible  <bruno@clisp.org>
46814
46815         New module 'alphasort'.
46816         * lib/dirent.in.h (alphasort): New declaration.
46817         * lib/alphasort.c: New file, from glibc with modifications.
46818         * m4/alphasort.m4: New file.
46819         * modules/alphasort: New file.
46820         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
46821         HAVE_ALPHASORT.
46822         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
46823         HAVE_ALPHASORT.
46824         * doc/posix-functions/alphasort.texi: Mention the new module and the
46825         portability problems.
46826
46827 2009-01-18  Bruno Haible  <bruno@clisp.org>
46828
46829         New module 'scandir'.
46830         * lib/dirent.in.h (scandir): New declaration.
46831         * lib/scandir.c: New file, from glibc with modifications.
46832         * m4/scandir.m4: New file.
46833         * modules/scandir: New file.
46834         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
46835         HAVE_SCANDIR.
46836         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
46837         HAVE_SCANDIR.
46838         * doc/posix-functions/scandir.texi: Mention the new module and the
46839         portability problems.
46840
46841 2009-01-17  Bruno Haible  <bruno@clisp.org>
46842
46843         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
46844         Update documentation.
46845         (func_remove_suffix): Escape all dots in the suffix. Update
46846         documentation.
46847         (func_filter_filelist): Update documentation.
46848         Reported by Ralf Wildenhues.
46849
46850 2009-01-17  Bruno Haible  <bruno@clisp.org>
46851
46852         * modules/dprintf-posix-tests: New file.
46853         * tests/test-dprintf-posix.sh: New file.
46854         * tests/test-dprintf-posix.c: New file.
46855
46856         New modules 'dprintf', 'dprintf-posix'.
46857         * lib/stdio.in.h (dprintf): New declaration.
46858         * lib/dprintf.c: New file.
46859         * m4/dprintf.m4: New file.
46860         * m4/dprintf-posix.m4: New file.
46861         * modules/dprintf: New file.
46862         * modules/dprintf-posix: New file.
46863         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
46864         HAVE_DPRINTF, REPLACE_DPRINTF.
46865         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
46866         HAVE_DPRINTF, REPLACE_DPRINTF.
46867         * doc/posix-functions/dprintf.texi: Mention the new modules.
46868
46869 2009-01-17  Bruno Haible  <bruno@clisp.org>
46870
46871         * modules/vdprintf-posix-tests: New file.
46872         * tests/test-vdprintf-posix.sh: New file.
46873         * tests/test-vdprintf-posix.c: New file.
46874
46875         New modules 'vdprintf', 'vdprintf-posix'.
46876         * lib/stdio.in.h (vdprintf): New declaration.
46877         * lib/vdprintf.c: New file.
46878         * m4/vdprintf.m4: New file.
46879         * m4/vdprintf-posix.m4: New file.
46880         * modules/vdprintf: New file.
46881         * modules/vdprintf-posix: New file.
46882         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
46883         HAVE_VDPRINTF, REPLACE_VDPRINTF.
46884         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
46885         HAVE_VDPRINTF, REPLACE_VDPRINTF.
46886         * doc/posix-functions/vdprintf.texi: Mention the new modules.
46887
46888 2009-01-17  Bruno Haible  <bruno@clisp.org>
46889
46890         Fix replacement of fopen on mingw.
46891         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
46892         mingw.
46893
46894 2009-01-17  Bruno Haible  <bruno@clisp.org>
46895
46896         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
46897         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
46898
46899 2009-01-17  Bruno Haible  <bruno@clisp.org>
46900
46901         Avoid test-fflush2.sh failure on mingw.
46902         * tests/test-fflush2.c: Include binary-io.h.
46903         (main): Put standard input into binary mode.
46904         * modules/fflush-tests (Depends-on): Add binary-io.
46905
46906 2009-01-17  Bruno Haible  <bruno@clisp.org>
46907
46908         * lib/wchar.in.h: In another particular situation, include only the
46909         system's <wchar.h> file.
46910         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
46911         Reported by Albert Chin-A-Young <china@thewrittenword.com>
46912         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
46913
46914 2009-01-17  Bruno Haible  <bruno@clisp.org>
46915
46916         Support for stripping executables in --enable-relocatable.
46917         * build-aux/install-reloc: Expect one more argument, or an environment
46918         variable RELOC_STRIP_PROG. If set, strip the destination program and
46919         its wrapper.
46920         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
46921         RELOC_STRIP_PROG.
46922         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
46923         to set RELOCATABLE_STRIP.
46924         * NEWS: Mention the new Makefile requirement.
46925
46926 2009-01-17  Bruno Haible  <bruno@clisp.org>
46927
46928         * build-aux/install-reloc: Remove debugging information left over by
46929         C compiler on MacOS X.
46930
46931 2009-01-17  Bruno Haible  <bruno@clisp.org>
46932
46933         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
46934         * lib/progreloc.c (find_executable): Fix type of pointer passed to
46935         _NSGetExecutablePath.
46936
46937 2009-01-16  Jim Meyering  <meyering@redhat.com>
46938
46939         strerror: avoid warnings about discarding "const"
46940         * lib/strerror.c (rpl_strerror): Instead of returning a const
46941         string from each and every "case", use a variable, and add a single
46942         cast after the switch.
46943
46944 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
46945
46946         * lib/arpa_inet.in.h: Add extern "C" block for C++.
46947
46948 2009-01-16  Bruno Haible  <bruno@clisp.org>
46949
46950         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
46951         array initializer syntax that also works in C++ mode.
46952         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46953
46954 2009-01-16  Jim Meyering  <meyering@redhat.com>
46955
46956         poll: suppress a warning
46957         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
46958         to ignore "...unsigned expression < 0 is always false" warnings.
46959
46960 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
46961
46962         poll: remove declarations of unused variables
46963         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
46964         sockbuf and optlen.
46965
46966 2009-01-15  Bruno Haible  <bruno@clisp.org>
46967
46968         Make fflush-after-ungetc POSIX compliant on BSD systems.
46969         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
46970         (clear_ungetc_buffer): Implement also for other systems.
46971         (rpl_fflush): On glibc systems, invoke
46972         clear_ungetc_buffer_preserving_position. Otherwise, invoke
46973         clear_ungetc_buffer after fetching the stream's position, not before.
46974
46975 2009-01-15  Bruno Haible  <bruno@clisp.org>
46976
46977         Make fflush-after-ungetc POSIX compliant on glibc systems.
46978         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
46979         after ungetc.
46980         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
46981         (rpl_fflush): On glibc systems, simply call the system's fflush
46982         function after clearing the ungetc buffer.
46983         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
46984         Instead, lseek only to the end of file, then use the system's fseeko
46985         for the rest. On glibc systems, reset the EOF indicator bit.
46986
46987 2009-01-15  Jim Meyering  <meyering@redhat.com>
46988
46989         openmp.m4: revert quote-adding change, for portability to older autoconf
46990         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
46991         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
46992         Simon Josefsson noticed the problem when using autoconf-2.61.
46993
46994 2009-01-15  Bruno Haible  <bruno@clisp.org>
46995
46996         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
46997         * tests/test-fflush2.c (ASSERT): Always fail.
46998         (main): Add two tests for fflush() after ungetc(), taking into account
46999         the Austin Group's clarification.
47000         Suggested by Eric Blake.
47001
47002 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
47003
47004         mktime.m4: remove K&R-style function prototypes
47005         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
47006         for the Sun C++ compiler.
47007
47008 2009-01-14  Bruno Haible  <bruno@clisp.org>
47009
47010         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
47011         while including <wchar.h>.
47012         * lib/wchar.in.h: In two particular situations on HP-UX, include only
47013         the system's <wchar.h> file.
47014         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47015
47016 2009-01-14  Bruno Haible  <bruno@clisp.org>
47017
47018         * m4/csharp.m4: Don't mention gettext on the serial number line.
47019         * m4/csharpexec.m4: Likewise.
47020         * m4/eaccess.m4: Likewise.
47021         * m4/javaexec.m4: Likewise.
47022         * m4/sig_atomic_t.m4: Likewise.
47023         * m4/tmpdir.m4: Likewise.
47024         * m4/intldir.m4: Bump gettext version.
47025         * m4/lib-ld.m4: Likewise.
47026
47027 2009-01-14  Bruno Haible  <bruno@clisp.org>
47028
47029         * lib/progname.c (set_program_name): Add more comments.
47030         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
47031
47032 2009-01-14  Simon Josefsson  <simon@josefsson.org>
47033
47034         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
47035         were sys/stat.h does not define it.
47036
47037 2009-01-14  Jim Meyering  <meyering@redhat.com>
47038
47039         many *.m4 files: improve m4 quoting
47040         99% of this change was performed by running the following commands:
47041         git ls-files | grep '\.m4$' | xargs perl -pi \
47042           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
47043           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
47044           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
47045           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
47046         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
47047         The remainder were to add Copyright dates, increment serial numbers,
47048         undo some changes in comments, exclude m4/intl.m4, and add quotes
47049         around the "1" in ",1" where the unusual spacing prohibited the
47050         above regexps from doing the job.  For more details, see
47051         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
47052         * m4/acl.m4: Modified.
47053         * m4/afs.m4: Likewise.
47054         * m4/alloca.m4: Likewise.
47055         * m4/argp.m4: Likewise.
47056         * m4/argz.m4: Likewise.
47057         * m4/atexit.m4: Likewise.
47058         * m4/bison-i18n.m4: Likewise.
47059         * m4/bison.m4: Likewise.
47060         * m4/byteswap.m4: Likewise.
47061         * m4/c-stack.m4: Likewise.
47062         * m4/c-strtod.m4: Likewise.
47063         * m4/calloc.m4: Likewise.
47064         * m4/canonicalize-lgpl.m4: Likewise.
47065         * m4/chown.m4: Likewise.
47066         * m4/clock_time.m4: Likewise.
47067         * m4/codeset.m4: Likewise.
47068         * m4/copy-file.m4: Likewise.
47069         * m4/csharp.m4: Likewise.
47070         * m4/csharpcomp.m4: Likewise.
47071         * m4/csharpexec.m4: Likewise.
47072         * m4/d-ino.m4: Likewise.
47073         * m4/d-type.m4: Likewise.
47074         * m4/dirfd.m4: Likewise.
47075         * m4/double-slash-root.m4: Likewise.
47076         * m4/eaccess.m4: Likewise.
47077         * m4/eealloc.m4: Likewise.
47078         * m4/environ.m4: Likewise.
47079         * m4/errno_h.m4: Likewise.
47080         * m4/euidaccess.m4: Likewise.
47081         * m4/execute.m4: Likewise.
47082         * m4/fatal-signal.m4: Likewise.
47083         * m4/fchdir.m4: Likewise.
47084         * m4/fcntl_h.m4: Likewise.
47085         * m4/fileblocks.m4: Likewise.
47086         * m4/filenamecat.m4: Likewise.
47087         * m4/findprog.m4: Likewise.
47088         * m4/flexmember.m4: Likewise.
47089         * m4/fnmatch.m4: Likewise.
47090         * m4/fopen.m4: Likewise.
47091         * m4/fpending.m4: Likewise.
47092         * m4/fprintf-posix.m4: Likewise.
47093         * m4/free.m4: Likewise.
47094         * m4/frexp.m4: Likewise.
47095         * m4/frexpl.m4: Likewise.
47096         * m4/fsusage.m4: Likewise.
47097         * m4/ftruncate.m4: Likewise.
47098         * m4/gc-camellia.m4: Likewise.
47099         * m4/gc-random.m4: Likewise.
47100         * m4/gc.m4: Likewise.
47101         * m4/getaddrinfo.m4: Likewise.
47102         * m4/getcwd-abort-bug.m4: Likewise.
47103         * m4/getcwd-path-max.m4: Likewise.
47104         * m4/getdate.m4: Likewise.
47105         * m4/getdomainname.m4: Likewise.
47106         * m4/getgroups.m4: Likewise.
47107         * m4/gethostname.m4: Likewise.
47108         * m4/gethrxtime.m4: Likewise.
47109         * m4/getline.m4: Likewise.
47110         * m4/getloadavg.m4: Likewise.
47111         * m4/getndelim2.m4: Likewise.
47112         * m4/getpass.m4: Likewise.
47113         * m4/gettext.m4: Likewise.
47114         * m4/gettime.m4: Likewise.
47115         * m4/gettimeofday.m4: Likewise.
47116         * m4/gnulib-common.m4: Likewise.
47117         * m4/group-member.m4: Likewise.
47118         * m4/host-os.m4: Likewise.
47119         * m4/iconv.m4: Likewise.
47120         * m4/iconv_open.m4: Likewise.
47121         * m4/inet_ntop.m4: Likewise.
47122         * m4/inet_pton.m4: Likewise.
47123         * m4/inline.m4: Likewise.
47124         * m4/intldir.m4: Likewise.
47125         * m4/intlmacosx.m4: Likewise.
47126         * m4/intmax.m4: Likewise.
47127         * m4/intmax_t.m4: Likewise.
47128         * m4/inttypes.m4: Likewise.
47129         * m4/inttypes_h.m4: Likewise.
47130         * m4/inttypes-pri.m4: Likewise.
47131         * m4/isapipe.m4: Likewise.
47132         * m4/isnand.m4: Likewise.
47133         * m4/isnanf.m4: Likewise.
47134         * m4/isnanl.m4: Likewise.
47135         * m4/javacomp.m4: Likewise.
47136         * m4/javaexec.m4: Likewise.
47137         * m4/jm-winsz1.m4: Likewise.
47138         * m4/jm-winsz2.m4: Likewise.
47139         * m4/lchown.m4: Likewise.
47140         * m4/lcmessage.m4: Likewise.
47141         * m4/ldexpl.m4: Likewise.
47142         * m4/lib-ld.m4: Likewise.
47143         * m4/lib-link.m4: Likewise.
47144         * m4/libsigsegv.m4: Likewise.
47145         * m4/link-follow.m4: Likewise.
47146         * m4/localcharset.m4: Likewise.
47147         * m4/locale-fr.m4: Likewise.
47148         * m4/locale-ja.m4: Likewise.
47149         * m4/locale-tr.m4: Likewise.
47150         * m4/locale-zh.m4: Likewise.
47151         * m4/lock.m4: Likewise.
47152         * m4/longlong.m4: Likewise.
47153         * m4/ls-mntd-fs.m4: Likewise.
47154         * m4/lstat.m4: Likewise.
47155         * m4/malloc.m4: Likewise.
47156         * m4/mathl.m4: Likewise.
47157         * m4/mbrtowc.m4: Likewise.
47158         * m4/mbstate_t.m4: Likewise.
47159         * m4/mbswidth.m4: Likewise.
47160         * m4/memchr.m4: Likewise.
47161         * m4/memcmp.m4: Likewise.
47162         * m4/memcpy.m4: Likewise.
47163         * m4/memmem.m4: Likewise.
47164         * m4/memmove.m4: Likewise.
47165         * m4/mempcpy.m4: Likewise.
47166         * m4/memrchr.m4: Likewise.
47167         * m4/memset.m4: Likewise.
47168         * m4/minmax.m4: Likewise.
47169         * m4/mkdir-slash.m4: Likewise.
47170         * m4/mkdtemp.m4: Likewise.
47171         * m4/mktime.m4: Likewise.
47172         * m4/mmap-anon.m4: Likewise.
47173         * m4/mountlist.m4: Likewise.
47174         * m4/nanosleep.m4: Likewise.
47175         * m4/nls.m4: Likewise.
47176         * m4/nocrash.m4: Likewise.
47177         * m4/open.m4: Likewise.
47178         * m4/openat.m4: Likewise.
47179         * m4/openmp.m4: Likewise.
47180         * m4/pathmax.m4: Likewise.
47181         * m4/perl.m4: Likewise.
47182         * m4/physmem.m4: Likewise.
47183         * m4/pipe.m4: Likewise.
47184         * m4/po.m4: Likewise.
47185         * m4/poll.m4: Likewise.
47186         * m4/posixtm.m4: Likewise.
47187         * m4/posixver.m4: Likewise.
47188         * m4/printf-frexp.m4: Likewise.
47189         * m4/printf-frexpl.m4: Likewise.
47190         * m4/printf-posix.m4: Likewise.
47191         * m4/printf-posix-rpl.m4: Likewise.
47192         * m4/printf.m4: Likewise.
47193         * m4/progtest.m4: Likewise.
47194         * m4/putenv.m4: Likewise.
47195         * m4/readline.m4: Likewise.
47196         * m4/readlink.m4: Likewise.
47197         * m4/readutmp.m4: Likewise.
47198         * m4/realloc.m4: Likewise.
47199         * m4/regex.m4: Likewise.
47200         * m4/relocatable.m4: Likewise.
47201         * m4/relocatable-lib.m4: Likewise.
47202         * m4/rename-dest-slash.m4: Likewise.
47203         * m4/rename.m4: Likewise.
47204         * m4/rmdir-errno.m4: Likewise.
47205         * m4/rmdir.m4: Likewise.
47206         * m4/roundf.m4: Likewise.
47207         * m4/roundl.m4: Likewise.
47208         * m4/rpmatch.m4: Likewise.
47209         * m4/save-cwd.m4: Likewise.
47210         * m4/selinux-selinux-h.m4: Likewise.
47211         * m4/setenv.m4: Likewise.
47212         * m4/settime.m4: Likewise.
47213         * m4/sig2str.m4: Likewise.
47214         * m4/sig_atomic_t.m4: Likewise.
47215         * m4/signalblocking.m4: Likewise.
47216         * m4/signbit.m4: Likewise.
47217         * m4/sigpipe.m4: Likewise.
47218         * m4/sockets.m4: Likewise.
47219         * m4/sockpfaf.m4: Likewise.
47220         * m4/st_dm_mode.m4: Likewise.
47221         * m4/stat-time.m4: Likewise.
47222         * m4/stdbool.m4: Likewise.
47223         * m4/stdint.m4: Likewise.
47224         * m4/stdint_h.m4: Likewise.
47225         * m4/stpcpy.m4: Likewise.
47226         * m4/stpncpy.m4: Likewise.
47227         * m4/strcase.m4: Likewise.
47228         * m4/strchrnul.m4: Likewise.
47229         * m4/strcspn.m4: Likewise.
47230         * m4/strdup.m4: Likewise.
47231         * m4/strftime.m4: Likewise.
47232         * m4/strndup.m4: Likewise.
47233         * m4/strnlen.m4: Likewise.
47234         * m4/strpbrk.m4: Likewise.
47235         * m4/strptime.m4: Likewise.
47236         * m4/strsep.m4: Likewise.
47237         * m4/strtod.m4: Likewise.
47238         * m4/strtoimax.m4: Likewise.
47239         * m4/strtok_r.m4: Likewise.
47240         * m4/strtol.m4: Likewise.
47241         * m4/strtoll.m4: Likewise.
47242         * m4/strtoul.m4: Likewise.
47243         * m4/strtoull.m4: Likewise.
47244         * m4/strtoumax.m4: Likewise.
47245         * m4/strverscmp.m4: Likewise.
47246         * m4/threadlib.m4: Likewise.
47247         * m4/timegm.m4: Likewise.
47248         * m4/tm_gmtoff.m4: Likewise.
47249         * m4/tmpdir.m4: Likewise.
47250         * m4/tmpfile.m4: Likewise.
47251         * m4/tzset.m4: Likewise.
47252         * m4/uintmax_t.m4: Likewise.
47253         * m4/unlinkdir.m4: Likewise.
47254         * m4/unlocked-io.m4: Likewise.
47255         * m4/uptime.m4: Likewise.
47256         * m4/userspec.m4: Likewise.
47257         * m4/utimbuf.m4: Likewise.
47258         * m4/utime.m4: Likewise.
47259         * m4/utimes-null.m4: Likewise.
47260         * m4/utimes.m4: Likewise.
47261         * m4/vararrays.m4: Likewise.
47262         * m4/vasnprintf.m4: Likewise.
47263         * m4/vfprintf-posix.m4: Likewise.
47264         * m4/vprintf-posix.m4: Likewise.
47265         * m4/wait-process.m4: Likewise.
47266         * m4/wchar_t.m4: Likewise.
47267         * m4/wint_t.m4: Likewise.
47268         * m4/write-any-file.m4: Likewise.
47269         * m4/yield.m4: Likewise.
47270
47271 2009-01-13  Bruno Haible  <bruno@clisp.org>
47272
47273         Avoid test-copy-file.sh failures when ACL support insufficient.
47274         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
47275         TESTS_ENVIRONMENT.
47276         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
47277         Reported by Jim Meyering.
47278
47279 2009-01-13  Bruno Haible  <bruno@clisp.org>
47280
47281         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
47282         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
47283         * modules/unistdio/u8-printf-parse (Files): Likewise.
47284         * modules/unistdio/u32-printf-parse (Files): Likewise.
47285         * modules/unistdio/ulc-printf-parse (Files): Likewise.
47286
47287 2009-01-13  Simon Josefsson  <simon@josefsson.org>
47288
47289         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
47290         and m4/inttypes_h.m4 too.
47291
47292 2009-01-12  Eric Blake  <ebb9@byu.net>
47293
47294         tests: IRIX 6.2 cc can't compile -0.0 into .data
47295         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
47296         rather than at compile-time.
47297         * tests/test-floorl.c (minus_zero): Likewise.
47298         * tests/test-frexpl.c (minus_zero): Likewise.
47299         * tests/test-isnan.c (minus_zerol): Likewise.
47300         * tests/test-isnanl.h (minus_zero): Likewise.
47301         * tests/test-ldexpl.c (minus_zero): Likewise.
47302         * tests/test-roundl.c (minus_zero): Likewise.
47303         * tests/test-signbit.c (minus_zerol): Likewise.
47304         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
47305         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
47306         * tests/test-truncl.c (minus_zero): Likewise.
47307         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
47308         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
47309         Reported by Tom G. Christensen and Nelson H. F. Beebe.
47310
47311 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47312
47313         regex: fix glibc bug 9697
47314         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
47315         handling.
47316
47317 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47318
47319         regex: fix glibc bug 697
47320         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
47321         being NULL also if there are no backreferences.
47322
47323 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47324
47325         regex: merge glibc changes
47326         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
47327         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
47328         re_string_skip_chars, re_string_reconstruct): Likewise.
47329         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
47330
47331 2009-01-07  Jim Meyering  <meyering@redhat.com>
47332
47333         poll: filter through cppi
47334         * lib/poll.c: Indent cpp directives to reflect nesting.
47335
47336 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
47337
47338         poll: don't return uninitialized
47339         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
47340
47341 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
47342
47343         avoid compile failure on AIX 6.1
47344         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
47345         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
47346
47347 2009-01-04  Jim Meyering  <meyering@redhat.com>
47348
47349         remove duplicate inclusion of <stdio.h>
47350         * tests/test-fprintf-posix.c: Likewise.
47351         * tests/test-printf-posix.c: Likewise.
47352         * tests/test-snprintf-posix.c: Likewise.
47353         * tests/test-sprintf-posix.c: Likewise.
47354         * tests/test-vasprintf-posix.c: Likewise.
47355         * tests/test-vfprintf-posix.c: Likewise.
47356         * tests/test-vprintf-posix.c: Likewise.
47357         * tests/test-vsnprintf-posix.c: Likewise.
47358         * tests/test-vsprintf-posix.c: Likewise.
47359
47360 2009-01-03  Jim Meyering  <meyering@redhat.com>
47361
47362         gnulib-tool: fix sed-based filtering
47363         * gnulib-tool (func_filter_filelist): Remove extra backslash
47364         in sed_fff_filter definition.
47365
47366 2009-01-02  Jim Meyering  <meyering@redhat.com>
47367
47368         strftime: avoid compilation failure on Solaris 2.6
47369         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
47370         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
47371         Don't #define mbrlen or mbsinit, since now they're guaranteed to
47372         be available.  Reported by Tom G. Christensen.  Details in
47373         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
47374
47375 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47376             Bruno Haible  <bruno@clisp.org>
47377
47378         Speed up gnulib-tool by doing more string processing through shell
47379         built-ins.
47380         * gnulib-tool (fast_func_append): New variable.
47381         (func_remove_prefix, func_remove_suffix): New functions.
47382         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
47383         (func_filter_filelist): New function.
47384         (func_get_dependencies): Use func_remove_suffix instead of sed.
47385         (func_get_automake_snippet): Use func_filter_filelist instead of a
47386         subshell and sed invocation.
47387
47388 2009-01-01  Bruno Haible  <bruno@clisp.org>
47389
47390         Fix a security bug.
47391         * gnulib-tool (func_import, import, update): Don't allow the characters
47392         '"', '$', '`', '\' in macro arguments that become part of commands that
47393         are evaluated.
47394
47395 2009-01-01  Bruno Haible  <bruno@clisp.org>
47396
47397         * gnulib-tool (func_reset_sigpipe): Add more comments.
47398
47399 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47400
47401         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
47402         func_emit_tests_Makefile_am, func_import): Abort loops early if we
47403         already know the answer.
47404
47405 2009-01-01  Jim Meyering  <meyering@redhat.com>
47406
47407         * lib/version-etc.c (version_etc_va): Update copyright year.
47408
47409 2008-12-30  Bruno Haible  <bruno@clisp.org>
47410
47411         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
47412         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
47413         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
47414
47415 2008-12-29  Eric Blake  <ebb9@byu.net>
47416
47417         multiarch: avoid autoconf AC_REQUIRE bug
47418         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
47419         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
47420         2.63 and older.
47421         Reported by Bruno Haible, and analyzed in
47422         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
47423
47424 2008-12-29  Bruno Haible  <bruno@clisp.org>
47425
47426         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
47427         files in subdirectories correctly.
47428         Reported by Ralf Wildenhues.
47429
47430 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47431
47432         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
47433         rather than 'join FILE -', for Solaris join.
47434
47435 2008-12-29  Bruno Haible  <bruno@clisp.org>
47436
47437         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
47438         quoting.
47439         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
47440         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
47441         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
47442         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
47443         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
47444         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
47445         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
47446         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
47447         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
47448         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
47449         * m4/nls.m4 (AM_NLS): Likewise.
47450         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
47451         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
47452         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
47453         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
47454         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
47455         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
47456         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
47457         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
47458         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
47459         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
47460         * m4/xsize.m4 (gl_XSIZE): Likewise.
47461         Suggested by Jim Meyering.
47462
47463 2008-11-17  Bruce Korb  <bkorb@gnu.org>
47464
47465         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
47466         * lib/parse-duration.c: use a switch instead of cascading if's.
47467
47468 2008-12-29  Eric Blake  <ebb9@byu.net>
47469
47470         wchar.h: supply WEOF on Irix 5.3
47471         * lib/wchar.in.h (wint_t): Also supply WEOF.
47472         * lib/wctype.in.h (wint_t): Likewise.
47473         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
47474         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
47475         Reported by Tom G. Christensen.
47476
47477 2008-12-26  Bruno Haible  <bruno@clisp.org>
47478
47479         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
47480         i486, i586, i686.
47481
47482 2008-12-26  Bruno Haible  <bruno@clisp.org>
47483
47484         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
47485
47486 2008-12-26  Bruno Haible  <bruno@clisp.org>
47487
47488         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
47489         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
47490         not __STDC_CONSTANT_MACROS.
47491         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
47492
47493 2008-12-25  Bruno Haible  <bruno@clisp.org>
47494
47495         Add support for universal builds to vasnprintf.
47496         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
47497         universal builds, guess no.
47498         * modules/vasnprintf-posix (Depends-on): Add multiarch.
47499         * modules/vasprintf-posix (Depends-on): Likewise.
47500         * modules/fprintf-posix (Depends-on): Likewise.
47501         * modules/vfprintf-posix (Depends-on): Likewise.
47502         * modules/snprintf-posix (Depends-on): Likewise.
47503         * modules/vsnprintf-posix (Depends-on): Likewise.
47504         * modules/sprintf-posix (Depends-on): Likewise.
47505         * modules/vsprintf-posix (Depends-on): Likewise.
47506         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47507         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47508         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47509         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47510         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47511         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47512         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47513
47514         Add support for universal builds to <inttypes.h>.
47515         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
47516         _SCNu64_PREFIX): In Apple
47517         universal builds, define directly, using _LP64.
47518         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
47519         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
47520         * modules/inttypes (Depends-on): Add multiarch.
47521         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
47522
47523         Add support for universal builds to <stdint.h>.
47524         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
47525         universal builds, define directly, using _LP64.
47526         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
47527         Apple universal builds, don't test for the size and suffix of ptrdiff_t
47528         and size_t.
47529         * modules/stdint (Depends-on): Add multiarch.
47530         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
47531
47532         New module 'multiarch'.
47533         * modules/multiarch: New file.
47534         * m4/multiarch.m4: New file.
47535
47536 2008-12-25  Bruno Haible  <bruno@clisp.org>
47537
47538         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
47539
47540 2008-12-25  Bruno Haible  <bruno@clisp.org>
47541
47542         * modules/btowc (License): Relicense under LGPLv2+.
47543         * modules/mbsinit (License): Likewise.
47544         * modules/mbrtowc (License): Likewise.
47545         * modules/wcrtomb (License): Likewise.
47546         * modules/streq (License): Likewise.
47547         Reported by David Lutterkort <lutter@redhat.com>.
47548
47549 2008-12-23  Bruno Haible  <bruno@clisp.org>
47550
47551         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
47552
47553 2008-12-23  Bruno Haible  <bruno@clisp.org>
47554
47555         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
47556         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
47557         GETADDRINFO_LIB, not in LIBS.
47558         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
47559         * modules/canon-host (Link): Likewise.
47560         * NEWS: Mention the change.
47561         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
47562         GETADDRINFO_LIB.
47563
47564 2008-12-22  Bruno Haible  <bruno@clisp.org>
47565
47566         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
47567         * doc/posix-functions/iswalpha_l.texi: Likewise.
47568         * doc/posix-functions/iswblank_l.texi: Likewise.
47569         * doc/posix-functions/iswcntrl_l.texi: Likewise.
47570         * doc/posix-functions/iswctype_l.texi: Likewise.
47571         * doc/posix-functions/iswdigit_l.texi: Likewise.
47572         * doc/posix-functions/iswgraph_l.texi: Likewise.
47573         * doc/posix-functions/iswlower_l.texi: Likewise.
47574         * doc/posix-functions/iswprint_l.texi: Likewise.
47575         * doc/posix-functions/iswpunct_l.texi: Likewise.
47576         * doc/posix-functions/iswspace_l.texi: Likewise.
47577         * doc/posix-functions/iswupper_l.texi: Likewise.
47578         * doc/posix-functions/iswxdigit_l.texi: Likewise.
47579         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
47580         * doc/posix-functions/open_wmemstream.texi: Likewise.
47581         * doc/posix-functions/swscanf.texi: Likewise.
47582         * doc/posix-functions/towctrans_l.texi: Likewise.
47583         * doc/posix-functions/towlower.texi: Likewise.
47584         * doc/posix-functions/towlower_l.texi: Likewise.
47585         * doc/posix-functions/towupper.texi: Likewise.
47586         * doc/posix-functions/towupper_l.texi: Likewise.
47587         * doc/posix-functions/vfwprintf.texi: Likewise.
47588         * doc/posix-functions/vfwscanf.texi: Likewise.
47589         * doc/posix-functions/vswscanf.texi: Likewise.
47590         * doc/posix-functions/vwprintf.texi: Likewise.
47591         * doc/posix-functions/vwscanf.texi: Likewise.
47592         * doc/posix-functions/wcpcpy.texi: Likewise.
47593         * doc/posix-functions/wcpncpy.texi: Likewise.
47594         * doc/posix-functions/wcscasecmp.texi: Likewise.
47595         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
47596         * doc/posix-functions/wcscoll_l.texi: Likewise.
47597         * doc/posix-functions/wcsdup.texi: Likewise.
47598         * doc/posix-functions/wcsncasecmp.texi: Likewise.
47599         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
47600         * doc/posix-functions/wcsnlen.texi: Likewise.
47601         * doc/posix-functions/wcsnrtombs.texi: Likewise.
47602         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
47603         * doc/posix-functions/wctrans_l.texi: Likewise.
47604         * doc/posix-functions/wctype_l.texi: Likewise.
47605         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
47606         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
47607         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
47608         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
47609         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
47610         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
47611         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
47612         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
47613         * doc/glibc-functions/wcschrnul.texi: Likewise.
47614         * doc/glibc-functions/wcsftime_l.texi: Likewise.
47615         * doc/glibc-functions/wcstod_l.texi: Likewise.
47616         * doc/glibc-functions/wcstof_l.texi: Likewise.
47617         * doc/glibc-functions/wcstol_l.texi: Likewise.
47618         * doc/glibc-functions/wcstold_l.texi: Likewise.
47619         * doc/glibc-functions/wcstoll_l.texi: Likewise.
47620         * doc/glibc-functions/wcstoq.texi: Likewise.
47621         * doc/glibc-functions/wcstoul_l.texi: Likewise.
47622         * doc/glibc-functions/wcstoull_l.texi: Likewise.
47623         * doc/glibc-functions/wcstouq.texi: Likewise.
47624         * doc/glibc-functions/wmempcpy.texi: Likewise.
47625
47626 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
47627             Eric Blake  <ebb9@byu.net>
47628             Paolo Bonzini  <bonzini@gnu.org>
47629             Bruno Haible  <bruno@clisp.org>
47630
47631         Make c-stack work on Haiku.
47632         * lib/c-stack.c (SA_ONSTACK): Define fallback.
47633         (c_stack_action): Use SA_ONSTACK flag.
47634
47635 2008-12-22  Bruno Haible  <bruno@clisp.org>
47636
47637         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
47638
47639 2008-12-22  Bruno Haible  <bruno@clisp.org>
47640
47641         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
47642         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
47643         being overridden.
47644         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
47645         New macros.
47646         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
47647         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
47648         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
47649         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
47650
47651 2008-12-22  Bruno Haible  <bruno@clisp.org>
47652
47653         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
47654         from test code.
47655
47656 2008-12-22  Eric Blake  <ebb9@byu.net>
47657
47658         Avoid gcc warnings on cygwin.
47659         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
47660         Avoid unused variable.
47661         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
47662         Likewise.
47663
47664 2008-12-22  Bruno Haible  <bruno@clisp.org>
47665
47666         Remove HAVE_MBRTOWC conditionals.
47667         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
47668         (mbscasecmp): Assume mbrtowc function.
47669         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
47670         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
47671         * lib/mbschr.c: Include mbuiter.h unconditionally.
47672         (mbschr): Assume mbrtowc function.
47673         * lib/mbscspn.c: Include mbuiter.h unconditionally.
47674         (mbscspn): Assume mbrtowc function.
47675         * lib/mbslen.c: Include mbuiter.h unconditionally.
47676         (mbslen): Assume mbrtowc function.
47677         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
47678         (mbsncasecmp): Assume mbrtowc function.
47679         * lib/mbsnlen.c: Include mbiter.h unconditionally.
47680         (mbsnlen): Assume mbrtowc function.
47681         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
47682         (mbspbrk): Assume mbrtowc function.
47683         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
47684         (mbspcasecmp): Assume mbrtowc function.
47685         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
47686         (mbsrchr): Assume mbrtowc function.
47687         * lib/mbssep.c: Include mbuiter.h unconditionally.
47688         (mbssep): Assume mbrtowc function.
47689         * lib/mbsspn.c: Include mbuiter.h unconditionally.
47690         (mbsspn): Assume mbrtowc function.
47691         * lib/mbsstr.c: Include mbuiter.h unconditionally.
47692         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
47693         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
47694         (mbstok_r): Assume mbrtowc function.
47695         * lib/propername.c: Include mbuiter.h unconditionally.
47696         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
47697         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
47698         (trim2): Assume mbrtowc function.
47699         * lib/mbswidth.c (mbsinit): Remove fallback definition.
47700         (mbsnwidth): Assume mbrtowc function.
47701         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
47702         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
47703         fallback definitions.
47704         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
47705
47706 2008-12-22  Bruno Haible  <bruno@clisp.org>
47707
47708         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
47709
47710 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
47711
47712         * modules/regex: Request emulations for the mb*/wc* functions we need.
47713         * m4/regex.m4: Don't look for those functions here.
47714         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
47715
47716 2008-12-22  Bruno Haible  <bruno@clisp.org>
47717
47718         * modules/fnmatch (Depends-on): Remove duplicated dependency.
47719
47720 2008-12-21  Bruno Haible  <bruno@clisp.org>
47721
47722         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
47723         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
47724         (Include): Remove conditionalization.
47725         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
47726         (Include): Remove conditionalization.
47727         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
47728         (Include): Remove conditionalization.
47729         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
47730         * m4/mbfile.m4 (gl_MBFILE): Likewise.
47731         * NEWS: Mention the change.
47732         Reported by Alan Hourihane <alanh@fairlite.co.uk>
47733         via Sergey Poznyakoff <gray@gnu.org.ua>.
47734
47735 2008-12-21  Bruno Haible  <bruno@clisp.org>
47736
47737         * MODULES.html.sh (Extended multibyte and wide character utilities
47738         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
47739         wcrtomb, wcsrtombs.
47740         (Support for systems lacking POSIX:2008): Add accept, bind, close,
47741         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
47742         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
47743         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
47744
47745 2008-12-21  Bruno Haible  <bruno@clisp.org>
47746
47747         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
47748
47749 2008-12-21  Bruno Haible  <bruno@clisp.org>
47750
47751         * modules/wcsnrtombs-tests: New file.
47752         * tests/test-wcsnrtombs1.sh: New file.
47753         * tests/test-wcsnrtombs2.sh: New file.
47754         * tests/test-wcsnrtombs3.sh: New file.
47755         * tests/test-wcsnrtombs4.sh: New file.
47756         * tests/test-wcsnrtombs.c: New file.
47757
47758         New module 'wcsnrtombs'.
47759         * lib/wchar.in.h (wcsnrtombs): New declaration.
47760         * lib/wcsnrtombs.c: New file.
47761         * lib/wcsrtombs-state.c: New file.
47762         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
47763         (internal_state): Remove variable.
47764         * m4/wcsnrtombs.m4: New file.
47765         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
47766         compilation units.
47767         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
47768         HAVE_WCSNRTOMBS.
47769         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
47770         HAVE_WCSNRTOMBS.
47771         * modules/wcsnrtombs: New file.
47772         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
47773         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
47774
47775 2008-12-21  Bruno Haible  <bruno@clisp.org>
47776
47777         * modules/wcsrtombs-tests: New file.
47778         * tests/test-wcsrtombs1.sh: New file.
47779         * tests/test-wcsrtombs2.sh: New file.
47780         * tests/test-wcsrtombs3.sh: New file.
47781         * tests/test-wcsrtombs4.sh: New file.
47782         * tests/test-wcsrtombs.c: New file.
47783
47784         New module 'wcsrtombs'.
47785         * lib/wchar.in.h (wcsrtombs): New declaration.
47786         * lib/wcsrtombs.c: New file.
47787         * m4/wcsrtombs.m4: New file.
47788         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
47789         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
47790         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
47791         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
47792         * modules/wcsrtombs: New file.
47793         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
47794         bugs.
47795
47796 2008-12-21  Bruno Haible  <bruno@clisp.org>
47797
47798         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
47799         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
47800         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
47801         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
47802         if not correct.
47803         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
47804         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
47805         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
47806         m4/locale-zh.m4, m4/codeset.m4.
47807         * doc/posix-functions/wcrtomb.texi: Document the bug.
47808
47809 2008-12-21  Bruno Haible  <bruno@clisp.org>
47810
47811         Work around a btowc() bug on IRIX 6.5.
47812         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
47813         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
47814         REPLACE_WTOBC if not.
47815         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
47816         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
47817         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
47818
47819 2008-12-21  Bruno Haible  <bruno@clisp.org>
47820
47821         * modules/wcrtomb-tests: New file.
47822         * tests/test-wcrtomb.sh: New file.
47823         * tests/test-wcrtomb.c: New file.
47824
47825         New module 'wcrtomb'.
47826         * lib/wchar.in.h (wcrtomb): New declaration.
47827         * lib/wcrtomb.c: New file.
47828         * m4/wcrtomb.m4: New file.
47829         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
47830         HAVE_WCRTOMB.
47831         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
47832         HAVE_WCRTOMB.
47833         * modules/wcrtomb: New file.
47834         * doc/posix-functions/wcrtomb.texi: Mention the new module.
47835
47836 2008-12-21  Bruno Haible  <bruno@clisp.org>
47837
47838         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
47839         * modules/mbsrtowcs (Files): Likewise.
47840         * modules/wctob (Files): Likewise.
47841         * modules/c-strcase-tests (Files): Likewise.
47842         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
47843         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
47844         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
47845         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
47846         * modules/vasnprintf-posix-tests (Files): Likewise.
47847
47848 2008-12-21  William Pursell  <bill.pursell@gmail.com>
47849
47850         gitlog-to-changelog: pass all command-line arguments to git-log
47851         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
47852         it is sometimes convenient to filter the commits in various ways.
47853         gitlog-to-changelog only allows --since to specify a start date,
47854         but git-log itself supports many other filtering mechanisms.
47855         At the moment, I want to filter by branch name.  Rather than
47856         adding a --branch option to gitlog-to-changelog, it seems more
47857         flexible to simply pass all options directly to git-log and let
47858         git do the work.  Notice that this effectively makes --since a
47859         redundant option for gitlog-to-changelog, but removing it would
47860         require current usage to change since calls would then require
47861         an additional '--'.
47862
47863 2008-12-21  Bruno Haible  <bruno@clisp.org>
47864
47865         * modules/mbsnrtowcs-tests: New file.
47866         * tests/test-mbsnrtowcs1.sh: New file.
47867         * tests/test-mbsnrtowcs2.sh: New file.
47868         * tests/test-mbsnrtowcs3.sh: New file.
47869         * tests/test-mbsnrtowcs4.sh: New file.
47870         * tests/test-mbsnrtowcs.c: New file.
47871
47872         New module 'mbsnrtowcs'.
47873         * lib/wchar.in.h (mbsnrtowcs): New declaration.
47874         * lib/mbsnrtowcs.c: New file.
47875         * lib/mbsrtowcs-state.c: New file.
47876         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
47877         (internal_state): Remove variable.
47878         * m4/mbsnrtowcs.m4: New file.
47879         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
47880         compilation units.
47881         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
47882         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
47883         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
47884         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
47885         * modules/mbsnrtowcs: New file.
47886         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
47887         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
47888         portability problem.
47889
47890 2008-12-21  Bruno Haible  <bruno@clisp.org>
47891
47892         Work around mbsrtowcs bug.
47893         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
47894         (gl_FUNC_MBSRTOWCS): Invoke it.
47895         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
47896         m4/locale-zh.m4.
47897         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
47898
47899 2008-12-21  Bruno Haible  <bruno@clisp.org>
47900
47901         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
47902
47903 2008-12-21  Bruno Haible  <bruno@clisp.org>
47904
47905         Update doc for AIX.
47906         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
47907         16-bit wchar_t type.
47908         * doc/posix-functions/btowc.texi: Likewise.
47909         * doc/posix-functions/fgetwc.texi: Likewise.
47910         * doc/posix-functions/fgetws.texi: Likewise.
47911         * doc/posix-functions/fputwc.texi: Likewise.
47912         * doc/posix-functions/fputws.texi: Likewise.
47913         * doc/posix-functions/fwide.texi: Likewise.
47914         * doc/posix-functions/fwprintf.texi: Likewise.
47915         * doc/posix-functions/fwscanf.texi: Likewise.
47916         * doc/posix-functions/getwchar.texi: Likewise.
47917         * doc/posix-functions/getwc.texi: Likewise.
47918         * doc/posix-functions/iswalnum.texi: Likewise.
47919         * doc/posix-functions/iswalpha.texi: Likewise.
47920         * doc/posix-functions/iswblank.texi: Likewise.
47921         * doc/posix-functions/iswcntrl.texi: Likewise.
47922         * doc/posix-functions/iswctype.texi: Likewise.
47923         * doc/posix-functions/iswdigit.texi: Likewise.
47924         * doc/posix-functions/iswgraph.texi: Likewise.
47925         * doc/posix-functions/iswlower.texi: Likewise.
47926         * doc/posix-functions/iswprint.texi: Likewise.
47927         * doc/posix-functions/iswpunct.texi: Likewise.
47928         * doc/posix-functions/iswspace.texi: Likewise.
47929         * doc/posix-functions/iswupper.texi: Likewise.
47930         * doc/posix-functions/iswxdigit.texi: Likewise.
47931         * doc/posix-functions/mbrtowc.texi: Likewise.
47932         * doc/posix-functions/mbsrtowcs.texi: Likewise.
47933         * doc/posix-functions/mbstowcs.texi: Likewise.
47934         * doc/posix-functions/mbtowc.texi: Likewise.
47935         * doc/posix-functions/putwchar.texi: Likewise.
47936         * doc/posix-functions/putwc.texi: Likewise.
47937         * doc/posix-functions/swprintf.texi: Likewise.
47938         * doc/posix-functions/tolower.texi: Likewise.
47939         * doc/posix-functions/toupper.texi: Likewise.
47940         * doc/posix-functions/towctrans.texi: Likewise.
47941         * doc/posix-functions/ungetwc.texi: Likewise.
47942         * doc/posix-functions/vswprintf.texi: Likewise.
47943         * doc/posix-functions/wcrtomb.texi: Likewise.
47944         * doc/posix-functions/wcscat.texi: Likewise.
47945         * doc/posix-functions/wcschr.texi: Likewise.
47946         * doc/posix-functions/wcscmp.texi: Likewise.
47947         * doc/posix-functions/wcscoll.texi: Likewise.
47948         * doc/posix-functions/wcscpy.texi: Likewise.
47949         * doc/posix-functions/wcscspn.texi: Likewise.
47950         * doc/posix-functions/wcsftime.texi: Likewise.
47951         * doc/posix-functions/wcslen.texi: Likewise.
47952         * doc/posix-functions/wcsncat.texi: Likewise.
47953         * doc/posix-functions/wcsncmp.texi: Likewise.
47954         * doc/posix-functions/wcsncpy.texi: Likewise.
47955         * doc/posix-functions/wcspbrk.texi: Likewise.
47956         * doc/posix-functions/wcsrchr.texi: Likewise.
47957         * doc/posix-functions/wcsrtombs.texi: Likewise.
47958         * doc/posix-functions/wcsspn.texi: Likewise.
47959         * doc/posix-functions/wcsstr.texi: Likewise.
47960         * doc/posix-functions/wcstod.texi: Likewise.
47961         * doc/posix-functions/wcstof.texi: Likewise.
47962         * doc/posix-functions/wcstoimax.texi: Likewise.
47963         * doc/posix-functions/wcstok.texi: Likewise.
47964         * doc/posix-functions/wcstold.texi: Likewise.
47965         * doc/posix-functions/wcstoll.texi: Likewise.
47966         * doc/posix-functions/wcstol.texi: Likewise.
47967         * doc/posix-functions/wcstombs.texi: Likewise.
47968         * doc/posix-functions/wcstoull.texi: Likewise.
47969         * doc/posix-functions/wcstoul.texi: Likewise.
47970         * doc/posix-functions/wcstoumax.texi: Likewise.
47971         * doc/posix-functions/wcswidth.texi: Likewise.
47972         * doc/posix-functions/wcsxfrm.texi: Likewise.
47973         * doc/posix-functions/wctob.texi: Likewise.
47974         * doc/posix-functions/wctomb.texi: Likewise.
47975         * doc/posix-functions/wctrans.texi: Likewise.
47976         * doc/posix-functions/wctype.texi: Likewise.
47977         * doc/posix-functions/wcwidth.texi: Likewise.
47978         * doc/posix-functions/wmemchr.texi: Likewise.
47979         * doc/posix-functions/wmemcmp.texi: Likewise.
47980         * doc/posix-functions/wmemcpy.texi: Likewise.
47981         * doc/posix-functions/wmemmove.texi: Likewise.
47982         * doc/posix-functions/wmemset.texi: Likewise.
47983         * doc/posix-functions/wprintf.texi: Likewise.
47984         * doc/posix-functions/wscanf.texi: Likewise.
47985
47986 2008-12-21  Bruno Haible  <bruno@clisp.org>
47987
47988         Update doc for HP-UX 11.11.
47989         * doc/posix-functions/btowc.texi: Clarify that the function is missing
47990         in HP-UX version 11.00, not in all versions of HP-UX 11.
47991         * doc/posix-functions/fwide.texi: Likewise.
47992         * doc/posix-functions/fwprintf.texi: Likewise.
47993         * doc/posix-functions/fwscanf.texi: Likewise.
47994         * doc/posix-functions/inet_ntop.texi: Likewise.
47995         * doc/posix-functions/inet_pton.texi: Likewise.
47996         * doc/posix-functions/mbrlen.texi: Likewise.
47997         * doc/posix-functions/mbrtowc.texi: Likewise.
47998         * doc/posix-functions/mbsinit.texi: Likewise.
47999         * doc/posix-functions/mbsrtowcs.texi: Likewise.
48000         * doc/posix-functions/swprintf.texi: Likewise.
48001         * doc/posix-functions/swscanf.texi: Likewise.
48002         * doc/posix-functions/towctrans.texi: Likewise.
48003         * doc/posix-functions/vfwprintf.texi: Likewise.
48004         * doc/posix-functions/vswprintf.texi: Likewise.
48005         * doc/posix-functions/vwprintf.texi: Likewise.
48006         * doc/posix-functions/wcrtomb.texi: Likewise.
48007         * doc/posix-functions/wcsrtombs.texi: Likewise.
48008         * doc/posix-functions/wcsstr.texi: Likewise.
48009         * doc/posix-functions/wctob.texi: Likewise.
48010         * doc/posix-functions/wctrans.texi: Likewise.
48011         * doc/posix-functions/wmemchr.texi: Likewise.
48012         * doc/posix-functions/wmemcmp.texi: Likewise.
48013         * doc/posix-functions/wmemcpy.texi: Likewise.
48014         * doc/posix-functions/wmemmove.texi: Likewise.
48015         * doc/posix-functions/wmemset.texi: Likewise.
48016         * doc/posix-functions/wprintf.texi: Likewise.
48017         * doc/posix-functions/wscanf.texi: Likewise.
48018
48019 2008-12-21  Bruno Haible  <bruno@clisp.org>
48020
48021         Work around a portability problem.
48022         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
48023         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
48024
48025 2008-12-20  Bruno Haible  <bruno@clisp.org>
48026
48027         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
48028         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
48029         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
48030         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
48031         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
48032
48033         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
48034         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
48035         set.
48036         (GNULIB_defined_mbstate_t): New macro.
48037         (mbsinit): Redefine if REPLACE_MBSINIT is set.
48038         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
48039         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
48040         reuses the system's mbrtowc function but works around the bugs.
48041         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
48042         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
48043         macros.
48044         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
48045         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
48046         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
48047         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
48048         REPLACE_MBSINIT if mbsinit needs to be overridden.
48049         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
48050         REPLACE_MBSINIT, REPLACE_MBRTOWC.
48051         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
48052         REPLACE_MBSINIT, REPLACE_MBRTOWC.
48053         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48054         m4/locale-zh.m4.
48055         (Depends): Add mbsinit.
48056         * modules/mbsinit (Depends): Add mbrtowc.
48057         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
48058
48059 2008-12-20  Bruno Haible  <bruno@clisp.org>
48060
48061         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
48062         so that there are no conversion errors on AIX.
48063         * tests/test-mbsrtowcs.c (main): LIkewise.
48064
48065 2008-12-20  Bruno Haible  <bruno@clisp.org>
48066
48067         Work around wctob bug on Solaris <= 9.
48068         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
48069         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
48070         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
48071         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
48072         * modules/wctob (Files): Add m4/locale-fr.m4.
48073         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
48074
48075 2008-12-20  Bruno Haible  <bruno@clisp.org>
48076
48077         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
48078         /dev/null.
48079         * tests/test-select-in.sh: Likewise.
48080         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48081
48082 2008-12-20  Bruno Haible  <bruno@clisp.org>
48083
48084         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
48085         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
48086         Cygwin 1.5.x.
48087
48088 2008-12-20  Bruno Haible  <bruno@clisp.org>
48089
48090         Ensure mbstate_t is defined on HP-UX 11.11.
48091         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
48092         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
48093         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
48094         AC_USE_SYSTEM_EXTENSIONS.
48095         * modules/fnmatch (Depends-on): Add extensions.
48096         * modules/mbrlen (Depends-on): Likewise.
48097         * modules/mbrtowc (Depends-on): Likewise.
48098         * modules/mbsinit (Depends-on): Likewise.
48099         * modules/mbsrtowcs (Depends-on): Likewise.
48100         * modules/mbswidth (Depends-on): Likewise.
48101         * modules/quotearg (Depends-on): Likewise.
48102         * modules/strftime (Depends-on): Likewise.
48103
48104 2008-12-20  Bruno Haible  <bruno@clisp.org>
48105
48106         Ensure wctob is declared on IRIX 6.5.
48107         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
48108         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
48109         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
48110         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
48111         of HAVE_WCTOB.
48112         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
48113         HAVE_WCTOB.
48114         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
48115
48116 2008-12-19  Bruno Haible  <bruno@clisp.org>
48117
48118         * modules/mbsrtowcs-tests: New file.
48119         * tests/test-mbsrtowcs1.sh: New file.
48120         * tests/test-mbsrtowcs2.sh: New file.
48121         * tests/test-mbsrtowcs3.sh: New file.
48122         * tests/test-mbsrtowcs4.sh: New file.
48123         * tests/test-mbsrtowcs.c: New file.
48124
48125         New module 'mbsrtowcs'.
48126         * lib/wchar.in.h (mbsrtowcs): New declaration.
48127         * lib/mbsrtowcs.c: New file.
48128         * m4/mbsrtowcs.m4: New file.
48129         * modules/mbsrtowcs: New file.
48130         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
48131         HAVE_MBSRTOWCS.
48132         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
48133         HAVE_MBSRTOWCS.
48134         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
48135
48136 2008-12-19  Bruno Haible  <bruno@clisp.org>
48137
48138         New module 'mbrlen'.
48139         * lib/wchar.in.h (mbrlen): New declaration.
48140         * lib/mbrlen.c: New file.
48141         * m4/mbrlen.m4: New file.
48142         * modules/mbrlen: New file.
48143         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
48144         HAVE_MBRLEN.
48145         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
48146         HAVE_MBRLEN.
48147         * doc/posix-functions/mbrlen.texi: Document the new module.
48148
48149 2008-12-19  Bruno Haible  <bruno@clisp.org>
48150
48151         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
48152         * modules/mbrtowc (Depends-on): Add verify.
48153         Suggested by Paul Eggert.
48154
48155 2008-12-18  Bruno Haible  <bruno@clisp.org>
48156
48157         * modules/mbsinit-tests: New file.
48158         * tests/test-mbsinit.sh: New file.
48159         * tests/test-mbsinit.c: New file.
48160
48161 2008-12-18  Bruno Haible  <bruno@clisp.org>
48162
48163         * modules/mbrtowc-tests: New file.
48164         * tests/test-mbrtowc1.sh: New file.
48165         * tests/test-mbrtowc2.sh: New file.
48166         * tests/test-mbrtowc3.sh: New file.
48167         * tests/test-mbrtowc4.sh: New file.
48168         * tests/test-mbrtowc.c: New file.
48169
48170         New module 'mbrtowc'.
48171         * lib/wchar.in.h (mbstate_t): Override when the system does not have
48172         mbsinit and mbrtowc.
48173         (mbrtowc): New declaration.
48174         * lib/mbrtowc.c: New file.
48175         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
48176         * modules/mbrtowc: New file.
48177         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
48178         HAVE_MBRTOWC.
48179         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
48180         HAVE_MBRTOWC.
48181         * doc/posix-functions/mbrtowc.texi: Document the new module.
48182
48183 2008-12-18  Bruno Haible  <bruno@clisp.org>
48184
48185         New module 'wctob'.
48186         * lib/wchar.in.h (wctob): New declaration.
48187         * lib/wctob.c: New file.
48188         * m4/wctob.m4: New file.
48189         * modules/wctob: New file.
48190         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
48191         HAVE_WCTOB.
48192         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
48193         * doc/posix-functions/wctob.texi: Document the new module.
48194
48195 2008-12-18  Bruno Haible  <bruno@clisp.org>
48196
48197         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
48198         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
48199
48200 2008-12-18  Simon Josefsson  <simon@josefsson.org>
48201
48202         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
48203         G. Christensen" <tgc@jupiterrise.com>.
48204
48205         * lib/flock.c: Need to include errno.h.  Reported by "Tom
48206         G. Christensen" <tgc@jupiterrise.com>.
48207
48208         * lib/flock.c: Need to include string.h.  Reported by "Tom
48209         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
48210         <ebb9@byu.net>.
48211
48212 2008-12-18  Bruno Haible  <bruno@clisp.org>
48213
48214         * m4/locale-ja.m4: New file, from GNU gettext.
48215
48216 2008-12-17  Bruno Haible  <bruno@clisp.org>
48217
48218         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
48219         Suggested by Eric Blake.
48220
48221 2008-12-17  Bruno Haible  <bruno@clisp.org>
48222
48223         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
48224
48225 2008-12-17  Bruno Haible  <bruno@clisp.org>
48226
48227         * lib/mbsinit.c: Include verify.h. Verify an assumption.
48228         * modules/mbsinit (Depends-on): Add verify.
48229         Suggested by Paul Eggert.
48230
48231 2008-12-17  Bruno Haible  <bruno@clisp.org>
48232
48233         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
48234         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
48235         gl_FUNC_MBRTOWC.
48236         * m4/mbiter.m4 (gl_MBITER): LIkewise.
48237         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
48238         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
48239         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
48240         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
48241         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
48242         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
48243         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
48244         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
48245         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
48246         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
48247         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
48248         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
48249         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
48250         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
48251         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
48252         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
48253         * modules/trim (configure.ac): Likewise.
48254
48255 2008-12-17  Bruno Haible  <bruno@clisp.org>
48256
48257         * modules/btowc-tests: New file.
48258         * tests/test-btowc1.sh: New file.
48259         * tests/test-btowc2.sh: New file.
48260         * tests/test-btowc.c: New file.
48261
48262         New module 'btowc'.
48263         * lib/wchar.in.h (btowc): New declaration.
48264         * lib/btowc.c: New file.
48265         * m4/btowc.m4: New file.
48266         * modules/btowc: New file.
48267         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
48268         HAVE_BTOWC.
48269         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
48270         * doc/posix-functions/btowc.texi: Document the new module.
48271
48272 2008-12-17  Bruno Haible  <bruno@clisp.org>
48273
48274         New module 'mbsinit'.
48275         * lib/wchar.in.h (mbsinit): New declaration.
48276         * lib/mbsinit.c: New file.
48277         * m4/mbsinit.m4: New file.
48278         * modules/mbsinit: New file.
48279         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
48280         HAVE_MBSINIT.
48281         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
48282         HAVE_MBSINIT.
48283         * doc/posix-functions/mbsinit.texi: Document the new module.
48284
48285 2008-12-16  Bruno Haible  <bruno@clisp.org>
48286
48287         * lib/unistd.in.h: Add comment.
48288         * tests/test-environ.c: Don't include <stdlib.h>.
48289
48290 2008-12-16  Bruno Haible  <bruno@clisp.org>
48291
48292         * lib/parse-duration.h (parse_duration): Document return value
48293         convention.
48294         * lib/parse-duration.c: Include specification header first. Add
48295         comments.
48296         (_): Remove macro.
48297         (parse_year_month_day, parse_hour_minute_second): Move side effects
48298         outside of strchr call.
48299         (parse_non_iso8601): Move side effects outside of isspace call.
48300         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
48301         call.
48302
48303 2008-12-16  Bruno Haible  <bruno@clisp.org>
48304
48305         * tests/test-parse-duration.sh: Produce no output when the test
48306         succeeds.
48307
48308 2008-12-16  Bruno Haible  <bruno@clisp.org>
48309
48310         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
48311         expressions.
48312
48313 2008-12-15  Bruno Haible  <bruno@clisp.org>
48314
48315         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
48316         * doc/glibc-functions/flistxattr.texi: Likewise.
48317         * doc/glibc-functions/fopencookie.texi: Likewise.
48318         * doc/glibc-functions/fremovexattr.texi: Likewise.
48319         * doc/glibc-functions/fsetxattr.texi: Likewise.
48320         * doc/glibc-functions/getxattr.texi: Likewise.
48321         * doc/glibc-functions/lgetxattr.texi: Likewise.
48322         * doc/glibc-functions/listxattr.texi: Likewise.
48323         * doc/glibc-functions/llistxattr.texi: Likewise.
48324         * doc/glibc-functions/lremovexattr.texi: Likewise.
48325         * doc/glibc-functions/lsetxattr.texi: Likewise.
48326         * doc/glibc-functions/removexattr.texi: Likewise.
48327         * doc/glibc-functions/setxattr.texi: Likewise.
48328         * doc/posix-functions/open_memstream.texi: Likewise.
48329
48330 2008-12-15  Eric Blake  <ebb9@byu.net>
48331
48332         Update doc for cygwin 1.7.
48333         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
48334         functions.
48335         * doc/posix-functions/fchmodat.texi: Likewise.
48336         * doc/posix-functions/fchownat.texi: Likewise.
48337         * doc/posix-functions/fdopendir.texi: Likewise.
48338         * doc/posix-functions/fmemopen.texi: Likewise.
48339         * doc/posix-functions/freeaddrinfo.texi: Likewise.
48340         * doc/posix-functions/fstatat.texi: Likewise.
48341         * doc/posix-functions/futimens.texi: Likewise.
48342         * doc/posix-functions/gai_strerror.texi: Likewise.
48343         * doc/posix-functions/getaddrinfo.texi: Likewise.
48344         * doc/posix-functions/getnameinfo.texi: Likewise.
48345         * doc/posix-functions/if_freenameindex.texi: Likewise.
48346         * doc/posix-functions/if_indextoname.texi: Likewise.
48347         * doc/posix-functions/if_nameindex.texi: Likewise.
48348         * doc/posix-functions/if_nametoindex.texi: Likewise.
48349         * doc/posix-functions/insque.texi: Likewise.
48350         * doc/posix-functions/linkat.texi: Likewise.
48351         * doc/posix-functions/llrint.texi: Likewise.
48352         * doc/posix-functions/llrintf.texi: Likewise.
48353         * doc/posix-functions/llrintl.texi: Likewise.
48354         * doc/posix-functions/lockf.texi: Likewise.
48355         * doc/posix-functions/lrintl.texi: Likewise.
48356         * doc/posix-functions/mkdirat.texi: Likewise.
48357         * doc/posix-functions/mkfifoat.texi: Likewise.
48358         * doc/posix-functions/mknodat.texi: Likewise.
48359         * doc/posix-functions/mq_close.texi: Likewise.
48360         * doc/posix-functions/mq_getattr.texi: Likewise.
48361         * doc/posix-functions/mq_notify.texi: Likewise.
48362         * doc/posix-functions/mq_open.texi: Likewise.
48363         * doc/posix-functions/mq_receive.texi: Likewise.
48364         * doc/posix-functions/mq_send.texi: Likewise.
48365         * doc/posix-functions/mq_setattr.texi: Likewise.
48366         * doc/posix-functions/mq_timedreceive.texi: Likewise.
48367         * doc/posix-functions/mq_timedsend.texi: Likewise.
48368         * doc/posix-functions/mq_unlink.texi: Likewise.
48369         * doc/posix-functions/open_memstream.texi: Likewise.
48370         * doc/posix-functions/openat.texi: Likewise.
48371         * doc/posix-functions/posix_fadvise.texi: Likewise.
48372         * doc/posix-functions/posix_fallocate.texi: Likewise.
48373         * doc/posix-functions/posix_madvise.texi: Likewise.
48374         * doc/posix-functions/posix_memalign.texi: Likewise.
48375         * doc/posix-functions/posix_openpt.texi: Likewise.
48376         * doc/posix-functions/readlinkat.texi: Likewise.
48377         * doc/posix-functions/remque.texi: Likewise.
48378         * doc/posix-functions/renameat.texi: Likewise.
48379         * doc/posix-functions/rintl.texi: Likewise.
48380         * doc/posix-functions/sem_unlink.texi: Likewise.
48381         * doc/posix-functions/shm_open.texi: Likewise.
48382         * doc/posix-functions/shm_unlink.texi: Likewise.
48383         * doc/posix-functions/signgam.texi: Likewise.
48384         * doc/posix-functions/sigset.texi: Likewise.
48385         * doc/posix-functions/stpcpy.texi: Likewise.
48386         * doc/posix-functions/stpncpy.texi: Likewise.
48387         * doc/posix-functions/strerror.texi: Likewise.
48388         * doc/posix-functions/strtod.texi: Likewise.
48389         * doc/posix-functions/symlinkat.texi: Likewise.
48390         * doc/posix-functions/unlinkat.texi: Likewise.
48391         * doc/posix-functions/utimensat.texi: Likewise.
48392         * doc/glibc-functions/bindresvport.texi: Likewise.
48393         * doc/glibc-functions/dn_expand.texi: Likewise.
48394         * doc/glibc-functions/exp10.texi: Likewise.
48395         * doc/glibc-functions/exp10f.texi: Likewise.
48396         * doc/glibc-functions/fgetxattr.texi: Likewise.
48397         * doc/glibc-functions/flistxattr.texi: Likewise.
48398         * doc/glibc-functions/fopencookie.texi: Likewise.
48399         * doc/glibc-functions/freeifaddrs.texi: Likewise.
48400         * doc/glibc-functions/fremovexattr.texi: Likewise.
48401         * doc/glibc-functions/fsetxattr.texi: Likewise.
48402         * doc/glibc-functions/getifaddrs.texi: Likewise.
48403         * doc/glibc-functions/getxattr.texi: Likewise.
48404         * doc/glibc-functions/lgetxattr.texi: Likewise.
48405         * doc/glibc-functions/listxattr.texi: Likewise.
48406         * doc/glibc-functions/llistxattr.texi: Likewise.
48407         * doc/glibc-functions/lremovexattr.texi: Likewise.
48408         * doc/glibc-functions/lsetxattr.texi: Likewise.
48409         * doc/glibc-functions/pow10.texi: Likewise.
48410         * doc/glibc-functions/pow10f.texi: Likewise.
48411         * doc/glibc-functions/rcmd_af.texi: Likewise.
48412         * doc/glibc-functions/removexattr.texi: Likewise.
48413         * doc/glibc-functions/res_init.texi: Likewise.
48414         * doc/glibc-functions/res_mkquery.texi: Likewise.
48415         * doc/glibc-functions/res_query.texi: Likewise.
48416         * doc/glibc-functions/res_querydomain.texi: Likewise.
48417         * doc/glibc-functions/res_send.texi: Likewise.
48418         * doc/glibc-functions/rresvport_af.texi: Likewise.
48419         * doc/glibc-functions/setxattr.texi: Likewise.
48420         * doc/glibc-functions/strcasestr.texi: Likewise.
48421
48422 2008-12-15  Bruno Haible  <bruno@clisp.org>
48423
48424         Fix compilation error on OSF/1 4.0.
48425         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
48426         <sys/time.h>, simply delegate to the system header.
48427         Reported by Daniel Richard G. <oss@teragram.com>.
48428
48429 2008-12-15  Bruno Haible  <bruno@clisp.org>
48430
48431         * doc/posix-functions/openat.texi: Mention the 'openat' module.
48432         * doc/posix-functions/fchmodat.texi: Likewise.
48433         * doc/posix-functions/fchownat.texi: Likewise.
48434         * doc/posix-functions/fdopendir.texi: Likewise.
48435         * doc/posix-functions/fstatat.texi: Likewise.
48436         * doc/posix-functions/mkdirat.texi: Likewise.
48437         * doc/posix-functions/unlinkat.texi: Likewise.
48438
48439 2008-12-14  Bruno Haible  <bruno@clisp.org>
48440
48441         Update doc for POSIX:2008.
48442         * doc/posix-functions/faccessat.texi: New file.
48443         * doc/posix-functions/fchmodat.texi: New file.
48444         * doc/posix-functions/fchownat.texi: New file.
48445         * doc/posix-functions/fdopendir.texi: New file.
48446         * doc/posix-functions/fstatat.texi: New file.
48447         * doc/posix-functions/futimens.texi: New file.
48448         * doc/posix-functions/linkat.texi: New file.
48449         * doc/posix-functions/mkdirat.texi: New file.
48450         * doc/posix-functions/mkfifoat.texi: New file.
48451         * doc/posix-functions/mknodat.texi: New file.
48452         * doc/posix-functions/open_wmemstream.texi: New file.
48453         * doc/posix-functions/openat.texi: New file.
48454         * doc/posix-functions/psiginfo.texi: New file.
48455         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
48456         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
48457         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
48458         * doc/posix-functions/readlinkat.texi: New file.
48459         * doc/posix-functions/renameat.texi: New file.
48460         * doc/posix-functions/strerror_l.texi: New file.
48461         * doc/posix-functions/symlinkat.texi: New file.
48462         * doc/posix-functions/unlinkat.texi: New file.
48463         * doc/posix-functions/utimensat.texi: New file.
48464         * doc/gnulib.texi (Function Substitutes): Add these subsections.
48465
48466 2008-12-14  Bruno Haible  <bruno@clisp.org>
48467
48468         Update doc for POSIX:2008.
48469         * doc/posix-functions/alphasort.texi: Renamed from
48470         doc/glibc-functions/alphasort.texi.
48471         * doc/posix-functions/dirfd.texi: Renamed from
48472         doc/glibc-functions/dirfd.texi.
48473         * doc/posix-functions/dprintf.texi: Renamed from
48474         doc/glibc-functions/dprintf.texi.
48475         * doc/posix-functions/duplocale.texi: Renamed from
48476         doc/glibc-functions/duplocale.texi.
48477         * doc/posix-functions/fexecve.texi: Renamed from
48478         doc/glibc-functions/fexecve.texi.
48479         * doc/posix-functions/fmemopen.texi: Renamed from
48480         doc/glibc-functions/fmemopen.texi.
48481         * doc/posix-functions/freelocale.texi: Renamed from
48482         doc/glibc-functions/freelocale.texi.
48483         * doc/posix-functions/getdate_err.texi: Renamed from
48484         doc/glibc-functions/getdate_err.texi.
48485         * doc/posix-functions/isalnum_l.texi: Renamed from
48486         doc/glibc-functions/isalnum_l.texi.
48487         * doc/posix-functions/isalpha_l.texi: Renamed from
48488         doc/glibc-functions/isalpha_l.texi.
48489         * doc/posix-functions/isblank_l.texi: Renamed from
48490         doc/glibc-functions/isblank_l.texi.
48491         * doc/posix-functions/iscntrl_l.texi: Renamed from
48492         doc/glibc-functions/iscntrl_l.texi.
48493         * doc/posix-functions/isdigit_l.texi: Renamed from
48494         doc/glibc-functions/isdigit_l.texi.
48495         * doc/posix-functions/isgraph_l.texi: Renamed from
48496         doc/glibc-functions/isgraph_l.texi.
48497         * doc/posix-functions/islower_l.texi: Renamed from
48498         doc/glibc-functions/islower_l.texi.
48499         * doc/posix-functions/isprint_l.texi: Renamed from
48500         doc/glibc-functions/isprint_l.texi.
48501         * doc/posix-functions/ispunct_l.texi: Renamed from
48502         doc/glibc-functions/ispunct_l.texi.
48503         * doc/posix-functions/isspace_l.texi: Renamed from
48504         doc/glibc-functions/isspace_l.texi.
48505         * doc/posix-functions/isupper_l.texi: Renamed from
48506         doc/glibc-functions/isupper_l.texi.
48507         * doc/posix-functions/iswalnum_l.texi: Renamed from
48508         doc/glibc-functions/iswalnum_l.texi.
48509         * doc/posix-functions/iswalpha_l.texi: Renamed from
48510         doc/glibc-functions/iswalpha_l.texi.
48511         * doc/posix-functions/iswblank_l.texi: Renamed from
48512         doc/glibc-functions/iswblank_l.texi.
48513         * doc/posix-functions/iswcntrl_l.texi: Renamed from
48514         doc/glibc-functions/iswcntrl_l.texi.
48515         * doc/posix-functions/iswctype_l.texi: Renamed from
48516         doc/glibc-functions/iswctype_l.texi.
48517         * doc/posix-functions/iswdigit_l.texi: Renamed from
48518         doc/glibc-functions/iswdigit_l.texi.
48519         * doc/posix-functions/iswgraph_l.texi: Renamed from
48520         doc/glibc-functions/iswgraph_l.texi.
48521         * doc/posix-functions/iswlower_l.texi: Renamed from
48522         doc/glibc-functions/iswlower_l.texi.
48523         * doc/posix-functions/iswprint_l.texi: Renamed from
48524         doc/glibc-functions/iswprint_l.texi.
48525         * doc/posix-functions/iswpunct_l.texi: Renamed from
48526         doc/glibc-functions/iswpunct_l.texi.
48527         * doc/posix-functions/iswspace_l.texi: Renamed from
48528         doc/glibc-functions/iswspace_l.texi.
48529         * doc/posix-functions/iswupper_l.texi: Renamed from
48530         doc/glibc-functions/iswupper_l.texi.
48531         * doc/posix-functions/iswxdigit_l.texi: Renamed from
48532         doc/glibc-functions/iswxdigit_l.texi.
48533         * doc/posix-functions/isxdigit_l.texi: Renamed from
48534         doc/glibc-functions/isxdigit_l.texi.
48535         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
48536         doc/glibc-functions/mbsnrtowcs.texi.
48537         * doc/posix-functions/mkdtemp.texi: Renamed from
48538         doc/glibc-functions/mkdtemp.texi.
48539         * doc/posix-functions/newlocale.texi: Renamed from
48540         doc/glibc-functions/newlocale.texi.
48541         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
48542         doc/glibc-functions/nl_langinfo_l.texi.
48543         * doc/posix-functions/open_memstream.texi: Renamed from
48544         doc/glibc-functions/open_memstream.texi.
48545         * doc/posix-functions/opterr.texi: Renamed from
48546         doc/glibc-functions/opterr.texi.
48547         * doc/posix-functions/optind.texi: Renamed from
48548         doc/glibc-functions/optind.texi.
48549         * doc/posix-functions/optopt.texi: Renamed from
48550         doc/glibc-functions/optopt.texi.
48551         * doc/posix-functions/psignal.texi: Renamed from
48552         doc/glibc-functions/psignal.texi.
48553         * doc/posix-functions/scandir.texi: Renamed from
48554         doc/glibc-functions/scandir.texi.
48555         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
48556         doc/glibc-functions/sched_get_priority_min.texi.
48557         * doc/posix-functions/signgam.texi: Renamed from
48558         doc/glibc-functions/signgam.texi.
48559         * doc/posix-functions/stpcpy.texi: Renamed from
48560         doc/glibc-functions/stpcpy.texi.
48561         * doc/posix-functions/stpncpy.texi: Renamed from
48562         doc/glibc-functions/stpncpy.texi.
48563         * doc/posix-functions/strcasecmp_l.texi: Renamed from
48564         doc/glibc-functions/strcasecmp_l.texi.
48565         * doc/posix-functions/strcoll_l.texi: Renamed from
48566         doc/glibc-functions/strcoll_l.texi.
48567         * doc/posix-functions/strfmon_l.texi: Renamed from
48568         doc/glibc-functions/strfmon_l.texi.
48569         * doc/posix-functions/strftime_l.texi: Renamed from
48570         doc/glibc-functions/strftime_l.texi.
48571         * doc/posix-functions/strncasecmp_l.texi: Renamed from
48572         doc/glibc-functions/strncasecmp_l.texi.
48573         * doc/posix-functions/strndup.texi: Renamed from
48574         doc/glibc-functions/strndup.texi.
48575         * doc/posix-functions/strnlen.texi: Renamed from
48576         doc/glibc-functions/strnlen.texi.
48577         * doc/posix-functions/strsignal.texi: Renamed from
48578         doc/glibc-functions/strsignal.texi.
48579         * doc/posix-functions/strxfrm_l.texi: Renamed from
48580         doc/glibc-functions/strxfrm_l.texi.
48581         * doc/posix-functions/timer_gettime.texi: Renamed from
48582         doc/glibc-functions/timer_gettime.texi.
48583         * doc/posix-functions/tolower_l.texi: Renamed from
48584         doc/glibc-functions/tolower_l.texi.
48585         * doc/posix-functions/toupper_l.texi: Renamed from
48586         doc/glibc-functions/toupper_l.texi.
48587         * doc/posix-functions/towctrans_l.texi: Renamed from
48588         doc/glibc-functions/towctrans_l.texi.
48589         * doc/posix-functions/towlower_l.texi: Renamed from
48590         doc/glibc-functions/towlower_l.texi.
48591         * doc/posix-functions/towupper_l.texi: Renamed from
48592         doc/glibc-functions/towupper_l.texi.
48593         * doc/posix-functions/uselocale.texi: Renamed from
48594         doc/glibc-functions/uselocale.texi.
48595         * doc/posix-functions/vdprintf.texi: Renamed from
48596         doc/glibc-functions/vdprintf.texi.
48597         * doc/posix-functions/wcpcpy.texi:
48598         Renamed from doc/glibc-functions/wcpcpy.texi.
48599         * doc/posix-functions/wcpncpy.texi: Renamed from
48600         doc/glibc-functions/wcpncpy.texi.
48601         * doc/posix-functions/wcscasecmp.texi: Renamed from
48602         doc/glibc-functions/wcscasecmp.texi.
48603         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
48604         doc/glibc-functions/wcscasecmp_l.texi.
48605         * doc/posix-functions/wcscoll_l.texi: Renamed from
48606         doc/glibc-functions/wcscoll_l.texi.
48607         * doc/posix-functions/wcsdup.texi: Renamed from
48608         doc/glibc-functions/wcsdup.texi.
48609         * doc/posix-functions/wcsncasecmp.texi: Renamed from
48610         doc/glibc-functions/wcsncasecmp.texi.
48611         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
48612         doc/glibc-functions/wcsncasecmp_l.texi.
48613         * doc/posix-functions/wcsnlen.texi: Renamed from
48614         doc/glibc-functions/wcsnlen.texi.
48615         * doc/posix-functions/wcsnrtombs.texi: Renamed from
48616         doc/glibc-functions/wcsnrtombs.texi.
48617         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
48618         doc/glibc-functions/wcsxfrm_l.texi.
48619         * doc/posix-functions/wctrans_l.texi: Renamed from
48620         doc/glibc-functions/wctrans_l.texi.
48621         * doc/posix-functions/wctype_l.texi: Renamed from
48622         doc/glibc-functions/wctype_l.texi.
48623         * doc/gnulib.texi (Function Substitutes): Add these subsections.
48624         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
48625         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
48626         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
48627         these subsections.
48628         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
48629         Remove sections.
48630
48631 2008-12-14  Bruno Haible  <bruno@clisp.org>
48632
48633         Update doc for POSIX:2008.
48634         * doc/posix-functions/*.texi: Update URL of POSIX specification.
48635
48636 2008-12-14  Bruno Haible  <bruno@clisp.org>
48637
48638         Update doc for POSIX:2008.
48639         * doc/pastposix-functions/bcmp.texi: Renamed from
48640         doc/posix-functions/bcmp.texi.
48641         * doc/pastposix-functions/bcopy.texi: Renamed from
48642         doc/posix-functions/bcopy.texi.
48643         * doc/pastposix-functions/bsd_signal.texi: Renamed from
48644         doc/posix-functions/bsd_signal.texi.
48645         * doc/pastposix-functions/bzero.texi: Renamed from
48646         doc/posix-functions/bzero.texi.
48647         * doc/pastposix-functions/ecvt.texi: Renamed from
48648         doc/posix-functions/ecvt.texi.
48649         * doc/pastposix-functions/fcvt.texi: Renamed from
48650         doc/posix-functions/fcvt.texi.
48651         * doc/pastposix-functions/ftime.texi: Renamed from
48652         doc/posix-functions/ftime.texi.
48653         * doc/pastposix-functions/gcvt.texi: Renamed from
48654         doc/posix-functions/gcvt.texi.
48655         * doc/pastposix-functions/getcontext.texi: Renamed from
48656         doc/posix-functions/getcontext.texi.
48657         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
48658         doc/posix-functions/gethostbyaddr.texi.
48659         * doc/pastposix-functions/gethostbyname.texi: Renamed from
48660         doc/posix-functions/gethostbyname.texi.
48661         * doc/pastposix-functions/getwd.texi: Renamed from
48662         doc/posix-functions/getwd.texi.
48663         * doc/pastposix-functions/h_errno.texi: Renamed from
48664         doc/posix-functions/h_errno.texi.
48665         * doc/pastposix-functions/index.texi: Renamed from
48666         doc/posix-functions/index.texi.
48667         * doc/pastposix-functions/makecontext.texi: Renamed from
48668         doc/posix-functions/makecontext.texi.
48669         * doc/pastposix-functions/mktemp.texi: Renamed from
48670         doc/posix-functions/mktemp.texi.
48671         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
48672         doc/posix-functions/pthread_attr_getstackaddr.texi.
48673         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
48674         doc/posix-functions/pthread_attr_setstackaddr.texi.
48675         * doc/pastposix-functions/rindex.texi: Renamed from
48676         doc/posix-functions/rindex.texi.
48677         * doc/pastposix-functions/scalb.texi: Renamed from
48678         doc/posix-functions/scalb.texi.
48679         * doc/pastposix-functions/setcontext.texi: Renamed from
48680         doc/posix-functions/setcontext.texi.
48681         * doc/pastposix-functions/swapcontext.texi: Renamed from
48682         doc/posix-functions/swapcontext.texi.
48683         * doc/pastposix-functions/ualarm.texi: Renamed from
48684         doc/posix-functions/ualarm.texi.
48685         * doc/pastposix-functions/usleep.texi: Renamed from
48686         doc/posix-functions/usleep.texi.
48687         * doc/pastposix-functions/vfork.texi: Renamed from
48688         doc/posix-functions/vfork.texi.
48689         * doc/pastposix-functions/wcswcs.texi: Renamed from
48690         doc/posix-functions/wcswcs.texi.
48691         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
48692         (Function Substitutes): Update.
48693
48694 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48695
48696         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
48697         m4/strerror.m4.
48698
48699 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48700             Bruno Haible  <bruno@clisp.org>
48701
48702         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
48703
48704 2008-12-13  Bruno Haible  <bruno@clisp.org>
48705
48706         * modules/strtoull (Depends-on): Remove unistd.
48707
48708 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48709
48710         * modules/strtoull (Depends-on): Add stdlib.
48711
48712 2008-12-11  Simon Josefsson  <simon@josefsson.org>
48713
48714         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
48715
48716 2008-12-10  Jim Meyering  <meyering@redhat.com>
48717
48718         gl_ASSERT: don't say assertions are disabled when they're not
48719         * m4/assert.m4 (gl_ASSERT): Do not make configure report
48720         "checking whether to enable assertions... no", when they are in
48721         fact enabled.  This is solely a bug in the output of configure.
48722         In spite of saying "no", NDEBUG was not defined in that case.
48723         Also, as noted by Eric Blake, leave assertions enabled upon
48724         --enable-assert=INVALID.
48725
48726 2008-12-10  Bruno Haible  <bruno@clisp.org>
48727
48728         Change MODULES.html to refer to POSIX:2008 where possible.
48729         * MODULES.html.sh (POSIX2008_URL): New variable.
48730         (posix_headers): Remove sys/timeb, ucontext.
48731         (posix2001_headers): New variable.
48732         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
48733         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
48734         index, makecontext, mktemp, pthread_attr_getstackaddr,
48735         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
48736         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
48737         (posix2001_functions): New variable.
48738         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
48739         otherwise.
48740
48741 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48742
48743         add missing include to parse-duration.c
48744         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
48745         * modules/parse-duration (Depends-on): Add xalloc.
48746
48747         fix sed script reading maint.mk
48748         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
48749         (syntax-check-rules): Use it.
48750
48751 2008-12-09  Bruno Haible  <bruno@clisp.org>
48752
48753         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
48754         MacOS X 10.4/PowerPC.
48755         Reported by Simon Josefsson.
48756
48757 2008-12-08  Jim Meyering  <meyering@redhat.com>
48758
48759         work around mingw's lack of some S_IF definitions
48760         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
48761         Reported by Simon Josefsson.
48762
48763 2008-12-08  Bruno Haible  <bruno@clisp.org>
48764
48765         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
48766         applied to variables. Needed on MacOS X 10.4/PowerPC.
48767         Reported by Simon Josefsson.
48768
48769 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
48770         and Eric Blake  <ebb9@byu.net>
48771
48772         assert: honor --enable-assert
48773         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
48774         order to honor --enable-assert, rather than treating it as a
48775         synonym for --disable-assert.
48776
48777 2008-12-08  Jim Meyering  <meyering@redhat.com>
48778
48779         * lib/posixtm.c: Remove now-useless declaration of mktime.
48780
48781         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
48782
48783 2008-12-07  Bruno Haible  <bruno@clisp.org>
48784
48785         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
48786         test_once): Mark functions as static.
48787         * tests/test-tls.c (test_tls): Likewise.
48788
48789 2008-12-07  Bruno Haible  <bruno@clisp.org>
48790
48791         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
48792         iconv_register_autodetect.
48793
48794 2008-12-07  Jim Meyering  <meyering@redhat.com>
48795
48796         posixtm.c: avoid a warning
48797         * lib/posixtm.c (posixtime): Don't initialize tm0.
48798         It's no longer needed to placate gcc4's -Wuninitialized,
48799         and the attempt to placate would elicit a new warning.
48800
48801         unicodeio.c: mark unused parameters
48802         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
48803         (fallback_failure_callback): Likewise.
48804
48805 2008-12-07  Bruno Haible  <bruno@clisp.org>
48806
48807         * gnulib-tool (func_create_testdir): When building the tests
48808         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
48809         Reported by Simon Josefsson.
48810
48811 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48812
48813         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
48814
48815 2008-12-06  Bruno Haible  <bruno@clisp.org>
48816
48817         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
48818         Suggested by Eric Blake.
48819
48820 2008-12-06  Bruno Haible  <bruno@clisp.org>
48821
48822         Fix a c-stack test failure on MacOS X.
48823         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
48824         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
48825         handler for SIGBUS as well.
48826         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
48827         install a signal handler for SIGBUS as well.
48828         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
48829
48830 2008-12-06  Bruno Haible  <bruno@clisp.org>
48831
48832         Advocacy documentation.
48833         * doc/gnulib-intro.texi (Benefits): New section.
48834         * doc/gnulib.texi: Update.
48835
48836 2008-12-06  Bruno Haible  <bruno@clisp.org>
48837
48838         Document the 'manywarnings' module.
48839         * doc/manywarnings.texi: New file.
48840         * doc/gnulib.texi: Include it.
48841
48842 2008-12-05  Eric Blake  <ebb9@byu.net>
48843
48844         tests: silence some gcc warnings
48845         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
48846         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
48847         type mismatches.
48848
48849 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48850             Bruno Haible  <bruno@clisp.org>
48851
48852         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
48853
48854 2008-11-29  Jim Meyering  <meyering@redhat.com>
48855
48856         unicodeio.c: mark unused parameters
48857         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
48858         (fallback_failure_callback): Likewise.
48859
48860         fts: fix a thinko
48861         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
48862         (set_stat_type): Return S_IF*-valued "type" directly.
48863         Prompted by James Youngman's spotting a related bug.
48864         Confirmed by further testing through find.
48865
48866         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
48867         * lib/fts.c (D_TYPE): Define.
48868         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
48869         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
48870         (s_ifmt_shift_bits): New function.
48871         (set_stat_type): New function.
48872         (fts_build): When not calling fts_stat, call set_stat_type
48873         to propagate dirent.d_type info to fts_read caller.
48874         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
48875         fts_statp->st_mode type information may be valid.
48876
48877 2008-11-28  Simon Josefsson  <simon@josefsson.org>
48878
48879         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
48880         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
48881         <sds@gnu.org>.
48882
48883 2008-11-20  Bruno Haible  <bruno@clisp.org>
48884
48885         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
48886         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
48887         INCLUDE_NEXT.
48888         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
48889         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
48890         * modules/math (Makefile.am): Substitute
48891         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
48892         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48893
48894 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
48895             Bruno Haible  <bruno@clisp.org>
48896
48897         * lib/stdint.in.h: Define all type macros so that their expansion is
48898         a single typedef'ed token. Fixes a compilation failure in Boost which
48899         does "using ::int8_t;".
48900
48901 2008-11-18  Simon Josefsson  <simon@josefsson.org>
48902
48903         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
48904         gl_MANYWARN_ALL_GCC.
48905         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
48906         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
48907         * modules/manywarnings: New file.
48908         * MODULES.html.sh: Mention manywarnings module.
48909
48910 2008-11-18  Bruno Haible  <bruno@clisp.org>
48911
48912         * doc/gnulib-tool.texi (Unit tests): New section.
48913
48914 2008-11-18  Simon Josefsson  <simon@josefsson.org>
48915
48916         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
48917         paths like 'lib/po/foo.po'.
48918
48919 2008-11-17  Simon Josefsson  <simon@josefsson.org>
48920
48921         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
48922         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
48923
48924 2008-11-17  Simon Josefsson  <simon@josefsson.org>
48925
48926         * m4/warnings.m4: Use CPPFLAGS to really check whether the
48927         parameter works.
48928
48929 2008-11-17  Simon Josefsson  <simon@josefsson.org>
48930
48931         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
48932
48933 2008-11-17  Bruce Korb  <bkorb@gnu.org>
48934
48935         * modules/parse-duration-tests: New file.
48936         * tests/test-parse-duration.sh: New file.
48937         * tests/test-parse-duration.c: New file.
48938
48939         New module 'parse-duration'.
48940         * lib/parse-duration.h: New file.
48941         * lib/parse-duration.c: New file.
48942         * modules/parse-duration: New file.
48943
48944 2008-11-17  Bruno Haible  <bruno@clisp.org>
48945
48946         * tests/test-select-out.sh: Comment out the first pipe test.
48947         Reported by Simon Josefsson.
48948
48949 2008-11-17  Bruno Haible  <bruno@clisp.org>
48950
48951         * modules/getaddrinfo (Depends-on): Add servent, hostent.
48952         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
48953         gl_HOSTENT.
48954
48955 2008-11-17  Bruno Haible  <bruno@clisp.org>
48956
48957         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
48958         -lnetwork and -lnet. Needed for Haiku and BeOS.
48959
48960 2008-11-16  Bruno Haible  <bruno@clisp.org>
48961
48962         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
48963
48964 2008-11-16  Bruno Haible  <bruno@clisp.org>
48965
48966         Avoid test failure on Haiku.
48967         * tests/test-fsync.c: Include <errno.h>.
48968         (main): Don't require that fsync (0) fails.
48969
48970 2008-11-15  Bruno Haible  <bruno@clisp.org>
48971
48972         New module 'hostent'.
48973         * modules/hostent: New file.
48974         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
48975
48976 2008-11-15  Bruno Haible  <bruno@clisp.org>
48977
48978         New module 'servent'.
48979         * modules/servent: New file.
48980         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
48981
48982 2008-11-15  Bruno Haible  <bruno@clisp.org>
48983
48984         Avoid generating same test program with two different rules.
48985         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
48986         test-frexp to test-frexp-nolibm.
48987         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
48988         test-frexpl to test-frexpl-nolibm.
48989
48990 2008-11-15  Bruno Haible  <bruno@clisp.org>
48991
48992         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
48993         $(FREXPL_LIBM).
48994
48995 2008-11-15  Bruno Haible  <bruno@clisp.org>
48996
48997         * lib/netdb.in.h: Activate the definitions also when the system's
48998         <netdb.h> has 'struct addrinfo'.
48999         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
49000         EAI_OVERFLOW or AI_NUMERICSERV.
49001         * doc/posix-headers/netdb.texi: Document the problem.
49002
49003 2008-11-15  Bruno Haible  <bruno@clisp.org>
49004
49005         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
49006
49007         Make the 'sched' module work on platforms where <sched.h> exists but
49008         is incomplete (such as Haiku).
49009         * lib/sched.in.h; Include the system's <sched.h> if it exists.
49010         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
49011         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
49012         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
49013         HAVE_STRUCT_SCHED_PARAM.
49014         * modules/sched (Depends-on): Add include_next.
49015         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
49016         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
49017         * doc/posix-headers/sched.texi: Document the issue.
49018
49019 2008-11-13  Jim Meyering  <meyering@redhat.com>
49020
49021         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
49022         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
49023         test would fail due to the difference in the Report bugs to ...
49024         line.  The expected address is empty, "<>", while the actual
49025         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
49026
49027 2008-11-12  Bruno Haible  <bruno@clisp.org>
49028
49029         lstat: don't compile lstat.c on systems lacking lstat
49030         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
49031         which don't have lstat; this is handled by lib/sys_stat.in.h already.
49032         Reported by Daniel P. Berrange via Jim Meyering.
49033
49034 2008-11-12  Jim Meyering  <meyering@redhat.com>
49035
49036         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
49037
49038 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49039
49040         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
49041         instead.
49042
49043 2008-11-12  Bruno Haible  <bruno@clisp.org>
49044
49045         * lib/unicodeio.c: Include unistr.h.
49046         (utf8_wctomb): Remove function.
49047         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
49048
49049 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49050
49051         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
49052         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
49053         <bruno@clisp.org>.
49054         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
49055
49056 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49057
49058         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
49059         * doc/gnulib.texi: Add section for warnings.
49060
49061 2008-11-11  Bruno Haible  <bruno@clisp.org>
49062
49063         * lib/sockets.h: Add a comment.
49064
49065 2008-11-11  Karl Berry  <karl@gnu.org>
49066
49067         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
49068
49069 2008-11-11  Eric Blake  <ebb9@byu.net>
49070
49071         fdl.texi: avoid git symlinks
49072         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
49073
49074 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49075
49076         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
49077
49078 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49079
49080         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
49081         (gl_WARN_ADD): Substitute $2 if literal.
49082
49083 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49084
49085         * m4/warning.m4: Remove.
49086
49087 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49088
49089         * m4/warnings.m4: Almost complete rewrite. :-)
49090
49091 2008-11-10  Simon Josefsson  <simon@josefsson.org>
49092
49093         * modules/warnings: New module.
49094         * m4/warnings.m4: New file.
49095         * MODULES.html.sh: Mention warnings module.
49096         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
49097         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49098
49099 2008-11-10  Eric Blake  <ebb9@byu.net>
49100
49101         fdl.texi: make a symlink to the latest version
49102         * doc/standards.texi: Revert today's earlier change.
49103         * doc/fdl-1.2.texi: Rename from old fdl.texi...
49104         * doc/fdl.texi: ...and replace this with a symlink to the newer
49105         fdl-1.3.texi.
49106
49107 2008-11-10  Bruno Haible  <bruno@clisp.org>
49108
49109         * tests/test-select-fd.c (main): Accept the result file name as fourth
49110         argument.
49111         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
49112         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
49113
49114 2008-11-10  Bruno Haible  <bruno@clisp.org>
49115
49116         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
49117         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
49118         as autoconf-substituted macros.
49119         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
49120         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
49121         gl_NETDB_H_DEFAULTS. Set these variables.
49122         * modules/netdb (Makefile.am): Substitute these variables.
49123
49124 2008-11-10  Eric Blake  <ebb9@byu.net>
49125
49126         standards.texi: include correct file for FDL 1.3
49127         * doc/standards.texi (GNU Free Documentation License): Change
49128         include file to pull in FDL 1.3, not 1.2.
49129
49130         fdl.texi: revert accidental change to license
49131         * doc/fdl.texi: This is FDL 1.2, not 1.3.
49132
49133 2008-11-10  Bruno Haible  <bruno@clisp.org>
49134
49135         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
49136         cross-compiling guesses also when the native compile gives no result.
49137
49138 2008-11-10  Bruno Haible  <bruno@clisp.org>
49139
49140         * lib/spawni.c (__spawni): Force variable into the stack.
49141
49142 2008-11-10  Bruno Haible  <bruno@clisp.org>
49143
49144         Add support for Haiku.
49145         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
49146         glibc and BeOS, but also on Haiku.
49147         * lib/fpurge.c (fpurge): Likewise.
49148         * lib/freadable.c (freadable): Likewise.
49149         * lib/freadahead.c (freadahead): Likewise.
49150         * lib/freading.c (freading): Likewise.
49151         * lib/freadptr.c (freadptr): Likewise.
49152         * lib/freadseek.c (freadptrinc): Likewise.
49153         * lib/fseeko.c (rpl_fseeko): Likewise.
49154         * lib/fseterr.c (fseterr): Likewise.
49155         * lib/fwritable.c (fwritable): Likewise.
49156         * lib/fwriting.c (fwriting): Likewise.
49157         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
49158
49159 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
49160
49161         * lib/config.charset: Treat Haiku like BeOS.
49162
49163 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
49164
49165         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
49166         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
49167
49168 2008-11-08  Bruno Haible  <bruno@clisp.org>
49169
49170         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
49171         AC_CACHE_CHECK.
49172
49173 2008-11-08  Bruno Haible  <bruno@clisp.org>
49174
49175         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
49176
49177 2008-11-08  Bruno Haible  <bruno@clisp.org>
49178
49179         * tests/test-select-fd.c: New file.
49180         * tests/test-select-in.sh: New file.
49181         * tests/test-select-out.sh: New file.
49182         * tests/test-select-stdin.c: New file.
49183         * modules/select-tests (Files): Add the new files.
49184         (Depends-on): Add gettimeofday.
49185         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
49186         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
49187         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
49188
49189 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
49190             Bruno Haible  <bruno@clisp.org>
49191
49192         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
49193
49194 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
49195
49196         * build-aux/pmccabe2html: Added support for C++ source files.
49197
49198 2008-11-05  Ben Pfaff  <blp@gnu.org>
49199
49200         Fix lib/close.c build on Windows.
49201         * modules/close (Files): Add lib/w32sock.h.
49202
49203 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
49204
49205         Accept Bison's NEWS format.
49206         * build-aux/announce-gen (print_news_deltas): Tweak
49207         $re_prefix.
49208
49209 2008-11-04  Bruno Haible  <bruno@clisp.org>
49210
49211         * modules/random_r (Maintainer): Add glibc.
49212
49213 2008-11-04  Simon Josefsson  <simon@josefsson.org>
49214
49215         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
49216         by karl@freefriends.org (Karl Berry).
49217         * doc/alloca.texi: Likewise.
49218         * doc/c-ctype.texi: Likewise.
49219         * doc/c-strcase.texi: Likewise.
49220         * doc/c-strcaseeq.texi: Likewise.
49221         * doc/c-strcasestr.texi: Likewise.
49222         * doc/c-strstr.texi: Likewise.
49223         * doc/c-strtod.texi: Likewise.
49224         * doc/c-strtold.texi: Likewise.
49225         * doc/ctime.texi: Likewise.
49226         * doc/error.texi: Likewise.
49227         * doc/fdl.texi: Likewise.
49228         * doc/gcd.texi: Likewise.
49229         * doc/getdate.texi: Likewise.
49230         * doc/gnulib-intro.texi: Likewise.
49231         * doc/gnulib-tool.texi: Likewise.
49232         * doc/gnulib.texi: Likewise.
49233         * doc/inet_ntoa.texi: Likewise.
49234         * doc/maintain.texi: Likewise.
49235         * doc/make-stds.texi: Likewise.
49236         * doc/quote.texi: Likewise.
49237         * doc/regexprops-generic.texi: Likewise.
49238         * doc/standards.texi: Likewise.
49239         * doc/verify.texi: Likewise.
49240         * doc/visibility.texi: Likewise.
49241         * doc/gnulib.texi (GNU Free Documentation License): Include
49242         fdl-1.3.texi instead of fdl.texi.
49243
49244 2008-11-04  Simon Josefsson  <simon@josefsson.org>
49245
49246         * doc/fdl-1.3.texi: New file, from
49247         <http://www.gnu.org/licenses/fdl-1.3.texi>.
49248         * modules/fdl-1.3: Add.
49249         * MODULES.html.sh: Add fdl-1.3.
49250
49251 2008-11-03  Bruno Haible  <bruno@clisp.org>
49252
49253         Make determination of absolute name of header file work with AIX xlc.
49254         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
49255         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
49256         preprocessing.
49257         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49258         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
49259
49260 2008-11-03  Simon Josefsson  <simon@josefsson.org>
49261
49262         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
49263         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
49264         <ludo@gnu.org>.
49265
49266 2008-11-02  Bruno Haible  <bruno@clisp.org>
49267
49268         Mark 'strpbrk' obsolete.
49269         * modules/strpbrk (Status, Notice): New sections.
49270         * modules/strtok_r (Depends-on): Add strpbrk.
49271
49272 2008-11-02  Bruno Haible  <bruno@clisp.org>
49273
49274         Mark 'strdup' obsolete.
49275         * modules/strdup (Status, Notice): New sections.
49276         * modules/findprog (Depends-on): Add strdup.
49277         * modules/getaddrinfo (Depends-on): Likewise.
49278         * modules/localename (Depends-on): Likewise.
49279         * modules/relocatable-lib (Depends-on): Likewise.
49280         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
49281         * modules/relocatable-prog (Depends-on): Likewise.
49282         * modules/trim (Depends-on): Likewise.
49283         * modules/unictype/gen-ctype (Depends-on): Likewise.
49284         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
49285
49286 2008-11-02  Bruno Haible  <bruno@clisp.org>
49287
49288         Mark 'strcspn' obsolete.
49289         * modules/strcspn (Status, Notice): New sections.
49290
49291 2008-11-02  Bruno Haible  <bruno@clisp.org>
49292
49293         Mark 'rmdir' obsolete.
49294         * modules/rmdir (Status, Notice): New sections.
49295         * modules/clean-temp (Depends-on): Add rmdir.
49296         * modules/openat (Depends-on): Likewise.
49297
49298 2008-11-02  Bruno Haible  <bruno@clisp.org>
49299
49300         Mark 'raise' obsolete.
49301         * modules/raise (Status, Notice): New sections.
49302         (Include): Specify <signal.h>.
49303         * modules/stdio (Depends-on): Add raise.
49304         * modules/write (Depends-on): Likewise.
49305
49306 2008-11-02  Bruno Haible  <bruno@clisp.org>
49307
49308         Mark 'memset' obsolete.
49309         * modules/memset (Status, Notice): New sections.
49310
49311 2008-11-02  Bruno Haible  <bruno@clisp.org>
49312
49313         Mark 'memmove' obsolete.
49314         * modules/memmove (Status, Notice): New sections.
49315         * modules/argp (Depends-on): Add memmove.
49316         * modules/argz (Depends-on): Likewise.
49317         * modules/canonicalize (Depends-on): Likewise.
49318         * modules/canonicalize-lgpl (Depends-on): Likewise.
49319         * modules/fts (Depends-on): Likewise.
49320         * modules/getcwd (Depends-on): Likewise.
49321         * modules/human (Depends-on): Likewise.
49322         * modules/regex (Depends-on): Likewise.
49323         * modules/striconveh (Depends-on): Likewise.
49324         * modules/trim (Depends-on): Likewise.
49325         * modules/unistr/u8-move (Depends-on): Likewise.
49326         * modules/unistr/u16-move (Depends-on): Likewise.
49327         * modules/unistr/u32-move (Depends-on): Likewise.
49328
49329 2008-11-02  Bruno Haible  <bruno@clisp.org>
49330
49331         Mark 'memcpy' obsolete.
49332         * modules/memcpy (Status, Notice): New sections.
49333
49334 2008-11-02  Bruno Haible  <bruno@clisp.org>
49335
49336         Mark 'memcmp' obsolete.
49337         * modules/memcmp (Status, Notice): New sections.
49338         * modules/argmatch (Depends-on): Add memchr.
49339         * modules/backupfile (Depends-on): Likewise.
49340         * modules/c-strcasestr (Depends-on): Likewise.
49341         * modules/crypto/des (Depends-on): Likewise.
49342         * modules/csharpcomp (Depends-on): Likewise.
49343         * modules/fnmatch (Depends-on): Likewise.
49344         * modules/git-merge-changelog (Depends-on): Likewise.
49345         * modules/isnand (Depends-on): Likewise.
49346         * modules/isnand-nolibm (Depends-on): Likewise.
49347         * modules/isnanf (Depends-on): Likewise.
49348         * modules/isnanf-nolibm (Depends-on): Likewise.
49349         * modules/isnanl (Depends-on): Likewise.
49350         * modules/isnanl-nolibm (Depends-on): Likewise.
49351         * modules/mbchar (Depends-on): Likewise.
49352         * modules/memcoll (Depends-on): Likewise.
49353         * modules/quotearg (Depends-on): Likewise.
49354         * modules/regex (Depends-on): Likewise.
49355         * modules/relocatable-prog (Depends-on): Likewise.
49356         * modules/same (Depends-on): Likewise.
49357         * modules/signbit (Depends-on): Likewise.
49358         * modules/strcasestr-simple (Depends-on): Likewise.
49359         * modules/unictype/gen-ctype (Depends-on): Likewise.
49360         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
49361         * modules/uniname/uniname (Depends-on): Likewise.
49362         * modules/unistr/u8-cmp (Depends-on): Likewise.
49363
49364 2008-11-02  Bruno Haible  <bruno@clisp.org>
49365
49366         Mark 'memchr' obsolete.
49367         * modules/memchr (Status, Notice): New sections.
49368         * modules/argp (Depends-on): Add memchr.
49369         * modules/base64 (Depends-on): Likewise.
49370         * modules/c-strcasestr (Depends-on): Likewise.
49371         * modules/chdir-long (Depends-on): Likewise.
49372         * modules/fnmatch (Depends-on): Likewise.
49373         * modules/getsubopt (Depends-on): Likewise.
49374         * modules/git-merge-changelog (Depends-on): Likewise.
49375         * modules/glob (Depends-on): Likewise.
49376         * modules/strcasestr-simple (Depends-on): Likewise.
49377         * modules/strnlen (Depends-on): Likewise.
49378
49379 2008-11-02  Bruno Haible  <bruno@clisp.org>
49380
49381         Mark 'atexit' obsolete.
49382         * modules/atexit (Status, Notice): New sections.
49383         * modules/chdir-long (Depends-on): Add atexit.
49384         * modules/wait-process (Depends-on): Likewise.
49385
49386 2008-11-02  Bruno Haible  <bruno@clisp.org>
49387
49388         * gnulib-tool: New option --with-obsolete.
49389         (func_usage): Document it.
49390         (func_modules_transitive_closure): Drop obsolete dependencies if
49391         incobsolete is not true.
49392         (func_import): Read and save the incobsolete variable to the cache.
49393
49394 2008-11-02  Bruno Haible  <bruno@clisp.org>
49395
49396         * modules/TEMPLATE-EXTENDED: New field 'Status'.
49397         * gnulib-tool: New option --extract-status.
49398         (func_usage): Document it.
49399         (sed_extract_prog): Recognize it.
49400         (func_get_status): New function.
49401
49402 2008-10-30  Simon Josefsson  <simon@josefsson.org>
49403
49404         * modules/sockets (License): Change from LGPL to LGPLv2+.
49405
49406 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49407
49408         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
49409
49410 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49411
49412         * MODULES.html.sh (Support for systems lacking POSIX:2001):
49413         Mention times and sys_times.
49414         * modules/sys_times, modules/sys_times-tests: New modules.
49415         * modules/times, modules/times-tests: Likewise
49416         * m4/sys_times_h.m4: New file.
49417         * lib/sys_times.in.h: Likewise
49418         * lib/times.c: Likewise.
49419         * tests/test-sys_times.c: Likewise.
49420         * tests/test-times.c: Likewise.
49421         * doc/posix-headers/sys_times.texi: Update.
49422         * doc/posix-functions/times.texi: Update.
49423
49424 2008-10-28  Jim Meyering  <meyering@redhat.com>
49425
49426         * modules/tempname (Depends-on): Add lstat.
49427
49428         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
49429
49430 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49431
49432         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
49433         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
49434         using idiom used elsewhere in gnulib.
49435
49436 2008-10-27  Jim Meyering  <meyering@redhat.com>
49437
49438         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
49439
49440 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49441
49442         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
49443         TESTS_ENVIRONMENT, for shell scripts that needs to call built
49444         programs.
49445         * tests/test-argp-2.sh: Use $EXEEXT when needed.
49446
49447 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49448
49449         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
49450
49451 2008-10-27  Bruno Haible  <bruno@clisp.org>
49452
49453         * tests/test-lstat.c: Include <stdio.h>.
49454
49455 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49456
49457         * modules/lstat-tests: New module.
49458         * tests/test-lstat.c: New file.
49459
49460 2008-10-26  Jim Meyering  <meyering@redhat.com>
49461
49462         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
49463
49464 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49465             Bruno Haible  <bruno@clisp.org>
49466
49467         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
49468         * modules/configmake (Include): Add a note that the include must come
49469         after all system headers.
49470         * lib/javaversion.c: Include configmake.h after all other includes.
49471
49472 2008-10-26  Bruno Haible  <bruno@clisp.org>
49473
49474         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
49475         HAVE_STRUCT_RANDOM_DATA to 1.
49476         (gl_STDLIB_H): Simplify.
49477
49478 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49479
49480         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
49481         substitute HAVE_STRUCT_RANDOM_DATA.
49482         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
49483         random_data.
49484         * modules/stdlib (Makefile.am): Substitute
49485         HAVE_STRUCT_RANDOM_DATA.
49486
49487 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49488
49489         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
49490         * doc/gnulib-intro.texi (Copyright): Likewise.
49491
49492 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49493
49494         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
49495         findings.
49496
49497 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
49498             Bruno Haible  <bruno@clisp.org>
49499
49500         * lib/unistd.in.h: Include <winsock2.h>.
49501         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
49502         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
49503         Provide dummy declarations.
49504         (gethostname): Override.
49505         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
49506         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
49507         gl_PREREQ_SYS_H_WINSOCK2.
49508         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
49509         * doc/posix-functions/gethostname.texi: More details.
49510
49511 2008-10-25  Bruno Haible  <bruno@clisp.org>
49512
49513         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
49514         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
49515         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
49516
49517         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
49518         here ...
49519         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
49520         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
49521         gl_UNISTD_H_DEFAULTS.
49522
49523 2008-10-25  Eric Blake  <ebb9@byu.net>
49524
49525         signbit: avoid spurious compiler failure
49526         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
49527         declarations inside function.
49528
49529 2008-10-24  Simon Josefsson  <simon@josefsson.org>
49530             Bruno Haible  <bruno@clisp.org>
49531
49532         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
49533         * modules/random_r (Depends-on): Add stdint.
49534
49535 2008-10-24  Bruno Haible  <bruno@clisp.org>
49536
49537         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
49538         Eggert.
49539         * modules/strerror (License): Likewise.
49540
49541 2008-10-24  Jim Meyering  <meyering@redhat.com>
49542
49543         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
49544         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
49545
49546 2008-10-24  Eric Blake  <ebb9@byu.net>
49547
49548         getgroups: fix compilation when getgroups is available
49549         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
49550         but with <config.h> override of getgroups disabled.
49551
49552 2008-10-24  Simon Josefsson  <simon@josefsson.org>
49553
49554         * doc/gnulib.texi (Header files): Add note about C++ problems.
49555         Explained by Bruno Haible <bruno@clisp.org>.
49556
49557 2008-10-23  Bruno Haible  <bruno@clisp.org>
49558
49559         Define a dummy SA_NODEFER macro on Interix.
49560         * lib/signal.in.h (SA_NODEFER): Define fallback.
49561         Reported by Aleksey Cheusov <cheusov@tut.by> via
49562         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
49563
49564 2008-10-23  Bruno Haible  <bruno@clisp.org>
49565
49566         * modules/freadahead (License): Change to LGPLv2+.
49567         Suggested by Simon Josefsson.
49568
49569 2008-10-23  Jim Meyering  <meyering@redhat.com>
49570
49571         random_r: new module
49572         * modules/random_r: New file.
49573         * m4/random_r.m4: New file.
49574         * lib/random_r.c: New file, from glibc.
49575         * modules/random_r-tests: New file.
49576         * tests/test-random_r.c: New file.
49577         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
49578          Declare.
49579         (RAND_MAX): Define.
49580         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
49581         * modules/stdlib: Substitute them, too.
49582         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
49583         * doc/glibc-functions/initstate_r.texi: Mention the new module.
49584         * doc/glibc-functions/random_r.texi: Likewise.
49585         * doc/glibc-functions/setstate_r.texi: Likewise.
49586         * doc/glibc-functions/srandom_r.texi: Likewise.
49587         * config/srclist.txt: Mention it.
49588
49589 2008-10-23  David Lutterkort  <lutter@redhat.com>
49590
49591         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
49592         link requirement
49593
49594 2008-10-23  Jim Meyering  <meyering@redhat.com>
49595
49596         selinux-h: mark parameters of stub functions as intentionally unused
49597         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
49598         * lib/se-context.in.h: Likewise.
49599
49600 2008-10-22  Simon Josefsson  <simon@josefsson.org>
49601
49602         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
49603
49604 2008-10-22  Simon Josefsson  <simon@josefsson.org>
49605
49606         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
49607
49608 2008-10-22  Eric Blake  <ebb9@byu.net>
49609
49610         glthread/thread: avoid compiler warning
49611         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
49612         Add unreachable abort to silence compiler.
49613
49614 2008-10-22  Eric Blake  <ebb9@byu.net>
49615
49616         netdb: also supply struct addrinfo for cygwin 1.5.x
49617         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
49618         older cygwin.
49619         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
49620         cygwin.
49621         * doc/posix-headers/netdb.texi (netdb.h): Document this.
49622
49623 2008-10-22  Bruno Haible  <bruno@clisp.org>
49624
49625         * users.txt: Update entry about pspp.
49626
49627 2008-10-21  Bruno Haible  <bruno@clisp.org>
49628
49629         Simplification.
49630         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
49631         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
49632
49633         Simplification.
49634         * lib/ioctl.c (ioctl): Don't undefine.
49635         * lib/socket.c (socket): Don't undefine.
49636
49637         Remove unused module indicator macros.
49638         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
49639         GNULIB_$1 as a C macro.
49640
49641         * doc/posix-functions/close.texi: Undo last change.
49642         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
49643         Windows platforms.
49644
49645 2008-10-21  Bruno Haible  <bruno@clisp.org>
49646
49647         Add gethostname() declaration to <unistd.h>.
49648         * lib/unistd.in.h (gethostname): New declaration.
49649         * lib/gethostname.c: Include <unistd.h>.
49650         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
49651         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
49652         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
49653         and HAVE_GETHOSTNAME.
49654         * modules/gethostname (Depends-on): Add unistd.
49655         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49656         (Include): Specify <unistd.h>.
49657         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
49658         HAVE_GETHOSTNAME.
49659         * tests/test-gethostname.c: Include <unistd.h> first.
49660
49661 2008-10-21  Bruno Haible  <bruno@clisp.org>
49662
49663         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
49664         * modules/select-tests (Depends-on): Likewise.
49665         Reported by Simon Josefsson.
49666
49667 2008-10-21  Simon Josefsson  <simon@josefsson.org>
49668
49669         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
49670         * lib/accept.c: New file, based on winsock.c.
49671         * lib/bind.c: New file, based on winsock.c.
49672         * lib/connect.c: New file, based on winsock.c.
49673         * lib/getpeername.c: New file, based on winsock.c.
49674         * lib/getsockname.c: New file, based on winsock.c.
49675         * lib/getsockopt.c: New file, based on winsock.c.
49676         * lib/ioctl.c: New file, based on winsock.c.
49677         * lib/listen.c: New file, based on winsock.c.
49678         * lib/recv.c: New file, based on winsock.c.
49679         * lib/recvfrom.c: New file, based on winsock.c.
49680         * lib/send.c: New file, based on winsock.c.
49681         * lib/sendto.c: New file, based on winsock.c.
49682         * lib/setsockopt.c: New file, based on winsock.c.
49683         * lib/shutdown.c: New file, based on winsock.c.
49684         * lib/socket.c: New file, based on winsock.c.
49685         * lib/w32sock.h: New file, based on winsock.c.
49686         * lib/winsock.c: Remove file.
49687         * modules/accept: Likewise.
49688         * modules/bind: Likewise.
49689         * modules/connect: Likewise.
49690         * modules/getpeername: Likewise.
49691         * modules/getsockname: Likewise.
49692         * modules/getsockopt: Likewise.
49693         * modules/ioctl: Likewise.
49694         * modules/listen: Likewise.
49695         * modules/recv: Likewise.
49696         * modules/recvfrom: Likewise.
49697         * modules/send: Likewise.
49698         * modules/sendto: Likewise.
49699         * modules/setsockopt: Likewise.
49700         * modules/shutdown: Likewise.
49701         * modules/socket: Use socket.c instead of winsock.c.
49702         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
49703         * doc/posix-functions/accept.texi: Doc fix.
49704         * doc/posix-functions/bind.texi: Doc fix.
49705         * doc/posix-functions/close.texi: Doc fix.
49706         * doc/posix-functions/connect.texi: Doc fix.
49707         * doc/posix-functions/getpeername.texi: Doc fix.
49708         * doc/posix-functions/getsockname.texi: Doc fix.
49709         * doc/posix-functions/getsockopt.texi: Doc fix.
49710         * doc/posix-functions/ioctl.texi: Doc fix.
49711         * doc/posix-functions/listen.texi: Doc fix.
49712         * doc/posix-functions/recv.texi: Doc fix.
49713         * doc/posix-functions/recvfrom.texi: Doc fix.
49714         * doc/posix-functions/send.texi: Doc fix.
49715         * doc/posix-functions/sendto.texi: Doc fix.
49716         * doc/posix-functions/setsockopt.texi: Doc fix.
49717         * doc/posix-functions/shutdown.texi: Doc fix.
49718         * doc/posix-functions/socket.texi: Doc fix.
49719
49720 2008-10-20  Bruno Haible  <bruno@clisp.org>
49721
49722         Take into account the role of SIGABRT_COMPAT on Windows 2008.
49723         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
49724         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
49725         as an alias for SIGABRT.
49726         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
49727         (sigaction): Map it to SIGABRT.
49728         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
49729
49730 2008-10-20  Bruno Haible  <bruno@clisp.org>
49731
49732         * lib/fts.c: Don't include lstat.h.
49733         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
49734
49735         Move the lstat() declaration to <sys/stat.h>.
49736         * lib/lstat.h: Remove file.
49737         * lib/sys_stat.in.h: Add special invocation convention.
49738         (lstat): New declaration.
49739         * lib/lstat.c (orig_lstat): New function.
49740         (rpl_lstat): Use orig_lstat instead of lstat.
49741         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
49742         AC_C_INLINE. Set REPLACE_LSTAT.
49743         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
49744         and REPLACE_LSTAT.
49745         * modules/lstat (Files): Remove lib/lstat.h.
49746         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
49747         (Include): Specify <sys/stat.h> instead of lstat.h.
49748         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
49749         REPLACE_LSTAT.
49750         * NEWS: Mention the change.
49751
49752 2008-10-20  Bruno Haible  <bruno@clisp.org>
49753
49754         * modules/posix_spawn-tests: New file.
49755         * tests/test-posix_spawn3.c: New file.
49756
49757 2008-10-20  Bruno Haible  <bruno@clisp.org>
49758
49759         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
49760         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
49761         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
49762         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
49763         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
49764
49765 2008-10-20  Bruno Haible  <bruno@clisp.org>
49766
49767         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
49768         of posix_spawn on AIX 5.3.
49769
49770 2008-10-20  Bruno Haible  <bruno@clisp.org>
49771
49772         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
49773
49774 2008-10-20  Bruno Haible  <bruno@clisp.org>
49775
49776         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
49777         of AC_LANG_PROGRAM.
49778
49779 2008-10-20  Simon Josefsson  <simon@josefsson.org>
49780
49781         * lib/netdb.in.h: Don't define GNU specific constants until they
49782         are supported or needed.  Reported by Bruno Haible
49783         <bruno@clisp.org>.
49784
49785 2008-10-20  Simon Josefsson  <simon@josefsson.org>
49786
49787         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
49788
49789 2008-10-20  Simon Josefsson  <simon@josefsson.org>
49790
49791         * lib/getaddrinfo.h: Remove file.
49792         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
49793         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
49794         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
49795         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
49796         * modules/netdb: Substitute GNULIB_GETADDRINFO.
49797         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
49798         * tests/test-getaddrinfo.c: Likewise.
49799         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
49800         * NEWS: Mention change.
49801
49802 2008-10-19  Bruno Haible  <bruno@clisp.org>
49803
49804         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
49805
49806 2008-10-19  Bruno Haible  <bruno@clisp.org>
49807
49808         * lib/wait-process.c: Include simply <sys/wait.h>.
49809         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
49810         WIFSTOPPED): Remove fallback definitions.
49811         * modules/wait-process (Depends-on): Add sys_wait.
49812
49813         New module 'sys_wait'.
49814         * modules/sys_wait: New file.
49815         * lib/sys_wait.in.h: New file, partially copied from
49816         lib/wait-process.c.
49817         * m4/sys_wait_h.m4: New file.
49818         * doc/posix-headers/sys_wait.texi: Mention the new module.
49819
49820 2008-10-19  Bruno Haible  <bruno@clisp.org>
49821
49822         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
49823
49824 2008-10-19  Bruno Haible  <bruno@clisp.org>
49825
49826         Assume that waitpid() fills an 'int' status, not a 'union wait'.
49827         * lib/wait-process.c (WAIT_T): Remove type.
49828         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
49829         (wait_subprocess): Update.
49830
49831 2008-10-19  Bruno Haible  <bruno@clisp.org>
49832
49833         New module 'atoll'.
49834         * modules/atoll: New file.
49835         * lib/stdlib.in.h (atoll): New declaration.
49836         * lib/atoll.c: New file, from glibc with modifications.
49837         * m4/atoll.m4: New file.
49838         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
49839         HAVE_ATOLL.
49840         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
49841         * doc/posix-functions/atoll.texi: Mention the new module.
49842
49843 2008-10-19  Bruno Haible  <bruno@clisp.org>
49844
49845         Add strtoull() declaration to <stdlib.h>.
49846         * lib/stdlib.in.h (strtoull): New declaration.
49847         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
49848         Set HAVE_STRTOULL.
49849         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
49850         HAVE_STRTOULL.
49851         * modules/strtoull (Depends-on): Add stdlib.
49852         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49853         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
49854         HAVE_STRTOULL.
49855
49856 2008-10-19  Bruno Haible  <bruno@clisp.org>
49857
49858         Add strtoll() declaration to <stdlib.h>.
49859         * lib/stdlib.in.h (strtoll): New declaration.
49860         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
49861         Set HAVE_STRTOLL.
49862         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
49863         HAVE_STRTOLL.
49864         * modules/strtoll (Depends-on): Add stdlib.
49865         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49866         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
49867
49868 2008-10-19  Bruno Haible  <bruno@clisp.org>
49869
49870         * modules/bcopy (Depends-on): Add strings.
49871         (Include): Specify <strings.h>.
49872
49873 2008-10-19  Bruno Haible  <bruno@clisp.org>
49874
49875         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
49876
49877 2008-10-19  Bruno Haible  <bruno@clisp.org>
49878
49879         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
49880         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
49881         mingw.
49882
49883 2008-10-19  Bruno Haible  <bruno@clisp.org>
49884
49885         * lib/atanl.c: Don't include isnanl.h.
49886         * lib/cosl.c: Likewise.
49887         * lib/ldexpl.c: Likewise.
49888         * lib/logl.c: Likewise.
49889         * lib/sinl.c: Likewise.
49890         * lib/sqrtl.c: Likewise.
49891         * lib/tanl.c: Likewise.
49892
49893         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
49894         * lib/isnanf.h: Remove file.
49895         * lib/isnand.h: Remove file.
49896         * lib/isnanl.h: Remove file.
49897         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
49898         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
49899         macros.
49900         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
49901         HAVE_ISNANF, don't define it as a C macro.
49902         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
49903         HAVE_ISNAND, don't define it as a C macro.
49904         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
49905         HAVE_ISNANL, don't define it as a C macro.
49906         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
49907         HAVE_ISNAN[FDL].
49908         * modules/isnanf (Files): Remove lib/isnanf.h.
49909         (Depends-on): Add math.
49910         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
49911         (Include): Specify <math.h> instead of isnanf.h.
49912         * modules/isnand (Files): Remove lib/isnand.h.
49913         (Depends-on): Add math.
49914         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
49915         (Include): Specify <math.h> instead of isnand.h.
49916         * modules/isnanl (Files): Remove lib/isnanl.h.
49917         (Depends-on): Add math.
49918         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
49919         (Include): Specify <math.h> instead of isnanl.h.
49920         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
49921         HAVE_ISNAN[FDL].
49922         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
49923         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
49924         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
49925         * NEWS: Mention the change.
49926
49927 2008-10-18  Bruno Haible  <bruno@clisp.org>
49928
49929         Add getusershell(), setusershell(), endusershell() declarations to
49930         <unistd.h>.
49931         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
49932         declarations.
49933         * lib/getusershell.c: Include unistd.h.
49934         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
49935         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
49936         HAVE_GETUSERSHELL.
49937         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
49938         and HAVE_GETUSERSHELL.
49939         * modules/getusershell (Depends-on): Add unistd, extensions.
49940         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49941         (Include): Specify <unistd.h>.
49942         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
49943         HAVE_GETUSERSHELL.
49944
49945 2008-10-18  Bruno Haible  <bruno@clisp.org>
49946
49947         Add a getloadavg() declaration to <stdlib.h>.
49948         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
49949         getloadavg declaration.
49950         (getloadavg): New declaration.
49951         * lib/getloadavg.c: Include <stdlib.h> first.
49952         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
49953         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
49954         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
49955         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
49956         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
49957         * modules/getloadavg (Depends-on): Add stdlib, extensions.
49958         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49959         (Include): Specify <stdlib.h>.
49960         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
49961         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
49962
49963 2008-10-18  Bruno Haible  <bruno@clisp.org>
49964
49965         * lib/dirchownmod.c: Don't include lchmod.h.
49966
49967         Move the lchmod() declaration to <sys/stat.h>.
49968         * lib/lchmod.h: Remove file.
49969         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
49970         (lchmod): New declaration, moved here from lib/lchown.h.
49971         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
49972         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
49973         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
49974         and HAVE_LCHMOD.
49975         * modules/lchmod (Files): Remove lib/lchmod.h.
49976         (Depends-on): Add sys_stat, extensions.
49977         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
49978         (Include): Specify <sys/stat.h> instead of lchmod.h.
49979         * modules/sys_stat (Depends-on): Add link-warning.
49980         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
49981         definition of GL_LINK_WARNING.
49982         * NEWS: Mention the change.
49983
49984 2008-10-18  Bruno Haible  <bruno@clisp.org>
49985
49986         * lib/fchdir.c: Don't include dirfd.h.
49987         * lib/fts.c: Likewise.
49988         * lib/getcwd.c: Likewise.
49989         * lib/glob.c: Likewise.
49990
49991         Move the dirfd() declaration to <dirent.h>.
49992         * lib/dirfd.h: Remove file.
49993         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
49994         (dirfd): New declaration.
49995         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
49996         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
49997         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
49998         HAVE_DECL_DIRFD.
49999         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
50000         HAVE_DECL_DIRFD.
50001         * modules/dirfd (Files): Remove lib/dirfd.h.
50002         (Depends-on): Add dirent, extensions.
50003         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
50004         (Include): Specify <dirent.h> instead of dirfd.h.
50005         * modules/dirent (Depends-on): Add link-warning.
50006         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
50007         definition of GL_LINK_WARNING.
50008         * NEWS: Mention the change.
50009
50010 2008-10-18  Bruno Haible  <bruno@clisp.org>
50011
50012         Move the euidaccess() declaration to <unistd.h>.
50013         * lib/euidaccess.h: Remove file.
50014         * lib/unistd.in.h (euidaccess): New declaration.
50015         * lib/euidaccess.c: Don't include euidaccess.h.
50016         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
50017         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
50018         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
50019         and HAVE_EUIDACCESS.
50020         * modules/euidaccess (Files): Remove lib/euidaccess.h.
50021         (Depends-on): Add unistd.
50022         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50023         (Include): Specify <unistd.h> instead of euidaccess.h.
50024         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
50025         HAVE_EUIDACCESS.
50026         * NEWS: Mention the change.
50027
50028 2008-10-18  Bruno Haible  <bruno@clisp.org>
50029
50030         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
50031
50032         Move the getdomainname() declaration to <unistd.h>.
50033         * lib/getdomainname.h: Remove file.
50034         * lib/unistd.in.h (getdomainname): New declaration.
50035         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
50036         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
50037         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
50038         HAVE_GETDOMAINNAME.
50039         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50040         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
50041         * modules/getdomainname (Files): Remove lib/getdomainname.h.
50042         (Depends-on): Add unistd, extensions.
50043         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50044         (Includes): Specify <unistd.h> instead of getdomainname.h.
50045         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
50046         HAVE_GETDOMAINNAME.
50047         * NEWS: Mention the change.
50048
50049 2008-10-18  Bruno Haible  <bruno@clisp.org>
50050
50051         * modules/dirent: New file.
50052         * m4/dirent_h.m4: New file.
50053         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
50054         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
50055         * modules/fchdir (Files): Remove lib/dirent.in.h.
50056         (Depends-on): Add dirent.
50057         (Makefile.am): Move rules to modules/dirent.
50058         * doc/posix-headers/dirent.texi: Mention the new module.
50059
50060 2008-10-18  Bruno Haible  <bruno@clisp.org>
50061
50062         Avoid -Wunused-parameter warnings in public gnulib header files.
50063         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
50064         macro.
50065         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
50066
50067 2008-10-18  Bruno Haible  <bruno@clisp.org>
50068
50069         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
50070         * doc/glibc-functions/error.texi: Mention the module 'error'.
50071         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
50072         * doc/glibc-functions/getdomainname.texi: Mention the module
50073         'getdomainname'.
50074         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
50075         * doc/glibc-functions/getpagesize.texi: Mention the module
50076         'getpagesize'.
50077         * doc/glibc-functions/getusershell.texi: Mention the module
50078         'getusershell'.
50079         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
50080         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
50081         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
50082         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
50083         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
50084         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
50085         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
50086         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
50087         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
50088         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
50089         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
50090         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
50091         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
50092         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
50093
50094 2008-10-17  Bruno Haible  <bruno@clisp.org>
50095
50096         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
50097         HP-UX and IRIX, use -0.0L.
50098         * tests/test-ceill.c (minus_zero): Likewise.
50099         * tests/test-floorl.c (minus_zero): Likewise.
50100         * tests/test-frexpl.c (minus_zero): Likewise.
50101         * tests/test-isnan.c (minus_zerol): Likewise.
50102         * tests/test-isnanl.h (minus_zero): Likewise.
50103         * tests/test-ldexpl.c (minus_zero): Likewise.
50104         * tests/test-roundl.c (minus_zero): Likewise.
50105         * tests/test-signbit.c (minus_zerol): Likewise.
50106         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
50107         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
50108         * tests/test-truncl.c (minus_zero): Likewise.
50109         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
50110         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
50111         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
50112         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
50113
50114 2008-10-17  Bruno Haible  <bruno@clisp.org>
50115
50116         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
50117         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
50118         that it gets activated only for gcc >= 3.0.
50119         * lib/dirent.in.h: Likewise.
50120         * lib/errno.in.h: Likewise.
50121         * lib/fcntl.in.h: Likewise.
50122         * lib/float.in.h: Likewise.
50123         * lib/iconv.in.h: Likewise.
50124         * lib/inttypes.in.h: Likewise.
50125         * lib/locale.in.h: Likewise.
50126         * lib/math.in.h: Likewise.
50127         * lib/netdb.in.h: Likewise.
50128         * lib/netinet_in.in.h: Likewise.
50129         * lib/search.in.h: Likewise.
50130         * lib/signal.in.h: Likewise.
50131         * lib/spawn.in.h: Likewise.
50132         * lib/stdarg.in.h: Likewise.
50133         * lib/stdint.in.h: Likewise.
50134         * lib/stdio.in.h: Likewise.
50135         * lib/stdlib.in.h: Likewise.
50136         * lib/string.in.h: Likewise.
50137         * lib/strings.in.h: Likewise.
50138         * lib/sys_file.in.h: Likewise.
50139         * lib/sys_ioctl.in.h: Likewise.
50140         * lib/sys_select.in.h: Likewise.
50141         * lib/sys_socket.in.h: Likewise.
50142         * lib/sys_stat.in.h: Likewise.
50143         * lib/sys_time.in.h: Likewise.
50144         * lib/sysexits.in.h: Likewise.
50145         * lib/time.in.h: Likewise.
50146         * lib/unistd.in.h: Likewise.
50147         * lib/wchar.in.h: Likewise.
50148         * lib/wctype.in.h: Likewise.
50149         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50150
50151 2008-10-17  Jim Meyering  <meyering@redhat.com>
50152
50153         ignore-value: don't depend on inline module
50154         * modules/ignore-value (Depends-on): Remove 'inline'.
50155         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
50156         Suggestion from Bruno Haible.
50157
50158 2008-10-17  Bruno Haible  <bruno@clisp.org>
50159
50160         New implementation of condition variables for Win32.
50161         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
50162         (gl_linked_waitqueue_t): New type.
50163         (gl_cond_t): Use it.
50164         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
50165         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
50166         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
50167         (glthread_cond_init_func, glthread_cond_wait_func,
50168         glthread_cond_timedwait_func, glthread_cond_signal_func,
50169         glthread_cond_broadcast_func, glthread_cond_destroy_func):
50170         Reimplemented on the basis of gl_linked_waitqueue_t.
50171         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
50172         gl_waitqueue_t.
50173         (gl_rwlock_t): Update.
50174         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
50175
50176 2008-10-17  Simon Josefsson  <simon@josefsson.org>
50177
50178         * modules/recvfrom (Depends-on): Add dependency on getpeername.
50179         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50180
50181 2008-10-17  Jim Meyering  <meyering@redhat.com>
50182
50183         ignore-value: new module
50184         * modules/ignore-value: New file.
50185         * lib/ignore-value.h: New file.
50186         * MODULES.html.sh (Compiler warning management): New section,
50187         just for this module.  More to come.
50188
50189 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
50190
50191         open-safer.c: avoid 'signed and unsigned in conditional...' warning
50192         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
50193         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
50194
50195 2008-10-16  Jim Meyering  <meyering@redhat.com>
50196
50197         openat-die.c: avoid 'no previous prototype' warning
50198         * lib/openat-die.c: Include "openat.h".
50199         Reported by Reuben Thomas <rrt@sc3d.org>.
50200
50201 2008-10-16  Simon Josefsson  <simon@josefsson.org>
50202
50203         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
50204         * lib/netdb.in.h: Fix typo.
50205         Reported by Bruno Haible  <bruno@clisp.org>
50206
50207         * lib/netdb.in.h: Include sys/socket.h for platforms without
50208         netdb.h, to get structures like hostent on MinGW.
50209         * modules/netdb (Depends-on): Add sys_socket.
50210
50211 2008-10-15  Simon Josefsson  <simon@josefsson.org>
50212
50213         * modules/netdb, modules/netdb-tests: New file.
50214         * m4/netdb_h.m4: New file.
50215         * lib/netdb.in.h: Add, currently just an empty file pending
50216         definitions.
50217         * tests/test-netdb.c: New file.
50218         * doc/posix-headers/netdb.texi: Mention that we replace it if
50219         needed.
50220         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50221         netdb.
50222
50223 2008-10-15  Simon Josefsson  <simon@josefsson.org>
50224
50225         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
50226         with code.
50227
50228 2008-10-13  Bruno Haible  <bruno@clisp.org>
50229
50230         * lib/glthread/cond.c (glthread_cond_wait_func,
50231         glthread_cond_timedwait_func): Add a comment.
50232
50233 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50234
50235         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
50236         * tests/test-select.c: Likewise,
50237
50238 2008-10-13  Bruno Haible  <bruno@clisp.org>
50239
50240         * lib/glthread/cond.c (glthread_cond_wait_func,
50241         glthread_cond_timedwait_func): Fix variable name.
50242         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50243
50244 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
50245
50246         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
50247         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
50248         struct sockaddr.sa_len.
50249         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
50250
50251 2008-10-13  Simon Josefsson  <simon@josefsson.org>
50252
50253         * build-aux/pmccabe2html: Add css and css_url parameters.
50254
50255 2008-10-12  Bruno Haible  <bruno@clisp.org>
50256
50257         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
50258         calling aclx_get.
50259         Reported by Rainer Tammer <tammer@tammer.net>.
50260
50261 2008-10-12  Bruno Haible  <bruno@clisp.org>
50262
50263         Use msvcrt aware primitives for creation/termination of Win32 threads.
50264         * lib/glthread/thread.c: Include <process.h>.
50265         (glthread_create_func): Use _beginthreadex instead of CreateThread.
50266         (wrapper_func): Update signature.
50267         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
50268
50269 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50270             Bruno Haible  <bruno@clisp.org>
50271
50272         Provide a Win32 implementation of the 'cond' module.
50273         * lib/glthread/cond.h [USE_WIN32]: New implementation.
50274         * lib/glthread/cond.c (glthread_cond_init_func,
50275         glthread_cond_wait_func, glthread_cond_timedwait_func,
50276         glthread_cond_signal_func, glthread_cond_broadcast_func,
50277         glthread_cond_destroy_func) [USE_WIN32]: New functions.
50278         * modules/cond (Dependencies): Add gettimeofday.
50279
50280 2008-10-11  Bruno Haible  <bruno@clisp.org>
50281
50282         Make sleep work on older versions of mingw.
50283         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
50284         only whether it exists.
50285         * doc/posix-functions/sleep.texi: Mention the problem with older
50286         versions of mingw.
50287
50288 2008-10-11  Bruno Haible  <bruno@clisp.org>
50289
50290         New module 'shutdown'.
50291         * modules/shutdown: New file.
50292         * lib/sys_socket.in.h (shutdown): New declaration.
50293         * lib/winsock.c (shutdown): New function.
50294         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
50295         GNULIB_SHUTDOWN.
50296         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
50297         * doc/posix-functions/shutdown.texi: Document the new module.
50298
50299 2008-10-11  Jim Meyering  <meyering@redhat.com>
50300
50301         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
50302
50303 2008-10-11  Bruno Haible  <bruno@clisp.org>
50304
50305         New module 'fclose'.
50306         * modules/fclose: New file.
50307         * lib/stdio.in.h (fclose): New declaration.
50308         * lib/fclose.c: New file.
50309         * m4/fclose.m4: New file.
50310         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
50311         REPLACE_FCLOSE.
50312         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
50313         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
50314         REPLACE_FCLOSE.
50315         * modules/close (Depends-on): fclose.
50316         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
50317
50318 2008-10-11  Bruno Haible  <bruno@clisp.org>
50319
50320         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
50321         set errno and don't call _close.
50322
50323 2008-10-10  Bruno Haible  <bruno@clisp.org>
50324
50325         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
50326         ACL, not afterwards. Fixes test failure on Cygwin.
50327
50328 2008-10-09  Ben Pfaff  <blp@gnu.org>
50329
50330         * build-aux/announce-gen: Fix gnulib version related part of usage
50331         message.  Die with a useful error message if no tarballs are
50332         found.
50333
50334 2008-10-10  Jim Meyering  <meyering@redhat.com>
50335
50336         bootstrap: use git's --depth=N option only if it's supported
50337         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
50338         recognize the --depth option.  Reported by Pádraig Brady.
50339
50340 2008-10-09  Bruno Haible  <bruno@clisp.org>
50341
50342         New module 'ioctl'.
50343         * modules/ioctl: New file.
50344         * lib/sys_socket.in.h (ioctl): Remove declaration.
50345         * lib/winsock.c: Include <sys/ioctl.h>.
50346         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
50347         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
50348         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
50349         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
50350         * doc/posix-functions/ioctl.texi: Mention the new module.
50351
50352 2008-10-09  Bruno Haible  <bruno@clisp.org>
50353
50354         New module 'sys_ioctl'.
50355         * lib/sys_ioctl.in.h: New file.
50356         * m4/sys_ioctl_h.m4: New file.
50357         * modules/sys_ioctl: New file.
50358         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
50359
50360 2008-10-09  Bruno Haible  <bruno@clisp.org>
50361
50362         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
50363         * lib/winsock.c: Include <stdarg.h>.
50364         (rpl_ioctl): Change to second argument 'int' and then varargs.
50365
50366 2008-10-09  Bruno Haible  <bruno@clisp.org>
50367
50368         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
50369         when the sys_socket module is present and the system has <winsock2.h>.
50370
50371 2008-10-09  Bruno Haible  <bruno@clisp.org>
50372
50373         * doc/posix-functions/close.texi: Mention module 'close' instead of
50374         module 'sys_socket'.
50375
50376 2008-10-09  Bruno Haible  <bruno@clisp.org>
50377
50378         * doc/glibc-headers/sys_ioctl.texi: New file.
50379         * doc/gnulib.texi: Include it.
50380
50381 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50382             Bruno Haible  <bruno@clisp.org>
50383
50384         Combine the two replacements of 'close'.
50385         * lib/sys_socket.in.h (close): Define to a reminder to include
50386         <unistd.h>.
50387         (_gl_close_fd_maybe_socket): New declaration.
50388         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
50389         * lib/winsock.c (close): Remove undefinition.
50390         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
50391         needed for the gnulib module 'close'.
50392         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
50393         define to an error symbol or to a warning, if suitable.
50394         * lib/close.c: Include <sys/socket.h>.
50395         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
50396         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
50397         UNISTD_H_HAVE_WINSOCK2_H.
50398         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
50399         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50400         UNISTD_H_HAVE_WINSOCK2_H.
50401         * modules/sys_socket (Files): Add m4/unistd_h.m4.
50402         (configure.ac): Set a module indicator.
50403         (Makefile.am): Substitute GNULIB_CLOSE.
50404         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
50405         * modules/poll-tests (Depends-on): Add close.
50406         * modules/select-tests (Depends-on): Likewise.
50407
50408 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50409             Bruno Haible  <bruno@clisp.org>
50410
50411         New module 'close'.
50412         * modules/close: New file.
50413         * lib/unistd.in.h (close): Move declaration out of the
50414         FCHDIR_REPLACEMENT scope.
50415         (_gl_unregister_fd): New declaration.
50416         * lib/close.c: New file.
50417         * lib/fchdir.c (rpl_close): Remove function.
50418         * m4/close.m4: New file.
50419         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
50420         close.
50421         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
50422         REPLACE_CLOSE.
50423         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
50424         REPLACE_CLOSE.
50425         * modules/fchdir (Depends-on): Add close.
50426
50427 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50428             Bruno Haible  <bruno@clisp.org>
50429
50430         * lib/fcntl.in.h (open): Simplify conditionals.
50431         (_gl_register_fd): New declaration.
50432         * lib/fchdir.c (rpl_open): Remove function.
50433         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
50434         also.
50435         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
50436         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
50437         open.
50438
50439 2008-10-09  Jim Meyering  <meyering@redhat.com>
50440
50441         GNUmakefile: use the more name-space-friendly "_version"
50442         * top/GNUmakefile (_dummy): Update.
50443         (_version): Rename from "version".
50444
50445 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50446             Bruno Haible  <bruno@clisp.org>
50447
50448         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
50449         rpl_close.
50450         (_gl_register_fd): New function, extracted from rpl_open.
50451         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
50452         (rpl_open, rpl_opendir): Use _gl_register_fd.
50453
50454 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50455
50456         Fix organization of 'open' replacement.
50457         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
50458         (gl_FUNC_OPEN): Use it.
50459         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
50460
50461 2008-10-08  Bruno Haible  <bruno@clisp.org>
50462
50463         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
50464
50465 2008-10-08  Simon Josefsson  <simon@josefsson.org>
50466
50467         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
50468         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
50469         listen).
50470
50471 2008-10-08  Eric Blake  <ebb9@byu.net>
50472
50473         GNUmakefile: add 'make version' target
50474         * top/GNUmakefile (_curr-ver): Split version update rules...
50475         (version): ...into a target.
50476
50477 2008-10-07  Bruno Haible  <bruno@clisp.org>
50478
50479         Use a more portable replacement expression for -0.0L.
50480         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
50481         instead of -0.0L. Fix m4 quotation.
50482
50483         * tests/test-signbit.c: Include <float.h>.
50484         (minus_zero): New variable.
50485         (test_signbitl): Use minus_zero instead of -zero.
50486         * modules/signbit-tests (Depends-on): Add float.
50487
50488         * tests/test-ceill.c: Include <float.h>.
50489         (zero): Remove variable.
50490         (minus_zero): New variable.
50491         (main): Use minus_zero instead of -zero.
50492         * modules/ceill-tests (Depends-on): Add float.
50493
50494         * tests/test-floorl.c: Include <float.h>.
50495         (zero): Remove variable.
50496         (minus_zero): New variable.
50497         (main): Use minus_zero instead of -zero.
50498         * modules/floorl-tests (Depends-on): Add float.
50499
50500         * tests/test-roundl.c: Include <float.h>.
50501         (zero): Remove variable.
50502         (minus_zero): New variable.
50503         (main): Use minus_zero instead of -zero.
50504         * modules/roundl-tests (Depends-on): Add float.
50505
50506         * tests/test-truncl.c: Include <float.h>.
50507         (zero): Remove variable.
50508         (minus_zero): New variable.
50509         (main): Use minus_zero instead of -zero.
50510         * modules/truncl-tests (Depends-on): Add float.
50511
50512         * tests/test-frexpl.c (zero): Remove variable.
50513         (minus_zero): New variable.
50514         (main): Use minus_zero instead of -zero.
50515         * modules/frexpl-tests (Depends-on): Add float.
50516
50517         * tests/test-isnan.c (zerol): Remove variable.
50518         (minus_zerol): New variable.
50519         (test_long_double): Use minus_zerol instead of -zerol.
50520         * modules/isnan-tests (Depends-on): Add float.
50521
50522         * tests/test-isnanl.h (zero): Remove variable.
50523         (minus_zero): New variable.
50524         (main): Use minus_zero instead of -zero.
50525         * modules/isnanl-nolibm-tests (Depends-on): Add float.
50526         * modules/isnanl-tests (Depends-on): Add float.
50527
50528         * tests/test-ldexpl.c (zero): Remove variable.
50529         (minus_zero): New variable.
50530         (main): Use minus_zero instead of -zero.
50531         * modules/ldexpl-tests (Depends-on): Add float.
50532
50533         * tests/test-snprintf-posix.h (zerol): Remove variable.
50534         (minus_zerol): New variable.
50535         (test_function): Use minus_zerol instead of -zerol.
50536         * modules/snprintf-posix-tests (Depends-on): Add float.
50537         * modules/vsnprintf-posix-tests (Depends-on): Add float.
50538
50539         * tests/test-sprintf-posix.h (zerol): Remove variable.
50540         (minus_zerol): New variable.
50541         (test_function): Use minus_zerol instead of -zerol.
50542         * modules/sprintf-posix-tests (Depends-on): Add float.
50543         * modules/vsprintf-posix-tests (Depends-on): Add float.
50544
50545         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
50546         (minus_zerol): New variable.
50547         (test_function): Use minus_zerol instead of -zerol.
50548         * modules/vasnprintf-posix-tests (Depends-on): Add float.
50549
50550         * tests/test-vasprintf-posix.c (zerol): Remove variable.
50551         (minus_zerol): New variable.
50552         (test_function): Use minus_zerol instead of -zerol.
50553         * modules/vasprintf-posix-tests (Depends-on): Add float.
50554
50555 2008-10-07  Simon Josefsson  <simon@josefsson.org>
50556
50557         * MODULES.html.sh (Support for building documentation): Mention
50558         pmccabe2html.  Sort entries.
50559
50560         Add pmccabe2html module, from gnupdf.
50561         * build-aux/pmccabe.css: New file.
50562         * build-aux/pmccabe2html: New file.
50563         * m4/pmccabe2html.m4: New file.
50564         * modules/pmccabe2html: New file.
50565
50566 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
50567
50568         flock: new module
50569         * MODULES.html.sh: Add to list of modules.
50570         * lib/flock.c: flock implementation for Windows and Unix systems
50571         which have fcntl.
50572         * doc/glibc-functions/flock.texi: Update documentation.
50573         * lib/sys_file.in.h: <sys/file.h> header file.
50574         * m4/flock.m4: M4 macros.
50575         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
50576         * modules/flock: flock module.
50577         * modules/flock-tests: flock tests module.
50578         * modules/sys_file: sys/file.h module.
50579         * tests/test-flock.c: test suite for flock.
50580
50581 2008-10-06  Jim Meyering  <meyering@redhat.com>
50582
50583         bootstrap: check for LT_INIT more portably still ;-)
50584         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
50585         Spotted by Bruno Haible.
50586
50587 2008-10-06  Eric Blake  <ebb9@byu.net>
50588
50589         test-signbit: avoid tripping Irix cc bug on -0.0L
50590         * tests/test-signbit.c (minus_zerol): Delete, and replace with
50591         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
50592         entire testsuite consistent and avoids an Irix 6.2 bug.
50593
50594 2008-10-05  Bruno Haible  <bruno@clisp.org>
50595             Jim Meyering  <jim@meyering.net>
50596
50597         Add an option for ignoring EPIPE during close_stdout.
50598         * lib/closeout.h: Include <stdbool.h>.
50599         (close_stdout_set_ignore_EPIPE): New declaration.
50600         * lib/closeout.c: Include <stdbool.h>.
50601         (ignore_EPIPE): New variable.
50602         (close_stdout_set_ignore_EPIPE): New function.
50603         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
50604         * lib/close-stream.c (close_stream): Mention the possible EPIPE
50605         failure.
50606         * modules/closeout (Depends-on): Add stdbool.
50607
50608 2008-10-05  Bruno Haible  <bruno@clisp.org>
50609
50610         * modules/accept: New file.
50611         * modules/bind: New file.
50612         * modules/connect: New file.
50613         * modules/getpeername: New file.
50614         * modules/getsockname: New file.
50615         * modules/getsockopt: New file.
50616         * modules/listen: New file.
50617         * modules/recv: New file.
50618         * modules/recvfrom: New file.
50619         * modules/send: New file.
50620         * modules/sendto: New file.
50621         * modules/setsockopt: New file.
50622         * modules/socket: New file.
50623         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
50624         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
50625         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
50626         the particular module is requested. Add a link warning when the
50627         particular module is not requested.
50628         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
50629         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
50630         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
50631         the particular module is requested.
50632         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
50633         gl_SYS_SOCKET_H_DEFAULTS): New macros.
50634         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
50635         * modules/sys_socket (Depends-on): Add link-warning.
50636         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
50637         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
50638         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
50639         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
50640         GL_LINK_WARNING.
50641         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
50642         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
50643         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
50644         * doc/posix-functions/getpeername.texi: Mention the new module
50645         'getpeername'.
50646         * doc/posix-functions/getsockname.texi: Mention the new module
50647         'getsockname'.
50648         * doc/posix-functions/getsockopt.texi: Mention the new module
50649         'getsockopt'.
50650         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
50651         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
50652         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
50653         * doc/posix-functions/send.texi: Mention the new module 'send'.
50654         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
50655         * doc/posix-functions/setsockopt.texi: Mention the new module
50656         'setsockopt'.
50657         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
50658         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
50659         listen, connect, accept.
50660         * modules/select-tests (Depends-on): Likewise.
50661
50662 2008-10-05  Bruno Haible  <bruno@clisp.org>
50663
50664         * lib/winsock.c (strerror): Remove unused #undef.
50665         (rpl_close): Remove unused local variable.
50666
50667         * modules/sys_socket (Depends-on); Add errno.
50668
50669 2008-10-05  Bruno Haible  <bruno@clisp.org>
50670
50671         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
50672         (select): Add a link warning when the 'select' module is not used.
50673         * modules/sys_select (Depends-on): Add link-warning.
50674         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
50675         Suggested by Paolo Bonzini.
50676
50677 2008-10-05  Jim Meyering  <meyering@redhat.com>
50678
50679         bootstrap: check for LT_INIT more portably
50680         * build-aux/bootstrap: Avoid using grep -E, since it's not
50681         portable enough.  Suggestion from Bruno Haible.
50682
50683 2008-10-05  Bruno Haible  <bruno@clisp.org>
50684
50685         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
50686         as being fixed by gnulib.
50687
50688 2008-10-05  Bruno Haible  <bruno@clisp.org>
50689
50690         * modules/select-tests: New file, mostly copied from
50691         modules/sys_select-tests.
50692         * tests/test-select.c: New file, mostly copied from
50693         tests/test-sys_select.c.
50694         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
50695         * modules/sys_select-tests (Depends-on): Remove all dependencies.
50696         (Makefile.am): Remove test_sys_select_LDADD.
50697
50698         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
50699         to an undefined symbol, for an error message.
50700         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
50701         (gl_SYS_SELECT_H_DEFAULTS): New macro.
50702         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
50703         winsock-select.c here.
50704         * modules/sys_select (Files): Remove lib/winsock-select.c.
50705         (Depends-on): Remove alloca.
50706         (Makefile.am): Substitute GNULIB_SELECT.
50707         * modules/select: New file.
50708         * doc/posix-functions/select.texi: Update.
50709
50710 2008-10-05  Bruno Haible  <bruno@clisp.org>
50711
50712         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
50713         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
50714         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
50715         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
50716         getdtablesize.
50717         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
50718         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
50719
50720 2008-10-05  Bruno Haible  <bruno@clisp.org>
50721
50722         * modules/getdtablesize-tests: New file.
50723         * tests/test-getdtablesize.c: New file.
50724
50725         New module 'getdtablesize'.
50726         * lib/unistd.in.h (getdtablesize): New declaration.
50727         * lib/getdtablesize.c: New file.
50728         * m4/getdtablesize.m4: New file.
50729         * modules/getdtablesize: New file.
50730         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50731         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
50732         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
50733         HAVE_GETDTABLESIZE.
50734         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
50735
50736 2008-10-05  Bruno Haible  <bruno@clisp.org>
50737
50738         * modules/sched (Makefile.am): Fix typo.
50739         Reported by Simon Josefsson.
50740
50741 2008-10-05  Jim Meyering  <meyering@redhat.com>
50742
50743         bootstrap: check for LT_INIT, too
50744         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
50745         are deprecated.  Suggestion from Ralf Wildenhues.
50746
50747 2008-10-05  Bruno Haible  <bruno@clisp.org>
50748
50749         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
50750         overriding them by ours.
50751         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
50752
50753 2008-10-05  Jim Meyering  <meyering@redhat.com>
50754
50755         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
50756         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
50757         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
50758
50759 2008-10-04  Bruno Haible  <bruno@clisp.org>
50760
50761         * modules/dup2 (License): Change to LGPLv2+.
50762         * modules/sleep (License): Likewise.
50763         * modules/perror (License): Likewise.
50764         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
50765         Blake.
50766         * modules/signal (License): Likewise.
50767         * modules/sigprocmask (License): Likewise.
50768         * modules/raise (License): Change to LGPLv2+, with approval by Jim
50769         Meyering.
50770
50771 2008-10-04  Bruno Haible  <bruno@clisp.org>
50772
50773         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
50774         Reported by Rainer Tammer <tammer@tammer.net>.
50775
50776 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
50777             Bruno Haible  <bruno@clisp.org>
50778
50779         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
50780         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
50781         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
50782
50783 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
50784
50785         filevercmp: new module
50786         * lib/filevercmp.h: New function filevercmp comparing version strings.
50787         * lib/filevercmp.c: Implementation of filevercmp function.
50788         * modules/filevercmp: Module metadata.
50789         * tests/test-filevercmp.c: Unit test for new module.
50790         * modules/filevercmp-tests: Unit test metadata.
50791         * MODULES.html.sh: Add filevercmp module.
50792
50793 2008-10-03  Bruno Haible  <bruno@clisp.org>
50794
50795         * lib/c-ctype.h: Add comment.
50796         Reported by Jim Meyering.
50797
50798 2008-10-02  Bruno Haible  <bruno@clisp.org>
50799
50800         * modules/posix_spawn-internal (Depends-on): Add 'open'.
50801
50802 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
50803
50804         * build-aux/bootstrap: Allow renaming bootstrap, and change the
50805         name of bootstrap.conf accordingly.
50806
50807 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
50808
50809         * build-aux/bootstrap: Install git-merge-changelog configuration
50810         items into .gitconfig if needed.
50811
50812 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
50813
50814         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
50815         git repository, and initialize/update it accordingly.
50816
50817 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
50818
50819         * modules/fsync-tests: New file.
50820         * tests/test-fsync.c: New file.
50821
50822         New module 'fsync'.
50823         * lib/fsync.c: New file.
50824         * m4/fsync.m4: New file.
50825         * modules/fsync: New file.
50826         * lib/unistd.in.h (fsync): New declaration.
50827         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
50828         GNULIB_FSYNC and HAVE_FSYNC.
50829         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
50830         * MODULES.html.sh (posix_functions): Add fsync.
50831         * doc/posix-functions/fsync.texi: Mention the new module.
50832
50833 2008-10-02  Jim Meyering  <meyering@redhat.com>
50834
50835         fts.c: sync with similar code from coreutils' remove.c
50836         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
50837         Guard also with "#if defined __linux__", since for now at least,
50838         this code is Linux-kernel-specific.
50839
50840 2008-10-02  Jim Meyering  <meyering@redhat.com>
50841
50842         fts: bug fixes
50843         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
50844         Include <sys/vfs.h>, not <sys/statfs.h>.
50845
50846         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
50847         Include <sys/vfs.h>, not <sys/statfs.h>.
50848
50849 2008-10-01  Bruno Haible  <bruno@clisp.org>
50850
50851         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
50852         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
50853         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
50854         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
50855         * doc/posix-functions/posix_spawnp.texi: Likewise.
50856         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
50857         whether posix_spawn actually works.
50858         * m4/pipe.m4 (gl_PIPE): Likewise.
50859         * modules/execute (Files): Add m4/posix_spawn.m4.
50860         * modules/pipe (Files): Add m4/posix_spawn.m4.
50861         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
50862
50863 2008-10-01  Jim Meyering  <meyering@redhat.com>
50864
50865         remove trailing spaces
50866         * NEWS: Likewise.
50867         * lib/poll.c (poll): Likewise.
50868         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
50869         * lib/winsock.c (rpl_close): Likewise.
50870         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
50871         * modules/yield: Likewise.
50872         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
50873         * tests/test-sys_select.c (connect_to_socket): Likewise.
50874
50875         fts.c: adjust a new interface to be more generally useful
50876         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
50877         (fts_build): Adjust caller.
50878
50879 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50880
50881         * modules/cond-tests: New file.
50882         * tests/test-cond.c: New file.
50883
50884 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50885             Bruno Haible  <bruno@clisp.org>
50886
50887         * modules/cond (Dependencies): Add errno, time.
50888         * lib/glthread/cond.h: Include <time.h>.
50889         (gl_cond_define, gl_cond_define_initialized): Use the same definition
50890         across platforms.
50891
50892 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50893             Bruno Haible  <bruno@clisp.org>
50894
50895         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
50896
50897 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50898             Bruno Haible  <bruno@clisp.org>
50899
50900         * modules/tls-tests (Depends-on): Add thread, yield.
50901         (configure.ac): Remove all checks.
50902         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
50903         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
50904         gl_thread_self): Remove definitions. Include glthread/thread.h and
50905         glthread/yield.h instead.
50906         (test_tls): Pass an additional NULL argument to gl_thread_join.
50907
50908 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50909             Bruno Haible  <bruno@clisp.org>
50910
50911         * modules/lock-tests (Depends-on): Add thread, yield.
50912         (configure.ac): Remove all checks.
50913         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
50914         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
50915         gl_thread_self): Remove definitions. Include glthread/thread.h and
50916         glthread/yield.h instead.
50917         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
50918         additional NULL argument to gl_thread_join.
50919
50920 2008-09-30  Bruno Haible  <bruno@clisp.org>
50921
50922         Fix the Win32 implementation of the 'thread' module.
50923         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
50924         pointer type.
50925         (gl_thread_self): Invoke gl_thread_self_func.
50926         (gl_thread_self_func): New declaration.
50927         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
50928         (do_init_self_key, init_self_key): New functions.
50929         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
50930         Remove some fields.
50931         (running_threads, running_lock): Remove variables.
50932         (get_current_thread_handle): New function.
50933         (gl_thread_self_func, wrapper_func, glthread_create_func,
50934         glthread_join_func, gl_thread_exit_func): Largely rewritten and
50935         simplified.
50936
50937 2008-09-30  Bruno Haible  <bruno@clisp.org>
50938
50939         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
50940         files.
50941
50942 2008-09-30  Jim Meyering  <meyering@redhat.com>
50943
50944         fts.m4: correct the test for statfs.f_type
50945         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
50946         when checking for statfs.f_type.
50947
50948 2008-09-15  Simon Josefsson  <simon@josefsson.org>
50949
50950         tests: avoid some compiler warnings
50951         * tests/test-memchr.c (main): Pass NULL indirectly.
50952         * tests/test-getdate.c (main): Remove unused variable 'ret'.
50953
50954 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
50955
50956         getdate.y: disallow countable dayshifts like "4 yesterday ago"
50957         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
50958         exactly specified dayshifts.
50959         (dayshift): New rule.
50960         (rel): Add dayshift.
50961         (relative_time_table) [tomorrow, yesterday, today, now]:
50962         Use tDAY_SHIFT in place of tDAY_UNIT.
50963         * tests/test-getdate.c: Add tests for now-disallowed countable
50964         dayshifts, e.g., "4 yesterday ago".
50965
50966 2008-09-29  Bruno Haible  <bruno@clisp.org>
50967
50968         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
50969         * tests/test-posix_spawn1.in.sh: Renamed from
50970         tests/test-posix_spawn.in.sh.
50971         * tests/test-posix_spawn2.c: New file.
50972         * tests/test-posix_spawn2.in.sh: New file.
50973         * modules/posix_spawnp-tests (Files): Update.
50974         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
50975
50976 2008-09-29  Bruno Haible  <bruno@clisp.org>
50977
50978         Propagate effects of putenv/setenv/unsetenv to child processes.
50979         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
50980         * lib/pipe.c (create_pipe): Likewise.
50981
50982 2008-09-29  Bruno Haible  <bruno@clisp.org>
50983
50984         Enable use of shell scripts as executables in mingw.
50985         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
50986         run the program as a shell script.
50987         * lib/pipe.c (create_pipe): Likewise.
50988         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
50989         resulting array.
50990
50991 2008-09-29  Eric Blake  <ebb9@byu.net>
50992
50993         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
50994
50995 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
50996
50997         * doc/posix-functions/accept.texi: Update mingw problems.
50998         * doc/posix-functions/bind.texi: Update mingw problems.
50999         * doc/posix-functions/close.texi: Update mingw problems.
51000         * doc/posix-functions/connect.texi: Update mingw problems.
51001         * doc/posix-functions/getpeername.texi: Update mingw problems.
51002         * doc/posix-functions/getsockname.texi: Update mingw problems.
51003         * doc/posix-functions/getsockopt.texi: Update mingw problems.
51004         * doc/posix-functions/ioctl.texi: Update mingw problems.
51005         * doc/posix-functions/listen.texi: Update mingw problems.
51006         * doc/posix-functions/recv.texi: Update mingw problems.
51007         * doc/posix-functions/recvfrom.texi: Update mingw problems.
51008         * doc/posix-functions/select.texi: Update mingw problems.
51009         * doc/posix-functions/send.texi: Update mingw problems.
51010         * doc/posix-functions/sendto.texi: Update mingw problems.
51011         * doc/posix-functions/setsockopt.texi: Update mingw problems.
51012         * doc/posix-functions/socket.texi: Update mingw problems.
51013
51014 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
51015             Bruno Haible  <bruno@clisp.org>
51016
51017         * lib/sys_select.in.h: Include sys/time.h.
51018         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
51019         * modules/sys_select: Depend on sys_time.
51020         * tests/test-sys_select.c: Test that sys/select.h defines struct
51021         timeval fully.
51022
51023 2008-09-29  Bruno Haible  <bruno@clisp.org>
51024
51025         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
51026         * lib/sys_select.in.h: Likewise.
51027
51028 2008-09-29  Bruno Haible  <bruno@clisp.org>
51029
51030         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
51031
51032 2008-09-29  Bruno Haible  <bruno@clisp.org>
51033
51034         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
51035         Set LIBSOCKET instead of augmenting LIBS.
51036         * modules/sockets (Link): New section.
51037         * modules/sockets-tests (test_sockets_LDADD): New variable.
51038         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
51039         * modules/poll-tests (test_poll_LDADD): New variable.
51040         * NEWS: Document the change.
51041
51042 2008-09-29  Bruno Haible  <bruno@clisp.org>
51043
51044         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
51045         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
51046         ARPA_INET_H directly.
51047         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
51048
51049 2008-09-28  Bruno Haible  <bruno@clisp.org>
51050
51051         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
51052         from gl_HEADER_SYS_SOCKET.
51053         (gl_HEADER_SYS_SOCKET): Invoke it.
51054         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51055
51056 2008-09-28  Bruno Haible  <bruno@clisp.org>
51057
51058         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
51059         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
51060         Needed on OSF/1 4.0.
51061
51062 2008-09-28  Bruno Haible  <bruno@clisp.org>
51063
51064         Override open more carefully.
51065         * lib/open.c (orig_open): New function.
51066         (rpl_open): Use orig_open instead of open.
51067         * lib/fcntl.in.h: Add special invocation convention.
51068         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
51069         (gl_FUNC_OPEN): Invoke it.
51070
51071         Override freopen more carefully.
51072         * lib/freopen.c (orig_freopen): New function.
51073         (rpl_freopen): Use orig_freopen instead of freopen.
51074         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
51075         (gl_FUNC_FREOPEN): Invoke it.
51076
51077         Override fopen more carefully.
51078         * lib/fopen.c (orig_fopen): New function.
51079         (rpl_fopen): Use orig_fopen instead of fopen.
51080         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
51081         (gl_FUNC_FOPEN): Invoke it.
51082         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
51083
51084 2008-09-28  Bruno Haible  <bruno@clisp.org>
51085
51086         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
51087         SIGPIPE.
51088
51089 2008-09-28  Bruno Haible  <bruno@clisp.org>
51090
51091         * tests/test-sigaction.c (handler, main): Disable the check whether
51092         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
51093         glibc systems with LinuxThreads.
51094
51095 2008-09-28  Bruno Haible  <bruno@clisp.org>
51096
51097         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
51098
51099         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
51100         with AIX xlc.
51101         * lib/fcntl.in.h (open): Likewise.
51102         Reported by Rainer Tammer <tammer@tammer.net>.
51103
51104 2008-09-28  Bruno Haible  <bruno@clisp.org>
51105
51106         * modules/posix_spawnp-tests: New file.
51107         * tests/test-posix_spawn.c: New file.
51108         * tests/test-posix_spawn.in.sh: New file.
51109
51110         New module 'posix_spawnp'.
51111         * modules/posix_spawnp: New file.
51112         * lib/spawnp.c: New file, from GNU libc with modifications.
51113         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
51114
51115         New module 'posix_spawn'.
51116         * modules/posix_spawn: New file.
51117         * lib/spawn.c: New file, from GNU libc with modifications.
51118         * doc/posix-functions/posix_spawn.texi: Mention the new module.
51119
51120         New module 'posix_spawnattr_destroy'.
51121         * modules/posix_spawnattr_destroy: New file.
51122         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
51123         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
51124         module.
51125
51126         New module 'posix_spawnattr_setsigmask'.
51127         * modules/posix_spawnattr_setsigmask: New file.
51128         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
51129         modifications.
51130         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
51131         new module.
51132
51133         New module 'posix_spawnattr_getsigmask'.
51134         * modules/posix_spawnattr_getsigmask: New file.
51135         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
51136         modifications.
51137         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
51138         new module.
51139
51140         New module 'posix_spawnattr_setsigdefault'.
51141         * modules/posix_spawnattr_setsigdefault: New file.
51142         * lib/spawnattr_setdefault.c: New file, from GNU libc with
51143         modifications.
51144         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
51145         new module.
51146
51147         New module 'posix_spawnattr_getsigdefault'.
51148         * modules/posix_spawnattr_getsigdefault: New file.
51149         * lib/spawnattr_getdefault.c: New file, from GNU libc with
51150         modifications.
51151         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
51152         new module.
51153
51154         New module 'posix_spawnattr_setschedpolicy'.
51155         * modules/posix_spawnattr_setschedpolicy: New file.
51156         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
51157         modifications.
51158         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
51159         new module.
51160
51161         New module 'posix_spawnattr_getschedpolicy'.
51162         * modules/posix_spawnattr_getschedpolicy: New file.
51163         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
51164         modifications.
51165         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
51166         new module.
51167
51168         New module 'posix_spawnattr_setschedparam'.
51169         * modules/posix_spawnattr_setschedparam: New file.
51170         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
51171         modifications.
51172         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
51173         new module.
51174
51175         New module 'posix_spawnattr_getschedparam'.
51176         * modules/posix_spawnattr_getschedparam: New file.
51177         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
51178         modifications.
51179         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
51180         new module.
51181
51182         New module 'posix_spawnattr_setpgroup'.
51183         * modules/posix_spawnattr_setpgroup: New file.
51184         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
51185         modifications.
51186         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
51187         module.
51188
51189         New module 'posix_spawnattr_getpgroup'.
51190         * modules/posix_spawnattr_getpgroup: New file.
51191         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
51192         modifications.
51193         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
51194         module.
51195
51196         New module 'posix_spawnattr_setflags'.
51197         * modules/posix_spawnattr_setflags: New file.
51198         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
51199         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
51200         module.
51201
51202         New module 'posix_spawnattr_getflags'.
51203         * modules/posix_spawnattr_getflags: New file.
51204         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
51205         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
51206         module.
51207
51208         New module 'posix_spawnattr_init'.
51209         * modules/posix_spawnattr_init: New file.
51210         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
51211         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
51212         module.
51213
51214         New module 'posix_spawn_file_actions_destroy'.
51215         * modules/posix_spawn_file_actions_destroy: New file.
51216         * lib/spawn_faction_destroy.c: New file, from GNU libc with
51217         modifications.
51218         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
51219         the new module.
51220
51221         New module 'posix_spawn_file_actions_addopen'.
51222         * modules/posix_spawn_file_actions_addopen: New file.
51223         * lib/spawn_faction_addopen.c: New file, from GNU libc with
51224         modifications.
51225         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
51226         the new module.
51227
51228         New module 'posix_spawn_file_actions_adddup2'.
51229         * modules/posix_spawn_file_actions_adddup2: New file.
51230         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
51231         modifications.
51232         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
51233         the new module.
51234
51235         New module 'posix_spawn_file_actions_addclose'.
51236         * modules/posix_spawn_file_actions_addclose: New file.
51237         * lib/spawn_faction_addclose.c: New file, from GNU libc with
51238         modifications.
51239         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
51240         the new module.
51241
51242         New module 'posix_spawn_file_actions_init'.
51243         * modules/posix_spawn_file_actions_init: New file.
51244         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
51245         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
51246         new module.
51247
51248         New module 'posix_spawn-internal'.
51249         * modules/posix_spawn-internal: New file.
51250         * lib/spawn_int.h: New file, from GNU libc with modifications.
51251         * lib/spawni.c: New file, from GNU libc with modifications.
51252         * m4/posix_spawn.m4: New file.
51253
51254         New module 'spawn'.
51255         * modules/spawn: New file.
51256         * lib/spawn.in.h: New file, from GNU libc with modifications.
51257         * m4/spawn_h.m4: New file.
51258         * doc/posix-headers/spawn.texi: Mention the new module.
51259
51260 2008-09-28  Bruno Haible  <bruno@clisp.org>
51261
51262         * modules/sched-tests: New file.
51263         * tests/test-sched.c: New file.
51264
51265         New module 'sched'.
51266         * modules/sched: New file.
51267         * lib/sched.in.h: New file.
51268         * m4/sched_h.m4: New file.
51269         * doc/posix-headers/sched.texi: Mention the new module.
51270
51271 2008-09-27  Eric Blake  <ebb9@byu.net>
51272
51273         Fix previous patch, and tweak references to $0.
51274         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
51275         (func_version, func_gnulib_dir): Don't call this program
51276         gnulib-tool.
51277         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
51278         with using $0 in function.
51279         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
51280         (func_fatal_error): Reuse the name the user invoked us with.
51281
51282 2008-09-27  Bruno Haible  <bruno@clisp.org>
51283
51284         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
51285         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
51286         (gl_ICONV_H): Not here.
51287         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
51288         instead of assigning ICONV_H directly.
51289
51290         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
51291         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
51292         WCHAR_H directly.
51293
51294 2008-09-27  Bruno Haible  <bruno@clisp.org>
51295
51296         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
51297         * modules/arpa_inet (Depends-on): Add link-warning.
51298         (Makefile.am): Insert the definition of GL_LINK-WARNING.
51299         * modules/unistd (Makefile.am): Likewise.
51300
51301 2008-09-26  Bruno Haible  <bruno@clisp.org>
51302
51303         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
51304         variables.
51305         (func_version): Essentially copied from gnulib-tool.
51306         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
51307         func_readlink): Copied from gnulib-tool.
51308
51309 2008-09-26  Bruno Haible  <bruno@clisp.org>
51310
51311         * gnulib-tool (func_version): Change directory to $gnulib_dir before
51312         invoking git-version-gen.
51313
51314 2008-09-26  Bruno Haible  <bruno@clisp.org>
51315
51316         * posix-modules: Update to directory names changed on 2008-01-19.
51317         Remove commas in output before splitting into words. No more need to
51318         avoid 'ftruncate' since 2007-02-19.
51319
51320 2008-09-26  Bruno Haible  <bruno@clisp.org>
51321
51322         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
51323
51324 2008-09-26  Bruno Haible  <bruno@clisp.org>
51325
51326         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
51327         * modules/fwriteerror (Depends-on): Add errno.
51328
51329 2008-09-26  Bruno Haible  <bruno@clisp.org>
51330
51331         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
51332         * tests/test-vc-list-files-cvs.sh: Likewise.
51333
51334 2008-09-26  Bruno Haible  <bruno@clisp.org>
51335
51336         * doc/posix-headers/sys_resource.texi: Reorder items.
51337
51338 2008-09-26  Jim Meyering  <meyering@redhat.com>
51339
51340         fts: tweak inode comparison function
51341         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
51342         inode numbers, as documented.
51343
51344         fts: sort dirent entries on inode number before traversing
51345         This avoids a quadratic, seek-related performance penalty when
51346         operating on a directory containing many entries (measurable at 10k;
51347         3.5 hours at 2 million entries with a cold cache) on certain types
51348         of file systems, including ext3 and ext4, but not tmpfs.
51349         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
51350         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
51351         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
51352         (fs_handles_readdir_ordered_dirents_efficiently): New function.
51353         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
51354         (fts_build): Set the stat.st_ino member from D_INO.
51355         If it is likely to be useful, sort dirent entries on inode number.
51356
51357         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
51358         and the struct statfs.f_type member.
51359         * modules/fts (Depends-on): Add d-ino.
51360
51361 2008-09-26  Bruno Haible  <bruno@clisp.org>
51362
51363         * modules/sigpipe-die (Depends-on): Add sigpipe.
51364
51365         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
51366         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
51367         and GNULIB_STDIO_H_SIGPIPE are set.
51368         * lib/stdio-write.c: New file.
51369         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
51370         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51371         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51372         REPLACE_STDIO_WRITE_FUNCS.
51373         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
51374         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51375         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51376         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
51377         * modules/stdio (Files): Add lib/stdio-write.c.
51378         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
51379         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51380         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51381         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
51382         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
51383         REPLACE_FPRINTF_POSIX.
51384         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
51385         REPLACE_PRINTF_POSIX.
51386         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
51387         REPLACE_VFPRINTF_POSIX.
51388         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
51389         REPLACE_VPRINTF_POSIX.
51390         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
51391         SIGPIPE issue.
51392         * doc/posix-functions/fputc.texi: Likewise.
51393         * doc/posix-functions/fputs.texi: Likewise.
51394         * doc/posix-functions/fwrite.texi: Likewise.
51395         * doc/posix-functions/printf.texi: Likewise.
51396         * doc/posix-functions/putc.texi: Likewise.
51397         * doc/posix-functions/putchar.texi: Likewise.
51398         * doc/posix-functions/puts.texi: Likewise.
51399         * doc/posix-functions/vfprintf.texi: Likewise.
51400         * doc/posix-functions/vprintf.texi: Likewise.
51401
51402         * modules/safe-write (Depends-on): Add write.
51403
51404         * modules/sigpipe-tests: New file.
51405         * tests/test-sigpipe.c: New file.
51406         * tests/test-sigpipe.sh: New file.
51407
51408         * modules/write: New file.
51409         * lib/unistd.in.h: Include <sys/types.h>.
51410         (write): New declaration.
51411         * lib/write.c: New file.
51412         * m4/write.m4: New file.
51413         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51414         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
51415         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
51416         GNULIB_WRITE, REPLACE_WRITE.
51417         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
51418         and the SIGPIPE issue.
51419
51420         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
51421         (raise): New declaration.
51422         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
51423         (ext_signal): New function.
51424         (rpl_raise): New function.
51425         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
51426         GNULIB_SIGNAL_H_SIGPIPE.
51427         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
51428         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
51429
51430         * modules/sigpipe: New file.
51431         * m4/sigpipe.m4: New file.
51432
51433 2008-09-25  Derek Price  <derek@ximbiot.com>
51434             Bruno Haible  <bruno@clisp.org>
51435
51436         * gnulib-tool (func_import): Report all license incompatibilities, not
51437         just the first one.
51438
51439 2008-09-25  Bruno Haible  <bruno@clisp.org>
51440
51441         * gnulib-tool (func_import): When computing the edits, consider not
51442         only the Makefile.ams that exist but also those that will be generated.
51443
51444 2008-09-25  Simon Josefsson  <simon@josefsson.org>
51445
51446         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
51447         fixes gnulib-tool --test warning about duplicate dependency.
51448
51449 2008-09-25  Bruno Haible  <bruno@clisp.org>
51450
51451         * gnulib-tool: Don't ask the user to perform edits in the generated
51452         Makefile.ams.
51453         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
51454         apply to the Makefile.am being generated.
51455         (func_emit_tests_Makefile_am): Execute edits that apply to the
51456         Makefile.am being generated.
51457         (func_import): Setup list of Makefile.am edits before emitting the
51458         Makefile.ams, not at the end.
51459         (func_create_testdir): Update.
51460         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51461
51462 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51463
51464         * gnulib-tool (func_import): Store the --tests-base option in the
51465         comment in gnulib-cache.m4.
51466
51467 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
51468
51469         * NEWS: Document increased portability that sys_select now provides.
51470
51471         * lib/sys_select.in.h: Install select wrapper.
51472         * lib/sys_socket.in.h: Use more descriptive name when there is no
51473         select wrapper.
51474         * lib/winsock-select.c: New.
51475         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
51476         Require gl_HEADER_SYS_SOCKET.
51477         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
51478         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
51479         * tests/test-sys_select.c: Add functional tests.
51480
51481 2008-09-24  Eric Blake  <ebb9@byu.net>
51482
51483         open, fopen: close fd leak in last patch
51484         * lib/open.c (rpl_open): Close fd before returning error.
51485         * lib/fopen.c (rpl_fopen): Close fd before returning error.
51486         * doc/posix-functions/open.texi (open): Document that Irix also
51487         has the bug.
51488         * doc/posix-functions/fopen.texi (fopen): Likewise.
51489         Reported by Paolo Bonzini.
51490
51491 2008-09-24  Bruno Haible  <bruno@clisp.org>
51492
51493         Ensure that a filename ending in a slash cannot be used to access a
51494         non-directory.
51495         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
51496         to check whether it's really a directory.
51497         * lib/fopen.c: Include fcntl.h, unistd.h.
51498         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
51499         and fdopen().
51500         * modules/fopen (Depends-on): Add unistd.
51501         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
51502         * tests/test-fopen.c (main): Likewise.
51503         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
51504         * doc/posix-functions/fopen.texi: Likewise.
51505         Reported by Eric Blake.
51506
51507 2008-09-23  Eric Blake  <ebb9@byu.net>
51508
51509         c-stack: avoid compiler optimizations when provoking overflow
51510         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
51511         recursion harder to optimize, to ensure a stack overflow occurs.
51512         * tests/test-c-stack.c (recurse): Likewise.
51513         Borrowed from libsigsegv.
51514
51515         c-stack: work around Irix sigaltstack bug
51516         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
51517         whether sigaltstack uses wrong end of stack_t (copied in part from
51518         libsigsegv).
51519         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
51520         Irix bug, without requiring an over-allocation.
51521         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
51522         bug.
51523
51524         fopen: document mingw bug on directories
51525         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
51526         not allowing a stream visiting a directory, even though reading
51527         from such a stream is not portable.
51528
51529 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
51530
51531         * lib/poll.c: Rewrite.
51532         * modules/poll: Depend on alloca.
51533
51534 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
51535
51536         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
51537         instead define prototypes for a full set of wrappers.  Ensure
51538         that Cygwin does not use the compatibility code, which is only
51539         for MinGW.
51540         * lib/winsock.c: New.
51541         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
51542         * modules/sys_socket: Add lib/winsock.c.
51543
51544         * modules/poll-tests: Add errno and perror.
51545         * tests/test-poll.c: Use ioctl, not ioctlsocket.
51546
51547 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
51548
51549         * tests/test-poll.c: Downgrade minimum needed Winsock version.
51550
51551 2008-09-23  Bruno Haible  <bruno@clisp.org>
51552
51553         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
51554         * doc/glibc-functions/*: Likewise.
51555
51556 2008-09-23  Simon Josefsson  <simon@josefsson.org>
51557
51558         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
51559         success.
51560
51561 2008-09-22  Eric Blake  <ebb9@byu.net>
51562             Bruno Haible  <bruno@clisp.org>
51563
51564         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
51565         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
51566         supply %A but mishandle pseudo-NaN.
51567         Reported by Simon Josefsson.
51568
51569 2008-09-21  Bruno Haible  <bruno@clisp.org>
51570
51571         * tests/test-lock.c (main): Tweak skip message.
51572         * tests/test-tls.c (main): Likewise.
51573
51574 2008-09-21  Bruno Haible  <bruno@clisp.org>
51575
51576         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
51577         whether 'struct sigaction' has sa_sigaction here...
51578         (gl_PREREQ_SIG_HANDLER_H): ... not here.
51579         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
51580
51581 2008-09-21  Bruno Haible  <bruno@clisp.org>
51582
51583         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
51584         section.
51585         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
51586         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
51587         the new section.
51588         (Support for obsolete systems lacking POSIX:2001): New section.
51589         (String handling <string.h>): Move strdup to the new section.
51590         Suggested by Simon Josefsson and Paolo Bonzini.
51591
51592 2008-09-21  Bruno Haible  <bruno@clisp.org>
51593
51594         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
51595         exponents in %e and %g results on 'long double'. Needed for mingw's
51596         improved *printf functions.
51597         * tests/test-vasprintf-posix.c (test_function): Likewise.
51598         * tests/test-snprintf-posix.h (test_function): Likewise.
51599         * tests/test-sprintf-posix.h (test_function): Likewise.
51600         Reported by Eric Blake.
51601
51602 2008-09-21  Bruno Haible  <bruno@clisp.org>
51603
51604         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
51605         * tests/test-sprintf-posix.h (test_function): Likewise.
51606
51607 2008-09-21  Bruno Haible  <bruno@clisp.org>
51608
51609         * modules/getpass (Depends-on): Add strdup-posix.
51610
51611         New module 'strdup-posix'.
51612         * modules/strdup-posix: New file.
51613         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
51614         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
51615         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51616         REPLACE_STRDUP.
51617         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
51618         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
51619         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51620         strdup-posix.
51621
51622         * modules/strdup (Depends-on): Remove malloc-posix.
51623
51624 2008-09-20  Bruno Haible  <bruno@clisp.org>
51625
51626         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
51627         Wildenhues.
51628
51629 2008-09-20  Bruno Haible  <bruno@clisp.org>
51630
51631         Ensure that wint_t gets defined on IRIX 5.3.
51632         * lib/wchar.in.h (wint_t): Define if not defined by the system.
51633         * lib/wctype.in.h (wint_t): Likewise.
51634         (__wctype_wint_t): Remove type.
51635         (isw*): Use wint_t instead of __wctype_wint_t.
51636         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
51637         * modules/wchar (Files): Add m4/wint_t.m4.
51638         (Makefile.am): Substitute HAVE_WINT_T.
51639         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
51640         * tests/test-wctype.c: Check that wint_t is defined.
51641         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
51642         * doc/posix-headers/wctype.texi: Likewise.
51643         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51644
51645 2008-09-18  Bruno Haible  <bruno@clisp.org>
51646
51647         * gnulib-tool (func_exit): Update comment.
51648
51649 2008-09-18  Simon Josefsson  <simon@josefsson.org>
51650
51651         * modules/getaddrinfo (Depends-on): Remove strdup, this module
51652         assumes strdup exists and does not depend on strdup to return
51653         ENOMEM on out of memory conditions.
51654
51655 2008-09-18  Bruno Haible  <bruno@clisp.org>
51656
51657         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
51658         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
51659         digits for the exponent.
51660
51661 2008-09-18  Jim Meyering  <meyering@redhat.com>
51662             Bruno Haible  <bruno@clisp.org>
51663
51664         * lib/vasnprintf.c (decimal_point_char): Define also if
51665         NEED_PRINTF_INFINITE_LONG_DOUBLE.
51666
51667 2008-09-16  Bruno Haible  <bruno@clisp.org>
51668         and Eric Blake  <ebb9@byu.net>
51669
51670         vasnprintf: support Irix 5.3
51671         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
51672         that mishandle long double infinity.
51673         Reported by Tom G. Christensen.
51674
51675 2008-09-16  Bruno Haible  <bruno@clisp.org>
51676
51677         * doc/glibc-functions/scandir.texi: Mention the function is missing on
51678         Solaris 9.
51679         * doc/glibc-functions/alphasort.texi: Likewise.
51680         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
51681
51682 2008-09-16  Jim Meyering  <meyering@redhat.com>
51683
51684         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
51685         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
51686         a umask modification leak out of a subshell.  Otherwise, the
51687         opensolaris /bin/sh would be accepted and thus cause unwarranted
51688         failures in the coreutils test suite.
51689
51690 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
51691
51692         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
51693         to succeed.
51694
51695 2008-09-16  Jim Meyering  <meyering@redhat.com>
51696
51697         avoid spurious test failure when library is built without ACL support
51698         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
51699         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
51700         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
51701         * tests/test-copy-acl.sh: Likewise.
51702
51703 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51704
51705         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
51706         based on character occurrence counts.
51707
51708 2008-09-15  Eric Blake  <ebb9@byu.net>
51709
51710         tests: avoid some compiler warnings
51711         * tests/test-memchr.c (main): Pass NULL indirectly.
51712         * tests/test-closein.c (main): Avoid unused variable.
51713
51714 2008-09-15  Bruno Haible  <bruno@clisp.org>
51715
51716         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
51717         are missing on OpenBSD 4.0 individually.
51718         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51719
51720 2008-09-15  Bruno Haible  <bruno@clisp.org>
51721
51722         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
51723         * doc/posix-functions/strerror.texi: Mention also Cygwin.
51724         * doc/posix-functions/perror.texi: Likewise.
51725         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
51726         is missing.
51727         Reported by Eric Blake.
51728
51729         * lib/errno.in.h: Use replacement values >= 2000.
51730         Reported by Eric Blake.
51731
51732 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51733
51734         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
51735         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
51736         limit.
51737         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
51738         compareseq was aborted.
51739
51740 2008-09-14  Bruno Haible  <bruno@clisp.org>
51741
51742         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
51743         yvec_edit_count.
51744         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
51745         (fstrcmp_bounded): Simplify result computation accordingly.
51746
51747 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51748
51749         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
51750         (fstrcmp): Define in terms of fstrcmp_bounded.
51751         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
51752         lower_bound argument.
51753         Return quickly if the result is certainly < lower_bound.
51754         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
51755
51756 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51757
51758         * lib/diffseq.h (EARLY_ABORT): New macro.
51759         (compareseq): Change return type to bool. Return true when EARLY_ABORT
51760         evaluates to true.
51761
51762 2008-09-14  Bruno Haible  <bruno@clisp.org>
51763
51764         * modules/perror-tests: New file.
51765         * tests/test-perror.sh: New file.
51766         * tests/test-perror.c: New file.
51767
51768         New module 'perror'.
51769         * lib/stdio.in.h (perror): New declaration.
51770         * lib/perror.c: New file.
51771         * m4/perror.m4: New file.
51772         * modules/perror: New file.
51773         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
51774         * doc/posix-functions/perror.texi: Mention the perror module.
51775         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
51776         REPLACE_PERROR.
51777         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
51778         REPLACE_PERROR.
51779
51780 2008-09-14  Bruno Haible  <bruno@clisp.org>
51781
51782         * modules/stdio (Makefile.am): Reorder to match the order in
51783         lib/stdio.in.h.
51784         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
51785
51786 2008-09-13  Bruno Haible  <bruno@clisp.org>
51787
51788         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
51789
51790 2008-09-13  Bruno Haible  <bruno@clisp.org>
51791
51792         Extend strerror to cover the added errno values.
51793         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
51794         (rpl_strerror): Provide error messages for the added errno values and
51795         for the WSA* values.
51796         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
51797         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
51798         strerror.
51799         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
51800         * modules/strerror (Depends-on): Add errno.
51801         * doc/posix-functions/strerror.texi: Document the change.
51802         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
51803         and EOVERFLOW.
51804
51805 2008-09-13  Bruno Haible  <bruno@clisp.org>
51806
51807         * modules/EOVERFLOW: Remove file.
51808         * m4/eoverflow.m4: Remove file.
51809         * modules/EOVERFLOW-tests: Remove file.
51810         * tests/test-EOVERFLOW.c: Remove file.
51811         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
51812         * modules/ftell (Depends-on): Likewise.
51813         * modules/getdelim (Depends-on): Likewise.
51814         * modules/getugroups (Depends-on): Likewise.
51815         * modules/poll (Depends-on): Likewise.
51816         * modules/snprintf (Depends-on): Likewise.
51817         * modules/sprintf-posix (Depends-on): Likewise.
51818         * modules/vasnprintf (Depends-on): Likewise.
51819         * modules/vasprintf (Depends-on): Likewise.
51820         * modules/vfprintf-posix (Depends-on): Likewise.
51821         * modules/vsnprintf (Depends-on): Likewise.
51822         * modules/vsprintf-posix (Depends-on): Likewise.
51823         * modules/xvasprintf (Depends-on): Likewise.
51824         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
51825         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
51826         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
51827         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
51828         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
51829         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
51830         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
51831         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
51832         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
51833         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
51834         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
51835         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
51836         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
51837         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
51838         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
51839         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
51840         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
51841         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
51842         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
51843         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
51844         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
51845         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
51846         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
51847         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
51848         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
51849         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
51850         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
51851         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
51852         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
51853         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
51854         * MODULES.html.sh: Remove EOVERFLOW.
51855         * NEWS: Mention the change.
51856
51857 2008-09-13  Bruno Haible  <bruno@clisp.org>
51858
51859         * modules/errno-tests: New file.
51860         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
51861
51862         * lib/errno.in.h: New file.
51863         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
51864         * modules/errno: New file.
51865         * doc/posix-headers/errno.texi: Update documentation.
51866         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
51867
51868 2008-09-13  Bruno Haible  <bruno@clisp.org>
51869
51870         * tests/test-poll.c: Use #if for native Windows, rather than testing
51871         __MSVCRT__.
51872
51873 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51874             Bruno Haible  <bruno@clisp.org>
51875
51876         * lib/glob.c: Don't include <pwd.h> on native Windows.
51877         (WINDOWS32): New macro.
51878         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
51879
51880 2008-09-13  Bruno Haible  <bruno@clisp.org>
51881
51882         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
51883         (ETIMEDOUT): Remove macro.
51884         (glthread_cond_timedwait_multithreaded): New declaration.
51885         (glthread_cond_timedwait): Use it.
51886         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
51887         (glthread_cond_timedwait_multithreaded): New function.
51888
51889 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
51890
51891         * modules/poll-tests: Do not check for io.h.
51892         * tests/test-poll.c: Check for __MSVCRT__ instead.
51893
51894 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
51895
51896         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
51897         * modules/poll-tests: Add inet_pton, stdbool, sockets.
51898         * tests/test-poll.c: Use them.  Use _pipe on Windows.
51899
51900 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
51901
51902         * modules/poll-tests: New.
51903         * tests/test-poll.c: New.
51904
51905 2008-09-12  Eric Blake  <ebb9@byu.net>
51906
51907         frexp: test for NetBSD failure on -0.0
51908         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
51909         not all, bugs from NetBSD 3.0 have been fixed.
51910         * doc/posix-functions/frexp.texi (frexp): Document bug.
51911         Reported by Thomas Klausner.
51912
51913         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
51914         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
51915         literal -0.0.
51916         Reported by Jonathan C. Patschke <jp@centtech.com>.
51917
51918 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51919
51920         * lib/glthread/cond.h: Use dummy implementation also if
51921         USE_WIN32_THREADS.
51922
51923 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51924
51925         * modules/fnmatch-posix (License): Change to LGPLv2+.
51926         * modules/fnmatch-gnu (License): Likewise.
51927
51928 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51929
51930         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
51931
51932 2008-09-11  Jim Meyering  <meyering@redhat.com>
51933
51934         * users.txt: Add gtk-vnc.
51935
51936 2008-09-08  Simon Josefsson  <simon@josefsson.org>
51937
51938         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
51939         rotate amounts.
51940
51941         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
51942         required for 16-bit and 8-bit rotates.
51943         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
51944         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
51945         UINT8_MAX instead of hard-coded constants.
51946         Suggested by Paul Eggert.
51947
51948 2008-09-07  Bruno Haible  <bruno@clisp.org>
51949
51950         * tests/test-striconveh.c (main): Check behaviour when converting from
51951         UTF-7.
51952
51953         Make striconveh work better with stateful encodings.
51954         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
51955         that iconv does not increment the inptr when returning -1/EINVAL.
51956
51957 2008-09-07  Bruno Haible  <bruno@clisp.org>
51958
51959         * build-aux/config.rpath: Update according to libtool-2.2.6.
51960         * build-aux/config.libpath: Likewise.
51961
51962 2008-09-06  Bruno Haible  <bruno@clisp.org>
51963
51964         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
51965         * lib/freadptr.c (freadptr): Likewise.
51966         * lib/freadseek.c (freadptrinc): Likewise.
51967         Reported by Simon Josefsson.
51968
51969 2008-09-06  Bruno Haible  <bruno@clisp.org>
51970
51971         * modules/freadptr (License): Change to LGPLv2+.
51972         * modules/freadseek (License): Likewise.
51973         Suggested by Eric Blake.
51974
51975         * modules/memchr2 (License): Change to LGPLv2+.
51976         Approved by Eric Blake.
51977
51978 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51979             Bruno Haible  <bruno@clisp.org>
51980
51981         Make gnulib-tool work with native 'sed' on AIX.
51982         * gnulib-tool (sed_noop): New variable.
51983         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
51984         func_add_or_update, func_create_testdir): Use it to initialize sed
51985         script variables.
51986         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51987
51988 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
51989             Bruno Haible  <bruno@clisp.org>
51990
51991         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
51992         also works after #include directives.
51993
51994 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
51995
51996         getdate.y: reject an out-of-range timezone value
51997         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
51998         the range [-24...+24].  When specified with only one or two digits,
51999         * tests/test-getdate.c: Tests for the fix.
52000         * doc/getdate.texi: Document this change.
52001
52002 2008-09-03  Bruno Haible  <bruno@clisp.org>
52003
52004         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
52005
52006 2008-09-02  Simon Josefsson  <simon@josefsson.org>
52007
52008         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
52009         <bruce.korb@gmail.com> with ideas from Ben Pfaff
52010         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
52011         Blake <ebb9@byu.net>.
52012
52013         * tests/test-bitrotate.c: Add more test vectors.
52014
52015 2008-09-02  Eric Blake  <ebb9@byu.net>
52016
52017         vasnprintf-posix: handle large precision via %.*d
52018         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
52019         when handling it ourselves.
52020         * tests/test-vasnprintf-posix.c (test_function): Add test.
52021         * tests/test-snprintf-posix.h (test_function): Likewise.
52022         * tests/test-sprintf-posix.h (test_function): Likewise.
52023         * tests/test-vasprintf-posix.c (test_function): Likewise.
52024         Reported by Alain Guibert.
52025
52026 2008-09-01  Eric Blake  <ebb9@byu.net>
52027
52028         c-stack: make configure-time check more robust
52029         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
52030         successful sigaction call.
52031         Reported by Tom G. Christensen.
52032
52033 2008-09-01  Bruno Haible  <bruno@clisp.org>
52034
52035         New module 'findprog-lgpl'.
52036         * modules/findprog-lgpl: New file.
52037         * lib/findprog-lgpl.c: New file.
52038         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
52039         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
52040         to decide whether to use strdup or xstrdup, concatenated_filename or
52041         xconcatenated_filename.
52042
52043 2008-09-01  Bruno Haible  <bruno@clisp.org>
52044
52045         Split module 'concat-filename' into 'concat-filename' (LGPL) and
52046         'xconcat-filename' (GPL).
52047         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
52048         (License): Change to LGPLv2+.
52049         * modules/xconcat-filename: New file.
52050         * lib/concat-filename.h (concatenated_filename): Change specification.
52051         (xconcatenated_filename): New declaration.
52052         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
52053         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
52054         memory situations.
52055         * lib/xconcat-filename.c: New file.
52056         * NEWS: Mention the change.
52057         * lib/findprog.c: Include concat-filename.h, not filename.h.
52058         (find_in_path): Use xconcatenated_filename instead of
52059         concatenated_filename.
52060         * lib/javacomp.c: Include concat-filename.h, not filename.h.
52061         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
52062         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
52063         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
52064         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
52065         instead of concatenated_filename.
52066         * lib/javaexec.c: Include concat-filename.h, not filename.h.
52067         (execute_java_class): Use xconcatenated_filename instead of
52068         concatenated_filename.
52069         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
52070         * modules/javacomp (Depends-on): Likewise.
52071         * modules/javaexec (Depends-on): Likewise.
52072
52073 2008-09-01  Bruno Haible  <bruno@clisp.org>
52074
52075         Split module 'filename' into 'filename' and 'concat-filename'.
52076         * modules/filename: Keep only lib/filename.h.
52077         (License): Change to LGPLv2+.
52078         * modules/concat-filename: New file, extracted from modules/filename.
52079         * lib/filename.h (concatenated_filename): Remove declaration.
52080         * lib/concat-filename.h: New file, extracted from lib/filename.h.
52081         * lib/concat-filename.c: Include concat-filename.h.
52082         * NEWS: Mention the change.
52083
52084 2008-09-01  Simon Josefsson  <simon@josefsson.org>
52085
52086         * lib/bitrotate.h (rotl8, rotr8): Add.
52087
52088         * modules/bitrotate (configure.ac): Need
52089         AC_REQUIRE([AC_C_INLINE]).
52090         (Description): Mention stdint.h.  Reported by Bruno Haible
52091         <bruno@clisp.org>.
52092
52093         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
52094         Paolo Bonzini <bonzini@gnu.org>.
52095
52096 2008-08-31  Bruno Haible  <bruno@clisp.org>
52097
52098         Assume Solaris specific bi-arch conventions on Solaris systems.
52099         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
52100         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
52101         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
52102         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
52103         like acl_libdirstem.
52104         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
52105         acl_libdirstem.
52106         * NEWS: Mention the change.
52107         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
52108
52109 2008-08-31  Jim Meyering  <meyering@redhat.com>
52110
52111         * lib/strftime.h: Add comments describing the two added arguments.
52112
52113         remove duplicate #include directives
52114         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
52115         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
52116
52117 2008-08-31  Bruno Haible  <bruno@clisp.org>
52118
52119         New module 'sigpipe-die'.
52120         * modules/sigpipe-die: New file.
52121         * lib/sigpipe-die.h: New file.
52122         * lib/sigpipe-die.c: New file.
52123         * MODULES.html.sh (Signal handling): Add sigpipe-die.
52124
52125 2008-08-31  Bruno Haible  <bruno@clisp.org>
52126
52127         Don't override previously installed signal handlers.
52128         * lib/fatal-signal.c (saved_sigactions): New variable.
52129         (uninstall_handlers): Reset the signal to the saved handler, not
52130         to SIG_DFL (except when ignored).
52131         (install_handlers): Save the previous handlers.
52132
52133 2008-08-30  Bruno Haible  <bruno@clisp.org>
52134
52135         * gnulib-tool (func_reset_sigpipe): New function.
52136         (func_get_automake_snippet, func_modules_transitive_closure,
52137         func_import): Invoke it before a join command that reads from stdin,
52138         to avoid "echo: write error: Broken pipe" error messages on stderr.
52139         Reported by Sam Steingold <sds@gnu.org>.
52140
52141 2008-08-30  Bruno Haible  <bruno@clisp.org>
52142
52143         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
52144         Code copied from m4/open.m4.
52145         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
52146         access and the filename ends in a slash. Code copied from lib/open.c.
52147         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
52148         * tests/test-fopen.c (main): Check against bug with trailing slash.
52149
52150 2008-08-29  Bruno Haible  <bruno@clisp.org>
52151
52152         Avoid some "gcc -pedantic" warnings.
52153         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
52154         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
52155         * lib/dirent.in.h: Likewise.
52156         * lib/fcntl.in.h: Likewise.
52157         * lib/float.in.h: Likewise.
52158         * lib/iconv.in.h: Likewise.
52159         * lib/inttypes.in.h: Likewise.
52160         * lib/locale.in.h: Likewise.
52161         * lib/math.in.h: Likewise.
52162         * lib/netinet_in.in.h: Likewise.
52163         * lib/search.in.h: Likewise.
52164         * lib/signal.in.h: Likewise.
52165         * lib/stdarg.in.h: Likewise.
52166         * lib/stdint.in.h: Likewise.
52167         * lib/stdio.in.h: Likewise.
52168         * lib/stdlib.in.h: Likewise.
52169         * lib/string.in.h: Likewise.
52170         * lib/strings.in.h: Likewise.
52171         * lib/sys_select.in.h: Likewise.
52172         * lib/sys_socket.in.h: Likewise.
52173         * lib/sys_stat.in.h: Likewise.
52174         * lib/sys_time.in.h: Likewise.
52175         * lib/sysexits.in.h: Likewise.
52176         * lib/time.in.h: Likewise.
52177         * lib/unistd.in.h: Likewise.
52178         * lib/wchar.in.h: Likewise.
52179         * lib/wctype.in.h: Likewise.
52180         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
52181         * modules/fchdir (Makefile.am): Likewise.
52182         * modules/fcntl (Makefile.am): Likewise.
52183         * modules/float (Makefile.am): Likewise.
52184         * modules/iconv_open (Makefile.am): Likewise.
52185         * modules/inttypes (Makefile.am): Likewise.
52186         * modules/locale (Makefile.am): Likewise.
52187         * modules/math (Makefile.am): Likewise.
52188         * modules/netinet_in (Makefile.am): Likewise.
52189         * modules/search (Makefile.am): Likewise.
52190         * modules/signal (Makefile.am): Likewise.
52191         * modules/stdarg (Makefile.am): Likewise.
52192         * modules/stdint (Makefile.am): Likewise.
52193         * modules/stdio (Makefile.am): Likewise.
52194         * modules/stdlib (Makefile.am): Likewise.
52195         * modules/string (Makefile.am): Likewise.
52196         * modules/strings (Makefile.am): Likewise.
52197         * modules/sys_select (Makefile.am): Likewise.
52198         * modules/sys_socket (Makefile.am): Likewise.
52199         * modules/sys_stat (Makefile.am): Likewise.
52200         * modules/sys_time (Makefile.am): Likewise.
52201         * modules/sysexits (Makefile.am): Likewise.
52202         * modules/time (Makefile.am): Likewise.
52203         * modules/unistd (Makefile.am): Likewise.
52204         * modules/wchar (Makefile.am): Likewise.
52205         * modules/wctype (Makefile.am): Likewise.
52206         Reported by Reuben Thomas <rrt@sc3d.org>.
52207
52208 2008-08-29  Bruno Haible  <bruno@clisp.org>
52209
52210         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
52211         any more.
52212
52213 2008-08-29  Simon Josefsson  <simon@josefsson.org>
52214
52215         * MODULES.html.sh (Misc): Add bitrotate.
52216
52217         * modules/bitrotate: New file.
52218
52219         * lib/bitrotate.h: New file.
52220
52221         * modules/bitrotate-tests: New file.
52222
52223         * tests/test-bitrotate.c: New file.
52224
52225         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
52226         on the bitrotate module.
52227
52228         * lib/arctwo.c: Use new bitrotate module.
52229
52230 2008-08-29  Jim Meyering  <meyering@redhat.com>
52231
52232         bootstrap: merge changes from coreutils
52233         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
52234         of copied files.  Remove a kludge, now that this is fixed.
52235         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
52236         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
52237         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
52238
52239 2008-08-29  Bruno Haible  <bruno@clisp.org>
52240
52241         * MODULES.html.sh: Remove --cvs-urls option.
52242
52243 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
52244
52245         maint.mk: adjust to file name change
52246         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
52247
52248 2008-08-28  Jim Meyering  <meyering@redhat.com>
52249
52250         * modules/getndelim2 (License): Relicense to LGPLv2+.
52251         Approved by Richard Stallman for the version of 1995, and by
52252         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
52253
52254 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
52255
52256         * lib/getdelim.c (flockfile, funlockfile): Make all of them
52257         dummy if one is not available.  Do not touch them if
52258         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
52259         (getc_maybe_unlocked): New.
52260         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
52261
52262 2008-08-26  Eric Blake  <ebb9@byu.net>
52263
52264         doc/INSTALL: resync from autoconf
52265         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
52266         (INSTALL_PRELUDE): Delete; this is done more efficiently by
52267         moving...
52268         * install.texi [!autoconf]: ...here.  Resync from autoconf.
52269         * INSTALL: Regenerate.
52270         * INSTALL.ISO: New file.
52271         * INSTALL.UTF-8: Likewise.
52272
52273 2008-08-26  Jim Meyering  <meyering@redhat.com>
52274
52275         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
52276         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
52277         these definitions conditional, so that they may be overridden, too.
52278
52279 2008-08-26  Bruno Haible  <bruno@clisp.org>
52280
52281         Generate INSTALL file variants with prettier quotes.
52282         * doc/Makefile (INSTALL_PRELUDE): New macro.
52283         (INSTALL): Use it.
52284         (INSTALL.ISO, INSTALL.UTF-8): New rules.
52285
52286 2008-08-26  Bruno Haible  <bruno@clisp.org>
52287
52288         Run makeinfo in an English locale.
52289         * doc/Makefile (MAKEINFO): New variable.
52290
52291 2008-08-26  Bruno Haible  <bruno@clisp.org>
52292
52293         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
52294         Suggested by Eric Blake.
52295
52296 2008-08-25  Bruno Haible  <bruno@clisp.org>
52297
52298         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
52299
52300 2008-08-25  Eric Blake  <ebb9@byu.net>
52301
52302         c-stack: test that stack overflow can be caught
52303         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
52304         that platform allows handling stack overflow; at least OS/2 EMX
52305         has sigaltstack, but crashes before transferring control to
52306         handler on stack overflow.
52307         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
52308         check for HAVE_STACK_OVERFLOW_HANDLING.
52309         Reported by Elbert Pol.
52310
52311 2008-08-25  Bruno Haible  <bruno@clisp.org>
52312
52313         * doc/posix-functions/strftime.texi: Fix description of strftime
52314         module.
52315
52316 2008-08-24  Bruno Haible  <bruno@clisp.org>
52317
52318         * tests/uniwidth/test-uc_width2.c: New file.
52319         * tests/uniwidth/test-uc_width2.sh: New file.
52320         * modules/uniwidth/width-tests (Files): Add the new files.
52321         (TESTS): Add uniwidth/test-uc_width2.sh.
52322         (TESTS_ENVIRONMENT): New variable.
52323         (check_PROGRAMS): Add test-uc_width2.
52324         (test_uc_width2_SOURCES): New variable.
52325
52326         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
52327         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
52328         not 0x00AB.
52329         Reported by Alexander V. Lukyanov <lav@netis.ru>.
52330
52331 2008-08-22  Eric Blake  <ebb9@byu.net>
52332
52333         test-lock, test-tls: mention why a test is skipped
52334         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
52335         skipped.
52336         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
52337
52338         count-one-bits: relax license
52339         * modules/count-one-bits (License): Relicense to LGPLv2+.
52340         Suggested by Ludovic Courtès, approved by Ben Pfaff.
52341
52342 2008-08-22  Andreas Schwab  <schwab@suse.de>
52343
52344         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
52345         Remove spurious space in assignment.
52346
52347 2008-08-21  Simon Josefsson  <simon@josefsson.org>
52348
52349         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
52350         Paul Eggert <eggert@CS.UCLA.EDU>.
52351
52352 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
52353
52354         * modules/gettext: Add m4/threadlib.m4.
52355
52356 2008-08-19  Eric Blake  <ebb9@byu.net>
52357
52358         test-c-stack: fix compilation failure on FreeBSD 5.0
52359         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
52360         headers before <sys/resource.h>.
52361         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
52362         the bug.
52363         Reported by Nelson H. F. Beebe.
52364
52365         strverscmp: migrate from "strverscmp.h" to <string.h>
52366         * modules/string (Makefile.am): Add new hooks.
52367         * modules/strverscmp (Files): Remove strverscmp.h.
52368         (Depends-on): Add string.
52369         (configure.ac): Add indicator.
52370         (Include): Mention new header.
52371         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
52372         defaults.
52373         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
52374         results.
52375         * lib/strverscmp.h: Delete.
52376         * lib/string.in.h (strverscmp): Provide declaration, when needed.
52377         * tests/test-strverscmp.c (includes): Adjust client.
52378         * lib/check-version.c (includes): Likewise.
52379         * NEWS: Document the change.
52380
52381         strverscmp: add unit test
52382         * modules/strverscmp-tests: New file.
52383         * tests/test-strverscmp.c: Likewise.
52384
52385 2008-08-19  Simon Josefsson  <simon@josefsson.org>
52386
52387         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
52388         regarding Windows crypto stuff, from Mono.
52389
52390 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
52391
52392         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
52393         if present, for intel RND.  Return error on failures.
52394
52395 2008-08-18  Ben Pfaff  <blp@gnu.org>
52396
52397         gitlog-to-changelog: give better diagnostic for failed pipe-open
52398         * build-aux/gitlog-to-changelog: Improve error message: suggest
52399         that the version of Git may be too old.
52400
52401 2008-08-18  Simon Josefsson  <simon@josefsson.org>
52402
52403         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
52404         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
52405
52406 2008-08-18  Bruno Haible  <bruno@clisp.org>
52407
52408         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
52409         pthread_in_use().
52410
52411 2008-08-18  Bruno Haible  <bruno@clisp.org>
52412
52413         * lib/glthread/threadlib.c: Include <pthread.h>.
52414
52415 2008-08-18  Bruno Haible  <bruno@clisp.org>
52416
52417         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
52418         glthread_recursive_lock_* macros.
52419         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
52420         Fix syntax error.
52421
52422 2008-08-18  Bruno Haible  <bruno@clisp.org>
52423
52424         * lib/glthread/thread.c: Avoid forcing a context switch right after
52425         thread creation.
52426
52427 2008-08-17  Bruno Haible  <bruno@clisp.org>
52428
52429         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
52430         * lib/glthread/thread.h: Provide Win32 specific implementation.
52431         * modules/thread (Files): Add lib/glthread/thread.c.
52432         (Depends-on): Add lock.
52433         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
52434
52435 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52436
52437         New module 'yield'.
52438         * modules/yield: New file.
52439         * lib/glthread/yield.h: New file.
52440         * m4/yield.m4: New file.
52441         * MODULES.html.sh (Multithreading): Add yield.
52442
52443 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52444
52445         New module 'thread'.
52446         * modules/thread: New file.
52447         * lib/glthread/thread.h: New file.
52448         * m4/thread.m4: New file.
52449         * MODULES.html.sh (Multithreading): Add thread.
52450
52451 2008-08-17  Bruno Haible  <bruno@clisp.org>
52452
52453         * lib/glthread/lock.h: Include <stdlib.h> always.
52454         * lib/glthread/tls.h: Likewise.
52455         * lib/glthread/cond.h: Likewise.
52456
52457 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52458
52459         New module 'cond'.
52460         * modules/cond: New file.
52461         * lib/glthread/cond.h: New file.
52462         * lib/glthread/cond.c: New file.
52463         * m4/cond.m4: New file.
52464         * MODULES.html.sh (Multithreading): Add cond.
52465
52466 2008-08-16  Eric Blake  <ebb9@byu.net>
52467
52468         c-stack: fix regression on Irix 5.3 from 2008-06-21
52469         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
52470         sa_sigaction...
52471         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
52472         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
52473         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
52474         * modules/signal (Makefile.am): Use the value.
52475         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
52476         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
52477         * doc/posix-headers/signal.texi (signal.h): Document this
52478         portability issue.
52479         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
52480         Reported by Tom G. Christensen.
52481
52482 2008-08-17  Bruno Haible  <bruno@clisp.org>
52483
52484         New module 'threadlib'.
52485         * modules/threadlib: New file.
52486         * lib/glthread/threadlib.c: New file, extracted from
52487         lib/glthread/lock.c.
52488         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
52489         functions.
52490         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
52491         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
52492         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
52493         macros.
52494         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
52495         (gl_DISABLE_THREADS): Remove macro.
52496         * modules/lock (Files): Remove build-aux/config.rpath.
52497         (Depends-on): Remove havelib. Add threadlib.
52498         (configure.ac-early): Remove section.
52499         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
52500         * modules/tls (Depends-on): Remove lock. Add threadlib.
52501         (Link): New section, copied from threadlib.
52502         * MODULES.html.sh (Multithreading): Add threadlib.
52503
52504 2008-08-14  Bruno Haible  <bruno@clisp.org>
52505
52506         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
52507         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
52508         glthread_rwlock_unlock, glthread_rwlock_destroy,
52509         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
52510         glthread_recursive_lock_destroy): Define as macros always.
52511         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
52512         glthread_lock_lock.
52513         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
52514         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
52515         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
52516         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
52517         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
52518         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
52519         (glthread_recursive_lock_lock_func): Renamed from
52520         glthread_recursive_lock_lock.
52521         (glthread_recursive_lock_unlock_func): Renamed from
52522         glthread_recursive_lock_unlock.
52523         (glthread_recursive_lock_destroy_func): Renamed from
52524         glthread_recursive_lock_destroy.
52525
52526 2008-08-14  Bruno Haible  <bruno@clisp.org>
52527
52528         * lib/glthread/lock.h: Renamed from lib/lock.h.
52529         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
52530         * lib/glthread/tls.h: Renamed from lib/tls.h.
52531         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
52532         * lib/fstrcmp.c: Update includes.
52533         * lib/strsignal.c: Update includes.
52534         * modules/lock (Files, Makefile.am): Update.
52535         (Include): Change to "glthread/lock.h".
52536         * modules/tls (Files, Makefile.am): Update.
52537         (Include): Change to "glthread/tls.h".
52538         * tests/test-lock.c: Update includes.
52539         * tests/test-tls.c: Update includes.
52540         * NEWS: Mention the renamed header files.
52541
52542 2008-08-11  Jim Meyering  <meyering@redhat.com>
52543
52544         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
52545
52546 2008-08-11  Eric Blake  <ebb9@byu.net>
52547
52548         test-c-stack: avoid C99-ism
52549         * tests/test-c-stack.c (main): Fix whitespace, move declaration
52550         before statement.
52551         Reported by Alain Guibert.
52552
52553 2008-08-10  Jim Meyering  <meyering@redhat.com>
52554
52555         ensure that return value of uinttostr et al are not ignored
52556         * lib/inttostr.h (__GNUC_PREREQ): Define.
52557         (__attribute_warn_unused_result__): Define.
52558         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
52559
52560 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
52561
52562         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
52563         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
52564
52565 2008-08-07  Jim Meyering  <meyering@redhat.com>
52566
52567         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
52568
52569         * modules/mkstemp (License): Relicense under LGPLv2+.
52570         * modules/tempname (License): Likewise.
52571
52572 2008-08-06  Bruno Haible  <bruno@clisp.org>
52573
52574         * lib/poll.c (poll): Further micro-optimization.
52575
52576 2008-08-06  Jim Meyering  <meyering@redhat.com>
52577
52578         inet_pton.c: use locale-independent tolower
52579         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
52580         (inet_pton6): Use c_tolower rather than tolower.
52581         * modules/inet_pton (Depends-on): Add c-ctype.
52582
52583 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
52584
52585         * lib/poll.c (poll): Avoid division when timeout is 0, cache
52586         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
52587
52588 2008-08-06  Jim Meyering  <meyering@redhat.com>
52589
52590         * modules/inet_pton (License): Relicense under LGPLv2+.
52591
52592 2008-08-03  Bruno Haible  <bruno@clisp.org>
52593
52594         Additional non-aborting API for lock and tls.
52595         * lib/lock.h: Include <errno.h>.
52596         (glthread_lock_init): New macro/function.
52597         (gl_lock_init): Define as wrapper around glthread_lock_init.
52598         (glthread_lock_lock): New macro/function.
52599         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
52600         (glthread_lock_unlock): New macro/function.
52601         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
52602         (glthread_lock_destroy): New macro/function.
52603         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
52604         (glthread_rwlock_init): New macro/function.
52605         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
52606         (glthread_rwlock_rdlock): New macro/function.
52607         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
52608         (glthread_rwlock_wrlock): New macro/function.
52609         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
52610         (glthread_rwlock_unlock): New macro/function.
52611         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
52612         (glthread_rwlock_destroy): New macro/function.
52613         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
52614         (glthread_recursive_lock_init): New macro/function.
52615         (gl_recursive_lock_init): Define as wrapper around
52616         glthread_recursive_lock_init.
52617         (glthread_recursive_lock_lock): New macro/function.
52618         (gl_recursive_lock_lock): Define as wrapper around
52619         glthread_recursive_lock_lock.
52620         (glthread_recursive_lock_unlock): New macro/function.
52621         (gl_recursive_lock_unlock): Define as wrapper around
52622         glthread_recursive_lock_unlock.
52623         (glthread_recursive_lock_destroy): New macro/function.
52624         (gl_recursive_lock_destroy): Define as wrapper around
52625         glthread_recursive_lock_destroy.
52626         (glthread_once): New macro/function.
52627         (gl_once): Define as wrapper around glthread_once.
52628         Update function declarations.
52629         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
52630         glthread_rwlock_init. Return error code.
52631         (glthread_rwlock_rdlock_multithreaded): Renamed from
52632         glthread_rwlock_rdlock. Return error code.
52633         (glthread_rwlock_wrlock_multithreaded): Renamed from
52634         glthread_rwlock_wrlock. Return error code.
52635         (glthread_rwlock_unlock_multithreaded): Renamed from
52636         glthread_rwlock_unlock. Return error code.
52637         (glthread_rwlock_destroy_multithreaded): Renamed from
52638         glthread_rwlock_destroy. Return error code.
52639         (glthread_recursive_lock_init_multithreaded): Renamed from
52640         glthread_recursive_lock_init. Return error code.
52641         (glthread_recursive_lock_lock_multithreaded): Renamed from
52642         glthread_recursive_lock_lock. Return error code.
52643         (glthread_recursive_lock_unlock_multithreaded): Renamed from
52644         glthread_recursive_lock_unlock. Return error code.
52645         (glthread_recursive_lock_destroy_multithreaded): Renamed from
52646         glthread_recursive_lock_destroy. Return error code.
52647         (glthread_once_call): Make static.
52648         (glthread_once_multithreaded): Renamed from glthread_once.
52649         * lib/tls.h: Include <errno.h>.
52650         (glthread_tls_key_init): New macro/function.
52651         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
52652         (glthread_tls_set): New macro/function.
52653         (gl_tls_set): Define as wrapper around glthread_tls_set.
52654         (glthread_tls_key_destroy): New macro/function.
52655         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
52656         Update function declarations.
52657         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
52658         glthread_tls_get.
52659         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52660
52661 2008-08-04  Eric Blake  <ebb9@byu.net>
52662
52663         gnumakefile: use space, not TAB, outside of targets
52664         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
52665
52666 2008-08-02  Jim Meyering  <meyering@redhat.com>
52667
52668         getdate.y: avoid locale-dependent date parsing failure
52669         In Turkish locales, getdate would fail to recognize keywords
52670         containing a lowercase "i".  The solution is not to rely on
52671         locale-sensitive case-conversion.
52672         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
52673         (lookup_word): Use c_toupper in place of toupper.
52674         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
52675         Reported by Vefa Bicakci <bicave@superonline.com> in
52676         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
52677         * modules/getdate (Depends-on): Add c-ctype.
52678
52679 2008-08-02  Bruno Haible  <bruno@clisp.org>
52680
52681         * gnulib-tool (func_import): When updating or creating a .gitignore
52682         file, prepend each added line with a slash, and ignore leading slashes
52683         from the existing lines.
52684         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
52685
52686 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52687
52688         Portability fix for GNU make 3.79.1.
52689         * top/GNUmakefile: Avoid 'else COND', which older GNU make
52690         versions do not understand.
52691
52692 2008-08-01  Bruno Haible  <bruno@clisp.org>
52693
52694         Work around bug of HP-UX 10.20 cc with -0.0 literal.
52695         * tests/test-isnanf.h (zero): New variable.
52696         (main): Avoid literal -0.0f.
52697         * tests/test-isnand.h (zero): New variable.
52698         (main): Avoid literal -0.0.
52699         * tests/test-isnanl.h (zero): New variable.
52700         (main): Avoid literal -0.0L.
52701         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
52702         (test_float, test_double, test_long_double): Avoid literals -0.0f,
52703         -0.0, -0.0L.
52704         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
52705         (test_signbitd): Avoid literal -0.0.
52706         (test_signbitl): Avoid literal -0.0L.
52707         * tests/test-ceilf1.c (zero): New variable.
52708         (main): Avoid literal -0.0f.
52709         * tests/test-ceill.c (zero): New variable.
52710         (main): Avoid literal -0.0L.
52711         * tests/test-floorf1.c (zero): New variable.
52712         (main): Avoid literal -0.0f.
52713         * tests/test-floorl.c (zero): New variable.
52714         (main): Avoid literal -0.0L.
52715         * tests/test-roundf1.c (zero): New variable.
52716         (main): Avoid literal -0.0f.
52717         * tests/test-round1.c (zero): New variable.
52718         (main): Avoid literal -0.0.
52719         * tests/test-roundl.c (zero): New variable.
52720         (main): Avoid literal -0.0L.
52721         * tests/test-truncf1.c (zero): New variable.
52722         (main): Avoid literal -0.0f.
52723         * tests/test-trunc1.c (zero): New variable.
52724         (main): Avoid literal -0.0.
52725         * tests/test-truncl.c (zero): New variable.
52726         (main): Avoid literal -0.0L.
52727         * tests/test-frexp.c (zero): New variable.
52728         (main): Avoid literal -0.0.
52729         * tests/test-frexpl.c (zero): New variable.
52730         (main): Avoid literal -0.0L.
52731         * tests/test-ldexpl.c (zero): New variable.
52732         (main): Avoid literal -0.0L.
52733         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
52734         (zerod, zerol): New variables.
52735         (test_function): Avoid literals -0.0, -0.0L.
52736         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
52737         (zerod, zerol): New variables.
52738         (test_function): Avoid literals -0.0, -0.0L.
52739         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
52740         (zerod, zerol): New variables.
52741         (test_function): Avoid literals -0.0, -0.0L.
52742         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
52743         (zerod, zerol): New variables.
52744         (test_function): Avoid literals -0.0, -0.0L.
52745         * tests/test-strtod.c (zero): New variable.
52746         (main): Avoid literal -0.0.
52747         Reported by Jonathan C. Patschke <jp@centtech.com>.
52748
52749 2008-07-31  Jim Meyering  <meyering@redhat.com>
52750
52751         sha256.h: correct definition of SHA224_DIGEST_SIZE
52752         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
52753         Reported by Paulie Pena IV <paulie4@gmail.com>.
52754         Define as 224 / 8, rather than as a literal.
52755         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
52756         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
52757         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
52758
52759 2008-07-31  Bruno Haible  <bruno@clisp.org>
52760
52761         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
52762         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
52763         Reported by Jonathan Patschke <jp@centtech.com>.
52764
52765 2008-07-31  Bruno Haible  <bruno@clisp.org>
52766
52767         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
52768         Reported by Paolo Bonzini <bonzini@gnu.org>.
52769
52770 2008-07-30  Eric Blake  <ebb9@byu.net>
52771
52772         test-strtod: allow compilation without -lm
52773         * tests/test-strtod.c (main): Avoid link dependence on fabs.
52774         Reported by Dennis Clarke <blastwave@gmail.com>.
52775
52776 2008-07-28  Jim Meyering  <meyering@redhat.com>
52777
52778         bootstrap: work also when there are no .po files in po/
52779         * build-aux/bootstrap (update_po_files): Complete the change
52780         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
52781
52782 2008-07-27  Jim Meyering  <meyering@redhat.com>
52783
52784         * users.txt: Add zile.
52785
52786 2008-07-26  Ben Pfaff  <blp@gnu.org>
52787
52788         Add missing dependencies on new m4/exponent[fdl].m4 files.
52789         * modules/isnanf-nolibm: Add m4/exponentf.m4.
52790         * modules/isnand-nolibm: Add m4/exponentd.m4.
52791         * modules/isnanl-nolibm: Add m4/exponentl.m4.
52792         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
52793         m4/isnan[fdl].m4, because the macros actually used moved.
52794         Reported by Jim Meyering.
52795
52796 2008-07-14  Ben Pfaff  <blp@gnu.org>
52797
52798         Add isinf module.
52799         * lib/isinf.c: New file.
52800         * lib/math.in.h: Define isinf macro if we have decided to replace
52801         it.
52802         * m4/isinf.m4: New file.
52803         * m4/math_h.m4: Initialize and substitute variables for isinf
52804         module.
52805         * modules/isinf: New file.
52806         * modules/isinf-tests: New file.
52807         * modules/math: Add substitutions for new module.
52808         * tests/test-isinf.c: New file.
52809         * doc/posix-functions/isinf.texi: Mention new module.
52810         * MODULES.html.sh: Mention new module.
52811
52812 2008-07-14  Ben Pfaff  <blp@gnu.org>
52813
52814         Factor out some macros for use by additional modules.
52815         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
52816         exponentf.m4.
52817         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
52818         exponentd.m4.
52819         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
52820         file exponentl.m4.
52821         * m4/exponentf.m4: New file.
52822         * m4/exponentd.m4: New file.
52823         * m4/exponentl.m4: New file.
52824         * modules/isnanf: Use new file m4/exponentf.m4.
52825         * modules/isnand: Use new file m4/exponentd.m4.
52826         * modules/isnanl: Use new file m4/exponentl.m4.
52827
52828 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
52829
52830         mktime.c: normalize tp->tm_isdst value to -1/0/1.
52831         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
52832         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
52833         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
52834
52835         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
52836         readlink on platforms without PATH_MAX.
52837
52838 2008-07-21  Eric Blake  <ebb9@byu.net>
52839
52840         Warn, not fail, on stale version.
52841         * top/GNUmakefile (_curr-ver): Tone down previous patch.
52842
52843         Don't allow installation with stale devel version number.
52844         * top/GNUmakefile (_is-install-target): New macro.
52845         (_curr-ver): Forbid installation with stale version number.
52846
52847 2008-07-20  Bruno Haible  <bruno@clisp.org>
52848
52849         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
52850         TESTS_ENVIRONMENT.
52851         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
52852
52853 2008-07-20  Bruno Haible  <bruno@clisp.org>
52854
52855         * lib/c-stack.h (c_stack_action): Add documentation.
52856         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
52857
52858 2008-07-20  Bruno Haible  <bruno@clisp.org>
52859
52860         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
52861         * modules/readlink (License): Likewise.
52862
52863 2008-07-17  Eric Blake  <ebb9@byu.net>
52864
52865         * modules/c-stack (Link): Fix typo.
52866
52867         Make c-stack use libsigsegv, when available.
52868         * modules/c-stack (Depends-on): Add libsigsegv.
52869         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
52870         needed.
52871         * lib/c-stack.c (SIGSTKSZ): Define fallback.
52872         (segv_handler, overflow_handler, c_stack_action)
52873         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
52874         implementation when libsigsegv is available, but only when using
52875         the library is necessary.
52876         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
52877         comment, explaining why XSI check fails on Linux.
52878         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
52879         * tests/test-c-stack2.sh: Tweak skip message.
52880         * NEWS: Document new link-time requirements.
52881
52882 2008-07-16  Eric Blake  <ebb9@byu.net>
52883
52884         c-stack: Expose false positives when not using libsigsegv.
52885         * modules/c-stack-tests (Files): Expand test.
52886         * tests/test-c-stack.c (main): Add means to conditionally trigger
52887         non-overflow SIGSEGV.
52888         * tests/test-c-stack2.sh: New file.
52889
52890 2008-07-14  Bruno Haible  <bruno@clisp.org>
52891
52892         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
52893         Reported by Eric Blake.
52894
52895 2008-07-14  Sam Steingold  <sds@gnu.org>
52896             Bruno Haible  <bruno@clisp.org>
52897
52898         New module libsigsegv.
52899         * modules/libsigsegv: New file.
52900         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
52901         modifications.
52902         * MODULES.html.sh (Signal handling): New section.
52903
52904 2008-07-14  Bruno Haible  <bruno@clisp.org>
52905
52906         * modules/unictype/ctype-* (Description): Add the word "function".
52907         Improves the resulting doc in MODULES.html.
52908
52909 2008-07-12  Ben Pfaff  <blp@gnu.org>
52910
52911         Add longlong module.
52912         * modules/longlong: New file.
52913
52914 2008-07-12  Bruno Haible  <bruno@clisp.org>
52915
52916         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
52917         to empty.
52918
52919 2008-07-10  Ben Pfaff  <blp@gnu.org>
52920
52921         Add isnan module.
52922         * doc/posix-functions/isnan.texi: Mention new module.
52923         * lib/math.in.h: Define isnan macro if we have decided to replace
52924         it.
52925         * m4/isnan.m4: New file.
52926         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
52927         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
52928         also.
52929         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
52930         redundancy.
52931         * m4/math_h.m4: Initialize and substitute variables for isnan
52932         module.
52933         * modules/isnan: New file.
52934         * modules/isnan-tests: New file.
52935         * modules/math: Add substitutions for new module.
52936         * tests/test-isnan.c: New file.
52937         * MODULES.html.sh: Mention new module.
52938
52939 2008-07-10  Ben Pfaff  <blp@gnu.org>
52940
52941         Add isnanf module.
52942         * lib/isnanf.m4: New file.
52943         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
52944         (gl_HAVE_ISNANF_IN_LIBM): New macro.
52945         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
52946         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
52947         * modules/isnanf: New file.
52948         * modules/isnanf-tests: New file.
52949         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
52950         files.
52951         * tests/test-isnanf-nolibm.c: factored most of its contents into
52952         new file tests/test-isnanf.h.
52953         * tests/test-isnanf.h: New file.
52954         * tests/test-isnanf.c: New file.
52955         * MODULES.html.sh: Mention new module.
52956         * doc/glibc-functions/isnanf.texi: Mention new module.
52957
52958 2008-07-10  Ben Pfaff  <blp@gnu.org>
52959
52960         Add isnand module.
52961         * lib/isnand.h: New file.
52962         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
52963         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
52964         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
52965         functionality also.
52966         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
52967         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
52968         (gl_HAVE_ISNAND_IN_LIBM): New macro.
52969         * modules/isnand: New file.
52970         * modules/isnand-tests: New file.
52971         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
52972         files.
52973         * tests/test-isnand-nolibm.c: factored most of its contents into
52974         new file tests/test-isnand.h.
52975         * tests/test-isnand.h: New file.
52976         * tests/test-isnand.c: New file.
52977         * MODULES.html.sh: Mention new module.
52978
52979 2008-07-10  Ben Pfaff  <blp@gnu.org>
52980
52981         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
52982         * lib/isnand.h: Rename lib/isnand-nolibm.h.
52983         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
52984         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
52985         * modules/isnanf-nolibm: Update references to renamed files.
52986         * modules/isnand-nolibm: Likewise.
52987         * modules/isnanf-nolibm-tests: Likewise.
52988         * modules/isnand-nolibm-tests: Likewise.
52989         * lib/frexp.c: Likewise.
52990         * lib/isfinite.c: Likewise.
52991         * lib/signbitd.c: Likewise.
52992         * lib/signbitf.c: Likewise.
52993         * lib/vasnprintf.c: Likewise.
52994         * tests/test-ceilf1.c: Likewise.
52995         * tests/test-ceilf2.c: Likewise.
52996         * tests/test-floorf1.c: Likewise.
52997         * tests/test-floorf2.c: Likewise.
52998         * tests/test-frexp.c: Likewise.
52999         * tests/test-round1.c: Likewise.
53000         * tests/test-round2.c: Likewise.
53001         * tests/test-roundf1.c: Likewise.
53002         * tests/test-strtod.c: Likewise.
53003         * tests/test-trunc1.c: Likewise.
53004         * tests/test-trunc2.c: Likewise.
53005         * tests/test-truncf1.c: Likewise.
53006         * tests/test-truncf2.c: Likewise.
53007         * NEWS: Mention the renamed header files.
53008
53009 2008-07-11  Jim Meyering  <meyering@redhat.com>
53010
53011         vc-list-files: make the last-resort awk code more portable
53012         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
53013         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
53014         does not support it.
53015
53016 2008-07-10  Eric Blake  <ebb9@byu.net>
53017
53018         Work with tar's bootstrap.
53019         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
53020         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
53021         an m4 comment.
53022
53023 2008-07-09  Jim Meyering  <meyering@redhat.com>
53024
53025         posix-shell.m4: fix typo that made this test malfunction
53026         * m4/posix-shell.m4: Remove capitalization in variable name.
53027
53028 2008-07-08  Bruno Haible  <bruno@clisp.org>
53029
53030         * m4/onceonly.m4: Update comments.
53031         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53032
53033 2008-07-04  Jim Meyering  <meyering@redhat.com>
53034
53035         * users.txt: Add vc-dwim.
53036         (bison, coreutils): Use the gitweb URL.
53037
53038 2008-07-03  Jim Meyering  <meyering@redhat.com>
53039
53040         * users.txt: Add libffcall.  From Sam Steingold.
53041
53042 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
53043
53044         getdate.y: do not ignore TZ with relative day, month or year offset
53045         * lib/getdate.y (get_date): Move the tz-handling block to follow the
53046         relative-date-handling, since otherwise, the latter would clobber the
53047         sole output (an updated Start value) of the tz-handling block.
53048         * tests/test-getdate.c: Tests for the fix
53049
53050 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53051
53052         Recognize 'foo_LIBRARIES += libgnu.a'.
53053         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
53054         makefile snippet has already specified an installation location,
53055         also using '+='.
53056
53057 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
53058
53059         getdate.y: factor out common actions
53060         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
53061         Use them in place of open-coded actions.
53062
53063 2008-07-01  Simon Josefsson  <simon@josefsson.org>
53064
53065         Add self-test for getdate module.
53066         * modules/getdate-tests: New file.
53067         * tests/test-getdate.c: New file.
53068
53069 2008-06-29  Bruno Haible  <bruno@clisp.org>
53070
53071         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
53072         .gitignore.
53073         Reported by Sylvain Beucler <beuc@beuc.net>.
53074
53075 2008-06-29  Bruno Haible  <bruno@clisp.org>
53076
53077         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
53078         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
53079
53080 2008-06-29  Bruno Haible  <bruno@clisp.org>
53081
53082         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
53083         EXTRA_DIST.
53084         Reported by Sylvain Beucler <beuc@beuc.net>.
53085
53086 2008-06-26  Jim Meyering  <meyering@redhat.com>
53087
53088         make several modules depend on the "open" module
53089         This provides slightly increased consistency when opening-for-write
53090         the name of a non-directory spelled with a trailing slash.
53091         * modules/chdir-safer: Likewise.
53092         * modules/chown: Likewise.
53093         * modules/clean-temp: Likewise.
53094         * modules/copy-file: Likewise.
53095         * modules/fchdir: Likewise.
53096         * modules/fcntl-safer: Likewise.
53097         * modules/pipe: Likewise.
53098         * modules/utime: Likewise.
53099         Prompted by Eric Blake and Bruno Haible.
53100
53101 2008-06-24  Andreas Schwab  <schwab@suse.de>
53102
53103         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
53104         literals can be used as initializers for global variables.
53105
53106 2008-06-23  Eric Blake  <ebb9@byu.net>
53107
53108         Make gnulib-cache.m4 easier to diff.
53109         * gnulib-tool (func_import): Allow newlines when reading cached
53110         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
53111
53112 2008-06-23  Bruno Haible  <bruno@clisp.org>
53113
53114         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
53115         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
53116         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
53117         m4/signalblocking.m4.
53118         (gl_PREREQ_SIGACTION): Don't invoke it.
53119         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
53120         gl_PREREQ_SIG_HANDLER_H.
53121         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
53122         Don't check for sigaction here.
53123
53124 2008-06-23  Bruno Haible  <bruno@clisp.org>
53125
53126         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
53127         (install_handlers): Don't set the SA_RESETHAND flag.
53128
53129 2008-06-23  Bruno Haible  <bruno@clisp.org>
53130
53131         * m4/sigaction.m4: Comment fixes.
53132         * lib/signal.in.h: Likewise.
53133
53134 2008-06-23  Eric Blake  <ebb9@byu.net>
53135
53136         Fix typo.
53137         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
53138
53139         Avoid SA_ namespace.
53140         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
53141         Reported by Ralf Wildenhues.
53142
53143         Avoid test failure due to SA_RESTORER.
53144         * tests/test-sigaction.c (SA_MASK): New macro.
53145         (main): Avoid failing due to extension flags being set.
53146         Reported by Jim Meyering.
53147
53148         Revert use of sig-handler.h in sigprocmask.c.
53149         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
53150         it requires the existence of struct sigaction.
53151         * lib/sigprocmask.c (handler_t): Restore typedef.
53152         (rpl_signal, old_handlers): Use local type.
53153
53154 2008-06-22  Bruno Haible  <bruno@clisp.org>
53155
53156         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
53157         conditionally.
53158         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53159
53160 2008-06-22  Bruno Haible  <bruno@clisp.org>
53161
53162         * doc/posix-functions/siginterrupt.texi: Move note.
53163
53164         * lib/signal.in.h (SA_RESTART): New macro.
53165         * lib/sigaction.c: Update comment.
53166
53167         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
53168
53169         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
53170         (gl_PREREQ_SIGPROCMASK): Invoke it.
53171         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
53172
53173         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
53174
53175         * lib/sigprocmask.c: Update a comment.
53176
53177 2008-06-21  Eric Blake  <ebb9@byu.net>
53178
53179         Use sigaction module rather than signal().
53180         * modules/c-stack (Depends-on): Add sigaction.
53181         * modules/fatal-signal (Depends-on): Likewise.
53182         * modules/nanosleep (Depends-on): Likewise.
53183         * modules/sigprocmask (Files): Add sig-handler.h.
53184         * modules/sigaction (Files): Likewise.
53185         * lib/sig-handler.h (get_handler): New file, suggested by Paul
53186         Eggert.
53187         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
53188         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
53189         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
53190         (init_fatal_signals): Likewise.
53191         * lib/nanosleep.c (rpl_nanosleep): Likewise.
53192         (siginterrupt): Delete fallback.
53193         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
53194         instead.
53195         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
53196         siginterrupt.
53197
53198         New module sigaction, for mingw.
53199         * modules/sigaction: New module...
53200         * modules/sigaction-tests: ...and its test.
53201         * m4/sigaction.m4: New file.
53202         * lib/sigaction.c: Likewise.
53203         * tests/test-sigaction.c: Likewise.
53204         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
53205         * modules/signal (Makefile.am): Likewise.
53206         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
53207         needed.
53208         * doc/posix-headers/signal.texi (signal.h): Mention provided
53209         types.
53210         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
53211         that sigaction is preferable.
53212         * doc/posix-functions/sigaction.texi (sigaction): Mention new
53213         module.
53214         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53215         sigaction.
53216
53217         Improve robustness of sigprocmask by overriding signal.
53218         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
53219         is in use.
53220         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
53221         (SIGKILL, SIGSTOP): Provide fallbacks.
53222         (rpl_signal): Implement.
53223         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
53224         signal can be called inside handlers.
53225
53226         Fix nanosleep module on mingw.
53227         * modules/nanosleep (Depends-on): Add sys_select.
53228         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
53229
53230         Fix licensing of sigprocmask.
53231         * modules/raise (License): Relicense as LGPL.
53232
53233 2008-06-21  Bruno Haible  <bruno@clisp.org>
53234
53235         * lib/propername.c (proper_name_utf8): Don't use the transliterated
53236         result if it contains question marks.
53237         Reported by Michael Geng <linux@michaelgeng.de>.
53238
53239 2008-06-19  Bruno Haible  <bruno@clisp.org>
53240
53241         Fix CVS-ism.
53242         * doc/gnulib.texi: Include updated-stamp.texi.
53243         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
53244         (updated-stamp.texi): New rule.
53245         (gnulib.info): Depend on it.
53246         * doc/.gitignore: Add updated-stamp.texi.
53247         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
53248
53249 2008-06-19  Bruno Haible  <bruno@clisp.org>
53250
53251         * doc/Makefile (gnulib.info): Update and simplify dependencies.
53252         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
53253
53254 2008-06-19  Eric Blake  <ebb9@byu.net>
53255
53256         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
53257         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
53258         Reported by Stepan Kasal.
53259
53260 2008-06-18  Bruno Haible  <bruno@clisp.org>
53261
53262         * lib/fatal-signal.c (init_fatal_signals): Add comment.
53263         Reported by Eric Blake.
53264
53265 2008-06-18  Eric Blake  <ebb9@byu.net>
53266
53267         Work around cygwin 1.5.25 strsignal bug.
53268         * tests/test-strsignal.c: Allow for const char *.
53269         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
53270
53271 2008-06-18  Simon Josefsson  <simon@josefsson.org>
53272
53273         * users.txt: Update URL to article and add author/date
53274         information.
53275
53276 2008-06-17  Bruno Haible  <bruno@clisp.org>
53277
53278         New macro gl_DISABLE_THREADS.
53279         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
53280         if the user did not pass --enable-threads or --disable-threads option.
53281         (gl_DISABLE_THREADS): New macro.
53282         Reported by Eric Blake <ebb9@byu.net>.
53283
53284 2008-06-17  Bruno Haible  <bruno@clisp.org>
53285
53286         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
53287         when the macro ignores it.
53288         Based on a patch by Eric Blake <ebb9@byu.net>.
53289
53290 2008-06-17  Bruno Haible  <bruno@clisp.org>
53291
53292         * modules/tls (License): Change to LGPLv2+.
53293         Reported by Eric Blake.
53294
53295 2008-06-17  Eric Blake  <ebb9@byu.net>
53296
53297         Simplify c-stack prerequisites.
53298         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
53299         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
53300         no longer requires <ucontext.h> to exist.  Optimize setrlimit
53301         check.
53302         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
53303         <sys/resource.h>.
53304
53305         Move c-stack test into testsuite.
53306         * modules/c-stack-tests: New file.
53307         * lib/c-stack.c [DEBUG]: Move test program...
53308         * tests/test-c-stack.c: ...into this new file.  Skip rather than
53309         fail test if sigaltstack is lacking.
53310         * tests/test-c-stack.sh: New driver file.
53311
53312 2008-06-16  Eric Blake  <ebb9@byu.net>
53313
53314         Use raise module consistently.
53315         * modules/fatal-signal (Depends-on): Add raise.
53316         * modules/sigprocmask (Depends-on): Likewise.
53317         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
53318         * lib/sigprocmask.c (sigprocmask): Likewise.
53319         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
53320         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
53321
53322         Fix compliance bug in sigpending.
53323         * lib/sigprocmask.c (sigpending): Return pending array via
53324         parameter, not return value.
53325
53326 2008-06-14  Eric Blake  <ebb9@byu.net>
53327
53328         Improve obstack-printf test code.
53329         * tests/test-obstack-printf.c (test_function): Fix comment, and
53330         simplify usage of obstack_* in macros.  Add a test for coverage.
53331         Reported by Bruno Haible.
53332
53333 2008-06-14  Bruno Haible  <bruno@clisp.org>
53334
53335         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
53336         array size as a constant, not as a const variable.
53337         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
53338         AC_USE_SYSTEM_EXTENSIONS.
53339         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
53340         Test whether the obstack_printf function actually exists.
53341         * modules/obstack-printf (Depends-on): Add extensions.
53342         (Include): Remove obstack.h.
53343         * modules/obstack-printf-posix (Depends-on): Add extensions.
53344         (Include): Remove obstack.h.
53345
53346 2008-06-13  Eric Blake  <ebb9@byu.net>
53347
53348         Add obstack-printf and obstack-printf-posix modules.
53349         * modules/obstack-printf: New file.
53350         * modules/obstack-printf-posix: Likewise.
53351         * MODULES.html.sh (Misc): Mention them.
53352         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
53353         Likewise.
53354         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
53355         Likewise.
53356         * modules/stdio (Makefile.am): Accomodate new modules.
53357         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
53358         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
53359         Declare.
53360         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
53361         functions.
53362         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
53363         (gl_REPLACE_OBSTACK_PRINTF): New macros
53364         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
53365         * tests/test-obstack-printf.c: New file.
53366         * modules/obstack-printf-tests: Likewise.
53367         * modules/obstack-printf-posix-tests: Likewise.
53368
53369 2008-06-11  Bruno Haible  <bruno@clisp.org>
53370
53371         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
53372         * lib/open.c: Include errno.h.
53373         (open): Fail when attempting to write to a file that has a trailing
53374         slash.
53375         * tests/test-open.c (main): Test against trailing slash bug.
53376         * doc/posix-functions/open.texi: Mention the trailing slash bug.
53377
53378 2008-06-10  Bruno Haible  <bruno@clisp.org>
53379
53380         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
53381         for $? to work inside the trap command, with various /bin/sh-s.
53382         * tests/test-vc-list-files-cvs.sh: Likewise.
53383
53384 2008-06-10  Bruno Haible  <bruno@clisp.org>
53385
53386         * lib/acl-internal.h: Don't include gettext.h here.
53387         * lib/set-mode-acl.c: Include gettext.h here.
53388         * lib/copy-acl.c: Likewise.
53389
53390 2008-06-10  Bruno Haible  <bruno@clisp.org>
53391
53392         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
53393         * lib/wait-process.c (wait_subprocess): Likewise.
53394         * lib/execute.h (execute): Add termsigp argument.
53395         * lib/execute.c (execute): Likewise.
53396         * lib/csharpcomp.c (compile_csharp_using_pnet,
53397         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
53398         * lib/csharpexec.c (execute_csharp_using_pnet,
53399         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
53400         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
53401         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
53402         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
53403         is_jikes_present): Update.
53404         * lib/javaexec.c (execute_java_class): Update.
53405         * lib/javaversion.c (execute_and_read_line): Update.
53406         * NEWS: Document the changes.
53407         Reported by Eric Blake.
53408
53409 2008-06-10  Eric Blake  <ebb9@byu.net>
53410
53411         Add missing include.
53412         * tests/test-strstr.c (includes): Add <signal.h>.
53413         * tests/test-strcasestr.c (includes): Likewise.
53414         * tests/test-memmem.c (includes): Likewise.
53415
53416 2008-06-10  Bruno Haible  <bruno@clisp.org>
53417
53418         * lib/wait-process.c (wait_subprocess): Add an assertion.
53419
53420 2008-06-10  Bruno Haible  <bruno@clisp.org>
53421
53422         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
53423
53424 2008-06-10  Bruno Haible  <bruno@clisp.org>
53425
53426         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
53427         using alarm().
53428         * tests/test-strcasestr.c (main): Likewise.
53429         * tests/test-strstr.c (main): Likewise.
53430
53431 2008-06-09  Bruno Haible  <bruno@clisp.org>
53432
53433         Work around the Solaris 10 ACE ACLs ABI change.
53434         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
53435         declare if ACL_NO_TRIVIAL is present.
53436         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
53437         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
53438         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
53439         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
53440         define if ACL_NO_TRIVIAL is present.
53441         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
53442         and use the current ABI.
53443         (file_has_acl): Use same #if condition as elsewhere.
53444         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
53445         in use, and use the current ABI.
53446         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
53447         Reported by Jim Meyering.
53448
53449 2008-06-09  Eric Blake  <ebb9@byu.net>
53450
53451         Work around environments that (stupidly) ignore SIGALRM.
53452         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
53453         before using alarm().
53454         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53455         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
53456         Reported by Ian Beckwith <ianb@erislabs.net>.
53457
53458         Produce autobuild blurb earlier in log.
53459         * modules/autobuild (configure.ac-early): Move AB_INIT here.
53460
53461 2008-06-09  Jim Meyering  <meyering@redhat.com>
53462         and Ondřej Vašík  <ovasik@redhat.com>
53463
53464         utimens.c: correct kernel bug work-around
53465         Ondřej Vašík found that the invalid return value of 280 indicates
53466         failure, not success, and the kernel bug we're trying to work
53467         around affects not just the utimensat call, but also the fallback
53468         futimens call.
53469         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
53470         not success.
53471         [HAVE_FUTIMENS]: Use the same work-around, here.
53472
53473 2008-06-09  Jim Meyering  <meyering@redhat.com>
53474
53475         add more guards around definition of ACE_-related code
53476         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
53477         ALLOW and ACE_OWNER are also defined.
53478
53479 2008-06-08  Bruno Haible  <bruno@clisp.org>
53480
53481         * lib/acl-internal.h: Add me as co-author.
53482         * lib/file-has-acl.c: Likewise.
53483         * lib/set-mode-acl.c: Likewise.
53484         * lib/copy-acl.c: Likewise.
53485
53486 2008-06-08  Bruno Haible  <bruno@clisp.org>
53487
53488         Add support for AIX ACLs.
53489         * lib/acl-internal.h (acl_nontrivial): New declaration.
53490         * lib/file-has-acl.c (acl_nontrivial): New function.
53491         (file_has_acl): Add implementation using AIX 4 ACL API.
53492         * lib/set-mode-acl.c (qset_acl): Likewise.
53493         * lib/copy-acl.c (qcopy_acl): Likewise.
53494
53495 2008-06-08  Bruno Haible  <bruno@clisp.org>
53496
53497         Add support for HP-UX ACLs.
53498         * lib/acl-internal.h (acl_nontrivial): New declaration.
53499         * lib/file-has-acl.c (acl_nontrivial): New function.
53500         (file_has_acl): Add implementation using HP-UX 11 ACL API.
53501         * lib/set-mode-acl.c (qset_acl): Likewise.
53502         * lib/copy-acl.c (qcopy_acl): Likewise.
53503
53504 2008-06-08  Bruno Haible  <bruno@clisp.org>
53505
53506         Add support for Cygwin ACLs.
53507         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
53508         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
53509         the chmod_or_fchmod call.
53510         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
53511
53512 2008-06-08  Bruno Haible  <bruno@clisp.org>
53513
53514         Fix bug with setuid modes in Solaris 10+ code.
53515         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
53516         succeeded, when the mode contains some special bits.
53517
53518 2008-06-08  Bruno Haible  <bruno@clisp.org>
53519
53520         Add support for Solaris 7..10 ACLs.
53521         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
53522         declarations.
53523         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
53524         functions.
53525         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
53526         * lib/set-mode-acl.c (qset_acl): Likewise.
53527         * lib/copy-acl.c (qcopy_acl): Likewise.
53528
53529 2008-06-08  Bruno Haible  <bruno@clisp.org>
53530
53531         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
53532         declaration.
53533         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
53534         (acl_access_nontrivial): Remove MacOS X case.
53535         (file_has_acl): Use acl_extended_nontrivial.
53536         * lib/copy-acl.c (qcopy_acl): Likewise.
53537
53538 2008-06-08  Bruno Haible  <bruno@clisp.org>
53539
53540         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
53541
53542 2008-06-08  Jim Meyering  <meyering@redhat.com>
53543
53544         * modules/acl (Maintainer): Add Bruno Haible.
53545
53546 2008-06-07  Bruno Haible  <bruno@clisp.org>
53547
53548         Improve support for Tru64 ACLs.
53549         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
53550         ACL on OSF/1.
53551
53552 2008-06-07  Bruno Haible  <bruno@clisp.org>
53553
53554         Add support for MacOS X ACLs.
53555         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
53556         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
53557         * lib/set-mode-acl.c (qset_acl): Likewise.
53558         * lib/copy-acl.c (qcopy_acl): Likewise.
53559
53560 2008-06-07  Bruno Haible  <bruno@clisp.org>
53561
53562         Fix memory leak introduced on 2008-05-22.
53563         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
53564         use.
53565
53566 2008-06-07  Bruno Haible  <bruno@clisp.org>
53567
53568         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
53569         to construct an empty ACL.
53570
53571 2008-06-07  Bruno Haible  <bruno@clisp.org>
53572
53573         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
53574         precisely.
53575         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
53576
53577 2008-06-07  Bruno Haible  <bruno@clisp.org>
53578
53579         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
53580         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
53581
53582 2008-06-07  Bruno Haible  <bruno@clisp.org>
53583
53584         * doc/posix-functions/_setjmp.texi: Explain the use of this function
53585         regardless of POSIX.
53586         * doc/posix-functions/_longjmp.texi: Likewise.
53587         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
53588         SystemV platform in this case.
53589
53590 2008-06-06  Eric Blake  <ebb9@byu.net>
53591
53592         Document abort() bugs.
53593         * doc/posix-functions/abort.texi (abort): Mention anomalies.
53594
53595         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
53596         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
53597         sigsetjmp.
53598         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
53599         siglongjmp, but only as a macro.
53600         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
53601         is obsolete.
53602         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
53603
53604         Tweak documentation to cover cygwin argz bugs.
53605         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
53606         argz bug fix; no code change needed since no cygwin releases
53607         occurred between the last fix and the bug being tested.
53608         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
53609         module and recently fixed cygwin bugs.
53610         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
53611         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
53612         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
53613         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
53614         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
53615         Likewise.
53616         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
53617         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
53618         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
53619         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
53620         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
53621         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
53622         Likewise.
53623
53624         Avoid gcc warning on cygwin.
53625         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
53626         !ACL_NO_TRIVIAL]: Avoid unused variable.
53627
53628 2008-06-05  Eric Blake  <ebb9@byu.net>
53629
53630         Be tolerant of UNKNOWN version in gnulib-tool test dir.
53631         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
53632         git-version-gen fails to come up with a version.
53633         Reported by Simon Josefsson.
53634
53635 2008-06-05  Jim Meyering  <meyering@redhat.com>
53636             Paul Eggert  <eggert@cs.ucla.edu>
53637
53638         utimens.c: work around a probable Linux kernel bug
53639         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
53640         appears to be a kernel bug that causes utimensat to return 280
53641         instead of 0, indicating success.
53642
53643 2008-06-04  Bruno Haible  <bruno@clisp.org>
53644
53645         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
53646         2008-06-01 commit.
53647
53648 2008-06-04  Bruno Haible  <bruno@clisp.org>
53649
53650         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
53651         * lib/file-has-acl.c (acl_access_nontrivial): New function.
53652         (file_has_acl): Use it. Save errno afterwards.
53653         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
53654
53655 2008-06-03  Bruno Haible  <bruno@clisp.org>
53656
53657         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
53658         draft code. Simplify #ifs.
53659         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
53660         Put Solaris code after POSIX-draft code. Fix comments regarding
53661         Solaris 10, HP-UX. Mention Cygwin.
53662         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
53663
53664 2008-06-03  Eric Blake  <ebb9@byu.net>
53665
53666         Provide fallback for older kernels.
53667         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
53668         Provide runtime fallback if kernel lacks support.
53669         Reported by Mike Frysinger.
53670
53671 2008-06-02  Bruno Haible  <bruno@clisp.org>
53672
53673         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
53674         it exists.
53675
53676 2008-06-02  Bruno Haible  <bruno@clisp.org>
53677
53678         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
53679         * lib/copy-acl.c (qcopy_acl): Update comment.
53680
53681 2008-06-02  Bruno Haible  <bruno@clisp.org>
53682
53683         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
53684         like ACL APIs.
53685
53686 2008-06-02  Bruno Haible  <bruno@clisp.org>
53687
53688         * tests/test-file-has-acl.sh: Use different code for Cygwin.
53689         * tests/test-set-mode-acl.sh: Likewise.
53690         * tests/test-copy-acl.sh: Likewise.
53691         * tests/test-copy-file.sh: Likewise.
53692
53693 2008-06-02  Bruno Haible  <bruno@clisp.org>
53694
53695         * tests/test-file-has-acl.sh: Remove unused code.
53696
53697 2008-06-01  Bruno Haible  <bruno@clisp.org>
53698
53699         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
53700         (copy_acl): Just a wrapper around qcopy_acl that emits the error
53701         messages.
53702         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
53703
53704 2008-06-01  Bruno Haible  <bruno@clisp.org>
53705
53706         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
53707         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
53708         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
53709         APIs.
53710         * modules/acl-tests (configure.ac): Remove tests now contained in
53711         m4/acl.m4.
53712
53713 2008-06-02  Jim Meyering  <meyering@redhat.com>
53714
53715         announce-gen: use a better key-server host name
53716         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
53717         it may be more consistently reliable.  Suggested by Werner Koch
53718         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
53719
53720 2008-06-01  Bruno Haible  <bruno@clisp.org>
53721
53722         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
53723         Reported by Voroskoi Andras <voroskoi@gmail.com>.
53724
53725 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
53726
53727         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
53728
53729 2008-06-01  Bruno Haible  <bruno@clisp.org>
53730
53731         New ACL tests.
53732         * tests/test-file-has-acl.sh: New file.
53733         * tests/test-file-has-acl.c: New file.
53734         * tests/test-set-mode-acl.sh: New file.
53735         * tests/test-set-mode-acl.c: New file.
53736         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
53737         * tests/test-copy-acl.c: New file.
53738         * modules/acl-tests: New file, based on modules/copy-file-tests.
53739         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
53740         (Depends-on): Add acl-tests.
53741         (configure.ac): Remove checks.
53742         (Makefile.am): Don't create test-sameacls program here any more.
53743
53744 2008-06-01  Bruno Haible  <bruno@clisp.org>
53745
53746         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
53747         * tests/test-sameacls.c: Include progname.h.
53748         (main): Invoke set_program_name. Portability fixes for MacOS X,
53749         Solaris, HP-UX.
53750
53751 2008-06-01  Bruno Haible  <bruno@clisp.org>
53752
53753         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
53754         function.
53755         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
53756
53757 2008-06-01  Bruno Haible  <bruno@clisp.org>
53758
53759         * modules/rpmatch (Depends-on): Add strdup.
53760
53761 2008-06-01  Bruno Haible  <bruno@clisp.org>
53762
53763         * lib/pipe.c: Include unistd-safer.h.
53764         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
53765         * modules/pipe (Depends-on): Add unistd-safer.
53766
53767 2008-05-30  Simon Josefsson  <simon@josefsson.org>
53768
53769         * modules/autobuild (configure.ac): Call AB_INIT.
53770
53771 2008-05-30  Simon Josefsson  <simon@josefsson.org>
53772
53773         * tests/test-getaddrinfo.c: Don't print debug messages by default.
53774         Suggested by Bruno Haible <bruno@clisp.org>.
53775
53776 2008-05-30  Simon Josefsson  <simon@josefsson.org>
53777
53778         * tests/test-base64.c: Cast size_t to unsigned long when invoking
53779         printf.  Use %lu instead of %d.  Reported by Bruno Haible
53780         <bruno@clisp.org>.
53781
53782 2008-05-29  Eric Blake  <ebb9@byu.net>
53783
53784         Prefer new POSIX 200x interfaces over futimesat.
53785         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
53786         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
53787         when available.
53788         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
53789
53790 2008-05-28  Bruno Haible  <bruno@clisp.org>
53791
53792         * modules/stpcpy (License): Change to LGPLv2+.
53793         Requested by David Lutterkort <dlutter@redhat.com>.
53794
53795 2008-05-27  Bruno Haible  <bruno@clisp.org>
53796
53797         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
53798         current mingw.
53799         Reported by Jose E. Marchesi <jemarch@gnu.org>.
53800
53801 2008-05-27  Bruno Haible  <bruno@clisp.org>
53802
53803         * modules/iconv_open (Link): New section, from module 'iconv'.
53804         * modules/striconv (Link): Likewise.
53805         * modules/striconveh (Link): Likewise.
53806         * modules/xstriconv (Link): Likewise.
53807         * modules/unicodeio (Link): Likewise.
53808         * modules/propername (Link): Likewise.
53809         Reported by Jim Meyering.
53810
53811 2008-05-26  Jim Meyering  <meyering@redhat.com>
53812
53813         sha256: do not artificially restrict buffer length to be < 2^32
53814         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
53815         uint32_t to size_t.
53816         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
53817         to match.
53818
53819         avoid unaligned access errors, e.g., on sparc
53820         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
53821         direct access through a possibly-unaligned uint64* pointer.
53822         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
53823         direct access through a possibly-unaligned uint32* pointer.
53824         Prompted by this patch from Tom "spot" Callaway:
53825         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
53826
53827         sha512.c: fix typo in comment
53828         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
53829
53830 2008-05-25  Bruno Haible  <bruno@clisp.org>
53831
53832         * lib/set-mode-acl.c: Renamed from lib/acl.c.
53833         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
53834         (Makefile.am): Update lib_SOURCES.
53835
53836 2008-05-25  Bruno Haible  <bruno@clisp.org>
53837
53838         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
53839
53840 2008-05-25  Jim Meyering  <meyering@redhat.com>
53841
53842         useless-if-before-free: freed expr may have white-space differences
53843         * build-aux/useless-if-before-free: Recognize cases in which the
53844         freed expression differs from the tested one in embedded white
53845         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
53846         $1 was used, so we can't make any regexp shy.  Improved tests now
53847         detect this.
53848
53849         useless-if-before-free: accept white space in the expression.
53850         * build-aux/useless-if-before-free: For now, any white space
53851         in the expression must be identical in the free argument.
53852
53853         useless-if-before-free: efficiency tweak
53854         * build-aux/useless-if-before-free: Make the expression-matching
53855         regexp "shy".
53856         Make the *outer* regexp shy, not the expr-matching one.
53857
53858         update code-in-comment to accept cast of free arg
53859         * build-aux/useless-if-before-free: Update regexp.
53860
53861 2008-05-25  Bruno Haible  <bruno@clisp.org>
53862
53863         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
53864         * modules/copy-file-tests (Files, Makefile.am): Update.
53865         * tests/test-copy-file.c (func_test_copy): Update.
53866
53867 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
53868
53869         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
53870
53871 2008-05-23  Bruno Haible  <bruno@clisp.org>
53872
53873         Improve support for ACLs on OSF/1.
53874         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
53875         Remove fallback for unknown flavors of ACLs.
53876
53877 2008-05-22  Bruno Haible  <bruno@clisp.org>
53878
53879         Add support for ACLs on OSF/1.
53880         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
53881         replacements.
53882         (acl_free_text): New macro fallback.
53883         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
53884         acl_free.
53885         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
53886         acl_free_text function. Require AC_C_INLINE.
53887
53888 2008-05-22  Bruno Haible  <bruno@clisp.org>
53889
53890         Make copy_acl work on MacOS X 10.5.
53891         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
53892         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
53893         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
53894         If MODE_INSIDE_ACL, don't assume that every system has the same text
53895         representation for ACLs as FreeBSD.
53896         * lib/copy-acl.c (copy_acl): Add support for platforms with
53897         !MODE_INSIDE_ACL.
53898         * lib/file-has-acl.c (file_has_acl): Likewise.
53899         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
53900         FreeBSD, MacOS X, or IRIX, respectively.
53901
53902 2008-05-22  Bruno Haible  <bruno@clisp.org>
53903
53904         * lib/acl.h: Don't include <sys/acl.h>.
53905         (GETACLCNT): Move fallback to lib/acl-internal.h.
53906         * lib/acl-internal.h: Include <sys/acl.h> here.
53907         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
53908
53909 2008-05-22  Bruno Haible  <bruno@clisp.org>
53910
53911         Split off copy_acl function to separate file.
53912         * lib/copy-acl.c: New file, extracted from lib/acl.c.
53913         * lib/acl.c (copy_acl): Moved function to separate file.
53914         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
53915         * modules/acl (Files): Add lib/copy-acl.c.
53916         (Makefiles.am): Augment lib_SOURCES.
53917
53918 2008-05-22  Bruno Haible  <bruno@clisp.org>
53919
53920         * modules/copy-file-tests: New file.
53921         * tests/test-copy-file.sh: New file.
53922         * tests/test-copy-file.c: New file.
53923         * tests/test-copy-file-sameacls.c: New file.
53924
53925 2008-05-22  Eric Blake  <ebb9@byu.net>
53926
53927         Avoid gcc warning.
53928         * tests/test-memcmp.c (main): Pass NULL indirectly.
53929
53930 2008-05-21  Bruno Haible  <bruno@clisp.org>
53931
53932         Add reference doc about ACLs.
53933         * doc/acl-resources.txt: New file.
53934         * doc/acl-cygwin.txt: New file.
53935
53936 2008-05-21  Bruno Haible  <bruno@clisp.org>
53937
53938         Avoid one more warning from gcc.
53939         * lib/vasnprintf.c (IF_LINT): Update comments.
53940         (VASNPRINTF): Use it also for the 'prefix' array initializer.
53941
53942 2008-05-21  Jim Meyering  <meyering@redhat.com>
53943
53944         avoid a warning from gcc
53945         * lib/vasnprintf.c (IF_LINT): Define.
53946         (scale10_round_decimal_long_double):
53947         Use it to avoid a "may be used uninitialized" warning.
53948         (scale10_round_decimal_double): Likewise.
53949
53950 2008-05-21  Simon Josefsson  <simon@josefsson.org>
53951
53952         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
53953         declared.
53954
53955 2008-05-20  Bruno Haible  <bruno@clisp.org>
53956
53957         * tests/test-memcmp.c (main): Test also the sign of the result. Test
53958         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
53959
53960 2008-05-20  Simon Josefsson  <simon@josefsson.org>
53961
53962         * modules/memcmp-tests: New file.
53963         * tests/test-memcmp.c: New file.
53964
53965 2008-05-19  Bruno Haible  <bruno@clisp.org>
53966
53967         * modules/propername (Notice, configure.ac): Put quoted "..." into
53968         --keyword option.
53969         * lib/propername.h: Update comments accordingly.
53970         Reported by Eric Blake.
53971
53972 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
53973
53974         * modules/getpass-gnu (Depends-on): Add fseeko.
53975
53976 2008-05-19  Simon Josefsson  <simon@josefsson.org>
53977
53978         * modules/base64-tests: New file.
53979
53980 2008-05-19  Bo Borgerson <gigabo@gmail.com>
53981
53982         * lib/base64.c (base64_decode_ctx): If a decode context structure
53983         was passed in use it to ignore newlines.  If a context structure
53984         was _not_ passed in, continue to treat newlines as garbage (this
53985         is the historical behavior).  Formerly base64_decode.
53986         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
53987         takes a decode context structure.
53988         * lib/base64.h (base64_decode): Macro for four-argument calls.
53989         (base64_decode_alloc): Likewise.
53990         * lib/base64.c (base64_decode_ctx): If a decode context structure
53991         was passed in use it to ignore newlines.  If a context structure
53992         was _not_ passed in, continue to treat newlines as garbage (this
53993         is the historical behavior).  Formerly base64_decode.
53994         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
53995         takes a decode context structure.
53996         * lib/base64.h (base64_decode): Macro for four-argument calls.
53997         (base64_decode_alloc): Likewise.
53998
53999 2008-05-19  Jim Meyering  <meyering@redhat.com>
54000
54001         avoid a warning from gcc
54002         * lib/trim.c (IF_LINT): Define.
54003         (trim2): Use it to avoid a "may be used uninitialized" warning.
54004
54005         Fix doc typo.
54006         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
54007
54008 2008-05-19  Bruno Haible  <bruno@clisp.org>
54009
54010         * doc/glibc-functions/getpass.texi: Document limits of other
54011         implementations.
54012
54013 2008-05-19  Simon Josefsson  <simon@josefsson.org>
54014             Bruno Haible <bruno@clisp.org>
54015
54016         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
54017
54018 2008-05-18  Bruno Haible  <bruno@clisp.org>
54019
54020         * modules/propername: New file, from GNU gettext.
54021         * lib/propername.h: New file, from GNU gettext.
54022         * lib/propername.c: New file, from GNU gettext.
54023         * MODULES.html.sh (Internationalization functions): Add propername.
54024
54025 2008-05-16  Jim Meyering  <meyering@redhat.com>
54026             Bruno Haible  <bruno@clisp.org>
54027
54028         Avoid some warnings from "gcc -Wshadow".
54029         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
54030
54031 2008-05-15  Eric Blake  <ebb9@byu.net>
54032
54033         Extend previous patch to cygwin 1.7.0.
54034         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
54035         fast implementation in cygwin >= 1.7.0.
54036         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54037         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54038
54039 2008-05-15  Bruno Haible  <bruno@clisp.org>
54040
54041         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
54042         implementation in glibc >= 2.9.
54043         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54044         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54045
54046 2008-05-15  Bruno Haible  <bruno@clisp.org>
54047
54048         * MODULES.html.sh (Internationalization functions): Remove linebreak.
54049         (Unicode string functions): Add unilbrk/*.
54050         Reported by Karl Berry.
54051
54052 2008-05-15  Eric Blake  <ebb9@byu.net>
54053
54054         Fix violation of <stdbool.h> replacement in regex.
54055         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
54056         * lib/regexec.c (re_search_internal): Likewise.
54057         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
54058
54059 2008-05-15  Jim Meyering  <meyering@redhat.com>
54060
54061         avoid distracting test output when git or cvs is not found
54062         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
54063         * tests/test-vc-list-files-git.sh: Likewise.
54064
54065 2008-05-15  Eric Blake  <ebb9@byu.net>
54066
54067         Glibc finally accepted the memmem speedup code, bugzilla #5514.
54068         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
54069         glibc version.
54070         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
54071         * doc/posix-functions/strstr.texi (strstr): Likewise.
54072         * lib/str-two-way.h (MAX): Sychronize with glibc.
54073
54074 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
54075
54076         * lib/regcomp.c (optimize_utf8): Add a note on why we test
54077         opr.ctx_type.
54078         (calc_first): Initialize constraint field.
54079         (duplicate_node_closure): Use it instead of special casing ANCHORS.
54080         Fix grammar.
54081         (duplicate_node): Merge constraint field for all node types.
54082         (calc_eclosure_iter): Look at constraint field for all node types.
54083         * lib/regex_internal.c (create_cd_newstate): Don't look at
54084         opr.ctx_type.
54085
54086 2008-05-14  Bruno Haible  <bruno@clisp.org>
54087
54088         Help GCC to do better code generation.
54089         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
54090         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
54091         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
54092         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
54093         Declare with attribute 'malloc' if supported.
54094
54095 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
54096
54097         use "echo STR|wc -c" rather than unportable "expr length STR"
54098         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
54099         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
54100
54101 2008-05-14  Jim Meyering  <meyering@redhat.com>
54102
54103         use dd ibs=$n count=1 ... rather than less-portable head -c$n
54104         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
54105         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
54106         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
54107         via Collin Lasse.
54108
54109 2008-05-14  Eric Blake  <ebb9@byu.net>
54110
54111         Avoid quadratic growth in gl_LIBSOURCES.
54112         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
54113         Suggested by Bruno Haible.
54114
54115         Test xmemdup0.
54116         * modules/xmemdup0-tests: New file.
54117         * tests/test-xmemdup0.c: Likewise.
54118
54119 2008-05-13  Eric Blake  <ebb9@byu.net>
54120
54121         Split xmemdup0 into its own module.
54122         * modules/xmemdup0: New file.
54123         * lib/xmemdup0.h: Likewise.
54124         * lib/xmemdup0.c: Likewise.
54125         * MODULES.html.sh (Memory management functions): Add xmemdup0.
54126         * lib/xalloc.h (xmemdup0): Remove.
54127         * lib/xmalloc.c (xmemdup0): Likewise.
54128
54129 2008-05-13  Eric Blake  <ebb9@byu.net>
54130             Bruno Haible  <bruno@clisp.org>
54131
54132         Reduce number of forks required during autoconf.
54133         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
54134         and gl_LIBSOURCES_DIR.
54135         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
54136         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
54137         m4_syscmd per file.
54138         <m4_foreach_w>: Move...
54139         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
54140
54141 2008-05-13  Eric Blake  <ebb9@byu.net>
54142
54143         * gnulib-tool: Fix various comment typos.
54144
54145 2008-05-12  Bruno Haible  <bruno@clisp.org>
54146
54147         Tailor the linebreaking algorithm.
54148         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
54149
54150 2008-05-12  Bruno Haible  <bruno@clisp.org>
54151
54152         Update to Unicode 5.0.0.
54153         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
54154         LBP_JV, LBP_JT. Redistribute values.
54155         (unilbrk_table): Change size.
54156         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
54157         Unicode TR#14 rev. 22.
54158         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
54159         LBP_JV, LBP_JT. Redistribute values.
54160         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
54161         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
54162         Update.
54163         * lib/unilbrk/lbrkprop1.h: Regenerated.
54164         * lib/unilbrk/lbrkprop2.h: Regenerated.
54165         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
54166         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
54167         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
54168         Likewise.
54169         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
54170         Likewise.
54171         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
54172         result.
54173         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
54174         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
54175         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
54176         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
54177         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
54178         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
54179
54180 2008-05-11  Bruno Haible  <bruno@clisp.org>
54181
54182         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
54183
54184 2008-05-11  Bruno Haible  <bruno@clisp.org>
54185
54186         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
54187         * modules/unilbrk/gen-lbrk: New file.
54188
54189 2008-05-11  Bruno Haible  <bruno@clisp.org>
54190
54191         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
54192         * m4/sha512.m4 (gl_SHA512): Likewise.
54193
54194 2008-05-11  Jim Meyering  <meyering@redhat.com>
54195
54196         New modules: crypto/sha256, crypto/sha512 (from coreutils)
54197         * modules/crypto/sha256: New file.
54198         * modules/crypto/sha512: Likewise.
54199         * lib/sha256.c: Likewise.
54200         * lib/sha256.h: Likewise.
54201         * lib/sha512.c: Likewise.
54202         * lib/sha512.h: Likewise.
54203         * lib/u64.h: Likewise.
54204         * m4/sha256.m4: Likewise.
54205         * m4/sha512.m4: Likewise.
54206         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
54207
54208 2008-05-10  Bruno Haible  <bruno@clisp.org>
54209
54210         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
54211         (Input/Output <stdio.h>): Add xprintf.
54212         (Signal handling <signal.h>): Add strsignal.
54213         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
54214         (Core language properties): Add func.
54215         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
54216         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
54217         strings.
54218         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
54219         (Input/output): New section.
54220         (File system functions): Add openat-die, stat-macros.
54221         (Networking functions): Add sockets.
54222         (Unicode string functions): Add unictype/*.
54223         (Support for building libraries and executables): Add gperf.
54224         (Support for building documentation): Add agpl-3.0.
54225         (Misc): Add nocrash.
54226
54227 2008-05-10  Bruno Haible  <bruno@clisp.org>
54228
54229         * modules/unictype/gen-ctype: New file.
54230
54231 2008-05-10  Jim Meyering  <meyering@redhat.com>
54232
54233         Make chdir-safer.c more efficient on a system with no symlinks.
54234         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
54235         also if ELOOP is zero.  Suggested by Bruno Haible.
54236
54237         Make chdir-safer.c slightly safer.
54238         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
54239         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
54240
54241         Avoid compile failure on systems without ELOOP (like mingw).
54242         * lib/chdir-safer.c (ELOOP): Define if not already defined.
54243         Reported by Bruno Haible.
54244
54245 2008-05-10  Bruno Haible  <bruno@clisp.org>
54246
54247         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
54248         (is_utf8_encoding): Use a case-insensitive comparison.
54249         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
54250         streq.
54251
54252 2008-05-10  Bruno Haible  <bruno@clisp.org>
54253
54254         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
54255         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
54256         * lib/unilbrk/ulc-common.h (iconv_string_length,
54257         iconv_string_keeping_offsets): Remove declarations.
54258         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
54259         Don't include <iconv.h>, streq.h, xsize.h.
54260         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
54261         conversion.
54262         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
54263         <iconv.h>, streq.h, xsize.h.
54264         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
54265         conversion.
54266         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
54267         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
54268         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
54269         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
54270
54271 2008-05-10  Bruno Haible  <bruno@clisp.org>
54272
54273         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
54274         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
54275
54276         * modules/unilbrk/u32-width-linebreaks-tests: New file.
54277         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
54278
54279         * modules/unilbrk/u16-width-linebreaks-tests: New file.
54280         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
54281
54282         * modules/unilbrk/u8-width-linebreaks-tests: New file.
54283         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
54284
54285         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
54286         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
54287
54288         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
54289         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
54290
54291         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
54292         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
54293
54294         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
54295         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
54296
54297 2008-05-10  Bruno Haible  <bruno@clisp.org>
54298
54299         Split up 'linebreak' module.
54300         * lib/unilbrk.h: New file, based on lib/linebreak.h.
54301         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
54302         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
54303         modifications.
54304         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
54305         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
54306         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
54307         lib/linebreak.c.
54308         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
54309         lib/linebreak.c.
54310         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
54311         lib/linebreak.c.
54312         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
54313         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
54314         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
54315         lib/linebreak.c.
54316         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
54317         lib/linebreak.c.
54318         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
54319         lib/linebreak.c.
54320         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
54321         lib/linebreak.c.
54322         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
54323         lib/linebreak.c.
54324         * modules/unilbrk/base: New file.
54325         * modules/unilbrk/tables: New file.
54326         * modules/unilbrk/u8-possible-linebreaks: New file.
54327         * modules/unilbrk/u16-possible-linebreaks: New file.
54328         * modules/unilbrk/u32-possible-linebreaks: New file.
54329         * modules/unilbrk/ulc-common: New file.
54330         * modules/unilbrk/ulc-possible-linebreaks: New file.
54331         * modules/unilbrk/u8-width-linebreaks: New file.
54332         * modules/unilbrk/u16-width-linebreaks: New file.
54333         * modules/unilbrk/u32-width-linebreaks: New file.
54334         * modules/unilbrk/ulc-width-linebreaks: New file.
54335         * lib/linebreak.h: Remove file.
54336         * lib/linebreak.c: Remove file.
54337         * m4/linebreak.m4: Remove file.
54338         * modules/linebreak: Remove file.
54339         * NEWS: Mention the changes.
54340
54341 2008-05-09  Eric Blake  <ebb9@byu.net>
54342
54343         Add xmemdup0.
54344         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
54345         implementation.
54346         * lib/xmalloc.c (xmemdup0): New C implementation.
54347
54348 2008-05-08  Bruno Haible  <bruno@clisp.org>
54349
54350         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
54351
54352 2008-05-07  Eric Blake  <ebb9@byu.net>
54353
54354         Support cross-compilation of <wctype.h>.
54355         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
54356         AC_CACHE_CHECK.
54357
54358 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
54359
54360         * build-aux/vc-list-files: Add support for bzr.
54361
54362 2008-05-03  Jim Meyering  <meyering@redhat.com>
54363
54364         avoid failed assertion with tight malloc
54365         * tests/test-getndelim2.c: Correct an off-by-one assertion.
54366
54367 2008-05-03  Simon Josefsson  <simon@josefsson.org>
54368
54369         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
54370         are needed from arpa/inet.h.
54371         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
54372         Reported by Bruno Haible.
54373
54374 2008-05-02  Jim Meyering  <meyering@redhat.com>
54375
54376         avoid compilation error on FreeBSD 6
54377         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
54378
54379 2008-05-01  Jim Meyering  <meyering@redhat.com>
54380
54381         useless-if-before-free: correct --help's exit status description
54382         * build-aux/useless-if-before-free (usage): Like grep, exit 0
54383         for one or more matches, etc.  Reported by Bruno Haible.
54384
54385         vc-list-files: make the stand-alone gnulib test work
54386         * modules/vc-list-files-tests (configure.ac):
54387         Define and AC_SUBST abs_aux_dir.
54388         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
54389         $(abs_top_srcdir) to each script and having each of them
54390         duplicate the work of setting PATH, set PATH here, using
54391         the new variable, abs_aux_dir instead.
54392         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
54393         * tests/test-vc-list-files-git.sh: Likewise.
54394         Reported by Bruno Haible.
54395
54396 2008-05-01  Bruno Haible  <bruno@clisp.org>
54397
54398         * lib/getndelim2.c (getndelim2): Fix newsize computation during
54399         reallocation. Rename 'done' to 'found_delimiter'.
54400
54401 2008-05-01  Jim Meyering  <meyering@redhat.com>
54402
54403         vc-list-files: accommodate /bin/sh like the one from Solaris 10
54404         * build-aux/vc-list-files: Use `...`, not $(...).
54405
54406 2008-04-30  Jim Meyering  <meyering@redhat.com>
54407
54408         add tests for vc-list-files
54409         * modules/vc-list-files-tests: New module.
54410         * tests/test-vc-list-files-cvs.sh: New file.
54411         * tests/test-vc-list-files-git.sh: New file.
54412
54413         avoid a warning from gcc
54414         * lib/getndelim2.c (IF_LINT): Define.
54415         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
54416
54417         vc-list-files: work properly with build-aux/cvsu, too
54418         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
54419         to all cvs-based clauses.
54420
54421         vc-list-files: work properly in the CVS+awk case, too
54422         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
54423
54424         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
54425         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
54426         take more than one file argument, so .  Add quotes, just in case $dir
54427         ever contains a shell meta-character.  Prompted by Soren Hansen in
54428         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
54429
54430 2008-04-29  Eric Blake  <ebb9@byu.net>
54431
54432         Optimize getndelim2 to use block operations when possible.
54433         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
54434         freadseek, and memchr2.
54435         * lib/getndelim2.c (getndelim2): Use them for block reads.
54436
54437 2008-04-29  Bruno Haible  <bruno@clisp.org>
54438
54439         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
54440         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
54441         * modules/inet_ntop (Depends-on): Add extensions.
54442         * modules/inet_pton (Depends-on): Likewise.
54443         Reported by Simon Josefsson.
54444
54445 2008-04-29  Jim Meyering  <meyering@redhat.com>
54446
54447         When the is more than one match in a block, match all of them.
54448         * build-aux/useless-if-before-free: Iterate through each block
54449         until there are no more matches.
54450
54451         Fix broken useless-if-before-free script.
54452         * build-aux/useless-if-before-free: Fix typo: missing "?" after
54453         the expression to match cast of argument to free-like function.
54454
54455 2008-04-29  Eric Blake  <ebb9@byu.net>
54456
54457         Use new header.
54458         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
54459
54460 2008-04-29  Jim Meyering  <meyering@redhat.com>
54461
54462         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
54463         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
54464         by gnulib to exist and to declare e.g., inet_ntop.
54465         Don't include "inet_ntop.h", now removed.
54466
54467         * m4/arpa_inet_h.m4: Remove trailing blanks.
54468
54469 2008-04-29  Eric Blake  <ebb9@byu.net>
54470
54471         Silence valgrind on safe reads beyond potential array bounds.
54472         * lib/rawmemchr.valgrind: New file.
54473         * lib/strchrnul.valgrind: Likewise.
54474         * modules/rawmemchr (Files): Distribute new file.
54475         * modules/strchrnul (Files): Likewise.
54476         Suggested by Bruno Haible.
54477
54478 2008-04-29  Bruno Haible  <bruno@clisp.org>
54479
54480         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
54481         (inet_ntop, inet_pton): Change portability warning's wording.
54482         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
54483         Invoke gl_CHECK_NEXT_HEADERS.
54484         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
54485         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
54486         set ARPA_INET_H.
54487         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
54488         * modules/arpa_inet (Description): No longer only for systems that
54489         lack it.
54490         (Depends-on): Add include_next.
54491         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
54492         HAVE_ARPA_INET_H.
54493
54494 2008-04-29  Jim Meyering  <meyering@redhat.com>
54495
54496         * modules/mkdir (License): Re-license as LGPLv2+.
54497
54498 2008-04-29  Bruno Haible  <bruno@clisp.org>
54499
54500         * modules/rawmemchr (Maintainer): Set to Eric.
54501         * modules/strchrnul (Maintainer): Likewise.
54502
54503 2008-04-29  Simon Josefsson  <simon@josefsson.org>
54504
54505         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
54506         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
54507
54508         * modules/arpa_inet (arpa/inet.h): Use them.
54509
54510 2008-04-28  Eric Blake  <ebb9@byu.net>
54511
54512         Test getndelim2.
54513         * modules/getndelim2-tests: New file.
54514         * tests/test-getndelim2.c: Likewise.
54515         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
54516         stream.
54517         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
54518
54519         * MODULES.html.sh: Document new module.
54520
54521 2008-04-20  Bruno Haible  <bruno@clisp.org>
54522
54523         * lib/c-stack.c (die): Use raise.
54524         * modules/c-stack (Depends-on): Add raise.
54525
54526 2008-04-28  Bruno Haible  <bruno@clisp.org>
54527
54528         Expect rpmatch to be declared.
54529         * lib/yesno.c (rpmatch): Remove declaration.
54530
54531         Declare rpmatch.
54532         * lib/stdlib.in.h (rpmatch): New declaration.
54533         * lib/rpmatch.c: Include <stdlib.h> first.
54534         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
54535         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
54536         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
54537         HAVE_RPMATCH.
54538         * modules/rpmatch (Depends-on): Add stdlib, extensions.
54539         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54540         (Include): Set to <stdlib.h>.
54541         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
54542         HAVE_RPMATCH.
54543         * NEWS: Document the change.
54544
54545 2008-04-28  Bruno Haible  <bruno@clisp.org>
54546
54547         Change rpmatch to use nl_langinfo when appropriate.
54548         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
54549         (N_): New macro.
54550         (localized_pattern): New function/macro.
54551         (try): Remove match, nomatch arguments. Copy the pattern into safe
54552         memory before caching it.
54553         (rpmatch): Use localized_pattern. Add translator comments.
54554         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
54555         Suggested by Eric Blake.
54556         * modules/rpmatch (Depends-on): Add stdbool.
54557
54558 2008-04-28  Eric Blake  <ebb9@byu.net>
54559
54560         Add rawmemchr module, matching glibc.
54561         * modules/string (Makefile.am): New indicator.
54562         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
54563         * lib/string.in.h (rawmemchr): Declare when appropriate.
54564         * modules/rawmemchr: New file.
54565         * m4/rawmemchr.m4: Likewise.
54566         * lib/rawmemchr.c: Likewise.
54567         * modules/rawmemchr-tests: Likewise.
54568         * tests/test-rawmemchr.c: Likewise.
54569         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
54570         module.
54571         * modules/strchrnul (Depends-on): Add rawmemchr.
54572         * lib/strchrnul.c (strchrnul): Optimize a corner case.
54573
54574         Whitespace cleanup.
54575         * tests/test-strchrnul.c: Reindent.
54576         * lib/strchrnul.c: Likewise.
54577
54578         Optimize and test strchrnul.
54579         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
54580         * modules/strchrnul-tests: New file.
54581         * tests/test-strchrnul.c: Likewise.
54582
54583         Remove intprops dependency.
54584         * modules/memchr (Depends-on): Remove intprops.
54585         * modules/memrchr (Depends-on): Likewise.
54586         * modules/memchr2 (Depends-on): Likewise.
54587         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
54588         * lib/memrchr.c (__memrchr): Likewise.
54589         * lib/memrchr2.c (memchr2): Likewise.
54590         Reported by Simon Josefsson.
54591
54592 2008-04-28  Simon Josefsson  <simon@josefsson.org>
54593
54594         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
54595         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54596
54597 2008-04-28  Simon Josefsson  <simon@josefsson.org>
54598
54599         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
54600
54601         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
54602
54603         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
54604
54605         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
54606         declarations.
54607         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
54608
54609         * m4/inet_pton.m4: Don't check for header files.
54610
54611         * m4/inet_ntop.m4: Don't check for header files.
54612
54613 2008-04-28  Simon Josefsson  <simon@josefsson.org>
54614
54615         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
54616         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
54617         trigger for cygwin).
54618         Reported by Bruno Haible  <bruno@clisp.org>.
54619
54620 2008-04-28  Bruno Haible  <bruno@clisp.org>
54621
54622         * doc/posix-functions/strdup.texi: Mention mingw problem.
54623
54624 2008-04-27  Bruno Haible  <bruno@clisp.org>
54625
54626         * modules/stat-time-tests (Depends-on): Add sleep.
54627         * tests/test-stat-time.c (force_unlink): New function.
54628         (cleanup): Use it.
54629         (test_mtime): Remove the ctime related tests.
54630         (test_ctime): New function, containing the ctime related tests.
54631         (main): Call test_ctime, except on native Windows platforms.
54632
54633 2008-04-27  Bruno Haible  <bruno@clisp.org>
54634
54635         * lib/rpmatch.c (rpmatch): Add some comments.
54636         Reported by James Youngman <jay@gnu.org>.
54637
54638 2008-04-27  Bruno Haible  <bruno@clisp.org>
54639
54640         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
54641         quiet NaNs.
54642
54643 2008-04-27  Bruno Haible  <bruno@clisp.org>
54644
54645         Make test-yesno.sh work on mingw.
54646         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
54647         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
54648         (main): Set stdin to binary mode.
54649         * modules/yesno-tests (Depends-on): Add binary-io.
54650
54651 2008-04-27  Bruno Haible  <bruno@clisp.org>
54652
54653         Fix 'isfinite' on x86, x86_64, ia64 platforms.
54654         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
54655         argument that lie outside the IEEE 854 domain.
54656         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
54657         (gl_ISFINITE): Use it.
54658         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
54659
54660 2008-04-27  Bruno Haible  <bruno@clisp.org>
54661
54662         Allow local renaming in config.h.
54663         * lib/memrchr.c (memrchr): Don't undefine outside libc.
54664
54665 2008-04-27  Bruno Haible  <bruno@clisp.org>
54666
54667         * lib/memchr.c (__memchr): Change type of 'i'.
54668         * lib/memchr2.c (memchr2): Likewise.
54669
54670 2008-04-26  Eric Blake  <ebb9@byu.net>
54671         and Bruno Haible  <bruno@clisp.org>
54672
54673         Optimize and test memrchr.
54674         * modules/memrchr (Depends-on): Add intprops.
54675         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
54676         * modules/memrchr-tests: New file.
54677         * tests/test-memrchr.c: New file.
54678
54679 2008-04-26  Bruno Haible  <bruno@clisp.org>
54680
54681         Add tentative support for DragonFly BSD.
54682         * lib/stdio-impl.h: Add macros for DragonFly BSD.
54683         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
54684         fp.
54685         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
54686         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
54687         * lib/fpurge.c (fpurge): Likewise.
54688         * lib/freadable.c (freaadable): Likewise.
54689         * lib/freadahead.c (freadahead): Likewise.
54690         * lib/freading.c (freading): Likewise.
54691         * lib/freadptr.c (freadptr): Likewise.
54692         * lib/freadseek.c (freadptrinc): Likewise.
54693         * lib/fseeko.c (fseeko): Likewise.
54694         * lib/fseterr.c (fseterr): Likewise.
54695         * lib/fwritable.c (fwritable): Likewise.
54696         * lib/fwriting.c (fwriting): Likewise.
54697
54698 2008-04-26  Bruno Haible  <bruno@clisp.org>
54699
54700         * lib/stdio-impl.h: New file.
54701         * lib/fbufmode.c: Include stdio-impl.h.
54702         (fbufmode): Use fp_, remove redundant #defines.
54703         * lib/fflush.c: Include stdio-impl.h.
54704         (clear_ungetc_buffer): Remove redundant #defines.
54705         * lib/fpurge.c: Include stdio-impl.h.
54706         (fpurge): Remove redundant #defines.
54707         * lib/freadable.c: Include stdio-impl.h.
54708         (freadable): Remove redundant #defines.
54709         * lib/freadahead.c: Include stdio-impl.h.
54710         (freadahead): Remove redundant #defines.
54711         * lib/freading.c: Include stdio-impl.h.
54712         (freading): Remove redundant #defines.
54713         * lib/freadptr.c: Include stdio-impl.h.
54714         (freadptr): Remove redundant #defines.
54715         * lib/freadseek.c: Include stdio-impl.h.
54716         (freadptrinc): Remove redundant #defines.
54717         * lib/fseeko.c: Include stdio-impl.h.
54718         (rpl_fseeko): Remove redundant #defines.
54719         * lib/fseterr.c: Include stdio-impl.h.
54720         (fseterr): Remove redundant #defines.
54721         * lib/fwritable.c: Include stdio-impl.h.
54722         (fwritable: Remove redundant #defines.
54723         * lib/fwriting.c: Include stdio-impl.h.
54724         (fwriting): Remove redundant #defines.
54725         * modules/fbufmode (Files): Add lib/stdio-impl.h.
54726         * modules/fflush (Files): Likewise.
54727         * modules/fpurge (Files): Likewise.
54728         * modules/freadable (Files): Likewise.
54729         * modules/freadahead (Files): Likewise.
54730         * modules/freading (Files): Likewise.
54731         * modules/freadptr (Files): Likewise.
54732         * modules/freadseek (Files): Likewise.
54733         * modules/fseeko (Files): Likewise.
54734         * modules/fseterr (Files): Likewise.
54735         * modules/fwritable (Files): Likewise.
54736         * modules/fwriting (Files): Likewise.
54737
54738 2008-04-26  Bruno Haible  <bruno@clisp.org>
54739
54740         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
54741         restore_seek_optimization, update_fpos_cache): New functions, extracted
54742         from rpl_fflush.
54743         (rpl_fflush): Use them.
54744         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
54745         (gl_REPLACE_FFLUSH): Use it.
54746
54747 2008-04-26  Bruno Haible  <bruno@clisp.org>
54748
54749         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
54750         on Solaris.
54751         * tests/test-xstrtoimax.sh: Likewise.
54752         * tests/test-xstrtoumax.sh: Likewise.
54753         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54754
54755 2008-04-26  Bruno Haible  <bruno@clisp.org>
54756
54757         * modules/memchr-tests: New file.
54758         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
54759
54760 2008-04-26  Eric Blake  <ebb9@byu.net>
54761             Bruno Haible  <bruno@clisp.org>
54762
54763         * lib/memchr.c: Include intprops.h.
54764         (__memchr): Optimize parallel detection of matching bytes. Rename local
54765         variables. Add explanatory comments.
54766
54767 2008-04-26  Bruno Haible  <bruno@clisp.org>
54768
54769         Fix module 'memchr', broken since 2000-10-28.
54770         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
54771
54772 2008-04-26  Bruno Haible  <bruno@clisp.org>
54773
54774         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
54775         comments.
54776
54777 2008-04-25  Eric Blake  <ebb9@byu.net>
54778
54779         Use native fstatat on cygwin 1.7.0.
54780         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
54781         first.
54782
54783 2008-04-23  Eric Blake  <ebb9@byu.net>
54784
54785         Improve memchr2 performance.
54786         * lib/memchr2.c (memchr2): Further optimize parallel detection of
54787         NUL bytes.
54788         * modules/memchr2 (Depends-on): Use intprops.h.
54789
54790 2008-04-23  Simon Josefsson  <simon@josefsson.org>
54791
54792         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
54793         an inline function instead of a CPP macro.  Patch by Ben Pfaff
54794         <blp@cs.stanford.edu>.
54795
54796 2008-04-23  Simon Josefsson  <simon@josefsson.org>
54797
54798         * lib/arpa_inet.in.h: New file.
54799
54800         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
54801         (Makefile.am): Sed in substitute header file.
54802
54803         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
54804         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
54805
54806         * modules/inet_ntop (configure.ac): Use
54807         gl_ARPA_INET_MODULE_INDICATOR.
54808
54809         * modules/inet_pton (configure.ac): Use
54810         gl_ARPA_INET_MODULE_INDICATOR.
54811
54812 2008-04-22  Jim Meyering  <meyering@redhat.com>
54813
54814         * modules/verify (License): Re-license as LGPLv2+.
54815
54816 2008-04-22  Simon Josefsson  <simon@josefsson.org>
54817
54818         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
54819         parameter to void* as per POSIX standard (MinGW uses char*).
54820
54821 2008-04-21  Bruno Haible  <bruno@clisp.org>
54822
54823         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
54824         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
54825         Define to replacements if REPLACE_ISWCNTRL is 1.
54826         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
54827         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
54828         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
54829         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
54830         what it fixes.
54831         * doc/posix-functions/iswalpha.texi: Likewise.
54832         * doc/posix-functions/iswblank.texi: Likewise.
54833         * doc/posix-functions/iswcntrl.texi: Likewise.
54834         * doc/posix-functions/iswdigit.texi: Likewise.
54835         * doc/posix-functions/iswgraph.texi: Likewise.
54836         * doc/posix-functions/iswlower.texi: Likewise.
54837         * doc/posix-functions/iswprint.texi: Likewise.
54838         * doc/posix-functions/iswpunct.texi: Likewise.
54839         * doc/posix-functions/iswspace.texi: Likewise.
54840         * doc/posix-functions/iswupper.texi: Likewise.
54841         * doc/posix-functions/iswxdigit.texi: Likewise.
54842         Reported by Alain Guibert.
54843
54844 2008-04-21  Bruno Haible  <bruno@clisp.org>
54845
54846         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
54847         Patch by Alain Guibert.
54848
54849 2008-04-21  Bruno Haible  <bruno@clisp.org>
54850
54851         Fix test failures on mingw.
54852         * tests/test-xstrtol.c (print_no_progname): New function.
54853         (main): Install it in error_print_progname hook.
54854         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
54855         * tests/test-xstrtoimax.sh: Likewise.
54856         * tests/test-xstrtoumax.sh: Likewise.
54857
54858 2008-04-21  Bruno Haible  <bruno@clisp.org>
54859
54860         Fix test failure on mingw.
54861         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
54862
54863 2008-04-21  Bruno Haible  <bruno@clisp.org>
54864
54865         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
54866         Actually assign a value.
54867
54868 2008-04-20  Bruno Haible  <bruno@clisp.org>
54869
54870         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
54871         take 2.
54872         * lib/canonicalize.c (canonicalize_file_name): Elide if the
54873         'canonicalize-lgpl' module is also used.
54874         * lib/canonicalize-lgpl.c: Undo last change.
54875         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
54876
54877 2008-04-20  Bruno Haible  <bruno@clisp.org>
54878
54879         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
54880         config.h. Provide _mkdir based fallback for mingw.
54881         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
54882         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
54883         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
54884         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
54885         rather than defining mkdir in config.h.
54886         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
54887         (gl_SYS_STAT_H_DEFAULTS): New macro.
54888         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
54889         HAVE_IO_H any more.
54890         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
54891         HAVE_DECL_MKDIR and HAVE_IO_H.
54892
54893 2008-04-20  Bruno Haible  <bruno@clisp.org>
54894
54895         * lib/isapipe.c: Port to native Windows platforms.
54896
54897 2008-04-20  Bruno Haible  <bruno@clisp.org>
54898
54899         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
54900
54901 2008-04-21  Eric Blake  <ebb9@byu.net>
54902
54903         Work around preprocessors that don't handle UINTMAX_MAX.
54904         * lib/memchr2.c (memchr2): Avoid embedded #if.
54905         Reported by Alain Guibert, fix suggested by Bruno Haible.
54906
54907 2008-04-21  Simon Josefsson  <simon@josefsson.org>
54908
54909         * doc/posix-functions/strftime.texi (strftime): Explain better
54910         Windows incompatibility.  Suggested by Micah Cowan
54911         <micah@cowan.name>.
54912
54913 2008-04-20  Bruno Haible  <bruno@clisp.org>
54914
54915         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
54916         unistr/u8-mblen.
54917
54918 2008-04-20  Bruno Haible  <bruno@clisp.org>
54919
54920         Fix test failure on platforms with non-GNU iconv.
54921         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
54922         (U_TO_U8): Use it, rather than u16_to_u8.
54923         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
54924         units at the end of the input string.
54925         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
54926
54927 2008-04-20  Bruno Haible  <bruno@clisp.org>
54928
54929         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
54930         when the resulting length is 0.
54931         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
54932
54933 2008-04-20  Bruno Haible  <bruno@clisp.org>
54934
54935         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
54936         works.
54937         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
54938
54939 2008-04-20  Bruno Haible  <bruno@clisp.org>
54940
54941         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
54942         * modules/tsearch-tests (configure.ac): Test for initstate function.
54943
54944 2008-04-20  Bruno Haible  <bruno@clisp.org>
54945
54946         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
54947         for nlink_t if missing.
54948         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
54949
54950 2008-04-19  Bruno Haible  <bruno@clisp.org>
54951
54952         Work around snprintf bug on Linux libc5.
54953         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
54954         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54955         gl_SNPRINTF_SIZE1.
54956         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54957         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
54958         that test failed.
54959         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
54960         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
54961         * modules/snprintf (Files): Add m4/printf.m4.
54962         * modules/vsnprintf (Files): Likewise.
54963         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
54964         * doc/posix-functions/vsnprintf.texi: Likewise.
54965
54966 2008-04-19  Bruno Haible  <bruno@clisp.org>
54967
54968         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
54969         from 0.0058 to less than 10^-7.
54970
54971 2008-04-19  Bruno Haible  <bruno@clisp.org>
54972
54973         Fix rounding when a precision is given.
54974         * lib/vasnprintf.c (is_borderline): New function.
54975         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
54976         9...9x.
54977         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
54978         %e, %g.
54979         * tests/test-vasprintf-posix.c (test_function): Likewise.
54980         * tests/test-snprintf-posix.h (test_function): Likewise.
54981         * tests/test-sprintf-posix.h (test_function): Likewise.
54982         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
54983         * tests/test-printf-posix.h (test_function): Likewise.
54984         * tests/test-printf-posix.output: Update.
54985         Reported by John Darrington <john@darrington.wattle.id.au> via
54986         Ben Pfaff <blp@cs.stanford.edu>.
54987
54988 2008-04-18  Simon Josefsson  <simon@josefsson.org>
54989
54990         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
54991         Suggested by Bruno Haible <bruno@clisp.org>.
54992
54993 2008-04-17  Bruno Haible  <bruno@clisp.org>
54994
54995         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
54996         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
54997         implementation.
54998         Patch by Bruce Merry <bmerry@gmail.com>.
54999
55000 2008-04-17  Simon Josefsson  <simon@josefsson.org>
55001
55002         * doc/posix-functions/strftime.texi (strftime): Mention that %e
55003         doesn't work under Windows.
55004
55005 2008-04-16  Bruno Haible  <bruno@clisp.org>
55006
55007         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
55008         New macros.
55009         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
55010         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
55011         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
55012         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
55013         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
55014         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
55015         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
55016         macros.
55017         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
55018         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
55019         Northern Sotho, Uighur.
55020
55021 2008-04-16  Bruno Haible  <bruno@clisp.org>
55022
55023         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
55024         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
55025         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
55026         Reported by Daniel Bergström <daniel@octocode.com>.
55027
55028 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
55029             Bruno Haible  <bruno@clisp.org>
55030
55031         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
55032         function.
55033         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
55034         New functions, mostly extracted from gl_locale_name_default.
55035         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
55036
55037 2008-04-16  Eric Blake  <ebb9@byu.net>
55038
55039         Adjust strtod detection to catch glibc 2.7 bug.
55040         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
55041         Reported by John Gatewood Ham.
55042
55043 2008-04-16  Bruno Haible  <bruno@clisp.org>
55044
55045         Add tentative support for Linux libc5.
55046         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
55047         * lib/fpurge.c (fpurge): Likewise.
55048         * lib/freadable.c (freadable): Likewise.
55049         * lib/freadahead.c (freadahead): Likewise.
55050         * lib/freading.c (freading): Likewise.
55051         * lib/freadptr.c (freadptr): Likewise.
55052         * lib/freadseek.c (freadptrinc): Likewise.
55053         * lib/fseeko.c (rpl_fseeko): Likewise.
55054         * lib/fseterr.c (fseterr): Likewise.
55055         * lib/fwritable.c (fwritable): Likewise.
55056         * lib/fwriting.c (fwriting): Likewise.
55057         Reported by Alain Guibert <alguibert+bts@free.fr>.
55058
55059 2008-04-15  Bruno Haible  <bruno@clisp.org>
55060
55061         * modules/mathl (configure.ac): Define module indicator.
55062
55063 2008-04-15  Bruno Haible  <bruno@clisp.org>
55064
55065         * lib/logl.c (logl): Remove unused variables.
55066
55067 2008-04-15  Bruno Haible  <bruno@clisp.org>
55068
55069         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
55070         fails.
55071
55072 2008-04-15  Bruno Haible  <bruno@clisp.org>
55073
55074         * lib/trim.c (trim2): Fix argument of isspace() macro.
55075
55076 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
55077
55078         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
55079         to 0.
55080         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
55081
55082 2008-04-14  Bruno Haible  <bruno@clisp.org>
55083
55084         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
55085         AC_LANG_PROGRAM argument.
55086         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
55087         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
55088         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
55089         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
55090         * m4/math_h.m4 (gl_MATH_H): Likewise.
55091         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
55092         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
55093         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
55094         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
55095         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
55096         * m4/regex.m4 (gl_REGEX): Likewise.
55097         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
55098         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
55099         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55100         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
55101         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
55102         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55103         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55104         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
55105
55106 2008-04-14  Jim Meyering  <meyering@redhat.com>
55107
55108         test-strtod: fix typos: s/abs/fabs/
55109         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
55110
55111 2008-04-13  Bruno Haible  <bruno@clisp.org>
55112
55113         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
55114         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
55115         module is also used and while not building the reloc-wrapper.
55116
55117 2008-04-13  Bruno Haible  <bruno@clisp.org>
55118
55119         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
55120
55121 2008-04-13  Bruno Haible  <bruno@clisp.org>
55122
55123         Fix AIX compilation failure introduced on 2008-04-02.
55124         * tests/test-frexp.c (exp): Undefine before redefining.
55125         * tests/test-frexpl.c (exp): Likewise.
55126
55127 2008-04-13  Bruno Haible  <bruno@clisp.org>
55128
55129         Work around a HP-UX stdio bug.
55130         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
55131         * tests/test-ftello.c (main): Likewise.
55132         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
55133         * doc/posix-functions/ftello.texi: Likewise.
55134
55135 2008-04-13  Bruno Haible  <bruno@clisp.org>
55136
55137         Make test-signbit pass on HP-UX/hppa.
55138         * tests/test-signbit.c (minus_zerol): New variable.
55139         (test_signbitl): Use it.
55140
55141 2008-04-13  Bruno Haible  <bruno@clisp.org>
55142
55143         Make truncl work on OSF/1 4.0.
55144         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
55145         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
55146         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
55147         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
55148         HAVE_DECL_TRUNCL.
55149         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
55150         HAVE_DECL_TRUNCL.
55151         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
55152
55153 2008-04-13  Bruno Haible  <bruno@clisp.org>
55154
55155         * lib/unictype.h: Remove trailing comma from enumeration definitions.
55156
55157 2008-04-13  Bruno Haible  <bruno@clisp.org>
55158
55159         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
55160         expression, so as to avoid HP-UX 11 cc compiler bug.
55161
55162 2008-04-13  Bruno Haible  <bruno@clisp.org>
55163
55164         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
55165
55166 2008-04-13  Bruno Haible  <bruno@clisp.org>
55167
55168         * lib/git-merge-changelog.c: Remove empty declaration outside of
55169         functions.
55170
55171 2008-04-13  Bruno Haible  <bruno@clisp.org>
55172
55173         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
55174
55175 2008-04-13  Bruno Haible  <bruno@clisp.org>
55176
55177         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
55178         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
55179         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
55180         also if it exists but lacks definitions of the SHUT_* macros.
55181         * modules/sys_socket (Description): Update.
55182         Reported by Elbert Pol <e.pol@chello.nl>.
55183
55184 2008-04-13  Bruno Haible  <bruno@clisp.org>
55185
55186         * lib/localcharset.c (OS2): Don't redefine if already defined.
55187         Reported by Elbert Pol <e.pol@chello.nl>.
55188
55189 2008-04-13  Bruno Haible  <bruno@clisp.org>
55190
55191         * lib/binary-io.h [__EMX__]: Include <io.h>.
55192         Reported by Elbert Pol <e.pol@chello.nl>.
55193
55194 2008-04-12  Bruno Haible  <bruno@clisp.org>
55195
55196         * lib/fpucw.h: Enable the definitions also for x86_64.
55197         Needed for NetBSD/x86_64.
55198         Reported by Thomas Klausner <tk@giga.or.at>.
55199
55200 2008-04-12  Bruno Haible  <bruno@clisp.org>
55201
55202         * tests/test-strtod.c: Include isnand.h.
55203         (main): Use isnand instead of isnan.
55204         Reported by Jim Meyering.
55205
55206 2008-04-12  Bruno Haible  <bruno@clisp.org>
55207
55208         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
55209         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
55210
55211 2008-04-12  Jim Meyering  <meyering@redhat.com>
55212
55213         * m4/math_h.m4 (gl_MATH_H): Fix typos.
55214
55215 2008-04-12  Bruno Haible  <bruno@clisp.org>
55216
55217         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
55218         Reported by Elbert Pol <e.pol@chello.nl>.
55219
55220 2008-04-12  Eric Blake  <ebb9@byu.net>
55221
55222         Work around Solaris 10 math.h bug.
55223         * m4/math_h.m4 (gl_MATH_H): Check for bug.
55224         (gl_MATH_H_DEFAULTS): Set up default.
55225         * modules/math (Makefile.am): Replace new indicators.
55226         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
55227         * tests/test-math.c (main): Test this.
55228         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
55229         * doc/posix-headers/math.texi (math.h): Mention bug.
55230         Reported by Nelson H. F. Beebe and Jim Meyering.
55231
55232 2008-04-11  Bruno Haible  <bruno@clisp.org>
55233
55234         Adapt to future versions of Apple GCC.
55235         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
55236         Reported by Peter O'Gorman <peter@pogma.com>.
55237
55238 2008-04-11  Bruno Haible  <bruno@clisp.org>
55239
55240         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
55241
55242 2008-04-11  Bruno Haible  <bruno@clisp.org>
55243
55244         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
55245
55246         * modules/getaddrinfo-tests (Makefile.am): Define
55247         test_getaddrinfo_LDADD.
55248
55249 2008-04-11  Bruno Haible  <bruno@clisp.org>
55250
55251         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
55252         (init): Fix syntax error.
55253         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
55254         is declared.
55255
55256 2008-04-11  Bruno Haible  <bruno@clisp.org>
55257
55258         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
55259         * modules/glob (Depends-on): Add stdbool.
55260
55261 2008-04-11  Bruno Haible  <bruno@clisp.org>
55262
55263         * lib/trim.c: Include <string.h>.
55264
55265 2008-04-11  Eric Blake  <ebb9@byu.net>
55266
55267         Avoid compile failure on OS/2.
55268         * lib/regex_internal.h (internal_function): Disable optimization
55269         on OS/2 (__EMX__), where it caused compiler error.
55270         Reported by Elbert Pol.
55271
55272 2008-04-11  Bruno Haible  <bruno@clisp.org>
55273
55274         Flush the standard error stream before aborting. Needed on mingw.
55275         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
55276         * tests/test-array_list.c (ASSERT): Likewise.
55277         * tests/test-array_oset.c (ASSERT): Likewise.
55278         * tests/test-avltree_list.c (ASSERT): Likewise.
55279         * tests/test-avltree_oset.c (ASSERT): Likewise.
55280         * tests/test-avltreehash_list.c (ASSERT): Likewise.
55281         * tests/test-binary-io.c (ASSERT): Likewise.
55282         * tests/test-byteswap.c (ASSERT): Likewise.
55283         * tests/test-c-ctype.c (ASSERT): Likewise.
55284         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
55285         * tests/test-c-strcasestr.c (ASSERT): Likewise.
55286         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
55287         * tests/test-c-strstr.c (ASSERT): Likewise.
55288         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
55289         * tests/test-canonicalize.c (ASSERT): Likewise.
55290         * tests/test-carray_list.c (ASSERT): Likewise.
55291         * tests/test-ceilf1.c (ASSERT): Likewise.
55292         * tests/test-ceilf2.c (ASSERT): Likewise.
55293         * tests/test-ceill.c (ASSERT): Likewise.
55294         * tests/test-count-one-bits.c (ASSERT): Likewise.
55295         * tests/test-fbufmode.c (ASSERT): Likewise.
55296         * tests/test-fflush2.c (ASSERT): Likewise.
55297         * tests/test-floorf1.c (ASSERT): Likewise.
55298         * tests/test-floorf2.c (ASSERT): Likewise.
55299         * tests/test-floorl.c (ASSERT): Likewise.
55300         * tests/test-fopen.c (ASSERT): Likewise.
55301         * tests/test-fpending.c (ASSERT): Likewise.
55302         * tests/test-fprintf-posix.c (ASSERT): Likewise.
55303         * tests/test-fpurge.c (ASSERT): Likewise.
55304         * tests/test-freadable.c (ASSERT): Likewise.
55305         * tests/test-freadahead.c (ASSERT): Likewise.
55306         * tests/test-freading.c (ASSERT): Likewise.
55307         * tests/test-freadptr.c (ASSERT): Likewise.
55308         * tests/test-freadptr2.c (ASSERT): Likewise.
55309         * tests/test-freadseek.c (ASSERT): Likewise.
55310         * tests/test-freopen.c (ASSERT): Likewise.
55311         * tests/test-frexp.c (ASSERT): Likewise.
55312         * tests/test-frexpl.c (ASSERT): Likewise.
55313         * tests/test-fseek.c (ASSERT): Likewise.
55314         * tests/test-fseeko.c (ASSERT): Likewise.
55315         * tests/test-fstrcmp.c (ASSERT): Likewise.
55316         * tests/test-ftell.c (ASSERT): Likewise.
55317         * tests/test-ftello.c (ASSERT): Likewise.
55318         * tests/test-func.c (ASSERT): Likewise.
55319         * tests/test-fwritable.c (ASSERT): Likewise.
55320         * tests/test-fwriting.c (ASSERT): Likewise.
55321         * tests/test-getdelim.c (ASSERT): Likewise.
55322         * tests/test-getline.c (ASSERT): Likewise.
55323         * tests/test-i-ring.c (ASSERT): Likewise.
55324         * tests/test-iconv-utf.c (ASSERT): Likewise.
55325         * tests/test-iconv.c (ASSERT): Likewise.
55326         * tests/test-isfinite.c (ASSERT): Likewise.
55327         * tests/test-isnand.c (ASSERT): Likewise.
55328         * tests/test-isnanf.c (ASSERT): Likewise.
55329         * tests/test-isnanl.h (ASSERT): Likewise.
55330         * tests/test-ldexpl.c (ASSERT): Likewise.
55331         * tests/test-linked_list.c (ASSERT): Likewise.
55332         * tests/test-linkedhash_list.c (ASSERT): Likewise.
55333         * tests/test-localename.c (ASSERT): Likewise.
55334         * tests/test-lseek.c (ASSERT): Likewise.
55335         * tests/test-mbscasecmp.c (ASSERT): Likewise.
55336         * tests/test-mbscasestr1.c (ASSERT): Likewise.
55337         * tests/test-mbscasestr2.c (ASSERT): Likewise.
55338         * tests/test-mbscasestr3.c (ASSERT): Likewise.
55339         * tests/test-mbscasestr4.c (ASSERT): Likewise.
55340         * tests/test-mbschr.c (ASSERT): Likewise.
55341         * tests/test-mbscspn.c (ASSERT): Likewise.
55342         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
55343         * tests/test-mbspbrk.c (ASSERT): Likewise.
55344         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
55345         * tests/test-mbsrchr.c (ASSERT): Likewise.
55346         * tests/test-mbsspn.c (ASSERT): Likewise.
55347         * tests/test-mbsstr1.c (ASSERT): Likewise.
55348         * tests/test-mbsstr2.c (ASSERT): Likewise.
55349         * tests/test-mbsstr3.c (ASSERT): Likewise.
55350         * tests/test-memchr2.c (ASSERT): Likewise.
55351         * tests/test-memmem.c (ASSERT): Likewise.
55352         * tests/test-open.c (ASSERT): Likewise.
55353         * tests/test-printf-frexp.c (ASSERT): Likewise.
55354         * tests/test-printf-frexpl.c (ASSERT): Likewise.
55355         * tests/test-printf-posix.c (ASSERT): Likewise.
55356         * tests/test-quotearg.c (ASSERT): Likewise.
55357         * tests/test-rbtree_list.c (ASSERT): Likewise.
55358         * tests/test-rbtree_oset.c (ASSERT): Likewise.
55359         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
55360         * tests/test-round1.c (ASSERT): Likewise.
55361         * tests/test-roundf1.c (ASSERT): Likewise.
55362         * tests/test-roundl.c (ASSERT): Likewise.
55363         * tests/test-signbit.c (ASSERT): Likewise.
55364         * tests/test-sleep.c (ASSERT): Likewise.
55365         * tests/test-snprintf-posix.c (ASSERT): Likewise.
55366         * tests/test-snprintf.c (ASSERT): Likewise.
55367         * tests/test-sprintf-posix.c (ASSERT): Likewise.
55368         * tests/test-stat-time.c (ASSERT): Likewise.
55369         * tests/test-strcasestr.c (ASSERT): Likewise.
55370         * tests/test-strerror.c (ASSERT): Likewise.
55371         * tests/test-striconv.c (ASSERT): Likewise.
55372         * tests/test-striconveh.c (ASSERT): Likewise.
55373         * tests/test-striconveha.c (ASSERT): Likewise.
55374         * tests/test-strsignal.c (ASSERT): Likewise.
55375         * tests/test-strstr.c (ASSERT): Likewise.
55376         * tests/test-strtod.c (ASSERT): Likewise.
55377         * tests/test-trunc1.c (ASSERT): Likewise.
55378         * tests/test-trunc2.c (ASSERT): Likewise.
55379         * tests/test-truncf1.c (ASSERT): Likewise.
55380         * tests/test-truncf2.c (ASSERT): Likewise.
55381         * tests/test-truncl.c (ASSERT): Likewise.
55382         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
55383         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
55384         * tests/test-vasnprintf.c (ASSERT): Likewise.
55385         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
55386         * tests/test-vasprintf.c (ASSERT): Likewise.
55387         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
55388         * tests/test-vprintf-posix.c (ASSERT): Likewise.
55389         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
55390         * tests/test-vsnprintf.c (ASSERT): Likewise.
55391         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
55392         * tests/test-wcwidth.c (ASSERT): Likewise.
55393         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
55394         * tests/test-xprintf-posix.c (ASSERT): Likewise.
55395         * tests/test-xvasprintf.c (ASSERT): Likewise.
55396         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
55397         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
55398         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
55399         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
55400         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
55401         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
55402         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
55403         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
55404         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
55405         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
55406         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
55407         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
55408         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
55409         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
55410         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
55411         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
55412         * tests/unictype/test-block_list.c (ASSERT): Likewise.
55413         * tests/unictype/test-block_of.c (ASSERT): Likewise.
55414         * tests/unictype/test-block_test.c (ASSERT): Likewise.
55415         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
55416         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
55417         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
55418         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
55419         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
55420         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
55421         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
55422         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
55423         * tests/unictype/test-combining.c (ASSERT): Likewise.
55424         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
55425         * tests/unictype/test-digit.c (ASSERT): Likewise.
55426         * tests/unictype/test-mirror.c (ASSERT): Likewise.
55427         * tests/unictype/test-numeric.c (ASSERT): Likewise.
55428         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
55429         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
55430         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
55431         * tests/unictype/test-scripts.c (ASSERT): Likewise.
55432         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
55433         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
55434         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
55435         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
55436         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
55437         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
55438         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
55439         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
55440         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
55441         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
55442         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
55443         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
55444         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
55445         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
55446         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
55447         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
55448         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
55449         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
55450         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
55451         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
55452         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
55453         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
55454         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
55455         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
55456         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
55457         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
55458         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
55459         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
55460         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
55461         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
55462         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
55463         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
55464         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
55465         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
55466         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
55467         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
55468         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
55469         Reported by Eric Blake.
55470
55471 2008-04-11  Bruno Haible  <bruno@clisp.org>
55472
55473         * lib/wchar.in.h: Tweak comment.
55474
55475 2008-04-11  Bruno Haible  <bruno@clisp.org>
55476
55477         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
55478         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
55479         gl_COMMON.
55480         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
55481
55482 2008-04-11  Bruno Haible  <bruno@clisp.org>
55483
55484         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
55485
55486 2008-04-11  Simon Josefsson  <simon@josefsson.org>
55487
55488         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
55489         of attempting to use non-existing /dev/*random.  Based on patch
55490         from Adam Strzelecki <ono@java.pl> in
55491         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
55492
55493 2008-04-08  Bruno Haible  <bruno@clisp.org>
55494
55495         Add tentative support for emx+gcc.
55496         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
55497         * lib/fpurge.c (fpurge): Likewise.
55498         * lib/freadable.c (freadable): Likewise.
55499         * lib/freadahead.c (freadahead): Likewise.
55500         * lib/freading.c (freading): Likewise.
55501         * lib/freadptr.c (freadptr): Likewise.
55502         * lib/freadseek.c (freadptrinc): Likewise.
55503         * lib/fseeko.c (rpl_fseeko): Likewise.
55504         * lib/fseterr.c (fseterr): Likewise.
55505         * lib/fwritable.c (fwritable): Likewise.
55506         * lib/fwriting.c (fwriting): Likewise.
55507         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
55508
55509 2008-04-09  Eric Blake  <ebb9@byu.net>
55510
55511         Avoid some autoconf warnings.
55512         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
55513         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
55514         * m4/afs.m4 (gl_AFS): Likewise.
55515         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
55516         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
55517         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
55518         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
55519         (gl_INTEGER_TYPE_SUFFIX): Likewise.
55520         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
55521         (AC_CHECK_DECLS_ONCE): Likewise.
55522         Rename file...
55523         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
55524         gnulib-tool requires autoconf 2.59 or better.
55525         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
55526
55527 2008-04-08  Eric Blake  <ebb9@byu.net>
55528
55529         Use 'git describe --match' if present (added in git 1.5.5).
55530         * build-aux/git-version-gen: Limit result to tags that match 'v*'
55531         if possible.
55532
55533 2008-04-08  Bruno Haible  <bruno@clisp.org>
55534
55535         Add tentative support for OpenServer.
55536         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
55537         _ptr, _cnt.
55538         * lib/fpurge.c (fpurge): Likewise.
55539         * lib/freadable.c (freadable): Likewise.
55540         * lib/freadahead.c (freadahead): Likewise.
55541         * lib/freading.c (freading): Likewise.
55542         * lib/freadptr.c (freadptr): Likewise.
55543         * lib/freadseek.c (freadptrinc): Likewise.
55544         * lib/fseeko.c (rpl_fseeko): Likewise.
55545         * lib/fseterr.c (fseterr): Likewise.
55546         * lib/fwritable.c (fwritable): Likewise.
55547         * lib/fwriting.c (fwriting): Likewise.
55548         Reported by Roger Cornelius <rac@tenzing.org> and
55549         Brian K. White <brian@aljex.com>.
55550
55551 2008-04-06  Jim Meyering  <meyering@redhat.com>
55552
55553         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
55554
55555 2008-04-06  Bruno Haible  <bruno@clisp.org>
55556
55557         Avoid possible error with non-ASCII bytes in UTF-8 locales.
55558         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
55559         * tests/test-printf-posix.sh: Likewise.
55560         * tests/test-vfprintf-posix.sh: Likewise.
55561         * tests/test-vprintf-posix.sh: Likewise.
55562         * tests/test-xprintf-posix.sh: Likewise.
55563
55564 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55565
55566         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
55567         hide error from 'ls', needed on OS/2.
55568         Report by Elbert Pol <elbert.pol@gmail.com>.
55569
55570 2008-04-04  Eric Blake  <ebb9@byu.net>
55571
55572         Make test-fseeko.c failures meaningful.
55573         * tests/test-fseeko.c: Print line number on failure.
55574         * tests/test-fseek.c: Likewise.
55575         Reported by Nelson H. F. Beebe.
55576
55577         Improve strtod bug detection check.
55578         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
55579         required for Solaris 10.
55580         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
55581
55582 2008-04-04  Bruno Haible  <bruno@clisp.org>
55583
55584         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
55585         by m4/setenv.m4.
55586
55587 2008-04-03  Eric Blake  <ebb9@byu.net>
55588
55589         Ensure sane .version contents.
55590         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
55591         version string.
55592         * build-aux/git-version-gen: Improve documentation.
55593
55594         Make GNU make output nicer.
55595         * top/GNUmakefile [!_have-Makefile]: Add dependency on
55596         MAKECMDGOALS to enforce message for all command line targets.  Set
55597         srcdir for use in maint.mk.
55598
55599         Another maintainer tweak.
55600         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
55601         a target that regenerates version.
55602
55603 2008-04-03  Jim Meyering  <meyering@redhat.com>
55604
55605         vc-list-files: don't cause coreutils "make po-check" failure
55606         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
55607
55608 2008-04-03  Eric Blake  <ebb9@byu.net>
55609
55610         Allow VPATH usage of vc-list-files.
55611         * build-aux/vc-list-files (scriptversion): Add timestamp.
55612         (options): Add --help, --version, -C.
55613         (CVS): Support installed cvsu.
55614
55615 2008-04-02  Bruno Haible  <bruno@clisp.org>
55616
55617         Avoid some "statement with no effect" warnings from gcc.
55618         * tests/test-wctype.c (main): Explicitly ignore unused values.
55619         Reported by Jim Meyering.
55620
55621 2008-04-02  Jim Meyering  <meyering@redhat.com>
55622
55623         Avoid some warnings from "gcc -Wshadow".
55624         * tests/test-frexp.c (exp): Define to a different identifier.
55625         * tests/test-frexpl.c (exp): Likewise.
55626
55627 2008-04-03  Jim Meyering  <meyering@redhat.com>
55628
55629         bootstrap: remove dangling *.[ch] symlinks from lib
55630         * build-aux/bootstrap [dangling symlink removal]: Move find's
55631         -depth option to precede all others, to avoid a warning.
55632         Remove *.[ch] files too, and from "$source_base" (usually lib/).
55633
55634 2008-04-02  Bruno Haible  <bruno@clisp.org>
55635
55636         Avoid some warnings from "gcc -Wshadow".
55637         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
55638         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
55639         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
55640         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
55641         Reported by Jim Meyering.
55642
55643 2008-04-01  Bruno Haible  <bruno@clisp.org>
55644
55645         Fix test to work on IRIX 6.5 with cc.
55646         * tests/test-math.c (numeric_equal): New function.
55647         (main): Use it.
55648
55649 2008-04-01  Bruno Haible  <bruno@clisp.org>
55650
55651         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
55652
55653 2008-04-01  Bruno Haible  <bruno@clisp.org>
55654
55655         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
55656         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
55657         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
55658         (Depends-on): Remove math.
55659
55660         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
55661         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
55662         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
55663         (Depends-on): Remove math.
55664
55665         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
55666         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
55667         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
55668         (Depends-on): Remove math.
55669         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
55670         (Depends-on): Remove math.
55671
55672         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
55673         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
55674         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
55675         (Depends-on): Remove math.
55676         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
55677         (Depends-on): Remove math.
55678
55679         * tests/test-round1.c: Include nan.h.
55680         (main): Use NaNd instead of NAN.
55681         * modules/round-tests (Files): Add tests/nan.h.
55682
55683         * tests/test-trunc1.c: Include nan.h.
55684         (main): Use NaNd instead of NAN.
55685         * modules/trunc-tests (Files): Add tests/nan.h.
55686
55687         * tests/test-roundf1.c: Include nan.h.
55688         (main): Use NaNf instead of NAN.
55689         * modules/roundf-tests (Files): Add tests/nan.h.
55690
55691         * tests/test-truncf1.c: Include nan.h.
55692         (main): Use NaNf instead of NAN.
55693         * modules/truncf-tests (Files): Add tests/nan.h.
55694
55695         * tests/test-ceilf1.c: Include nan.h.
55696         (main): Use NaNf instead of NAN.
55697         * modules/ceilf-tests (Files): Add tests/nan.h.
55698
55699         * tests/test-floorf1.c: Include nan.h.
55700         (main): Use NaNf instead of NAN.
55701         * modules/floorf-tests (Files): Add tests/nan.h.
55702
55703         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
55704         (main): Use NaNf instead of NAN.
55705         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
55706
55707         * tests/test-isnand.c: Include nan.h instead of <math.h>.
55708         (main): Use NaNd instead of NAN.
55709         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
55710
55711         * tests/test-frexp.c: Include nan.h.
55712         (main): Use NaNd instead of NAN.
55713         * modules/frexp-tests (Files): Add tests/nan.h.
55714
55715         * lib/isnan.c: Don't include <math.h>.
55716         (FUNC): Don't use NAN macro.
55717         * modules/isnand-nolibm (Depends-on): Remove math.
55718         * modules/isnanf-nolibm (Depends-on): Remove math.
55719         * modules/isnanl (Depends-on): Remove math.
55720         * modules/isnanl-nolibm (Depends-on): Remove math.
55721
55722         * tests/nan.h: New file.
55723
55724 2008-04-01  Eric Blake  <ebb9@byu.net>
55725
55726         Fix typos.
55727         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
55728         values to be the right type.
55729
55730         For now, cater to gnulib strtod inaccuracies.
55731         * tests/test-strtod.c (main): Allow 1-ulp error on expected
55732         fractional results.  While not as nice from a QoI perspective, it
55733         is a quicker patch than correctly implementing decimal to binary
55734         rounding.
55735
55736 2008-03-31  Eric Blake  <ebb9@byu.net>
55737
55738         Guarantee a definition of NAN.
55739         * lib/math.in.h (NAN): Define if missing.
55740         * tests/test-math.c (main): Test it.
55741         * doc/posix-headers/math.texi (math.h): Document this.
55742         * lib/isnan.c (rpl_isnand): Use it.
55743         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
55744         * tests/test-floorf1.c (NaN): Likewise.
55745         * tests/test-frexp.c (NaN): Likewise.
55746         * tests/test-isnand.c (NaN): Likewise.
55747         * tests/test-isnanf.c (NaN): Likewise.
55748         * tests/test-round1.c (NaN): Likewise.
55749         * tests/test-roundf1.c (NaN): Likewise.
55750         * tests/test-snprintf-posix.h (NaN): Likewise.
55751         * tests/test-sprintf-posix.h (NaN): Likewise.
55752         * tests/test-trunc1.c (NaN): Likewise.
55753         * tests/test-truncf1.c (NaN): Likewise.
55754         * tests/test-vasnprintf-posix.c (NaN): Likewise.
55755         * tests/test-vasprintf-posix.c (NaN): Likewise.
55756         * modules/isnand-nolibm (Depends-on): Add math.
55757         * modules/isnanf-nolibm (Depends-on): Likewise.
55758         * modules/isnanl (Depends-on): Likewise.
55759         * modules/isnanl-nolibm (Depends-on): Likewise.
55760         * modules/snprintf-posix-tests (Depends-on): Likewise.
55761         * modules/sprintf-posix-tests (Depends-on): Likewise.
55762         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
55763         * modules/vsprintf-posix-tests (Depends-on): Likewise.
55764         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
55765         * modules/vasprintf-posix-tests (Depends-on): Likewise.
55766
55767 2008-03-31  Bruno Haible  <bruno@clisp.org>
55768
55769         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
55770         * doc/posix-functions/strtod.texi: Likewise.
55771
55772 2008-03-31  Bruno Haible  <bruno@clisp.org>
55773
55774         * tests/test-strtod.c (main): Don't use C99 syntax.
55775
55776 2008-03-31  Bruno Haible  <bruno@clisp.org>
55777
55778         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
55779         Reported by Eric Blake.
55780
55781 2008-03-31  Jim Meyering  <meyering@redhat.com>
55782
55783         Don't compare actual signbit return values.
55784         * tests/test-strtod.c (main): Rather, compare only their
55785         zero/non-zero nature.
55786
55787 2008-03-31  Eric Blake  <ebb9@byu.net>
55788
55789         More strtod documentation.
55790         * doc/posix-functions/strtod.texi (strtod): Interpret more test
55791         failures as distinct bugs.
55792
55793 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
55794
55795         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
55796         Problem reported by Erik Benada in
55797         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
55798
55799 2008-03-30  Bruno Haible  <bruno@clisp.org>
55800
55801         * tests/test-strtod.c: Add comments about which assertion fails on which
55802         platform.
55803         * doc/posix-functions/strtod.texi: Add info about many more platforms.
55804
55805 2008-03-30  Eric Blake  <ebb9@byu.net>
55806
55807         Test signbit behavior on zeros.
55808         * tests/test-signbit.c (test_signbitf): Add tests for zero.
55809         (test_signbitd, test_signbitl): Likewise.
55810
55811         More strtod touchups.
55812         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
55813         sign of negative underflow, for now.  Use .5, not .1.
55814         * doc/posix-functions/strtod.texi (strtod): Mention these
55815         limitations.
55816         Reported by Jim Meyering.
55817
55818 2008-03-30  Bruno Haible  <bruno@clisp.org>
55819
55820         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
55821         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
55822
55823 2008-03-30  Bruno Haible  <bruno@clisp.org>
55824
55825         Avoid failure when attempting to return empty iconv results on some
55826         platforms.
55827         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
55828         allocation, don't report ENOMEM when the resulting string is empty.
55829
55830 2008-03-30  Bruno Haible  <bruno@clisp.org>
55831
55832         Fix buffer overrun.
55833         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
55834         Don't consider the width for tmp_length. Check count against tmp_length
55835         before doing the padding. Ensure enough allocation during padding.
55836
55837 2008-03-30  Eric Blake  <ebb9@byu.net>
55838
55839         strtod touchups.
55840         * lib/strtod.c (strtod): Avoid compiler warnings.
55841         Reported by Jim Meyering.
55842
55843 2008-03-30  Bruno Haible  <bruno@clisp.org>
55844
55845         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
55846         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
55847         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
55848         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
55849         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
55850         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
55851         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
55852         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
55853
55854         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
55855         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
55856         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
55857         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
55858         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
55859         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
55860         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
55861         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
55862
55863         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
55864         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
55865         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
55866         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
55867         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
55868         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
55869         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
55870         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
55871
55872         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
55873         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
55874
55875         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
55876         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
55877
55878         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
55879         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
55880
55881         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
55882         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
55883         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
55884
55885         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
55886         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
55887         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
55888
55889         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
55890         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
55891         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
55892
55893         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
55894         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
55895         * modules/vasprintf (Depends-on): Add EOVERFLOW.
55896
55897         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
55898         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
55899         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
55900         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
55901         (Depends-on): Add EOVERFLOW.
55902         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
55903         (Depends-on): Add EOVERFLOW.
55904         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
55905         (Depends-on): Add EOVERFLOW.
55906         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
55907         (Depends-on): Add EOVERFLOW.
55908         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
55909         (Depends-on): Add EOVERFLOW.
55910         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
55911         (Depends-on): Add EOVERFLOW.
55912         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
55913         (Depends-on): Add EOVERFLOW.
55914         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
55915         (Depends-on): Add EOVERFLOW.
55916
55917         * lib/sprintf.c (EOVERFLOW): Remove fallback.
55918         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
55919         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
55920
55921         * lib/snprintf.c (EOVERFLOW): Remove fallback.
55922         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
55923         * modules/snprintf (Depends-on): Add EOVERFLOW.
55924
55925         * lib/poll.c (EOVERFLOW): Remove fallback.
55926         * modules/poll (Depends-on): Add EOVERFLOW.
55927
55928         * lib/getugroups.c (EOVERFLOW): Remove fallback.
55929         * modules/getugroups (Depends-on): Add EOVERFLOW.
55930
55931         * lib/getdelim.c (EOVERFLOW): Remove fallback.
55932         * modules/getdelim (Depends-on): Add EOVERFLOW.
55933
55934         * lib/ftell.c (EOVERFLOW): Remove fallback.
55935         * modules/ftell (Depends-on): Add EOVERFLOW.
55936
55937         * lib/fprintf.c (EOVERFLOW): Remove fallback.
55938         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
55939         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
55940
55941         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
55942
55943         * modules/EOVERFLOW-tests: New file.
55944         * tests/test-EOVERFLOW.c: New file.
55945
55946         * modules/EOVERFLOW: New file.
55947         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
55948
55949 2008-03-30  Bruno Haible  <bruno@clisp.org>
55950
55951         Fix bug introduced on 2007-06-10.
55952         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
55953         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
55954
55955 2008-03-30  Bruno Haible  <bruno@clisp.org>
55956
55957         Improve freadseek's efficiency after ungetc.
55958         * lib/freadseek.c: Include freadahead.h.
55959         (freadptrinc): New function, extracted from freadseek.
55960         (freadseek): Use it in a loop. Use freadahead to determine the number
55961         of loop iterations.
55962         * modules/freadseek (Depends-on): Add freadahead.
55963         (configure.ac): Require AC_C_INLINE.
55964
55965 2008-03-30  Bruno Haible  <bruno@clisp.org>
55966
55967         * lib/freadseek.c (freadseek): Don't ignore the return value of
55968         freadptr.
55969
55970 2008-03-29  Eric Blake  <ebb9@byu.net>
55971
55972         Add hex float support.
55973         * modules/strtod (Depends-on): Add c-ctype.
55974         (Link): Mention POW_LIB.
55975         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
55976         whitespace between 'e' and exponent.
55977         * tests/test-strtod.c (main): Enable hex float tests.
55978         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
55979         now provides.
55980
55981         Document various strtod bugs, with some fixes.
55982         * doc/posix-functions/strtod.texi (strtod): Document bugs with
55983         "-0x", "inf", "nan", and hex constants.
55984         * doc/posix-functions/atof.texi (atof): Likewise.
55985         * modules/stdlib (Makefile.am): Support strtod.
55986         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
55987         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
55988         detect additional strtod bugs.
55989         * lib/stdlib.in.h (rpl_strtod): Add declarations.
55990         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
55991         bool where appropriate.  Parse 'inf' and 'nan'.
55992         * tests/test-strtod.c: New file.
55993         * modules/strtod (Depends-on): Add stdbool, stdlib.
55994         (configure.ac): Turn on module indicator.
55995         * modules/strtod-tests: New module.
55996
55997 2008-03-29  Eric Blake  <ebb9@byu.net>
55998
55999         Fix ftell on mingw.
56000         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
56001         * modules/ftell-tests (Depends-on): Add binary-io.
56002         * modules/ftello-tests (Depends-on): Likewise.
56003         * tests/test-ftell.c (main): Enhance test to cover behavior after
56004         ungetc.  Enforce binary mode.
56005         * tests/test-ftello.c (main): Likewise.
56006
56007         Pass test-freadseek on cygwin.
56008         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
56009         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
56010         ungetc buffer.
56011
56012         * tests/test-fflush2.c (main): Fix typo.
56013
56014 2008-03-29  Bruno Haible  <bruno@clisp.org>
56015
56016         * tests/test-fflush2.c (main): Temporarily disable the contents of
56017         this test.
56018         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
56019         Reported by Eric Blake.
56020
56021 2008-03-28  Simon Josefsson  <simon@josefsson.org>
56022
56023         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
56024         (GC_SHA224_DIGEST_SIZE): Add.
56025
56026         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
56027         (gc_hash_digest_length): Likewise.
56028         (gc_hash_buffer): Likewise.
56029
56030 2008-03-25  Bruno Haible  <bruno@clisp.org>
56031
56032         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
56033         detail which gettext release to use.
56034         Reported by Simon Josefsson.
56035
56036 2008-03-26  Jim Meyering  <meyering@redhat.com>
56037
56038         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
56039         * modules/gnumakefile (clean-GNUmakefile): Also, use
56040         test ... && ... || : syntax rather than if-then ... fi.
56041
56042         gnumakefile: Don't double-quote-expand $(VPATH) value.
56043         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
56044
56045 2008-03-24  Eric Blake  <ebb9@byu.net>
56046
56047         Alter GNUmakefile to install into top directory.
56048         * modules/maintainer-makefile: Split, and add dependency...
56049         * modules/gnumakefile: to this new module.
56050         * build-aux/GNUmakefile: Move...
56051         * top/GNUmakefile: ...here.
56052         * build-aux/maint.mk: Move...
56053         * top/maint.mk: ...here.
56054         * MODULES.html.sh (Support for maintaining...): Document new
56055         module.
56056
56057 2008-03-23  Bruno Haible  <bruno@clisp.org>
56058
56059         * gnulib-tool: New options --vc-files, --no-vc-files.
56060         (func_usage): Document them.
56061         (vc_files): New variable.
56062         (func_import): Consider vc_files.
56063         (func_create_testdir): Set vc_files to empty.
56064         Suggested by Jim Meyering and Karl Berry.
56065
56066 2008-03-23  Bruno Haible  <bruno@clisp.org>
56067
56068         Fix regex compilation error on HP-UX 11.
56069         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
56070         * modules/regex (Files): Add m4/mbstate_t.m4.
56071         Reported by Ton Voon <ton.voon@altinity.com>.
56072
56073 2008-03-23  Bruno Haible  <bruno@clisp.org>
56074
56075         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
56076
56077 2008-03-23  Eric Blake  <ebb9@byu.net>
56078             Bruno Haible  <bruno@clisp.org>
56079
56080         Install files from top/ in the destination directory.
56081         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
56082         augmentation also for the files from top/.
56083         (func_import, func_create_testdir): Rewrite file names:
56084         top/filename -> filename.
56085
56086 2008-03-23  Bruno Haible  <bruno@clisp.org>
56087
56088         Tweak "gnulib --version" output.
56089         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
56090
56091 2008-03-23  Bruno Haible  <bruno@clisp.org>
56092
56093         Tweak "gnulib --version" output.
56094         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
56095         rather than contents of ChangeLog, when possible.
56096
56097 2008-03-21  Eric Blake  <ebb9@byu.net>
56098
56099         More --version tweaks.
56100         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
56101         date of last ChangeLog entry.
56102
56103 2008-03-21  Jim Meyering  <meyering@redhat.com>
56104
56105         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
56106
56107 2008-03-20  Eric Blake  <ebb9@byu.net>
56108
56109         VPATH fix.
56110         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
56111
56112 2008-03-20  Simon Josefsson  <simon@josefsson.org>
56113
56114         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
56115         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
56116
56117 2008-03-20  Eric Blake  <ebb9@byu.net>
56118
56119         Sync GNUmakefile with coreutils.
56120         * build-aux/GNUmakefile (have-Makefile): Rename...
56121         (_have-Makefile): ...to this, for namespace consideration.
56122         (GNUmakefile.cfg): Include, if present.
56123         (_autoreconf): Define a default.
56124         (_is-dist-target): New rule for rebuilds to pick up intra-release
56125         version.
56126         (maint-cfg.mk): Rename...
56127         (cfg.mk): ...to this.
56128
56129 2008-03-18  Jim Meyering  <meyering@redhat.com>
56130
56131         New script and module: mktempd
56132         * MODULES.html.sh (maint+release support): Add mktempd.
56133         * build-aux/mktempd: New file.
56134         * modules/mktempd: New file.
56135
56136 2008-03-15  Jim Meyering  <meyering@redhat.com>
56137
56138         Undo last change.
56139         * lib/sha1.c, lib/md5.c: 63 != ~63.
56140         Reported by Andreas Schwab.
56141
56142         sha1.c, md5.c: Hoist a redundant expression.
56143         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
56144         "ctx->buflen" only once, before calling *_process_block.
56145         * lib/md5.c (md5_process_bytes): Likewise.
56146
56147 2008-03-14  Eric Blake  <ebb9@byu.net>
56148
56149         Bump copyright year in files generated by gnulib-tool.
56150         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
56151         gnulib-tool, rather than hard-coding it.
56152
56153         Fix 'gnulib-tool --version' output to work with git.
56154         * gnulib-tool (func_gnulib_dir): New function, extracted from...
56155         (startup): ...here.
56156         (func_version): Use it to invoke git-version-gen, rather than
56157         relying on CVS keyword expansion.  Modernize wording.
56158         (cvsdatestamp, last_checkin_date, version): Kill unused
56159         variables.
56160
56161 2008-03-12  Jim Meyering  <meyering@redhat.com>
56162
56163         Recognize optional cast of the argument to free.
56164         * build-aux/useless-if-before-free: Update regexps.
56165
56166         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
56167
56168 2008-03-11  Bruno Haible  <bruno@clisp.org>
56169
56170         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
56171         by a single package.
56172         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
56173         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
56174         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
56175         Reported by Sam Steingold <sds@gnu.org>.
56176
56177 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
56178
56179         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
56180         repositories.
56181
56182 2008-03-11  Bruno Haible  <bruno@clisp.org>
56183
56184         Avoid conflicts between local macro definitions.
56185         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
56186         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
56187
56188 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
56189             Bruno Haible  <bruno@clisp.org>
56190
56191         Make va_copy work with some version of xlc on AIX 5.1.
56192         * lib/stdarg.in.h: New file.
56193         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
56194         On AIX, use a <stdarg.h> file substitute.
56195         * modules/stdarg (Files): Add lib/stdarg.in.h.
56196         (Depends-on): Add include_next.
56197         (Makefile.am): Build a stdarg.h substitute if requested.
56198         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
56199
56200 2008-03-10  Bruno Haible  <bruno@clisp.org>
56201
56202         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
56203         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
56204         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
56205
56206 2008-03-10  Bruno Haible  <bruno@clisp.org>
56207
56208         * modules/stdlib (Depends-on): Add include_next, remove
56209         absolute-header.
56210
56211 2008-03-09  Bruno Haible  <bruno@clisp.org>
56212
56213         * lib/freadahead.h (freadahead): Document more precisely.
56214         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
56215         the sum of both buffer sizes.
56216         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
56217         * NEWS: Document the change.
56218
56219 2008-03-09  Bruno Haible  <bruno@clisp.org>
56220
56221         Extend freadptr to return also the buffer size.
56222         * lib/freadptr.h (freadptr): Add sizep argument.
56223         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
56224         (freadptr): Add sizep argument. Determine buffer size like freadahead
56225         does.
56226         * tests/test-freadptr.c: Don't include freadahead.h.
56227         (main): Adapt for new calling convention of freadptr.
56228         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
56229         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
56230         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
56231         tests/test-freadptr2.sh.
56232         (Depends): Remove freadahead.
56233         (TESTS): Add test-freadptr2.sh.
56234         (check_PROGRAMS): Add test-freadptr2.
56235
56236 2008-03-09  Bruno Haible  <bruno@clisp.org>
56237
56238         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
56239         Report and solution by Simon Josefsson.
56240
56241 2008-03-06  Bruno Haible  <bruno@clisp.org>
56242
56243         Make fflush after ungetc work on BSD platforms.
56244         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
56245         * tests/test-fflush2.c: New file.
56246         * tests/test-fflush2.sh: New file.
56247         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
56248         tests/test-fflush2.c.
56249         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
56250         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
56251
56252 2008-03-06  Eric Blake  <ebb9@byu.net>
56253
56254         Likewise for ftello.
56255         * modules/ftello (Dependencies): Add extensions.
56256         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
56257
56258 2008-03-06  Bruno Haible  <bruno@clisp.org>
56259
56260         * modules/fseeko (Dependencies): Add extensions.
56261         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
56262         Needed on glibc systems.
56263
56264 2008-03-06  Bruno Haible  <bruno@clisp.org>
56265
56266         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
56267         email address.
56268         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
56269
56270 2008-03-06  Bruno Haible  <bruno@clisp.org>
56271
56272         * users.txt: Add libgnupdf.
56273
56274 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
56275
56276         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
56277         (Header File Substitutes, Function Substitutes,
56278         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
56279         (Build robot for gnulib): Fix typo.
56280
56281 2008-03-06  Bruno Haible  <bruno@clisp.org>
56282
56283         * doc/gnulib-tool.texi (VCS Issues): Small updates.
56284         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
56285
56286 2008-03-06  Bruno Haible  <bruno@clisp.org>
56287
56288         * doc/func.texi: New file, extracted from doc/gnulib.texi.
56289         * doc/gnulib.texi: Include it.
56290
56291 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56292
56293         * modules/func (License): Change license to unlimited; there was
56294         no LGPL parts in the module anyway.
56295
56296 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56297
56298         * modules/__func__: Renamed to modules/func.
56299         * modules/__func__-tests: Renamed to modules/func-tests.
56300         * tests/test-__func__.c: Renamed to tests/test-func.c.
56301         * m4/__func__.m4: Renamed to m4/func.m4.
56302         * doc/gnulib.texi (__func__): Section renamed to func.
56303         Suggested by Eric Blake <ebb9@byu.net>.
56304
56305 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56306
56307         * doc/gnulib.texi (__func__): Use C99 terminology when talking
56308         about __func__.  Make example self-contained.  Suggested by Eric
56309         Blake <ebb9@byu.net>.
56310
56311         * tests/test-__func__.c (main): Avoid extraneous () around __func.
56312         Suggested by Eric Blake <ebb9@byu.net>.
56313
56314 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56315
56316         * modules/__func__: New file.
56317         * modules/__func__-tests: New file.
56318         * tests/test-__func__.c: New file.
56319         * m4/__func__.m4: New file.
56320         * doc/gnulib.texi (__func__): Document __func__ module.
56321
56322 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56323
56324         * modules/byteswap (License): Re-license as LGPLv2+.
56325
56326 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56327
56328         * doc/Makefile: Add pdf target.
56329
56330 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56331
56332         * modules/inline (License): Use 'unlimited', since there are only
56333         *.m4 files in this module.
56334
56335 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
56336             Bruno Haible  <bruno@clisp.org>
56337
56338         Add support for HP C 7.1 on OpenVMS 8.3.
56339         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
56340
56341 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
56342
56343         Update VMS specifics.
56344         * lib/getopt.c [VMS]: Remove include of unixlib.h.
56345
56346 2008-03-02  Jim Meyering  <meyering@redhat.com>
56347
56348         Remove the last dependency on the "free" module.
56349         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
56350         Reported by Bob Proulx.
56351
56352         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
56353
56354         Remove useless "if" tests before free.  Deprecate "free" module.
56355         * doc/posix-functions/free.texi: Mention that this
56356         module is no longer useful.
56357         * modules/free (Notice): Say this module is obsolete.
56358         * modules/readutmp (Depends-on): Remove free.
56359         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
56360         * lib/putenv.c (putenv): Likewise.
56361         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
56362         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
56363         * tests/test-c-strcasestr.c (main): Likewise.
56364         * tests/test-c-strstr.c (main): Likewise.
56365         * tests/test-mbscasestr1.c (main): Likewise.
56366         * tests/test-mbscasestr2.c (main): Likewise.
56367         * tests/test-mbsstr1.c (main): Likewise.
56368         * tests/test-mbsstr2.c (main): Likewise.
56369         * tests/test-memmem.c (main): Likewise.
56370         * tests/test-strcasestr.c (main): Likewise.
56371         * tests/test-striconv.c (main): Likewise.
56372         * tests/test-striconveh.c (main): Likewise.
56373         * tests/test-striconveha.c (main): Likewise.
56374         * tests/test-strstr.c (main): Likewise.
56375
56376         * build-aux/git-version-gen: Adjust a comment and the Usage string.
56377
56378         bootstrap: sync from coreutils again
56379         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
56380
56381 2008-03-01  Jim Meyering  <meyering@redhat.com>
56382
56383         bootstrap: sync from coreutils
56384         * build-aux/bootstrap (update_po_files): Copy a .po file into place
56385         also when the target doesn't exist.
56386
56387 2008-03-01  Eric Blake  <ebb9@byu.net>
56388
56389         Fix bugs in last patch.
56390         * lib/memchr2.c (memchr2): Fix typo.
56391         * tests/test-memchr2.c: Test previous bug, and don't use GNU
56392         extension.
56393         Reported by Bruce Korb.
56394
56395         New module 'memchr2'.
56396         * modules/memchr2: New file.
56397         * modules/memchr2-tests: Likewise.
56398         * lib/memchr2.h: Likewise.
56399         * lib/memchr2.c: Likewise, based on memchr.c.
56400         * tests/test-memchr2.c: New test.
56401         * MODULES.html.sh (String handling): Add memchr2.
56402
56403 2008-02-29  Bruno Haible  <bruno@clisp.org>
56404
56405         * modules/freadseek-tests: New file.
56406         * tests/test-freadseek.sh: New file.
56407         * tests/test-freadseek.c: New file.
56408
56409         New module 'freadseek'.
56410         * modules/freadseek: New file.
56411         * lib/freadseek.h: New file.
56412         * lib/freadseek.c: New file.
56413         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
56414
56415 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
56416
56417         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
56418         wydawca.
56419
56420         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
56421         program_invocation_name and program_invocation_short_name are
56422         present.
56423
56424 2008-02-28  Bruno Haible  <bruno@clisp.org>
56425
56426         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
56427         * tests/test-freadptr.sh: Also test non-seekable stdin.
56428
56429 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
56430
56431         * build-aux/bootstrap (source_base, m4_base)
56432         (doc_base, tests_base): New variables.
56433         (gnulib_tool_options): Do not hardcode base directories, use
56434         the above variables instead.
56435
56436 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
56437
56438         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
56439
56440 2008-02-28  Bruno Haible  <bruno@clisp.org>
56441
56442         * modules/freadptr-tests: New file.
56443         * tests/test-freadptr.sh: New file.
56444         * tests/test-freadptr.c: New file.
56445
56446         New module 'freadptr'.
56447         * modules/freadptr: New file.
56448         * lib/freadptr.h: New file.
56449         * lib/freadptr.c: New file.
56450         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
56451
56452 2008-02-26  Karl Berry  <karl@freefriends.org>
56453
56454         Sync from Libtool:
56455         * libltdl/argz.c (argz_add, argz_count): New functions.
56456         * libltdl/argz.in.h: Declare them.
56457         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
56458
56459 2008-02-22  Bruno Haible  <bruno@clisp.org>
56460
56461         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
56462         is a pointer type.  Needed for HP-UX 10.
56463         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
56464         * doc/posix-functions/gmtime_r.texi: Likewise.
56465         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
56466
56467 2008-02-24  Bruno Haible  <bruno@clisp.org>
56468
56469         * modules/environ-tests: New file.
56470         * tests/test-environ.c: New file.
56471
56472         New module 'environ'.
56473         * modules/environ: New file.
56474         * lib/unistd.in.h (environ): New declaration.
56475         * m4/environ.m4: New file.
56476         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
56477         after use.
56478         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
56479         HAVE_DECL_ENVIRON.
56480         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
56481         HAVE_DECL_ENVIRON.
56482         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
56483         wrong claim that 'environ' is missing on some systems.
56484         * modules/execute (Depends-on): Add environ.
56485         * lib/execute.c (environ): Remove fallback declaration.
56486         * modules/pipe (Depends-on): Add environ.
56487         * lib/pipe.c (environ): Remove fallback declaration.
56488         * modules/setenv (Depends-on): Add environ.
56489         * lib/setenv.c (environ): Remove fallback declaration.
56490         * modules/unsetenv (Depends-on): Add environ.
56491         * lib/unsetenv.c (environ): Remove fallback declaration.
56492         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
56493         m4/environ.m4.
56494         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
56495         (gl_PREREQ_UNSETENV): Likewise.
56496
56497 2008-02-24  Bruno Haible  <bruno@clisp.org>
56498
56499         * doc/posix-functions/environ.texi: Document the MacOS X problem.
56500
56501 2008-02-20  Bob Proulx  <bob@proulx.com>
56502
56503         Enable use of older two part flavor 'git describe'.
56504         * build-aux/git-version-gen: If using the older two part flavor of
56505         git version then recreate the third part now present in the
56506         newer three part flavor of git describe.
56507
56508 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
56509
56510         * lib/fts.c (fts_build): Typo correction to comment.
56511
56512 2008-02-17  Bruno Haible  <bruno@clisp.org>
56513
56514         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
56515         generating no-op conflicts.
56516
56517 2008-02-17  Bruno Haible  <bruno@clisp.org>
56518
56519         Speed up by 10%.
56520         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
56521         result_entries, rather than an index-based loop.
56522
56523 2008-02-17  Bruno Haible  <bruno@clisp.org>
56524
56525         Speed up by 25%.
56526         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
56527         'hashcode_cached'.
56528         (entry_create): New function.
56529         (entry_hashcode): Use the cached hashcode if possible.
56530         (read_changelog_file, try_split_merged_entry): Use entry_create.
56531
56532 2008-02-17  Bruno Haible  <bruno@clisp.org>
56533
56534         Speed up from O(n^2) to O(n) for long ChangeLog files.
56535         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
56536         (read_changelog_file): Change implementation of entries_reversed list
56537         to rbtreehash.
56538         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
56539
56540 2008-02-17  Bruno Haible  <bruno@clisp.org>
56541
56542         New option --split-merged-entry.
56543         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
56544         (find_paragraph_end, try_split_merged_entry): New functions.
56545         (long_options): Add option --split-merged-entry.
56546         (usage): Document option --split-merged-entry.
56547         (main): Implement option --split-merged-entry.
56548         Reported by Eric Blake.
56549
56550 2008-02-17  Bruno Haible  <bruno@clisp.org>
56551
56552         * lib/git-merge-changelog.c: Include c-strstr.h.
56553         (main): Support the "git pull --rebase" situation.
56554         * modules/git-merge-changelog (Depends-on): Add c-strstr.
56555         Reported by Eric Blake.
56556
56557 2008-02-16  Eric Blake  <ebb9@byu.net>
56558
56559         Avoid doubling \ in common case of "c-maybe" quoting style.
56560         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
56561         eliding outer quotes.
56562         * lib/quotearg.h: Document this.
56563         * tests/test-quotearg.c (result_strings, inputs, results_g)
56564         (flag_results, locale_results): Test it by adding a new string to
56565         each test group.
56566         (compare_strings): Test new string.
56567
56568 2008-02-13  Eric Blake  <ebb9@byu.net>
56569
56570         Avoid trigraph quoting in default output.
56571         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
56572         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
56573         unless explicitly requested.
56574         * tests/test-quotearg.c (flag_results, main): Add additional tests.
56575
56576 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
56577
56578         Don't rely on signed integer overflowing to negative value.
56579         * lib/getugroups.c (getugroups): Include <limits.h>.
56580         Instead, compare against INT_MAX, and increment only if the test passes.
56581
56582 2008-02-13  Jim Meyering  <meyering@redhat.com>
56583         and Eric Blake  <ebb9@byu.net>
56584
56585         Avoid shadowing warning and compile errors on Linux.
56586         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
56587         forwarding macros on Linux.
56588         (dcgettext): Define a stub, for Linux.
56589         (results_g, main): Avoid warnings.
56590
56591 2008-02-12  Eric Blake  <ebb9@byu.net>
56592
56593         Silence warning in last patch.
56594         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
56595
56596         Quotearg part 4: add tests, fix c-maybe colon quoting.
56597         * lib/quotearg.h: Improve documentation.
56598         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
56599         escapes when adding outer quotes.  When quoting trigraphs, use
56600         valid C notation.  When quoting NUL, omit extra characters if next
56601         character is not digit.  Alter prototype.
56602         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
56603         callers.
56604         * modules/quotearg-tests: New module.
56605         * tests/test-quotearg.c: New test.
56606
56607 2008-02-07  Eric Blake  <ebb9@byu.net>
56608
56609         Quotearg part 3: add flag to control outer quote elision.
56610         * lib/quotearg.h (c_maybe_quoting_style): New style.
56611         (enum quoting_flags): Better documentation of flags.
56612         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
56613         c-maybe style.
56614         (quotearg_buffer_restyled): Handle new flag to elide outer
56615         quotes.
56616
56617         Quotearg part 2: add flag that can control NUL elision.
56618         * lib/quotearg.h (set_quoting_flags): New prototype.
56619         * lib/quotearg.c (struct quoting_options): Add flag field.
56620         (set_quoting_flags): New function.
56621         (quotearg_buffer_restyled): Add flags parameter.
56622         (quotearg_alloc_mem): Set the flag if length cannot be returned.
56623         (quotearg_n_options): Set the flag, since length cannot be
56624         returned.
56625         (quoting_options_from_style): Default flags correctly.
56626
56627         Quotearg part 1: more wrappers, restore quotearg_char state.
56628         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
56629         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
56630         (quotearg_colon_mem): New wrappers.
56631         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
56632         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
56633         functions.
56634         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
56635         (quotearg_colon_mem): New functions.
56636
56637 2008-02-11  Bruno Haible  <bruno@clisp.org>
56638
56639         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
56640         library in the current directory: it does not work with parallel make.
56641         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56642
56643 2008-02-11  Bruno Haible  <bruno@clisp.org>
56644
56645         * .gitattributes: New file.
56646
56647 2008-02-11  Jim Meyering  <meyering@redhat.com>
56648
56649         useless-if-before-free: Fix reversed exit values.
56650         * build-aux/useless-if-before-free: Use correct values
56651         for EXIT_MATCH and EXIT_NO_MATCH.
56652
56653         * build-aux/useless-if-before-free: Close stdout carefully.
56654
56655 2008-02-10  Bruno Haible  <bruno@clisp.org>
56656
56657         New module 'git-merge-changelog'.
56658         * modules/git-merge-changelog: New file.
56659         * lib/git-merge-changelog.c: New file.
56660
56661 2008-02-10  Jim Meyering  <meyering@redhat.com>
56662
56663         useless-if-before-free: New option: --list (-l).
56664
56665         useless-if-before-free: Don't exit immediately upon open failure.
56666         * build-aux/useless-if-before-free: Exit 2 for errors.
56667         Upon failure to open a file, don't exit immediately.
56668         Rather, just warn and continue with any remaining files.
56669
56670 2008-02-10  Bruno Haible  <bruno@clisp.org>
56671
56672         New abstract list operation 'node_set_value'.
56673         * lib/gl_list.h (gl_list_node_set_value): New function.
56674         (struct gl_list_implementation): New field node_set_value.
56675         * lib/gl_list.c (gl_list_node_set_value): New function.
56676         * lib/gl_array_list.c (gl_array_node_set_value): New function.
56677         (gl_array_list_implementation): Update.
56678         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
56679         (gl_carray_list_implementation): Update.
56680         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
56681         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
56682         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
56683         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
56684         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
56685         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
56686         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
56687         Update.
56688         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
56689         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
56690         (gl_sublist_list_implementation): Update.
56691
56692 2008-02-10  Bruno Haible  <bruno@clisp.org>
56693
56694         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
56695         Needed when ELEMENT is #defined to 'some_type *'.
56696
56697 2008-02-10  Jim Meyering  <meyering@redhat.com>
56698
56699         New script and module: useless-if-before-free
56700         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
56701         * build-aux/useless-if-before-free: New file.
56702         * modules/useless-if-before-free: New file.
56703
56704         * build-aux/gitlog-to-changelog: Use committer date, not author date.
56705
56706         xstrtol_error: Fix typo.
56707         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
56708         s/exit_failure/exit_status/.
56709
56710 2008-02-09  Jim Meyering  <meyering@redhat.com>
56711
56712         New script and module: gitlog-to-changelog
56713         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
56714         * modules/gitlog-to-changelog: New file.
56715         * build-aux/gitlog-to-changelog: New file.
56716
56717 2008-02-08  Jim Meyering  <meyering@redhat.com>
56718
56719         Avoid two "parameter unused" warnings.
56720         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
56721         Mark "st" as used.
56722
56723         Use "git COMMAND", not "git-COMMAND".
56724         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
56725         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
56726         * build-aux/git-version-gen: Use "git status", not "git-status".
56727
56728 2008-02-07  Bruno Haible  <bruno@clisp.org>
56729
56730         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
56731         Avoids a crash on Windows Vista.
56732         Reported by Adam Strzelecki <ono@java.pl> via
56733         Simon Josefsson <simon@josefsson.org>.
56734
56735 2008-02-06  Bruno Haible  <bruno@clisp.org>
56736
56737         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
56738         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
56739         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
56740         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
56741         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
56742         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56743         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
56744         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
56745         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56746         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56747         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56748         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56749         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56750         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56751         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56752         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
56753         left-adjust flag.
56754         * tests/test-snprintf-posix.h (test_function): Likewise.
56755         * tests/test-sprintf-posix.h (test_function): Likewise.
56756         * tests/test-vasprintf-posix.c (test_function): Likewise.
56757         * doc/posix-functions/fprintf.texi: Update.
56758         * doc/posix-functions/printf.texi: Update.
56759         * doc/posix-functions/snprintf.texi: Update.
56760         * doc/posix-functions/sprintf.texi: Update.
56761         * doc/posix-functions/vfprintf.texi: Update.
56762         * doc/posix-functions/vprintf.texi: Update.
56763         * doc/posix-functions/vsnprintf.texi: Update.
56764         * doc/posix-functions/vsprintf.texi: Update.
56765         Reported by Peter Fales <psfales@alcatel-lucent.com>.
56766
56767 2008-02-06  Bruno Haible  <bruno@clisp.org>
56768
56769         Fix bug introduced on 2008-01-26.
56770         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
56771
56772 2008-02-06  Bruno Haible  <bruno@clisp.org>
56773
56774         Fix bug introduced on 2007-06-10.
56775         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
56776         !NEED_PRINTF_FLAG_ZERO.
56777
56778 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
56779
56780         getloadavg: use libperfstat on AIX5
56781         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
56782
56783 2008-02-03  Bruno Haible  <bruno@clisp.org>
56784
56785         * lib/diffseq.h: Add comments about required #includes.
56786         Reported by Michael Biggs <gnulib@doubleplum.net>.
56787
56788 2008-02-01  Bruno Haible  <bruno@clisp.org>
56789
56790         * users.txt: Add gnuit.
56791
56792 2008-01-31  Bruno Haible  <bruno@clisp.org>
56793
56794         * lib/md4.c (set_uint32): Mark as inline.
56795         * lib/md5.c (set_uint32): Likewise.
56796         * lib/sha1.c (set_uint32): Likewise.
56797         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
56798         * m4/md5.m4 (gl_MD5): Likewise.
56799         * m4/sha1.m4 (gl_SHA1): Likewise.
56800
56801 2008-01-31  Jim Meyering  <meyering@redhat.com>
56802
56803         Use "sizeof VAR", rather than a literal "4".
56804         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
56805         * lib/md4.c (md4_read_ctx): Likewise.
56806         * lib/sha1.c (sha1_read_ctx): Likewise.
56807
56808 2008-01-31  Simon Josefsson  <simon@josefsson.org>
56809
56810         * tests/test-sha1.c: New file, based on test-md5.c.
56811
56812         * modules/crypto/sha1-tests: New file.
56813
56814 2008-01-31  Simon Josefsson  <simon@josefsson.org>
56815
56816         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
56817
56818 2008-01-31  Jim Meyering  <meyering@redhat.com>
56819
56820         Prefer "sizeof v" over the equivalent "4".
56821         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
56822         * lib/md5.c (set_uint32): Likewise.
56823         * lib/sha1.c (set_uint32): Likewise.
56824
56825 2008-01-31  Simon Josefsson  <simon@josefsson.org>
56826
56827         * lib/sha1.c (set_uint32): Mark function as static.
56828
56829 2008-01-31  Simon Josefsson  <simon@josefsson.org>
56830
56831         md2: clarify comments to say that alignment is not required.
56832         * lib/md2.h: Remove warning about alignment in comment.
56833         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
56834         never been required.
56835
56836 2008-01-31  Simon Josefsson  <simon@josefsson.org>
56837
56838         md4: adapt alignment constraint fix from sha1.
56839         * lib/md4.c (set_uint32): New function, from sha1.c
56840         (md4_read_ctx): Use it.
56841         (md4_finish_ctx): Doc fix.
56842         * lib/md4.h: Doc fix.
56843
56844 2008-01-31  Simon Josefsson  <simon@josefsson.org>
56845
56846         md5: adapt alignment constraint fix from sha1.
56847         * lib/md5.c (set_uint32): New function, from sha1.c
56848         (md5_read_ctx): Use it.
56849         (md5_finish_ctx): Doc fix.
56850         * lib/md5.h: Doc fix.
56851
56852 2008-01-30  Peter Palfrader  <weasel@debian.org>
56853
56854         sha1: remove the result buffer alignment constraint
56855         * lib/sha1.c (set_uint32): New function.
56856         (sha1_read_ctx): Rewrite to remove the result buffer alignment
56857         constraint.
56858         (sha1_finish_ctx): Remove comment warning about alignment constraint.
56859         * lib/sha1.h: Likewise.
56860
56861 2008-01-30  Andreas Schwab  <schwab@suse.de>
56862             Bruno Haible  <bruno@clisp.org>
56863
56864         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
56865         correct definition of LDBL_MIN_EXP.
56866
56867 2008-01-30  Karl Berry  <karl@gnu.org>
56868
56869         * config/srclist-update: try to preserve x bit on updates.
56870         * config/srclistvars.sh: update for karl.
56871
56872 2008-01-29  Jim Meyering  <meyering@redhat.com>
56873
56874         vasnprintf.c: Avoid warning about unused label
56875         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
56876         "overflow" label definition and associated code with the
56877         same cpp condition that guards the sole use of that label.
56878
56879 2008-01-26  Bruno Haible  <bruno@clisp.org>
56880
56881         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
56882         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
56883         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
56884         * lib/isnanl-nolibm.h (isnanl): Likewise.
56885         Reported by Paul Eggert <eggert@cs.ucla.edu>.
56886
56887 2008-01-26  Bruno Haible  <bruno@clisp.org>
56888
56889         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
56890         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
56891
56892 2008-01-26  Bruno Haible  <bruno@clisp.org>
56893
56894         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
56895         GCC >= 4.0 built-in.
56896         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
56897
56898 2008-01-26  Bruno Haible  <bruno@clisp.org>
56899
56900         Rename isnan, applicable to 'double' only, to isnand.
56901         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
56902         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
56903         (configure.ac): Update.
56904         (Include): Replace "isnan.h" with "isnand.h".
56905         * m4/isnand.m4: Renamed from m4/isnan.m4.
56906         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
56907         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
56908         instead of isnan.c.
56909         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
56910         instead of HAVE_ISNAN_IN_LIBC.
56911         (isnand): Renamed from isnan.
56912         * lib/isnand.c: New file.
56913         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
56914         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
56915         (Makefile.am): Update.
56916         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
56917         Include isnand.h instead of isnan.h.
56918         (main): Test isnand instead of isnan.
56919         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
56920         isnan-nolibm.
56921         * modules/frexp (Depends-on): Likewise.
56922         * modules/frexp-tests (Depends-on): Likewise.
56923         * modules/frexp-nolibm (Depends-on): Likewise.
56924         * modules/frexp-nolibm-tests (Depends-on): Likewise.
56925         * modules/isfinite (Depends-on): Likewise.
56926         * modules/round-tests (Depends-on): Likewise.
56927         * modules/signbit (Depends-on): Likewise.
56928         * modules/signbit-tests (Depends-on): Likewise.
56929         * modules/snprintf-posix (Depends-on): Likewise.
56930         * modules/sprintf-posix (Depends-on): Likewise.
56931         * modules/trunc-tests (Depends-on): Likewise.
56932         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
56933         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
56934         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
56935         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
56936         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
56937         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
56938         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
56939         * modules/vasnprintf-posix (Depends-on): Likewise.
56940         * modules/vasprintf-posix (Depends-on): Likewise.
56941         * modules/vfprintf-posix (Depends-on): Likewise.
56942         * modules/vsnprintf-posix (Depends-on): Likewise.
56943         * modules/vsprintf-posix (Depends-on): Likewise.
56944         * lib/frexp.c: Include isnand.h instead of isnan.h.
56945         (ISNAN): Set to isnand instead of isnan.
56946         * lib/isfinite.c: Include isnand.h instead of isnan.h.
56947         (gl_isfinited): Use isnand instead of isnan.
56948         * lib/signbitd.c: Include isnand.h instead of isnan.h.
56949         (gl_signbitd): Use isnand instead of isnan.
56950         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
56951         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
56952         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
56953         (main): Use isnand instead of isnan.
56954         * tests/test-round1.c: Include isnand.h.
56955         (main): Use isnand instead of isnan.
56956         * tests/test-round2.c: Include isnand.h instead of isnan.h.
56957         (ISNAN): Set to isnand instead of isnan.
56958         * tests/test-trunc1.c: Include isnand.h.
56959         (main): Use isnand instead of isnan.
56960         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
56961         (equal): Use isnand instead of isnan.
56962         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
56963         isnand-nolibm.
56964         * NEWS: Mention the change.
56965
56966 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
56967             Bruno Haible  <bruno@clisp.org>
56968
56969         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
56970         the GCC builtins for signbits are present and set
56971         REPLACE_SIGNBIT_USING_GCC if so.
56972         * lib/math.in.h (signbit): Define using GCC builtins if
56973         REPLACE_SIGNBIT_USING_GCC is set.
56974         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
56975         REPLACE_SIGNBIT_USING_GCC.
56976         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
56977
56978 2008-01-25  Jim Meyering  <meyering@redhat.com>
56979
56980         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
56981         * lib/poll.c: Include <config.h>, not "config.h".
56982         * tests/test-getaddrinfo.c: Likewise.
56983
56984 2008-01-25  Simon Josefsson  <simon@josefsson.org>
56985
56986         * modules/sockets-tests: New file.
56987
56988 2008-01-24  Simon Josefsson  <simon@josefsson.org>
56989
56990         * modules/sockets: New module, can be used to call WSA_Startup and
56991         WSA_Cleanup when needed.
56992
56993         * lib/sockets.h, lib/sockets.c: New files.
56994
56995         * m4/sockets.m4: New file.
56996
56997         * tests/test-sockets.c: New file.
56998
56999 2008-01-19  Bruno Haible  <bruno@clisp.org>
57000
57001         * doc/posix-headers: Renamed from doc/headers.
57002         * doc/posix-functions: Renamed from doc/functions.
57003         * doc/gnulib.texi: Update.
57004
57005 2008-01-19  Bruno Haible  <bruno@clisp.org>
57006
57007         * doc/glibc-functions/strcasestr.texi: Include contents of
57008         doc/functions/strcasestr.texi, fixing the list of platforms.
57009         * doc/functions/strcasestr.texi: Remove file.
57010
57011 2008-01-19  Bruno Haible  <bruno@clisp.org>
57012
57013         * doc/glibc-functions/memmem.texi: Include contents of
57014         doc/functions/memmem.texi.
57015         * doc/functions/memmem.texi: Remove file.
57016
57017 2008-01-18  Bruno Haible  <bruno@clisp.org>
57018
57019         * doc/glibc-functions/*.texi: New files.
57020         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
57021         to use the new files.
57022
57023 2008-01-17  Bruno Haible  <bruno@clisp.org>
57024
57025         * tests/test-gethostname.c (main): Fix printf statement.
57026
57027 2008-01-17  Simon Josefsson  <simon@josefsson.org>
57028
57029         * modules/gethostname-tests: New file.
57030
57031         * tests/test-gethostname.c: New file.
57032
57033 2008-01-17  Simon Josefsson  <simon@josefsson.org>
57034
57035         * lib/gethostname.c: Include string.h unconditionally, strncpy is
57036         used by the UNAME case.  Reported by Bruno Haible
57037         <bruno@clisp.org>.
57038
57039 2008-01-17  Eric Blake  <ebb9@byu.net>
57040
57041         Convert c-strcasestr to be more efficient.
57042         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
57043         (Depends-on): Add c-strcase, remove malloca, strnlen.
57044         * tests/test-c-strcasestr.c (main): Enhance test.
57045         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
57046
57047 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
57048
57049         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
57050         Use it in creating po/Makevars.
57051
57052 2008-01-15  Simon Josefsson  <simon@josefsson.org>
57053
57054         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
57055         Applications that requires it should initialize libgcrypt
57056         manually.
57057
57058 2008-01-16  Simon Josefsson  <simon@josefsson.org>
57059
57060         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
57061
57062 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
57063
57064         Fix problem with getdate on mingw32 reported by Simon Josefsson
57065         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
57066         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
57067         tzname", when deciding whether to declare tzname.
57068         * lib/strftime.c (tzname): Likewise.
57069
57070 2008-01-15  Bruno Haible  <bruno@clisp.org>
57071
57072         Work around a MacOS X 10.5 bug in frexpl().
57073         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
57074         * doc/functions/frexpl.texi: Document the bug.
57075         Reported by Elias Pipping <pipping@gentoo.org>.
57076
57077 2008-01-14  Eric Blake  <ebb9@byu.net>
57078
57079         Touch up previous patch.
57080         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
57081         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
57082
57083         Convert strcasestr module to use Two-Way algorithm.
57084         * modules/strcasestr-simple: New module, based on the old
57085         strcasestr, but with Two-Way rather than KMP.
57086         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
57087         * lib/string.in.h (rpl_strcasestr): Declare.
57088         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
57089         performance.
57090         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
57091         * modules/string (Makefile.am): Support strcasestr.
57092         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
57093         * modules/strcasestr-tests (Depends-on): Check for alarm.
57094         * tests/test-strcasestr.c: Augment test.
57095         * lib/str-two-way.h: Clean up stray macro.
57096         * NEWS: Document new module.
57097         * MODULES.html.sh (string handling): Likewise.
57098         * doc/functions/strcasestr.texi: New file.
57099         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
57100         here, since it is not a POSIX function.
57101
57102 2008-01-14  Colin Watson  <cjwatson@debian.org>
57103             Bruno Haible  <bruno@clisp.org>
57104
57105         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
57106         works fine; if not, set REPLACE_STRSIGNAL.
57107         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
57108         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57109         REPLACE_STRSIGNAL.
57110         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
57111         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
57112         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
57113
57114 2008-01-14  Bruno Haible  <bruno@clisp.org>
57115
57116         * modules/strsignal (Include): Change to <string.h>.
57117
57118 2008-01-14  Colin Watson  <cjwatson@debian.org>
57119
57120         * modules/argp (Notice): Add a notice recommending to change
57121         XGETTEXT_OPTIONS.
57122         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
57123
57124 2008-01-13  Colin Watson  <cjwatson@debian.org>
57125
57126         * modules/strsignal-tests: New file.
57127         * tests/test-strsignal.c: New file.
57128
57129         * lib/strsignal.c: New file, from glibc with modifications.
57130         * lib/siglist.h: New file, from glibc with modifications.
57131         * lib/string.in.h (strsignal): New declaration.
57132         * m4/strsignal.m4: New file.
57133         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57134         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
57135         * modules/strsignal: New file.
57136         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
57137         HAVE_DECL_STRSIGNAL.
57138
57139 2008-01-13  Bruno Haible  <bruno@clisp.org>
57140
57141         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
57142         locale encoding is not ASCII. Needed for OpenBSD 4.0.
57143         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
57144         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
57145
57146 2008-01-13  Bruno Haible  <bruno@clisp.org>
57147
57148         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
57149         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
57150         * lib/argp.h (__attribute__): Likewise.
57151         * lib/c-stack.c (__attribute__): Likewise.
57152         * lib/error.h (__attribute__): Likewise.
57153         * lib/fts.c (__attribute__): Likewise.
57154         * lib/openat.h (__attribute__): Likewise.
57155         * lib/stdio.in.h (__attribute__): Likewise.
57156         * lib/string.in.h (__attribute__): Likewise.
57157         * lib/utimens.c (__attribute__): Likewise.
57158         * lib/vasnprintf.h (__attribute__): Likewise.
57159         * lib/xalloc.h (__attribute__): Likewise.
57160         * lib/xprintf.h (__attribute__): Likewise.
57161         * lib/xstrtol.h (__attribute__): Likewise.
57162         * lib/xvasprintf.h (__attribute__): Likewise.
57163
57164 2008-01-12  Bruno Haible  <bruno@clisp.org>
57165
57166         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
57167         * doc/glibc-headers/a.out.texi: New file.
57168         * doc/glibc-headers/aliases.texi: New file.
57169         * doc/glibc-headers/alloca.texi: New file.
57170         * doc/glibc-headers/ar.texi: New file.
57171         * doc/glibc-headers/argp.texi: New file.
57172         * doc/glibc-headers/argz.texi: New file.
57173         * doc/glibc-headers/byteswap.texi: New file.
57174         * doc/glibc-headers/crypt.texi: New file.
57175         * doc/glibc-headers/endian.texi: New file.
57176         * doc/glibc-headers/envz.texi: New file.
57177         * doc/glibc-headers/err.texi: New file.
57178         * doc/glibc-headers/error.texi: New file.
57179         * doc/glibc-headers/execinfo.texi: New file.
57180         * doc/glibc-headers/fpu_control.texi: New file.
57181         * doc/glibc-headers/fstab.texi: New file.
57182         * doc/glibc-headers/fts.texi: New file.
57183         * doc/glibc-headers/getopt.texi: New file.
57184         * doc/glibc-headers/ieee754.texi: New file.
57185         * doc/glibc-headers/ifaddrs.texi: New file.
57186         * doc/glibc-headers/libintl.texi: New file.
57187         * doc/glibc-headers/mcheck.texi: New file.
57188         * doc/glibc-headers/mntent.texi: New file.
57189         * doc/glibc-headers/obstack.texi: New file.
57190         * doc/glibc-headers/paths.texi: New file.
57191         * doc/glibc-headers/printf.texi: New file.
57192         * doc/glibc-headers/pty.texi: New file.
57193         * doc/glibc-headers/resolv.texi: New file.
57194         * doc/glibc-headers/shadow.texi: New file.
57195         * doc/glibc-headers/sysexits.texi: New file.
57196         * doc/glibc-headers/ttyent.texi: New file.
57197
57198 2008-01-12  Jim Meyering  <meyering@redhat.com>
57199
57200         announce-gen: emit Gnulib's git-based version string.
57201         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
57202         New option --gnulib-version=V, where V is expected to be
57203         the output of running git describe in the gnulib directory.
57204         (get_tool_versions): Request feedback on xdelta.  I suspect it's
57205         not useful, and plan to stop publishing an xdelta file with each
57206         coreutils release.
57207
57208         * build-aux/announce-gen: Also check for lzma-compressed files.
57209
57210 2008-01-11  Bruno Haible  <bruno@clisp.org>
57211
57212         * tests/test-memmem.c (main): Increase maximum allowed time.
57213         * tests/test-strstr.c (main): Likewise.
57214
57215 2008-01-11  Bruno Haible  <bruno@clisp.org>
57216
57217         * doc/functions/memmem.texi: Add more precisions about platforms.
57218         * doc/functions/strstr.texi: Likewise.
57219
57220 2008-01-10  Eric Blake  <ebb9@byu.net>
57221
57222         * m4/strstr.m4: Delete cruft from copy-n-paste.
57223         Reported by Bruno Haible.
57224
57225 2008-01-10  Bruno Haible  <bruno@clisp.org>
57226
57227         Make c-strstr rely on strstr.
57228         * lib/c-strstr.c: Don't include str-kmp.h.
57229         (c_strstr): Define in terms of strstr.
57230         * modules/c-strstr (Files): Remove lib/str-kmp.h.
57231         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
57232
57233 2008-01-10  Bruno Haible  <bruno@clisp.org>
57234
57235         * doc/gnulib.texi (String Functions in C Locale): New section.
57236         * doc/c-ctype.texi: New file.
57237         * doc/c-strcase.texi: New file.
57238         * doc/c-strcaseeq.texi: New file.
57239         * doc/c-strcasestr.texi: New file.
57240         * doc/c-strstr.texi: New file.
57241         * doc/c-strtod.texi: New file.
57242         * doc/c-strtold.texi: New file.
57243
57244 2008-01-10  Eric Blake  <ebb9@byu.net>
57245
57246         * lib/relocatable.h: Fix a comment.
57247
57248 2008-01-10  Eric Blake  <ebb9@byu.net>
57249
57250         Share two-way algorithm.
57251         * lib/str-two-way.h: New file, merged from...
57252         * lib/memmem.c: ...here...
57253         * lib/strstr.c: ...and here.
57254         * modules/memmem (Files): Use it.
57255         * modules/strstr (Files): Likewise.
57256
57257         Avoid quadratic strstr implementations.
57258         * lib/strstr.c: New file.
57259         * m4/strstr.m4: Likewise.
57260         * modules/strstr: Likewise.
57261         * modules/strstr-tests: Likewise.
57262         * tests/test-strstr.c: Likewise.
57263         * lib/string.in.h (rpl_strstr): Declare.
57264         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
57265         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
57266         * modules/string (Makefile.am): Likewise.
57267         * MODULES.html.sh (string handling): Mention new module.
57268         * doc/functions/strstr.texi (strstr): Document the bug.
57269
57270 2008-01-10  Bruno Haible  <bruno@clisp.org>
57271
57272         * lib/relocatable.h (relocate): State whether result is freshly
57273         allocated or not.
57274         * lib/relocatable.c (relocate): Return a freshly allocated string
57275         instead of a pointer to a privately held string.
57276         Reported by Sylvain Beucler <beuc@gnu.org>.
57277
57278 2008-01-10  Colin Watson  <cjwatson@debian.org>
57279
57280         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
57281         s/S_ISNLK/S_ISLNK/.
57282
57283 2008-01-09  Bruno Haible  <bruno@clisp.org>
57284
57285         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
57286         and other files.
57287         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
57288         if it's only a guess.
57289         * modules/memmem: Simplify by depending on memmem-simple.
57290
57291 2008-01-09  Bruno Haible  <bruno@clisp.org>
57292
57293         Work around OpenBSD 4.0 tdelete() bug.
57294         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
57295         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
57296         macros and don't redefine the enum values.
57297         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
57298         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
57299         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
57300
57301 2008-01-09  Bruno Haible  <bruno@clisp.org>
57302
57303         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
57304         (main): Don't perform the tests if setlocale did not install a UTF-8
57305         locale. Needed on OpenBSD 4.0.
57306         * modules/wcwidth-tests (Depends-on): Add localcharset.
57307
57308 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
57309
57310         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
57311         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
57312         * NEWS: announce this.
57313         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
57314
57315 2008-01-09  Simon Josefsson  <simon@josefsson.org>
57316         and Eric Blake  <ebb9@byu.net>
57317
57318         Add memmem-simple module.
57319         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
57320         (gl_FUNC_MEMMEM): Separate performance from presence checks.
57321         * modules/memmem-simple: New file.
57322         * modules/memmem (Description): Tweak.
57323         * MODULES.html.sh (string handling): Mention new module.
57324         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
57325         addressed by memmem-simple.
57326         * NEWS: Document the difference.
57327
57328 2008-01-09  Eric Blake  <ebb9@byu.net>
57329
57330         Give gcc some memmem optimization hints.
57331         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
57332         (strcasestr): Declare as pure.
57333         * modules/memmem (Maintainer): Claim my implementation.
57334
57335 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57336
57337         Support AIX 6.1 and higher.
57338         * build-aux/config.libpath: Likewise.
57339         * build-aux/config.rpath: Likewise.
57340
57341 2008-01-08  Jim Meyering  <meyering@redhat.com>
57342             Bruno Haible  <bruno@clisp.org>
57343
57344         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
57345         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
57346         Reported by Peter Fales in
57347         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
57348
57349 2008-01-08  Bruno Haible  <bruno@clisp.org>
57350
57351         * modules/unictype/category-of (Depends-on): Add
57352         unictype/category-none.
57353         * modules/unictype/category-and-tests (Depends-on): Add
57354         unictype/category-{L,N,Lu,Nd}.
57355         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
57356         * modules/unictype/category-or-tests (Depends-on): Add
57357         unictype/category-{L,N}.
57358         * modules/unictype/category-name-tests (Depends-on): Add
57359         unictype/category-{Z,Nl}.
57360         Reported by Simon Josefsson.
57361
57362 2008-01-08  Bruno Haible  <bruno@clisp.org>
57363
57364         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
57365         convention better.
57366         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
57367         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
57368         Reported by Peter Miller <millerp@canb.auug.org.au>.
57369
57370 2008-01-08  Eric Blake  <ebb9@byu.net>
57371
57372         Rewrite memmem to guarantee linear complexity without malloc.
57373         * lib/memmem.c (memmem): Use Two-Way rather than
57374         Knuth-Morris-Pratt, to allow O(1) space usage.
57375         (critical_factorization, two_way_short_needle)
57376         (two_way_long_needle): New functions.
57377         (knuth_morris_pratt): Delete.
57378         * modules/memmem (Depends-on): No longer need malloca or stdbool.
57379         Add stdint.
57380         * tests/test-memmem.c (main): Add tests for periodic needle and
57381         sublinear performance.
57382         * doc/functions/memmem.texi (memmem): Document other deficiencies
57383         in cygwin and older glibc.
57384
57385 2008-01-08  Bruno Haible  <bruno@clisp.org>
57386
57387         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
57388         augmentation.
57389
57390 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
57391
57392         Add a configure time option: --disable-acl.
57393         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
57394         AC_ARG_ENABLE(acl).
57395
57396 2008-01-06  Simon Josefsson  <simon@josefsson.org>
57397
57398         * tests/test-localename.c: Don't include obsolete "setenv.h".
57399
57400         * modules/localename-tests (Depends-on): Need unsetenv.
57401
57402 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57403
57404         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
57405
57406 2008-01-06  Colin Watson  <cjwatson@debian.org>
57407
57408         * users.txt: Add man-db.
57409
57410 2008-01-07  Bruno Haible  <bruno@clisp.org>
57411
57412         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
57413         previous section name.
57414
57415 2008-01-07  Bruno Haible  <bruno@clisp.org>
57416
57417         * lib/progname.c (set_program_name): Don't strip off a leading
57418         "lt-" prefix outside a .libs directory.
57419         Suggested by Paul Eggert.
57420
57421 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
57422             Bruno Haible  <bruno@clisp.org>
57423
57424         Improve memory cleanup in 'relocatable' module.
57425         * lib/relocatable.h (compute_curr_prefix): Change return type to
57426         'char *'.
57427         * lib/relocatable.c (compute_curr_prefix): Change return type to
57428         'char *'. Free curr_installdir after use.
57429         (relocate): Free curr_prefix_better after use.
57430         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
57431
57432 2008-01-01  Bruno Haible  <bruno@clisp.org>
57433
57434         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
57435         failure on older glibc systems.
57436         Reported by Peter Fales <psfales@alcatel-lucent.com>.
57437
57438 2008-01-05  Eric Blake  <ebb9@byu.net>
57439
57440         Avoid quadratic system memmem.
57441         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
57442         Reported by Ralf Wildenhues.
57443
57444         Fix memmem test for mingw.
57445         * modules/memmem-tests (configure.ac): Check for alarm.
57446         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
57447         it.
57448         * doc/functions/memmem.texi: New file.
57449         * doc/gnulib.texi (Function Substitutes): Add memmem.
57450         Reported by Bruno Haible.
57451
57452 2008-01-04  Bruno Haible  <bruno@clisp.org>
57453
57454         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
57455         Require gl_HEADER_STRINGS_H_DEFAULTS, not
57456         gl_HEADER_STRING_H_DEFAULTS.
57457
57458 2008-01-04  Eric Blake  <ebb9@byu.net>
57459
57460         Shorten duration of memmem test.
57461         * tests/test-memmem.c (main): Use alarm to declare failure if test
57462         is taking too long.
57463         Reported by Ralf Wildenhues.
57464
57465 2007-12-21  Simon Josefsson  <simon@josefsson.org>
57466
57467         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
57468         string, needed by strerror.
57469
57470 2008-01-03  Colin Watson  <cjwatson@debian.org>
57471             Bruno Haible  <bruno@clisp.org>
57472
57473         * doc/gnulib-tool.texi (Localization): New section.
57474
57475 2008-01-02  Bruno Haible  <bruno@clisp.org>
57476
57477         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
57478         variables to 'unsigned char *' type.
57479         Reported by Paul Eggert.
57480
57481 2008-01-02  Jim Meyering  <jim@meyering.net>
57482
57483         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
57484
57485 2007-12-31  Jim Meyering  <jim@meyering.net>
57486
57487         Avoid use of private FTS type name.
57488         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
57489
57490 2007-12-30  Karl Berry  <karl@gnu.org>
57491
57492         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
57493         work around defect in Texinfo and/or the standalone Info browser.
57494
57495 2007-12-30  Bruno Haible  <bruno@clisp.org>
57496
57497         Unify 5 copies of the KMP code.
57498         * lib/str-kmp.h: New file.
57499         * lib/c-strcasestr.c: Include str-kmp.h.
57500         (knuth_morris_pratt): Remove function.
57501         (c_strcasestr): Update.
57502         * lib/c-strstr.c: Include str-kmp.h.
57503         (knuth_morris_pratt): Remove function.
57504         (c_strcasestr): Update.
57505         * lib/mbscasestr.c: Include str-kmp.h.
57506         (knuth_morris_pratt_unibyte): Remove function.
57507         * lib/mbsstr.c: Include str-kmp.h.
57508         (knuth_morris_pratt_unibyte): Remove function.
57509         * lib/strcasestr.c: Include str-kmp.h.
57510         (knuth_morris_pratt): Remove function.
57511         (strcasestr): Update.
57512         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
57513         * modules/c-strstr (Files): Likewise.
57514         * modules/mbscasestr (Files): Likewise.
57515         * modules/mbsstr (Files): Likewise.
57516         * modules/strcasestr (Files): Likewise.
57517         Suggested by Paul Eggert.
57518
57519 2007-12-30  Bruno Haible  <bruno@clisp.org>
57520
57521         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
57522         defined.
57523
57524 2007-12-30  Bruno Haible  <bruno@clisp.org>
57525
57526         * lib/xmalloca.h: Include xalloc.h.
57527         (xnmalloca): New macro.
57528
57529 2007-12-30  Bruno Haible  <bruno@clisp.org>
57530
57531         * lib/malloca.h (nmalloca): New macro.
57532         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
57533         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
57534         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
57535         knuth_morris_pratt_multibyte): Likewise.
57536         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
57537         knuth_morris_pratt_multibyte): Likewise.
57538         * lib/memmem.c (knuth_morris_pratt): Likewise.
57539         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
57540
57541 2007-12-25  Bruno Haible  <bruno@clisp.org>
57542
57543         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
57544         * lib/glob.c: Don't include openat.h.
57545         (link_exists2_p): Add back the code that deals with the
57546         !GLOB_ALTDIRFUNC case.
57547         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
57548         let it do the filename concatenation.
57549         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
57550         * modules/glob (Depends-on): Remove openat.
57551
57552 2007-12-31  Bruno Haible  <bruno@clisp.org>
57553
57554         * modules/dirfd (License): Change to LGPLv2+.
57555         Approved by Jim Meyering.
57556
57557 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
57558
57559         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
57560         when multiplying M by sizeof (size_t).
57561
57562 2007-12-10  Martin Lambers  <marlam@marlam.de>
57563
57564         Override getpagesize on mingw.
57565         * lib/getpagesize.c: New file.
57566         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
57567         * modules/getpagesize (Files): Add lib/getpagesize.c.
57568         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
57569         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
57570         REPLACE_GETPAGESIZE.
57571         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
57572
57573 2007-12-25  Bruno Haible  <bruno@clisp.org>
57574
57575         * modules/localcharset (Notice): New field.
57576         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
57577         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
57578
57579 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
57580             Bruno Haible  <bruno@clisp.org>
57581
57582         Avoid using the syntax symbol() in formatted documentation.
57583         * MODULES.html.sh (func_module): When replacing symbol() with a
57584         hyperlink, remove the parentheses. Show an error if some remain.
57585         Recognize and render the '...' syntax.
57586         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
57587         Rework. Add paragraph about GCC's inlining.
57588         * doc/alloca.texi: Likewise.
57589         * doc/error.texi: Remove parentheses from symbol reference.
57590         * doc/gnulib-intro.texi: Likewise.
57591         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
57592         * modules/fnmatch (Description): Reword to say "the ... function".
57593         * modules/full-read (Description): Likewise.
57594         * modules/full-write (Description): Likewise.
57595         * modules/safe-read (Description): Likewise.
57596         * modules/safe-write (Description): Likewise.
57597         * modules/strchrnul (Description): Likewise.
57598         * modules/trim (Description): Likewise.
57599         * modules/error (Description): Remove parentheses from symbol
57600         references.
57601         * modules/verror (Description): Likewise.
57602         Reported by Karl Berry.
57603
57604 2007-12-25  Bruno Haible  <bruno@clisp.org>
57605
57606         Fixup after 2007-10-16 commit.
57607         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
57608
57609 2007-12-24  Bruno Haible  <bruno@clisp.org>
57610
57611         Make --enable-relocatable work with DESTDIR.
57612         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
57613         to compute installdir from destprog.
57614         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
57615         also set the RELOC_DESTDIR variable.
57616         Reported by Левашев Иван <octagram@bluebottle.com>.
57617
57618 2007-12-24  Bruno Haible  <bruno@clisp.org>
57619
57620         Fix link error due to xalloc_die().
57621         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
57622         of xreadlink.
57623         * lib/relocwrapper.c: Update comments.
57624         * build-aux/install-reloc: Remove xreadlink.c from file list.
57625         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
57626         xreadlink.c.
57627         Reported by Левашев Иван <octagram@bluebottle.com>.
57628
57629 2007-12-24  Bruno Haible  <bruno@clisp.org>
57630
57631         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
57632         * lib/setenv.h: Remove file.
57633         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
57634         lib/setenv.h.
57635         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
57636         (Depends-on): Add stdlib.
57637         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
57638         gl_FUNC_UNSETENV.
57639         (Include): Replace setenv.h with <stdlib.h>.
57640         * modules/unsetenv: New file.
57641         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
57642         * lib/unsetenv.c: Include <stdlib.h> first.
57643         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
57644         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
57645         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
57646         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
57647         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
57648         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
57649         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
57650         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
57651         * doc/functions/unsetenv.texi: Update.
57652         * modules/xsetenv (Depends-on): Add unsetenv.
57653         * modules/getdate (Depends-on): Likewise.
57654         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
57655         * lib/xsetenv.c: Don't include setenv.h.
57656         * lib/getdate.y: Likewise.
57657         * lib/relocwrapper.c: Likewise.
57658         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
57659         (Depends-on): Add stdlib.
57660         * NEWS: Mention the changes.
57661         Reported by Левашев Иван <octagram@bluebottle.com>.
57662
57663 2007-12-23  Bruno Haible  <bruno@clisp.org>
57664
57665         * lib/memmem.c (memmem): Use lowercase variable names. Tab
57666         indentation.
57667
57668 2007-12-23  Bruno Haible  <bruno@clisp.org>
57669
57670         * lib/c-strcasestr.c: Add more comments.
57671         * lib/c-strstr.c: Likewise.
57672         * lib/mbscasestr.c: Likewise.
57673         * lib/mbsstr.c: Likewise.
57674         * lib/strcasestr.c: Likewise.
57675         * lib/memmem.c: Likewise.
57676
57677 2007-12-23  Bruno Haible  <bruno@clisp.org>
57678
57679         * tests/test-memmem.c: Include <string.h> first.
57680
57681 2007-12-22  Bruno Haible  <bruno@clisp.org>
57682
57683         * gnulib-tool (func_create_testdir): Change $auxdir while generating
57684         the contents of $testsbase.
57685         Reported by Ralf Wildenhues.
57686
57687 2007-12-22  Bruno Haible  <bruno@clisp.org>
57688
57689         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
57690         two variables local_ldadd_before, local_ldadd_last.
57691
57692 2007-12-20  Eric Blake  <ebb9@byu.net>
57693
57694         Work around circular library issue when cross-compiling.
57695         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
57696         that progname.o does not need to pull in rpl_memcmp.
57697
57698 2007-12-19  Eric Blake  <ebb9@byu.net>
57699
57700         Fix memmem to avoid O(n^2) worst-case complexity.
57701         * lib/memmem.c (knuth_morris_pratt): New function.
57702         (memmem): Use it if first few naive iterations fail.
57703         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
57704         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
57705         * modules/memchr (License): Likewise.
57706         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
57707         malloca.
57708         * tests/test-memmem.c: Rewrite, borrowing ideas from
57709         test-mbsstr1.c; the old version wouldn't even compile!
57710         * modules/memmem-tests: New file.
57711         * lib/string.in.h (rpl_memmem): Add declaration.
57712         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
57713         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
57714         REPLACE_MEMMEM.
57715
57716 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
57717
57718         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
57719         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
57720         before any system include files, and undef after them all.  This
57721         should fix a problem on VMS reported by John E. Malmberg in
57722         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
57723
57724 2007-12-17  Eric Blake  <ebb9@byu.net>
57725
57726         Revert addition of verify, for BSD/OS.
57727         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
57728         can't handle large files, for the sake of obsolete platforms.
57729         * modules/fseeko (Depends-on): Remove verify.
57730         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
57731         * doc/functions/ftello.texi (ftello): Likewise.
57732         * doc/functions/fgetpos.texi (fgetpos): Likewise.
57733         Reported by Larry Jones.
57734
57735 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
57736
57737         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
57738         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
57739
57740 2007-12-17  Jim Meyering  <meyering@redhat.com>
57741
57742         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
57743         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
57744         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
57745         * modules/getcwd (Depends-on): Add openat.
57746         Reported by Petr Salinger.
57747
57748 2007-12-17  Bruno Haible  <bruno@clisp.org>
57749
57750         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
57751         avoid a segmentation fault of the configure test on x86_64 systems.
57752
57753 2007-12-15  Jim Meyering  <meyering@redhat.com>
57754
57755         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
57756
57757 2007-12-13  Eric Blake  <ebb9@byu.net>
57758
57759         Another fseek test.
57760         * tests/test-fseek.c (main): Also test ungetc handling.
57761         * tests/test-fseeko.c (main): Likewise.
57762         * modules/fseeko (Depends-on): Add verify.
57763         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
57764         large.
57765         Reported by Larry Jones.
57766
57767         Fix fseeko on mingw.
57768         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
57769         seek.
57770
57771         Beef up fseek tests.
57772         * tests/test-fseek.c (main): Also test eof handling.
57773         * tests/test-fseeko.c (main): Likewise.
57774         Reported by Larry Jones.
57775
57776 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
57777
57778         Fix fseeko on BSD-based platforms.
57779         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
57780         successful seek.
57781
57782 2007-12-12  Eric Blake  <ebb9@byu.net>
57783
57784         Allow circular dependency of separate libtests.a
57785         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
57786         when use_libtests.
57787
57788 2007-12-11  Eric Blake  <ebb9@byu.net>
57789
57790         Fix bug with -0.0L in previous patch.
57791         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
57792         * tests/test-isnan.c (main): Also test on zeroes.
57793         * tests/test-isnanf.c (main): Likewise.
57794         * tests/test-isnanl.h (main): Likewise.
57795
57796         Detect pseudo-denormals on x86 even when cross-compiling.
57797         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
57798         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
57799         invalid bit patterns that happen to satisfy ==.
57800
57801         Avoid link failures with separate libtests.a.
57802         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
57803         last, to satisfy circular dependencies.
57804
57805 2007-12-11  Eric Blake  <ebb9@byu.net>
57806         and Bruno Haible  <bruno@clisp.org>
57807
57808         Fix OpenBSD 4.0 <float.h> handling of long double.
57809         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
57810         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
57811         * doc/headers/float.texi (float.h): Document OpenBSD bug.
57812
57813 2007-12-11  Jim Meyering  <meyering@redhat.com>
57814
57815         * users.txt: Add libvirt.
57816
57817         Support versions of autoconf prior to 2.59c.
57818         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
57819         if it is not already defined.
57820
57821 2007-12-09  Bruno Haible  <bruno@clisp.org>
57822
57823         Let 'gnulib-tool --import' collect sources needed for the tests in
57824         tests/ rather than in lib/.
57825         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
57826         argument. If true, add rules to generate libtests.a, and put libtests.a
57827         into $(LDADD). Consider source files in subdirectories and set
57828         uses_subdirs.
57829         (func_emit_initmacro_start, func_emit_initmacro_end,
57830         func_emit_initmacro_done): Pass all arguments explicitly.
57831         (func_import): Determine two module lists main_modules,
57832         testsrelated_modules. Determine use_libtests. Determine two variables
57833         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
57834         instead of just sed_transform_lib_file. Determine two variables
57835         main_files and testsrelated_files. Compute 'files' as the union of
57836         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
57837         func_add_or_update. In the generated gnulib-comp.m4, collect the
57838         object files for tests/ in different variables than those for lib/.
57839         Substitute LIBTESTS_LIBDEPS.
57840         (func_create_testdir): Combine the uses_subdirs results from
57841         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
57842
57843 2007-12-09  Bruno Haible  <bruno@clisp.org>
57844
57845         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
57846         the build-aux directory.
57847
57848 2007-12-09  Bruno Haible  <bruno@clisp.org>
57849
57850         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
57851         introduced on 2006-09-09.
57852
57853 2007-12-07  Jim Meyering  <meyering@redhat.com>
57854
57855         Let these macros work also with autoconf-2.59.
57856         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
57857         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
57858         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
57859
57860 2007-12-06  Jim Meyering  <meyering@redhat.com>
57861
57862         Avoid a configure-time syntax error in gl_FUNC_ACL.
57863         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
57864         function in each branch, before testing the cache variable.
57865
57866 2007-12-04  Eric Blake  <ebb9@byu.net>
57867
57868         Make scripts executable.
57869         * build-aux/config.guess: Add execute permissions.
57870         * build-aux/config.sub: Likewise.
57871         * build-aux/gendocs.sh: Likewise.
57872
57873         Fix frexp on mingw.
57874         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
57875         cross-compiling.
57876         * doc/functions/frexp.texi (frexp): Document the bug.
57877
57878         Make cygwin fseeko check more reliable.
57879         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
57880         version numbers, rather than unrelated feature check.
57881         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
57882         * doc/functions/ftello.texi (ftello): Likewise.
57883         Reported by Bruno Haible.
57884
57885         * m4/strerror.m4: Bump version number.
57886
57887 2007-12-03  Bruno Haible  <bruno@clisp.org>
57888
57889         * doc/functions/mprotect.texi: Mention the mingw problem.
57890
57891 2007-12-03  Eric Blake  <ebb9@byu.net>
57892
57893         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
57894         REPLACE_STRERROR is initialized before this macro.
57895
57896 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
57897
57898         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
57899         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
57900         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
57901         put -lsec in even for programs other than 'ls'.  This fixes a problem
57902         for gettext reported by Bruno Haible in
57903         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
57904         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
57905         Add support for Solaris 10.  This isn't efficient, but should get the
57906         job done for now.
57907
57908 2007-12-03  James Youngman  <jay@gnu.org>
57909
57910         * doc/regexprops-generic.texi: change "an close-group" to "a
57911         close-group" and "illegal" to "not allowed".
57912
57913 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57914
57915         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
57916         pr_byname.h. Needed for the rare case when the maintainer has done
57917         "make maintainer-clean" in the source directory and then attempts a
57918         build outside the source directory.
57919         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
57920         scripts_byname.h.
57921
57922 2007-12-02  Martin Lambers <marlam@marlam.de>
57923             Bruno Haible  <bruno@clisp.org>
57924
57925         * lib/getpagesize.h: Remove file.
57926         * lib/unistd.in.h: Include declaration of getpagesize here.
57927         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
57928         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
57929         HAVE_SYS_PARAM_H.
57930         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
57931         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
57932         * modules/getpagesize (Files): Remove lib/getpagesize.h.
57933         (Depends-on): Add unistd.
57934         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57935         (Include): Use <unistd.h> instead of getpagesize.h.
57936         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
57937         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
57938         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
57939         gl_GETPAGESIZE invocation, already handled by module dependency.
57940         * lib/pagealign_alloc.c: Don't include getpagesize.h.
57941
57942 2007-12-02  Bruno Haible  <bruno@clisp.org>
57943
57944         * modules/strings-tests: New file.
57945         * tests/test-strings.c: New file.
57946
57947         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
57948         * lib/strings.in.h: New file.
57949         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
57950         * m4/strings_h.m4: New file.
57951         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
57952         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
57953         * modules/strings: New file.
57954         * modules/string (Makefile.am): Update.
57955         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
57956         Reported by Karl Berry.
57957
57958 2007-12-01  Eric Blake  <ebb9@byu.net>
57959
57960         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
57961         accomodate fix in cygwin 1.5.25.
57962
57963 2007-12-01  Jim Meyering  <meyering@redhat.com>
57964
57965         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
57966         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
57967         that would inhibit utf8-optimization of a regexp containing line-
57968         or buffer-anchors, e.g., `^', `$'.
57969
57970 2007-11-30  Bruno Haible  <bruno@clisp.org>
57971
57972         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
57973         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
57974         glthread_recursive_lock_init.
57975         * lib/lock.c (glthread_recursive_lock_init)
57976         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
57977         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57978
57979 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
57980
57981         New function qset_acl, like set_acl but with syscall semantics.
57982         * lib/acl.h (qset_acl): New decl.
57983         * lib/acl.c (qset_acl): New function.
57984         (set_acl): Use new function.  Use more-consistent diagnostics.
57985
57986 2007-11-28  Jim Meyering  <meyering@redhat.com>
57987
57988         * modules/physmem (License): Change from GPL to LGPLv2+.
57989
57990 2007-11-26  Bruno Haible  <bruno@clisp.org>
57991
57992         * lib/vasnprintf.c (decode_long_double): Don't abort if the
57993         'long double' type has excess precision.
57994         Reported by Jim Meyering in
57995         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
57996
57997 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57998
57999         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
58000         Sync from <http://gnu.org/licenses>.
58001         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
58002         with license text from same location.
58003         * doc/maintain.texi, doc/standards.texi:  Sync from
58004         <http://savannah.gnu.org/projects/gnustandards>.
58005
58006 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
58007         and Jim Meyering  <meyering@redhat.com>
58008
58009         Adjust getdate' grammar to accept a slightly more regular language.
58010         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
58011         Before, the former was rejected.
58012         * lib/getdate.y (digits_to_date_time): New function, factored
58013         out of ...
58014         (number): ...here.  Just call digits_to_date_time.
58015         (hybrid): New non-terminal to handle an <unsigned number,
58016         signed relative offset> sequence consistently.
58017
58018 2007-11-18  Jim Meyering  <meyering@redhat.com>
58019
58020         Pull my changes from coreutils:
58021         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
58022         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
58023         use of $gnulib_tool_option_extras, so that it's separated from the
58024         preceding argument.
58025
58026         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
58027         * build-aux/bootstrap (cp_mark_as_generated): Create any required
58028         parent destination directories before copying a file into place.
58029
58030 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
58031
58032         bootstrap: work also with 4-argument variant of AC_INIT
58033         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
58034
58035 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58036
58037         Port test-getaddrinfo to Solaris.
58038         Problem reported by Bruno Haible in
58039         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
58040         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
58041         explanation of setting 'hints'.
58042         Don't reject an implementation merely because it returns EAI_SERVICE.
58043         (EAI_SERVICE): Define to 0 if not defined.
58044
58045 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
58046
58047         The license of gnu-make and posix-shell is now "GPLed build tool".
58048         * modules/gnu-make (License): Likewise.
58049         * modules/posix-shell (License): Likewise.
58050
58051         New module posix-shell, for determining a POSIX shell
58052         or perhaps something that is close enough to a POSIX shell.
58053         * m4/posix-shell.m4: New file.
58054         * modules/posix-shell: New file.
58055
58056         * MODULES.html.sh: Mention new module.
58057
58058         New module gnu-make, for determining whether we're using GNU Make.
58059         * m4/gnu-make.m4: New file.
58060         * modules/gnu-make: New file.
58061         * MODULES.html.sh: Mention new module.
58062
58063 2007-11-14  Jim Meyering  <meyering@redhat.com>
58064
58065         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
58066         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
58067         use this macro to create a function _definition_.
58068         Remove useless "#undef ARGMATCH_DIE".
58069
58070 2007-11-14  Bruno Haible  <bruno@clisp.org>
58071
58072         * lib/config.charset: Update for OpenBSD 4.1.
58073         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
58074
58075 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
58076
58077         Document 64-bit #if problems in stdint.texi.
58078         * doc/headers/stdint.texi (stdint.h): Mention problems with
58079         64-bit-#if, and how to work around them.
58080
58081         Don't insist on 'long long int' support in the preprocessor.  It
58082         breaks too many things.  For example, PRIdMAX still uses a 'long
58083         long int' format with the latest Sun compiler, even though
58084         HAVE_LONG_LONG_INT isn't defined due to that compiler's
58085         preprocessor problem.  This causes the latest coreutils to dump
58086         core on Solaris 10 sparc with the Sun C compiler.
58087         Instead, fix the 2007-10-16 problem in a different way, by evaluating
58088         the troublesome expressions at configure-time, not at #if-time.
58089         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
58090         preprocessor.
58091         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
58092         compile-time C checks, done at 'configure'-time.
58093         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
58094         * modules/inttypes (Makefile): Substitute the new symbols that
58095         gl_INTTYPES_H now generates.
58096         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
58097
58098 2007-11-12  Bruno Haible  <bruno@clisp.org>
58099
58100         Tests for Unicode character classification functions.
58101
58102         * modules/unictype/bidicategory-byname-tests: New file.
58103         * modules/unictype/bidicategory-name-tests: New file.
58104         * modules/unictype/bidicategory-of-tests: New file.
58105         * modules/unictype/bidicategory-test-tests: New file.
58106         * modules/unictype/block-list-tests: New file.
58107         * modules/unictype/block-of-tests: New file.
58108         * modules/unictype/block-test-tests: New file.
58109         * modules/unictype/category-C-tests: New file.
58110         * modules/unictype/category-Cc-tests: New file.
58111         * modules/unictype/category-Cf-tests: New file.
58112         * modules/unictype/category-Cn-tests: New file.
58113         * modules/unictype/category-Co-tests: New file.
58114         * modules/unictype/category-Cs-tests: New file.
58115         * modules/unictype/category-L-tests: New file.
58116         * modules/unictype/category-Ll-tests: New file.
58117         * modules/unictype/category-Lm-tests: New file.
58118         * modules/unictype/category-Lo-tests: New file.
58119         * modules/unictype/category-Lt-tests: New file.
58120         * modules/unictype/category-Lu-tests: New file.
58121         * modules/unictype/category-M-tests: New file.
58122         * modules/unictype/category-Mc-tests: New file.
58123         * modules/unictype/category-Me-tests: New file.
58124         * modules/unictype/category-Mn-tests: New file.
58125         * modules/unictype/category-N-tests: New file.
58126         * modules/unictype/category-Nd-tests: New file.
58127         * modules/unictype/category-Nl-tests: New file.
58128         * modules/unictype/category-No-tests: New file.
58129         * modules/unictype/category-P-tests: New file.
58130         * modules/unictype/category-Pc-tests: New file.
58131         * modules/unictype/category-Pd-tests: New file.
58132         * modules/unictype/category-Pe-tests: New file.
58133         * modules/unictype/category-Pf-tests: New file.
58134         * modules/unictype/category-Pi-tests: New file.
58135         * modules/unictype/category-Po-tests: New file.
58136         * modules/unictype/category-Ps-tests: New file.
58137         * modules/unictype/category-S-tests: New file.
58138         * modules/unictype/category-Sc-tests: New file.
58139         * modules/unictype/category-Sk-tests: New file.
58140         * modules/unictype/category-Sm-tests: New file.
58141         * modules/unictype/category-So-tests: New file.
58142         * modules/unictype/category-Z-tests: New file.
58143         * modules/unictype/category-Zl-tests: New file.
58144         * modules/unictype/category-Zp-tests: New file.
58145         * modules/unictype/category-Zs-tests: New file.
58146         * modules/unictype/category-and-not-tests: New file.
58147         * modules/unictype/category-and-tests: New file.
58148         * modules/unictype/category-byname-tests: New file.
58149         * modules/unictype/category-name-tests: New file.
58150         * modules/unictype/category-none-tests: New file.
58151         * modules/unictype/category-of-tests: New file.
58152         * modules/unictype/category-or-tests: New file.
58153         * modules/unictype/category-test-withtable-tests: New file.
58154         * modules/unictype/combining-class-tests: New file.
58155         * modules/unictype/ctype-alnum-tests: New file.
58156         * modules/unictype/ctype-alpha-tests: New file.
58157         * modules/unictype/ctype-blank-tests: New file.
58158         * modules/unictype/ctype-cntrl-tests: New file.
58159         * modules/unictype/ctype-digit-tests: New file.
58160         * modules/unictype/ctype-graph-tests: New file.
58161         * modules/unictype/ctype-lower-tests: New file.
58162         * modules/unictype/ctype-print-tests: New file.
58163         * modules/unictype/ctype-punct-tests: New file.
58164         * modules/unictype/ctype-space-tests: New file.
58165         * modules/unictype/ctype-upper-tests: New file.
58166         * modules/unictype/ctype-xdigit-tests: New file.
58167         * modules/unictype/decimal-digit-tests: New file.
58168         * modules/unictype/digit-tests: New file.
58169         * modules/unictype/mirror-tests: New file.
58170         * modules/unictype/numeric-tests: New file.
58171         * modules/unictype/property-alphabetic-tests: New file.
58172         * modules/unictype/property-ascii-hex-digit-tests: New file.
58173         * modules/unictype/property-bidi-arabic-digit-tests: New file.
58174         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
58175         * modules/unictype/property-bidi-block-separator-tests: New file.
58176         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
58177         * modules/unictype/property-bidi-common-separator-tests: New file.
58178         * modules/unictype/property-bidi-control-tests: New file.
58179         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
58180         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
58181         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
58182         * modules/unictype/property-bidi-european-digit-tests: New file.
58183         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
58184         * modules/unictype/property-bidi-left-to-right-tests: New file.
58185         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
58186         * modules/unictype/property-bidi-other-neutral-tests: New file.
58187         * modules/unictype/property-bidi-pdf-tests: New file.
58188         * modules/unictype/property-bidi-segment-separator-tests: New file.
58189         * modules/unictype/property-bidi-whitespace-tests: New file.
58190         * modules/unictype/property-byname-tests: New file.
58191         * modules/unictype/property-combining-tests: New file.
58192         * modules/unictype/property-composite-tests: New file.
58193         * modules/unictype/property-currency-symbol-tests: New file.
58194         * modules/unictype/property-dash-tests: New file.
58195         * modules/unictype/property-decimal-digit-tests: New file.
58196         * modules/unictype/property-default-ignorable-code-point-tests: New file.
58197         * modules/unictype/property-deprecated-tests: New file.
58198         * modules/unictype/property-diacritic-tests: New file.
58199         * modules/unictype/property-extender-tests: New file.
58200         * modules/unictype/property-format-control-tests: New file.
58201         * modules/unictype/property-grapheme-base-tests: New file.
58202         * modules/unictype/property-grapheme-extend-tests: New file.
58203         * modules/unictype/property-grapheme-link-tests: New file.
58204         * modules/unictype/property-hex-digit-tests: New file.
58205         * modules/unictype/property-hyphen-tests: New file.
58206         * modules/unictype/property-id-continue-tests: New file.
58207         * modules/unictype/property-id-start-tests: New file.
58208         * modules/unictype/property-ideographic-tests: New file.
58209         * modules/unictype/property-ids-binary-operator-tests: New file.
58210         * modules/unictype/property-ids-trinary-operator-tests: New file.
58211         * modules/unictype/property-ignorable-control-tests: New file.
58212         * modules/unictype/property-iso-control-tests: New file.
58213         * modules/unictype/property-join-control-tests: New file.
58214         * modules/unictype/property-left-of-pair-tests: New file.
58215         * modules/unictype/property-line-separator-tests: New file.
58216         * modules/unictype/property-logical-order-exception-tests: New file.
58217         * modules/unictype/property-lowercase-tests: New file.
58218         * modules/unictype/property-math-tests: New file.
58219         * modules/unictype/property-non-break-tests: New file.
58220         * modules/unictype/property-not-a-character-tests: New file.
58221         * modules/unictype/property-numeric-tests: New file.
58222         * modules/unictype/property-other-alphabetic-tests: New file.
58223         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
58224         * modules/unictype/property-other-grapheme-extend-tests: New file.
58225         * modules/unictype/property-other-id-continue-tests: New file.
58226         * modules/unictype/property-other-id-start-tests: New file.
58227         * modules/unictype/property-other-lowercase-tests: New file.
58228         * modules/unictype/property-other-math-tests: New file.
58229         * modules/unictype/property-other-uppercase-tests: New file.
58230         * modules/unictype/property-paired-punctuation-tests: New file.
58231         * modules/unictype/property-paragraph-separator-tests: New file.
58232         * modules/unictype/property-pattern-syntax-tests: New file.
58233         * modules/unictype/property-pattern-white-space-tests: New file.
58234         * modules/unictype/property-private-use-tests: New file.
58235         * modules/unictype/property-punctuation-tests: New file.
58236         * modules/unictype/property-quotation-mark-tests: New file.
58237         * modules/unictype/property-radical-tests: New file.
58238         * modules/unictype/property-sentence-terminal-tests: New file.
58239         * modules/unictype/property-soft-dotted-tests: New file.
58240         * modules/unictype/property-space-tests: New file.
58241         * modules/unictype/property-terminal-punctuation-tests: New file.
58242         * modules/unictype/property-test-tests: New file.
58243         * modules/unictype/property-titlecase-tests: New file.
58244         * modules/unictype/property-unassigned-code-value-tests: New file.
58245         * modules/unictype/property-unified-ideograph-tests: New file.
58246         * modules/unictype/property-uppercase-tests: New file.
58247         * modules/unictype/property-variation-selector-tests: New file.
58248         * modules/unictype/property-white-space-tests: New file.
58249         * modules/unictype/property-xid-continue-tests: New file.
58250         * modules/unictype/property-xid-start-tests: New file.
58251         * modules/unictype/property-zero-width-tests: New file.
58252         * modules/unictype/scripts-tests: New file.
58253         * modules/unictype/syntax-c-ident-tests: New file.
58254         * modules/unictype/syntax-c-whitespace-tests: New file.
58255         * modules/unictype/syntax-java-ident-tests: New file.
58256         * modules/unictype/syntax-java-whitespace-tests: New file.
58257         * tests/unictype/test-bidi_byname.c: New file.
58258         * tests/unictype/test-bidi_name.c: New file.
58259         * tests/unictype/test-bidi_of.c: New file.
58260         * tests/unictype/test-bidi_test.c: New file.
58261         * tests/unictype/test-block_list.c: New file.
58262         * tests/unictype/test-block_of.c: New file.
58263         * tests/unictype/test-block_test.c: New file.
58264         * tests/unictype/test-categ_and.c: New file.
58265         * tests/unictype/test-categ_and_not.c: New file.
58266         * tests/unictype/test-categ_byname.c: New file.
58267         * tests/unictype/test-categ_name.c: New file.
58268         * tests/unictype/test-categ_none.c: New file.
58269         * tests/unictype/test-categ_of.c: New file.
58270         * tests/unictype/test-categ_or.c: New file.
58271         * tests/unictype/test-categ_test_withtable.c: New file.
58272         * tests/unictype/test-combining.c: New file.
58273         * tests/unictype/test-decdigit.c: New file.
58274         * tests/unictype/test-digit.c: New file.
58275         * tests/unictype/test-mirror.c: New file.
58276         * tests/unictype/test-numeric.c: New file.
58277         * tests/unictype/test-pr_byname.c: New file.
58278         * tests/unictype/test-pr_test.c: New file.
58279         * tests/unictype/test-predicate-part1.h: New file.
58280         * tests/unictype/test-predicate-part2.h: New file.
58281         * tests/unictype/test-scripts.c: New file.
58282         * tests/unictype/test-sy_c_ident.c: New file.
58283         * tests/unictype/test-sy_java_ident.c: New file.
58284
58285         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
58286         for Unicode 5.0.0.
58287         * tests/unictype/test-categ_Cc.c: Likewise.
58288         * tests/unictype/test-categ_Cf.c: Likewise.
58289         * tests/unictype/test-categ_Cn.c: Likewise.
58290         * tests/unictype/test-categ_Co.c: Likewise.
58291         * tests/unictype/test-categ_Cs.c: Likewise.
58292         * tests/unictype/test-categ_L.c: Likewise.
58293         * tests/unictype/test-categ_Ll.c: Likewise.
58294         * tests/unictype/test-categ_Lm.c: Likewise.
58295         * tests/unictype/test-categ_Lo.c: Likewise.
58296         * tests/unictype/test-categ_Lt.c: Likewise.
58297         * tests/unictype/test-categ_Lu.c: Likewise.
58298         * tests/unictype/test-categ_M.c: Likewise.
58299         * tests/unictype/test-categ_Mc.c: Likewise.
58300         * tests/unictype/test-categ_Me.c: Likewise.
58301         * tests/unictype/test-categ_Mn.c: Likewise.
58302         * tests/unictype/test-categ_N.c: Likewise.
58303         * tests/unictype/test-categ_Nd.c: Likewise.
58304         * tests/unictype/test-categ_Nl.c: Likewise.
58305         * tests/unictype/test-categ_No.c: Likewise.
58306         * tests/unictype/test-categ_P.c: Likewise.
58307         * tests/unictype/test-categ_Pc.c: Likewise.
58308         * tests/unictype/test-categ_Pd.c: Likewise.
58309         * tests/unictype/test-categ_Pe.c: Likewise.
58310         * tests/unictype/test-categ_Pf.c: Likewise.
58311         * tests/unictype/test-categ_Pi.c: Likewise.
58312         * tests/unictype/test-categ_Po.c: Likewise.
58313         * tests/unictype/test-categ_Ps.c: Likewise.
58314         * tests/unictype/test-categ_S.c: Likewise.
58315         * tests/unictype/test-categ_Sc.c: Likewise.
58316         * tests/unictype/test-categ_Sk.c: Likewise.
58317         * tests/unictype/test-categ_Sm.c: Likewise.
58318         * tests/unictype/test-categ_So.c: Likewise.
58319         * tests/unictype/test-categ_Z.c: Likewise.
58320         * tests/unictype/test-categ_Zl.c: Likewise.
58321         * tests/unictype/test-categ_Zp.c: Likewise.
58322         * tests/unictype/test-categ_Zs.c: Likewise.
58323         * tests/unictype/test-ctype_alnum.c: Likewise.
58324         * tests/unictype/test-ctype_alpha.c: Likewise.
58325         * tests/unictype/test-ctype_blank.c: Likewise.
58326         * tests/unictype/test-ctype_cntrl.c: Likewise.
58327         * tests/unictype/test-ctype_digit.c: Likewise.
58328         * tests/unictype/test-ctype_graph.c: Likewise.
58329         * tests/unictype/test-ctype_lower.c: Likewise.
58330         * tests/unictype/test-ctype_print.c: Likewise.
58331         * tests/unictype/test-ctype_punct.c: Likewise.
58332         * tests/unictype/test-ctype_space.c: Likewise.
58333         * tests/unictype/test-ctype_upper.c: Likewise.
58334         * tests/unictype/test-ctype_xdigit.c: Likewise.
58335         * tests/unictype/test-decdigit.h: Likewise.
58336         * tests/unictype/test-digit.h: Likewise.
58337         * tests/unictype/test-numeric.h: Likewise.
58338         * tests/unictype/test-pr_alphabetic.c: Likewise.
58339         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
58340         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
58341         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
58342         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
58343         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
58344         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
58345         * tests/unictype/test-pr_bidi_control.c: Likewise.
58346         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
58347         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
58348         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
58349         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
58350         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
58351         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
58352         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
58353         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
58354         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
58355         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
58356         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
58357         * tests/unictype/test-pr_combining.c: Likewise.
58358         * tests/unictype/test-pr_composite.c: Likewise.
58359         * tests/unictype/test-pr_currency_symbol.c: Likewise.
58360         * tests/unictype/test-pr_dash.c: Likewise.
58361         * tests/unictype/test-pr_decimal_digit.c: Likewise.
58362         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
58363         * tests/unictype/test-pr_deprecated.c: Likewise.
58364         * tests/unictype/test-pr_diacritic.c: Likewise.
58365         * tests/unictype/test-pr_extender.c: Likewise.
58366         * tests/unictype/test-pr_format_control.c: Likewise.
58367         * tests/unictype/test-pr_grapheme_base.c: Likewise.
58368         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
58369         * tests/unictype/test-pr_grapheme_link.c: Likewise.
58370         * tests/unictype/test-pr_hex_digit.c: Likewise.
58371         * tests/unictype/test-pr_hyphen.c: Likewise.
58372         * tests/unictype/test-pr_id_continue.c: Likewise.
58373         * tests/unictype/test-pr_id_start.c: Likewise.
58374         * tests/unictype/test-pr_ideographic.c: Likewise.
58375         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
58376         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
58377         * tests/unictype/test-pr_ignorable_control.c: Likewise.
58378         * tests/unictype/test-pr_iso_control.c: Likewise.
58379         * tests/unictype/test-pr_join_control.c: Likewise.
58380         * tests/unictype/test-pr_left_of_pair.c: Likewise.
58381         * tests/unictype/test-pr_line_separator.c: Likewise.
58382         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
58383         * tests/unictype/test-pr_lowercase.c: Likewise.
58384         * tests/unictype/test-pr_math.c: Likewise.
58385         * tests/unictype/test-pr_non_break.c: Likewise.
58386         * tests/unictype/test-pr_not_a_character.c: Likewise.
58387         * tests/unictype/test-pr_numeric.c: Likewise.
58388         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
58389         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
58390         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
58391         * tests/unictype/test-pr_other_id_continue.c: Likewise.
58392         * tests/unictype/test-pr_other_id_start.c: Likewise.
58393         * tests/unictype/test-pr_other_lowercase.c: Likewise.
58394         * tests/unictype/test-pr_other_math.c: Likewise.
58395         * tests/unictype/test-pr_other_uppercase.c: Likewise.
58396         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
58397         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
58398         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
58399         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
58400         * tests/unictype/test-pr_private_use.c: Likewise.
58401         * tests/unictype/test-pr_punctuation.c: Likewise.
58402         * tests/unictype/test-pr_quotation_mark.c: Likewise.
58403         * tests/unictype/test-pr_radical.c: Likewise.
58404         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
58405         * tests/unictype/test-pr_soft_dotted.c: Likewise.
58406         * tests/unictype/test-pr_space.c: Likewise.
58407         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
58408         * tests/unictype/test-pr_titlecase.c: Likewise.
58409         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
58410         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
58411         * tests/unictype/test-pr_uppercase.c: Likewise.
58412         * tests/unictype/test-pr_variation_selector.c: Likewise.
58413         * tests/unictype/test-pr_white_space.c: Likewise.
58414         * tests/unictype/test-pr_xid_continue.c: Likewise.
58415         * tests/unictype/test-pr_xid_start.c: Likewise.
58416         * tests/unictype/test-pr_zero_width.c: Likewise.
58417         * tests/unictype/test-sy_c_whitespace.c: Likewise.
58418         * tests/unictype/test-sy_java_whitespace.c: Likewise.
58419
58420 2007-11-12  Bruno Haible  <bruno@clisp.org>
58421
58422         Unicode character classification functions.
58423         * lib/unictype.h: New file.
58424         * modules/unictype/base: New file.
58425         * modules/unictype/category-L: New file.
58426         * modules/unictype/category-Lu: New file.
58427         * modules/unictype/category-Ll: New file.
58428         * modules/unictype/category-Lt: New file.
58429         * modules/unictype/category-Lm: New file.
58430         * modules/unictype/category-Lo: New file.
58431         * modules/unictype/category-M: New file.
58432         * modules/unictype/category-Mn: New file.
58433         * modules/unictype/category-Mc: New file.
58434         * modules/unictype/category-Me: New file.
58435         * modules/unictype/category-N: New file.
58436         * modules/unictype/category-Nd: New file.
58437         * modules/unictype/category-Nl: New file.
58438         * modules/unictype/category-No: New file.
58439         * modules/unictype/category-P: New file.
58440         * modules/unictype/category-Pc: New file.
58441         * modules/unictype/category-Pd: New file.
58442         * modules/unictype/category-Ps: New file.
58443         * modules/unictype/category-Pe: New file.
58444         * modules/unictype/category-Pi: New file.
58445         * modules/unictype/category-Pf: New file.
58446         * modules/unictype/category-Po: New file.
58447         * modules/unictype/category-S: New file.
58448         * modules/unictype/category-Sm: New file.
58449         * modules/unictype/category-Sc: New file.
58450         * modules/unictype/category-Sk: New file.
58451         * modules/unictype/category-So: New file.
58452         * modules/unictype/category-Z: New file.
58453         * modules/unictype/category-Zs: New file.
58454         * modules/unictype/category-Zl: New file.
58455         * modules/unictype/category-Zp: New file.
58456         * modules/unictype/category-C: New file.
58457         * modules/unictype/category-Cc: New file.
58458         * modules/unictype/category-Cf: New file.
58459         * modules/unictype/category-Cs: New file.
58460         * modules/unictype/category-Co: New file.
58461         * modules/unictype/category-Cn: New file.
58462         * modules/unictype/category-or: New file.
58463         * modules/unictype/category-of: New file.
58464         * modules/unictype/category-test: New file.
58465         * modules/unictype/category-test-withtable: New file.
58466         * modules/unictype/category-byname: New file.
58467         * modules/unictype/category-none: New file.
58468         * modules/unictype/category-and: New file.
58469         * modules/unictype/category-and-not: New file.
58470         * modules/unictype/category-name: New file.
58471         * modules/unictype/combining-class: New file.
58472         * modules/unictype/category-all: New file.
58473         * modules/unictype/bidicategory-all: New file.
58474         * modules/unictype/bidicategory-byname: New file.
58475         * modules/unictype/bidicategory-name: New file.
58476         * modules/unictype/bidicategory-of: New file.
58477         * modules/unictype/bidicategory-test: New file.
58478         * modules/unictype/decimal-digit: New file.
58479         * modules/unictype/digit: New file.
58480         * modules/unictype/numeric: New file.
58481         * modules/unictype/mirror: New file.
58482         * modules/unictype/property-white-space: New file.
58483         * modules/unictype/property-alphabetic: New file.
58484         * modules/unictype/property-other-alphabetic: New file.
58485         * modules/unictype/property-not-a-character: New file.
58486         * modules/unictype/property-default-ignorable-code-point: New file.
58487         * modules/unictype/property-other-default-ignorable-code-point: New
58488         file.
58489         * modules/unictype/property-deprecated: New file.
58490         * modules/unictype/property-logical-order-exception: New file.
58491         * modules/unictype/property-variation-selector: New file.
58492         * modules/unictype/property-private-use: New file.
58493         * modules/unictype/property-unassigned-code-value: New file.
58494         * modules/unictype/property-uppercase: New file.
58495         * modules/unictype/property-other-uppercase: New file.
58496         * modules/unictype/property-lowercase: New file.
58497         * modules/unictype/property-other-lowercase: New file.
58498         * modules/unictype/property-titlecase: New file.
58499         * modules/unictype/property-soft-dotted: New file.
58500         * modules/unictype/property-id-start: New file.
58501         * modules/unictype/property-other-id-start: New file.
58502         * modules/unictype/property-id-continue: New file.
58503         * modules/unictype/property-other-id-continue: New file.
58504         * modules/unictype/property-xid-start: New file.
58505         * modules/unictype/property-xid-continue: New file.
58506         * modules/unictype/property-pattern-white-space: New file.
58507         * modules/unictype/property-pattern-syntax: New file.
58508         * modules/unictype/property-join-control: New file.
58509         * modules/unictype/property-grapheme-base: New file.
58510         * modules/unictype/property-grapheme-extend: New file.
58511         * modules/unictype/property-other-grapheme-extend: New file.
58512         * modules/unictype/property-grapheme-link: New file.
58513         * modules/unictype/property-bidi-control: New file.
58514         * modules/unictype/property-bidi-left-to-right: New file.
58515         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
58516         * modules/unictype/property-bidi-arabic-right-to-left: New file.
58517         * modules/unictype/property-bidi-european-digit: New file.
58518         * modules/unictype/property-bidi-eur-num-separator: New file.
58519         * modules/unictype/property-bidi-eur-num-terminator: New file.
58520         * modules/unictype/property-bidi-arabic-digit: New file.
58521         * modules/unictype/property-bidi-common-separator: New file.
58522         * modules/unictype/property-bidi-block-separator: New file.
58523         * modules/unictype/property-bidi-segment-separator: New file.
58524         * modules/unictype/property-bidi-whitespace: New file.
58525         * modules/unictype/property-bidi-non-spacing-mark: New file.
58526         * modules/unictype/property-bidi-boundary-neutral: New file.
58527         * modules/unictype/property-bidi-pdf: New file.
58528         * modules/unictype/property-bidi-embedding-or-override: New file.
58529         * modules/unictype/property-bidi-other-neutral: New file.
58530         * modules/unictype/property-hex-digit: New file.
58531         * modules/unictype/property-ascii-hex-digit: New file.
58532         * modules/unictype/property-ideographic: New file.
58533         * modules/unictype/property-unified-ideograph: New file.
58534         * modules/unictype/property-radical: New file.
58535         * modules/unictype/property-ids-binary-operator: New file.
58536         * modules/unictype/property-ids-trinary-operator: New file.
58537         * modules/unictype/property-zero-width: New file.
58538         * modules/unictype/property-space: New file.
58539         * modules/unictype/property-non-break: New file.
58540         * modules/unictype/property-iso-control: New file.
58541         * modules/unictype/property-format-control: New file.
58542         * modules/unictype/property-dash: New file.
58543         * modules/unictype/property-hyphen: New file.
58544         * modules/unictype/property-punctuation: New file.
58545         * modules/unictype/property-line-separator: New file.
58546         * modules/unictype/property-paragraph-separator: New file.
58547         * modules/unictype/property-quotation-mark: New file.
58548         * modules/unictype/property-sentence-terminal: New file.
58549         * modules/unictype/property-terminal-punctuation: New file.
58550         * modules/unictype/property-currency-symbol: New file.
58551         * modules/unictype/property-math: New file.
58552         * modules/unictype/property-other-math: New file.
58553         * modules/unictype/property-paired-punctuation: New file.
58554         * modules/unictype/property-left-of-pair: New file.
58555         * modules/unictype/property-combining: New file.
58556         * modules/unictype/property-composite: New file.
58557         * modules/unictype/property-decimal-digit: New file.
58558         * modules/unictype/property-numeric: New file.
58559         * modules/unictype/property-diacritic: New file.
58560         * modules/unictype/property-extender: New file.
58561         * modules/unictype/property-ignorable-control: New file.
58562         * modules/unictype/property-test: New file.
58563         * modules/unictype/property-byname: New file.
58564         * modules/unictype/property-all: New file.
58565         * modules/unictype/scripts: New file.
58566         * modules/unictype/scripts-all: New file.
58567         * modules/unictype/block-of: New file.
58568         * modules/unictype/block-test: New file.
58569         * modules/unictype/block-list: New file.
58570         * modules/unictype/block-all: New file.
58571         * modules/unictype/syntax-c-whitespace: New file.
58572         * modules/unictype/syntax-java-whitespace: New file.
58573         * modules/unictype/syntax-c-ident: New file.
58574         * modules/unictype/syntax-java-ident: New file.
58575         * modules/unictype/ctype-alnum: New file.
58576         * modules/unictype/ctype-alpha: New file.
58577         * modules/unictype/ctype-cntrl: New file.
58578         * modules/unictype/ctype-digit: New file.
58579         * modules/unictype/ctype-graph: New file.
58580         * modules/unictype/ctype-lower: New file.
58581         * modules/unictype/ctype-print: New file.
58582         * modules/unictype/ctype-punct: New file.
58583         * modules/unictype/ctype-space: New file.
58584         * modules/unictype/ctype-upper: New file.
58585         * modules/unictype/ctype-xdigit: New file.
58586         * modules/unictype/ctype-blank: New file.
58587         * lib/unictype/bidi_byname.c: New file.
58588         * lib/unictype/bidi_name.c: New file.
58589         * lib/unictype/bidi_of.c: New file.
58590         * lib/unictype/bidi_test.c: New file.
58591         * lib/unictype/bitmap.h: New file.
58592         * lib/unictype/block_test.c: New file.
58593         * lib/unictype/blocks.c: New file.
58594         * lib/unictype/categ_C.c: New file.
58595         * lib/unictype/categ_Cc.c: New file.
58596         * lib/unictype/categ_Cf.c: New file.
58597         * lib/unictype/categ_Cn.c: New file.
58598         * lib/unictype/categ_Co.c: New file.
58599         * lib/unictype/categ_Cs.c: New file.
58600         * lib/unictype/categ_L.c: New file.
58601         * lib/unictype/categ_Ll.c: New file.
58602         * lib/unictype/categ_Lm.c: New file.
58603         * lib/unictype/categ_Lo.c: New file.
58604         * lib/unictype/categ_Lt.c: New file.
58605         * lib/unictype/categ_Lu.c: New file.
58606         * lib/unictype/categ_M.c: New file.
58607         * lib/unictype/categ_Mc.c: New file.
58608         * lib/unictype/categ_Me.c: New file.
58609         * lib/unictype/categ_Mn.c: New file.
58610         * lib/unictype/categ_N.c: New file.
58611         * lib/unictype/categ_Nd.c: New file.
58612         * lib/unictype/categ_Nl.c: New file.
58613         * lib/unictype/categ_No.c: New file.
58614         * lib/unictype/categ_P.c: New file.
58615         * lib/unictype/categ_Pc.c: New file.
58616         * lib/unictype/categ_Pd.c: New file.
58617         * lib/unictype/categ_Pe.c: New file.
58618         * lib/unictype/categ_Pf.c: New file.
58619         * lib/unictype/categ_Pi.c: New file.
58620         * lib/unictype/categ_Po.c: New file.
58621         * lib/unictype/categ_Ps.c: New file.
58622         * lib/unictype/categ_S.c: New file.
58623         * lib/unictype/categ_Sc.c: New file.
58624         * lib/unictype/categ_Sk.c: New file.
58625         * lib/unictype/categ_Sm.c: New file.
58626         * lib/unictype/categ_So.c: New file.
58627         * lib/unictype/categ_Z.c: New file.
58628         * lib/unictype/categ_Zl.c: New file.
58629         * lib/unictype/categ_Zp.c: New file.
58630         * lib/unictype/categ_Zs.c: New file.
58631         * lib/unictype/categ_and.c: New file.
58632         * lib/unictype/categ_and_not.c: New file.
58633         * lib/unictype/categ_byname.c: New file.
58634         * lib/unictype/categ_name.c: New file.
58635         * lib/unictype/categ_none.c: New file.
58636         * lib/unictype/categ_of.c: New file.
58637         * lib/unictype/categ_or.c: New file.
58638         * lib/unictype/categ_test.c: New file.
58639         * lib/unictype/combining.c: New file.
58640         * lib/unictype/ctype_alnum.c: New file.
58641         * lib/unictype/ctype_alpha.c: New file.
58642         * lib/unictype/ctype_blank.c: New file.
58643         * lib/unictype/ctype_cntrl.c: New file.
58644         * lib/unictype/ctype_digit.c: New file.
58645         * lib/unictype/ctype_graph.c: New file.
58646         * lib/unictype/ctype_lower.c: New file.
58647         * lib/unictype/ctype_print.c: New file.
58648         * lib/unictype/ctype_punct.c: New file.
58649         * lib/unictype/ctype_space.c: New file.
58650         * lib/unictype/ctype_upper.c: New file.
58651         * lib/unictype/ctype_xdigit.c: New file.
58652         * lib/unictype/decdigit.c: New file.
58653         * lib/unictype/digit.c: New file.
58654         * lib/unictype/identsyntaxmap.h: New file.
58655         * lib/unictype/mirror.c: New file.
58656         * lib/unictype/numeric.c: New file.
58657         * lib/unictype/pr_alphabetic.c: New file.
58658         * lib/unictype/pr_ascii_hex_digit.c: New file.
58659         * lib/unictype/pr_bidi_arabic_digit.c: New file.
58660         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
58661         * lib/unictype/pr_bidi_block_separator.c: New file.
58662         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
58663         * lib/unictype/pr_bidi_common_separator.c: New file.
58664         * lib/unictype/pr_bidi_control.c: New file.
58665         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
58666         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
58667         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
58668         * lib/unictype/pr_bidi_european_digit.c: New file.
58669         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
58670         * lib/unictype/pr_bidi_left_to_right.c: New file.
58671         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
58672         * lib/unictype/pr_bidi_other_neutral.c: New file.
58673         * lib/unictype/pr_bidi_pdf.c: New file.
58674         * lib/unictype/pr_bidi_segment_separator.c: New file.
58675         * lib/unictype/pr_bidi_whitespace.c: New file.
58676         * lib/unictype/pr_byname.c: New file.
58677         * lib/unictype/pr_byname.gperf: New file.
58678         * lib/unictype/pr_combining.c: New file.
58679         * lib/unictype/pr_composite.c: New file.
58680         * lib/unictype/pr_currency_symbol.c: New file.
58681         * lib/unictype/pr_dash.c: New file.
58682         * lib/unictype/pr_decimal_digit.c: New file.
58683         * lib/unictype/pr_default_ignorable_code_point.c: New file.
58684         * lib/unictype/pr_deprecated.c: New file.
58685         * lib/unictype/pr_diacritic.c: New file.
58686         * lib/unictype/pr_extender.c: New file.
58687         * lib/unictype/pr_format_control.c: New file.
58688         * lib/unictype/pr_grapheme_base.c: New file.
58689         * lib/unictype/pr_grapheme_extend.c: New file.
58690         * lib/unictype/pr_grapheme_link.c: New file.
58691         * lib/unictype/pr_hex_digit.c: New file.
58692         * lib/unictype/pr_hyphen.c: New file.
58693         * lib/unictype/pr_id_continue.c: New file.
58694         * lib/unictype/pr_id_start.c: New file.
58695         * lib/unictype/pr_ideographic.c: New file.
58696         * lib/unictype/pr_ids_binary_operator.c: New file.
58697         * lib/unictype/pr_ids_trinary_operator.c: New file.
58698         * lib/unictype/pr_ignorable_control.c: New file.
58699         * lib/unictype/pr_iso_control.c: New file.
58700         * lib/unictype/pr_join_control.c: New file.
58701         * lib/unictype/pr_left_of_pair.c: New file.
58702         * lib/unictype/pr_line_separator.c: New file.
58703         * lib/unictype/pr_logical_order_exception.c: New file.
58704         * lib/unictype/pr_lowercase.c: New file.
58705         * lib/unictype/pr_math.c: New file.
58706         * lib/unictype/pr_non_break.c: New file.
58707         * lib/unictype/pr_not_a_character.c: New file.
58708         * lib/unictype/pr_numeric.c: New file.
58709         * lib/unictype/pr_other_alphabetic.c: New file.
58710         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
58711         * lib/unictype/pr_other_grapheme_extend.c: New file.
58712         * lib/unictype/pr_other_id_continue.c: New file.
58713         * lib/unictype/pr_other_id_start.c: New file.
58714         * lib/unictype/pr_other_lowercase.c: New file.
58715         * lib/unictype/pr_other_math.c: New file.
58716         * lib/unictype/pr_other_uppercase.c: New file.
58717         * lib/unictype/pr_paired_punctuation.c: New file.
58718         * lib/unictype/pr_paragraph_separator.c: New file.
58719         * lib/unictype/pr_pattern_syntax.c: New file.
58720         * lib/unictype/pr_pattern_white_space.c: New file.
58721         * lib/unictype/pr_private_use.c: New file.
58722         * lib/unictype/pr_punctuation.c: New file.
58723         * lib/unictype/pr_quotation_mark.c: New file.
58724         * lib/unictype/pr_radical.c: New file.
58725         * lib/unictype/pr_sentence_terminal.c: New file.
58726         * lib/unictype/pr_soft_dotted.c: New file.
58727         * lib/unictype/pr_space.c: New file.
58728         * lib/unictype/pr_terminal_punctuation.c: New file.
58729         * lib/unictype/pr_test.c: New file.
58730         * lib/unictype/pr_titlecase.c: New file.
58731         * lib/unictype/pr_unassigned_code_value.c: New file.
58732         * lib/unictype/pr_unified_ideograph.c: New file.
58733         * lib/unictype/pr_uppercase.c: New file.
58734         * lib/unictype/pr_variation_selector.c: New file.
58735         * lib/unictype/pr_white_space.c: New file.
58736         * lib/unictype/pr_xid_continue.c: New file.
58737         * lib/unictype/pr_xid_start.c: New file.
58738         * lib/unictype/pr_zero_width.c: New file.
58739         * lib/unictype/scripts.c: New file.
58740         * lib/unictype/sy_c_ident.c: New file.
58741         * lib/unictype/sy_c_whitespace.c: New file.
58742         * lib/unictype/sy_java_ident.c: New file.
58743         * lib/unictype/sy_java_whitespace.c: New file.
58744
58745         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
58746         Unicode 5.0.0.
58747         * lib/unictype/blocks.h: Likewise.
58748         * lib/unictype/categ_C.h: Likewise.
58749         * lib/unictype/categ_Cc.h: Likewise.
58750         * lib/unictype/categ_Cf.h: Likewise.
58751         * lib/unictype/categ_Cn.h: Likewise.
58752         * lib/unictype/categ_Co.h: Likewise.
58753         * lib/unictype/categ_Cs.h: Likewise.
58754         * lib/unictype/categ_L.h: Likewise.
58755         * lib/unictype/categ_Ll.h: Likewise.
58756         * lib/unictype/categ_Lm.h: Likewise.
58757         * lib/unictype/categ_Lo.h: Likewise.
58758         * lib/unictype/categ_Lt.h: Likewise.
58759         * lib/unictype/categ_Lu.h: Likewise.
58760         * lib/unictype/categ_M.h: Likewise.
58761         * lib/unictype/categ_Mc.h: Likewise.
58762         * lib/unictype/categ_Me.h: Likewise.
58763         * lib/unictype/categ_Mn.h: Likewise.
58764         * lib/unictype/categ_N.h: Likewise.
58765         * lib/unictype/categ_Nd.h: Likewise.
58766         * lib/unictype/categ_Nl.h: Likewise.
58767         * lib/unictype/categ_No.h: Likewise.
58768         * lib/unictype/categ_P.h: Likewise.
58769         * lib/unictype/categ_Pc.h: Likewise.
58770         * lib/unictype/categ_Pd.h: Likewise.
58771         * lib/unictype/categ_Pe.h: Likewise.
58772         * lib/unictype/categ_Pf.h: Likewise.
58773         * lib/unictype/categ_Pi.h: Likewise.
58774         * lib/unictype/categ_Po.h: Likewise.
58775         * lib/unictype/categ_Ps.h: Likewise.
58776         * lib/unictype/categ_S.h: Likewise.
58777         * lib/unictype/categ_Sc.h: Likewise.
58778         * lib/unictype/categ_Sk.h: Likewise.
58779         * lib/unictype/categ_Sm.h: Likewise.
58780         * lib/unictype/categ_So.h: Likewise.
58781         * lib/unictype/categ_Z.h: Likewise.
58782         * lib/unictype/categ_Zl.h: Likewise.
58783         * lib/unictype/categ_Zp.h: Likewise.
58784         * lib/unictype/categ_Zs.h: Likewise.
58785         * lib/unictype/categ_of.h: Likewise.
58786         * lib/unictype/combining.h: Likewise.
58787         * lib/unictype/ctype_alnum.h: Likewise.
58788         * lib/unictype/ctype_alpha.h: Likewise.
58789         * lib/unictype/ctype_blank.h: Likewise.
58790         * lib/unictype/ctype_cntrl.h: Likewise.
58791         * lib/unictype/ctype_digit.h: Likewise.
58792         * lib/unictype/ctype_graph.h: Likewise.
58793         * lib/unictype/ctype_lower.h: Likewise.
58794         * lib/unictype/ctype_print.h: Likewise.
58795         * lib/unictype/ctype_punct.h: Likewise.
58796         * lib/unictype/ctype_space.h: Likewise.
58797         * lib/unictype/ctype_upper.h: Likewise.
58798         * lib/unictype/ctype_xdigit.h: Likewise.
58799         * lib/unictype/decdigit.h: Likewise.
58800         * lib/unictype/digit.h: Likewise.
58801         * lib/unictype/mirror.h: Likewise.
58802         * lib/unictype/numeric.h: Likewise.
58803         * lib/unictype/pr_alphabetic.h: Likewise.
58804         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
58805         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
58806         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
58807         * lib/unictype/pr_bidi_block_separator.h: Likewise.
58808         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
58809         * lib/unictype/pr_bidi_common_separator.h: Likewise.
58810         * lib/unictype/pr_bidi_control.h: Likewise.
58811         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
58812         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
58813         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
58814         * lib/unictype/pr_bidi_european_digit.h: Likewise.
58815         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
58816         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
58817         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
58818         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
58819         * lib/unictype/pr_bidi_pdf.h: Likewise.
58820         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
58821         * lib/unictype/pr_bidi_whitespace.h: Likewise.
58822         * lib/unictype/pr_combining.h: Likewise.
58823         * lib/unictype/pr_composite.h: Likewise.
58824         * lib/unictype/pr_currency_symbol.h: Likewise.
58825         * lib/unictype/pr_dash.h: Likewise.
58826         * lib/unictype/pr_decimal_digit.h: Likewise.
58827         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
58828         * lib/unictype/pr_deprecated.h: Likewise.
58829         * lib/unictype/pr_diacritic.h: Likewise.
58830         * lib/unictype/pr_extender.h: Likewise.
58831         * lib/unictype/pr_format_control.h: Likewise.
58832         * lib/unictype/pr_grapheme_base.h: Likewise.
58833         * lib/unictype/pr_grapheme_extend.h: Likewise.
58834         * lib/unictype/pr_grapheme_link.h: Likewise.
58835         * lib/unictype/pr_hex_digit.h: Likewise.
58836         * lib/unictype/pr_hyphen.h: Likewise.
58837         * lib/unictype/pr_id_continue.h: Likewise.
58838         * lib/unictype/pr_id_start.h: Likewise.
58839         * lib/unictype/pr_ideographic.h: Likewise.
58840         * lib/unictype/pr_ids_binary_operator.h: Likewise.
58841         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
58842         * lib/unictype/pr_ignorable_control.h: Likewise.
58843         * lib/unictype/pr_iso_control.h: Likewise.
58844         * lib/unictype/pr_join_control.h: Likewise.
58845         * lib/unictype/pr_left_of_pair.h: Likewise.
58846         * lib/unictype/pr_line_separator.h: Likewise.
58847         * lib/unictype/pr_logical_order_exception.h: Likewise.
58848         * lib/unictype/pr_lowercase.h: Likewise.
58849         * lib/unictype/pr_math.h: Likewise.
58850         * lib/unictype/pr_non_break.h: Likewise.
58851         * lib/unictype/pr_not_a_character.h: Likewise.
58852         * lib/unictype/pr_numeric.h: Likewise.
58853         * lib/unictype/pr_other_alphabetic.h: Likewise.
58854         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
58855         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
58856         * lib/unictype/pr_other_id_continue.h: Likewise.
58857         * lib/unictype/pr_other_id_start.h: Likewise.
58858         * lib/unictype/pr_other_lowercase.h: Likewise.
58859         * lib/unictype/pr_other_math.h: Likewise.
58860         * lib/unictype/pr_other_uppercase.h: Likewise.
58861         * lib/unictype/pr_paired_punctuation.h: Likewise.
58862         * lib/unictype/pr_paragraph_separator.h: Likewise.
58863         * lib/unictype/pr_pattern_syntax.h: Likewise.
58864         * lib/unictype/pr_pattern_white_space.h: Likewise.
58865         * lib/unictype/pr_private_use.h: Likewise.
58866         * lib/unictype/pr_punctuation.h: Likewise.
58867         * lib/unictype/pr_quotation_mark.h: Likewise.
58868         * lib/unictype/pr_radical.h: Likewise.
58869         * lib/unictype/pr_sentence_terminal.h: Likewise.
58870         * lib/unictype/pr_soft_dotted.h: Likewise.
58871         * lib/unictype/pr_space.h: Likewise.
58872         * lib/unictype/pr_terminal_punctuation.h: Likewise.
58873         * lib/unictype/pr_titlecase.h: Likewise.
58874         * lib/unictype/pr_unassigned_code_value.h: Likewise.
58875         * lib/unictype/pr_unified_ideograph.h: Likewise.
58876         * lib/unictype/pr_uppercase.h: Likewise.
58877         * lib/unictype/pr_variation_selector.h: Likewise.
58878         * lib/unictype/pr_white_space.h: Likewise.
58879         * lib/unictype/pr_xid_continue.h: Likewise.
58880         * lib/unictype/pr_xid_start.h: Likewise.
58881         * lib/unictype/pr_zero_width.h: Likewise.
58882         * lib/unictype/scripts.h: Likewise.
58883         * lib/unictype/scripts_byname.gperf: Likewise.
58884         * lib/unictype/sy_c_ident.h: Likewise.
58885         * lib/unictype/sy_c_whitespace.h: Likewise.
58886         * lib/unictype/sy_java_ident.h: Likewise.
58887         * lib/unictype/sy_java_whitespace.h: Likewise.
58888
58889         * lib/unictype/Makefile: New file.
58890         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
58891         glibc.
58892         * lib/unictype/3level.h: New file, copied from glibc.
58893         * lib/unictype/3levelbit.h: New file.
58894
58895 2007-11-11  Bruno Haible  <bruno@clisp.org>
58896
58897         * modules/gperf: New file.
58898         * modules/iconv_open (Depends-on): Add it.
58899         (Makefile.am): Remove the GPERF definition.
58900
58901 2007-11-11  Bruno Haible  <bruno@clisp.org>
58902
58903         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
58904         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
58905
58906 2007-11-11  Bruno Haible  <bruno@clisp.org>
58907
58908         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
58909         (usage): Remove function.
58910
58911 2007-11-11  Bruno Haible  <bruno@clisp.org>
58912
58913         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
58914         gl_FUNC_CEILF_LIBS.
58915         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
58916         gl_FUNC_CEIL_LIBS.
58917         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
58918         gl_FUNC_CEILL_LIBS.
58919         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
58920         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
58921         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
58922
58923 2007-11-11  Bruno Haible  <bruno@clisp.org>
58924
58925         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
58926         roundf were declared but do not exist on functions.
58927         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
58928         roundl were declared but do not exist on functions.
58929         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
58930         HAVE_FLOORL_AND_CEILL, respectively.
58931         Needed for Sun C on Solaris 10.
58932
58933 2007-11-11  Bruno Haible  <bruno@clisp.org>
58934
58935         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
58936         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
58937         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
58938         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
58939         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
58940         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
58941         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
58942         HAVE_DECL_ROUNDF.
58943         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
58944         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
58945         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
58946         of HAVE_DECL_ROUND*.
58947         * modules/math (Makefile.am): Update.
58948
58949 2007-11-10  Bruno Haible  <bruno@clisp.org>
58950
58951         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
58952         ptrdiff_t as m4/intl.m4.
58953
58954 2007-11-10  Jim Meyering  <meyering@redhat.com>
58955
58956         Avoid link failure for the argmatch test.
58957         * tests/test-argmatch.c (usage): Define function to avoid a link
58958         failure: argmatch_die requires a usage function.
58959
58960 2007-11-09  Bruno Haible  <bruno@clisp.org>
58961
58962         * doc/functions/snprintf.texi: Mention BeOS deficiency.
58963         * doc/functions/vsnprintf.texi: Likewise.
58964         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
58965         with a size argument < 2.
58966
58967 2007-11-09  Bruno Haible  <bruno@clisp.org>
58968
58969         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
58970         buffer. Fixes an inefficiency introduced on 2007-11-03.
58971
58972 2007-11-09  Bruno Haible  <bruno@clisp.org>
58973
58974         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
58975         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
58976
58977 2007-11-08  Jim Meyering  <meyering@redhat.com>
58978
58979         Change cache variable name prefix "jm_" to "gl_" everywhere.
58980         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
58981         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
58982         * m4/uptime.m4: s/gl_/jm_/
58983
58984 2007-11-07  Bruno Haible  <bruno@clisp.org>
58985
58986         Update to GNU gettext 0.17.
58987         * m4/intl.m4: Update to GNU gettext 0.17.
58988         * m4/po.m4: Likewise.
58989         * modules/gettext (Files): Remove m4/ulonglong.m4.
58990         (configure.ac): Require gettext infrastructure from version 0.17.
58991
58992 2007-11-06  Bruno Haible  <bruno@clisp.org>
58993
58994         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
58995         symbolic values are not defined in a public header.
58996         * lib/freadable.c (freadable) [QNX]: Likewise.
58997         * lib/freadahead.c (freadahead) [QNX]: Likewise.
58998         * lib/freading.c (freading) [QNX]: Likewise.
58999         * lib/fseterr.c (fseterr) [QNX]: Likewise.
59000         * lib/fwritable.c (fwritable) [QNX]: Likewise.
59001         * lib/fwriting.c (fwriting) [QNX]: Likewise.
59002         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
59003         Reported by Alain Magloire.
59004
59005         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
59006
59007 2007-11-05  Bruno Haible  <bruno@clisp.org>
59008
59009         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
59010         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
59011         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
59012         Reported by Eric Blake.
59013
59014 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59015             Bruno Haible  <bruno@clisp.org>
59016
59017         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
59018         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
59019         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
59020         (malloc): Undefine also before including <stdlib.h>.
59021         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
59022         Needed on OSF/1 4.0.
59023
59024 2007-11-05  Jim Meyering  <meyering@redhat.com>
59025
59026         git-version-gen: sync from coreutils.
59027         * build-aux/git-version-gen: Add comments.
59028         Change the first '-' to '.' in the snapshot version string,
59029         e.g., 6.9-377-08144 -> 6.9.377-08144
59030         Remove first parameter.
59031         Don't declare a version "-dirty" merely because a time
59032         stamp has changed.
59033
59034 2007-11-04  Bruno Haible  <bruno@clisp.org>
59035
59036         * lib/lock.h: Protect all macro definitions containing an 'if'
59037         statement through a "do { ... } while (0)".
59038         * lib/tls.h: Likewise.
59039
59040 2007-11-04  Bruno Haible  <bruno@clisp.org>
59041
59042         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
59043
59044 2007-11-04  Bruno Haible  <bruno@clisp.org>
59045
59046         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
59047         * modules/fprintf-posix (Depends-on): Add nocrash.
59048         * modules/snprintf-posix (Depends-on): Likewise.
59049         * modules/sprintf-posix (Depends-on): Likewise.
59050         * modules/vasnprintf-posix (Depends-on): Likewise.
59051         * modules/vasprintf-posix (Depends-on): Likewise.
59052         * modules/vfprintf-posix (Depends-on): Likewise.
59053         * modules/vsnprintf-posix (Depends-on): Likewise.
59054         * modules/vsprintf-posix (Depends-on): Likewise.
59055         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
59056         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
59057         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
59058         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
59059         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
59060         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
59061         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
59062
59063 2007-11-04  Bruno Haible  <bruno@clisp.org>
59064
59065         * modules/nocrash: New file.
59066         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
59067         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
59068
59069 2007-11-04  Bruno Haible  <bruno@clisp.org>
59070
59071         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
59072         precision handling.
59073         * tests/test-vasprintf-posix.c (test_function): Likewise.
59074         * tests/test-snprintf-posix.h (test_function): Likewise.
59075         * tests/test-sprintf-posix.h (test_function): Likewise.
59076
59077         Fix *printf behaviour for large precisions on mingw and BeOS.
59078         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
59079         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
59080         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
59081         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
59082         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59083         gl_PRINTF_PRECISION and test its result. Invoke
59084         gl_PREREQ_VASNPRINTF_PRECISION.
59085         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59086         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59087         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59088         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59089         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59090         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59091         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59092         * doc/functions/fprintf.texi: Update.
59093         * doc/functions/printf.texi: Update.
59094         * doc/functions/snprintf.texi: Update.
59095         * doc/functions/sprintf.texi: Update.
59096         * doc/functions/vfprintf.texi: Update.
59097         * doc/functions/vprintf.texi: Update.
59098         * doc/functions/vsnprintf.texi: Update.
59099         * doc/functions/vsprintf.texi: Update.
59100
59101 2007-11-04  Bruno Haible  <bruno@clisp.org>
59102
59103         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
59104
59105 2007-11-04  Bruno Haible  <bruno@clisp.org>
59106
59107         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
59108         Reported by Sylvain Beucler <beuc@gnu.org>.
59109
59110 2007-11-03  Bruno Haible  <bruno@clisp.org>
59111
59112         * tests/test-fprintf-posix2.sh: New file.
59113         * tests/test-fprintf-posix2.c: New file.
59114         * modules/fprintf-posix-tests (Files): Add them.
59115         (TESTS): Add test-fprintf-posix2.sh.
59116         (configure.ac): Check for getrlimit and setrlimit.
59117         (check_PROGRAMS): Add test-fprintf-posix2.
59118
59119         * tests/test-printf-posix2.sh: New file.
59120         * tests/test-printf-posix2.c: New file.
59121         * modules/printf-posix-tests (Files): Add them.
59122         (TESTS): Add test-printf-posix2.sh.
59123         (configure.ac): Check for getrlimit and setrlimit.
59124         (check_PROGRAMS): Add test-printf-posix2.
59125
59126         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
59127         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
59128         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
59129         (decode_double): New function, copied from decode_long_double.
59130         (scale10_round_decimal_decoded): New function, extracted from
59131         scale10_round_decimal_long_double.
59132         (scale10_round_decimal_long_double): Use it.
59133         (scale10_round_decimal_double): New function.
59134         (floorlog10): New function.
59135         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
59136         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
59137         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
59138         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59139         gl_PRINTF_ENOMEM and test its result. Invoke
59140         gl_PREREQ_VASNPRINTF_ENOMEM.
59141         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59142         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59143         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59144         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59145         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59146         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59147         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59148         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
59149         * modules/snprintf-posix (Depends-on): Likewise.
59150         * modules/sprintf-posix (Depends-on): Likewise.
59151         * modules/vasnprintf-posix (Depends-on): Likewise.
59152         * modules/vasprintf-posix (Depends-on): Likewise.
59153         * modules/vfprintf-posix (Depends-on): Likewise.
59154         * modules/vsnprintf-posix (Depends-on): Likewise.
59155         * modules/vsprintf-posix (Depends-on): Likewise.
59156         * doc/functions/fprintf.texi: Update.
59157         * doc/functions/printf.texi: Update.
59158         * doc/functions/snprintf.texi: Update.
59159         * doc/functions/sprintf.texi: Update.
59160         * doc/functions/vfprintf.texi: Update.
59161         * doc/functions/vprintf.texi: Update.
59162         * doc/functions/vsnprintf.texi: Update.
59163         * doc/functions/vsprintf.texi: Update.
59164
59165 2007-11-03  Bruno Haible  <bruno@clisp.org>
59166
59167         * modules/frexp-nolibm-tests: New file.
59168
59169         * modules/frexp-nolibm: New file.
59170         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
59171
59172 2007-11-03  Bruno Haible  <bruno@clisp.org>
59173
59174         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
59175         value is C99 compliant.
59176         Needed for OSF/1 5.1.
59177
59178 2007-11-03  Bruno Haible  <bruno@clisp.org>
59179
59180         Fix out-of-memory handling of vasnprintf.
59181         * lib/printf-parse.c: Include <errno.h>.
59182         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
59183         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
59184         is already set.
59185
59186 2007-11-02  Eric Blake  <ebb9@byu.net>
59187
59188         Fix tests on cygwin.
59189         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
59190
59191 2007-11-01  Bruno Haible  <bruno@clisp.org>
59192
59193         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
59194         warning.
59195         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
59196         needed for POSIX compatibility.
59197
59198 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
59199
59200         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
59201         for compatibility with GNU.
59202
59203 2007-11-01  Bruno Haible  <bruno@clisp.org>
59204
59205         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
59206         (putenv): Renamed from rpl_putenv. Change argument type from
59207         'const char *' to 'char *'.
59208         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
59209         of defining putenv in config.h, just set REPLACE_PUTENV.
59210         * modules/putenv (Depends-on): Add stdlib.
59211         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59212         (Include): Use <stdlib.h>.
59213         * lib/stdlib.in.h (putenv): New declaration.
59214         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
59215         REPLACE_PUTENV.
59216         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
59217         REPLACE_PUTENV.
59218         Needed for MacOS X 10.5.0.
59219         Reported by Peter O'Gorman <peter@pogma.com>.
59220
59221 2007-11-01  Jim Meyering  <meyering@redhat.com>
59222
59223         Treat an empty date string exactly like "0".
59224         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
59225         if the remaining date string (to be parsed) is empty, use "0".
59226         Reported by Mischa Molhoek and discussed in this thread:
59227         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
59228
59229 2007-10-31  Bruno Haible  <bruno@clisp.org>
59230
59231         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
59232         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
59233         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
59234         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
59235         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
59236         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
59237
59238 2007-10-31  Bruno Haible  <bruno@clisp.org>
59239
59240         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
59241         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
59242         (AC_TYPE_LONG_LONG_INT): Use it.
59243         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
59244         it as well.
59245         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
59246         to m4/longlong.m4.
59247         * modules/stdint (Files): Remove m4/ulonglong.m4.
59248         * modules/strtoull (Files): Use m4/longlong.m4 instead of
59249         m4/ulonglong.m4.
59250         * modules/strtoumax (Files): Likewise.
59251
59252 2007-10-30  Bruno Haible  <bruno@clisp.org>
59253
59254         * modules/xvasprintf-posix: New file.
59255         Suggested by Eric Blake.
59256
59257 2007-10-30  Bruno Haible  <bruno@clisp.org>
59258
59259         * modules/xprintf-posix-tests: New file.
59260         * tests/test-xprintf-posix.sh: New file.
59261         * tests/test-xprintf-posix.c: New file.
59262         * tests/test-xfprintf-posix.c: New file.
59263
59264         * modules/xprintf-posix: New file.
59265
59266 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59267
59268         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
59269         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
59270         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
59271
59272 2007-10-29  Bruno Haible  <bruno@clisp.org>
59273
59274         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
59275         contain the special marker '_cv_'.
59276         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
59277         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
59278         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
59279         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
59280         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
59281         Reported by Ralf Wildenhues.
59282
59283 2007-10-29  Bruno Haible  <bruno@clisp.org>
59284
59285         * gnulib-tool (func_import): When --lgpl is not specified, set
59286         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
59287         GPLv3.
59288         Reported by Simon Josefsson.
59289
59290 2007-10-28  Bruno Haible  <bruno@clisp.org>
59291
59292         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
59293         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
59294         HAVE_DECL_ISFINITE.
59295         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
59296         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
59297         HAVE_DECL_ISFINITE.
59298
59299 2007-10-28  Bruno Haible  <bruno@clisp.org>
59300
59301         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
59302         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
59303
59304 2007-10-28  Bruno Haible  <bruno@clisp.org>
59305
59306         Fix link errors with Sun C 5.0 on Solaris 10.
59307         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
59308         function is declared but not present in the compiler's libm.
59309         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
59310         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
59311         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
59312         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
59313         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
59314         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
59315         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
59316         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
59317         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
59318         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
59319         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
59320         HAVE_DECL_FLOORL.
59321
59322 2007-10-28  Bruno Haible  <bruno@clisp.org>
59323
59324         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
59325         gl_FUNC_FLOORL. Cache the result.
59326         (gl_FUNC_FLOORL): Use it.
59327         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
59328         gl_FUNC_CEILL. Cache the result.
59329         (gl_FUNC_CEILL): Use it.
59330
59331         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
59332         gl_FUNC_FLOOR. Cache the result.
59333         (gl_FUNC_FLOOR): Use it.
59334         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
59335         gl_FUNC_CEIL. Cache the result.
59336         (gl_FUNC_CEIL): Use it.
59337
59338         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
59339         gl_FUNC_FLOORF. Cache the result.
59340         (gl_FUNC_FLOORF): Use it.
59341         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
59342         gl_FUNC_CEILF. Cache the result.
59343         (gl_FUNC_CEILF): Use it.
59344
59345 2007-10-28  Bruno Haible  <bruno@clisp.org>
59346
59347         * gnulib-tool: Allow specifying the LGPL version number through
59348         --lgpl=2 or --lgpl=3.
59349         (func_usage): Document --lgpl with argument.
59350         Handle --lgpl=... arguments.
59351         (func_import): Recognize also gl_LGPL calls with an argument. When
59352         --lgpl=2 is used and the module's license is just LGPL, report an
59353         error. Set sed_transform_lib_file according to the lgpl variable. In
59354         the generated files, use --lgpl or gl_LGPL invocations with argument,
59355         if necessary.
59356         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
59357         an LGPv2+ license.
59358         * doc/gnulib-tool.texi (Modified imports): Update explanation of
59359         gl_LGPL macro.
59360
59361 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59362             Bruno Haible  <bruno@clisp.org>
59363
59364         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
59365         (u16_uctomb_aux): Likewise.
59366         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
59367         !HAVE_INLINE.
59368         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
59369
59370 2007-10-28  Bruno Haible  <bruno@clisp.org>
59371
59372         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
59373         Invoke AM_GETTEXT_OPTION if it exists.
59374         * modules/vasprintf: Likewise.
59375         * modules/verror: Likewise.
59376         * modules/xprintf: Likewise.
59377         * modules/xvasprintf: Likewise.
59378
59379 2007-10-27  Ben Pfaff  <blp@gnu.org>
59380
59381         * lib/math.in.h: Define isfinite macro and prototypes for
59382         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
59383         implementations.
59384         * m4/math_h.m4: New substitutions for isfinite module.
59385         * lib/isfinite.c: New file.
59386         * m4/isfinite.m4: New file.
59387         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
59388         * modules/isfinite: New file.
59389         * modules/isfinite-tests: New file.
59390         * tests/tests-isfinite.c: New file.
59391         * doc/functions/isfinite.texi: Mention isfinite module.
59392         * MODULES.html.sh: Mention new module.
59393
59394 2007-10-27  Ben Pfaff  <blp@gnu.org>
59395
59396         Ralf Wildenhues reported that Tru64 4.0D declares the round
59397         functions but does not have definitions.
59398         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
59399         cannot be found in any library, set the output variable to
59400         "missing" instead of "".
59401         * m4/round.m4: Also use our substitute if we cannot find round in
59402         any library, even if it is declared.
59403         * m4/roundf.m4: Likewise for roundf.
59404         * m4/roundl.m4: Likewise for roundl.
59405         * lib/math.in.h: Undefine roundf, round, roundl before defining
59406         their replacements, to allow for hypothetical systems where these
59407         may be defined as macros but not available in libraries.
59408
59409 2007-10-27  Bruno Haible  <bruno@clisp.org>
59410
59411         * doc/gnulib.texi: Invoke @firstparagraphindent.
59412         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
59413         changes in gnulib.
59414         (Source changes): New section.
59415
59416 2007-10-26  Bruno Haible  <bruno@clisp.org>
59417
59418         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
59419         borrowed from autoconf.
59420
59421 2007-10-26  Bruno Haible  <bruno@clisp.org>
59422
59423         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
59424         strerror returned the empty string. Needed on HP-UX 11.00.
59425
59426 2007-10-24  Micah Cowan  <micah@cowan.name>
59427
59428         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
59429         * build-aux/bootstrap: Remove support for now-unnecessary option,
59430         --cvs-user, and envvars CVS_USER, CVS_RSH.
59431
59432 2007-10-24  Jim Meyering  <meyering@redhat.com>
59433
59434         Avoid diagnostics from sha1sum when there is no cached checksum.
59435         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
59436         if the po.s1 file hasn't been created yet.
59437
59438         * build-aux/bootstrap: Sync from coreutils:
59439         2007-10-24  Jim Meyering  <meyering@redhat.com>
59440         Get gnulib from the git repository, not from an obsolete cvs one.
59441         * build-aux/bootstrap: Suggestion from Micah Cowan.
59442         2007-10-04  Jim Meyering  <jim@meyering.net>
59443         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
59444         (update_po_files): Work also when there are no .po files in po/.
59445
59446 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59447
59448         * README: Append ".git" to git and cg examples.
59449         Problem reported by Benoit Sigoure.
59450
59451 2007-10-23  Micah Cowan  <micah@cowan.name>
59452
59453         * users.txt: Add wget.
59454
59455 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59456
59457         Fix linking of some unistdio tests on FreeBSD.
59458         * modules/unistdio/u16-vsnprintf-tests
59459         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
59460         * modules/unistdio/u16-vsprintf-tests
59461         (test_u16_vsnprintf1_LDADD): Likewise.
59462         * modules/unistdio/u32-vsnprintf-tests
59463         (test_u32_vsnprintf1_LDADD): Likewise.
59464         * modules/unistdio/u32-vsprintf-tests
59465         (test_u32_vsprintf1_LDADD): Likewise.
59466         * modules/unistdio/u8-vsnprintf-tests
59467         (test_u8_vsnprintf1_LDADD): Likewise.
59468         * modules/unistdio/u8-vsprintf-tests
59469         (test_u8_vsprintf1_LDADD): Likewise.
59470         * modules/unistdio/ulc-vsnprintf-tests
59471         (test_ulc_vsnprintf1_LDADD): Likewise.
59472         * modules/unistdio/ulc-vsprintf-tests
59473         (test_ulc_vsprintf1_LDADD): Likewise.
59474
59475         Fix linking of some uniconv tests on FreeBSD.
59476         * modules/uniconv/u16-conv-from-enc-tests
59477         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
59478         * modules/uniconv/u16-conv-to-enc-tests
59479         (test_u16_conv_to_enc_LDADD): Likewise.
59480         * modules/uniconv/u16-strconv-from-enc-tests
59481         (test_u16_strconv_from_enc_LDADD): Likewise.
59482         * modules/uniconv/u16-strconv-to-enc-tests
59483         (test_u16_strconv_to_enc_LDADD): Likewise.
59484         * modules/uniconv/u32-conv-from-enc-tests
59485         (test_u32_conv_from_enc_LDADD): Likewise.
59486         * modules/uniconv/u32-conv-to-enc-tests
59487         (test_u32_conv_to_enc_LDADD): Likewise.
59488         * modules/uniconv/u32-strconv-from-enc-tests
59489         (test_u32_strconv_from_enc_LDADD): Likewise.
59490         * modules/uniconv/u32-strconv-to-enc-tests
59491         (test_u32_strconv_to_enc_LDADD): Likewise.
59492         * modules/uniconv/u8-conv-from-enc-tests
59493         (test_u8_conv_from_enc_LDADD): Likewise.
59494         * modules/uniconv/u8-conv-to-enc-tests
59495         (test_u8_conv_to_enc_LDADD): Likewise.
59496         * modules/uniconv/u8-strconv-from-enc-tests
59497         (test_u8_strconv_from_enc_LDADD): Likewise.
59498         * modules/uniconv/u8-strconv-to-enc-tests
59499         (test_u8_strconv_to_enc_LDADD): Likewise.
59500
59501 2007-10-22  Bruno Haible  <bruno@clisp.org>
59502
59503         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
59504         size.
59505
59506 2007-10-22  Eric Blake  <ebb9@byu.net>
59507
59508         Tweak x*printf documentation.
59509         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
59510         variable name and comments.
59511         Suggested by Bruno Haible.
59512
59513 2007-10-22  Bruno Haible  <bruno@clisp.org>
59514
59515         * lib/acl.c (copy_acl): Fix file name in comment.
59516
59517 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
59518
59519         Fix Tru64 problem with stdbool.h.
59520         * lib/stdbool.in.h (false, true):
59521         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
59522         Don't declare as an enum in this situation; it runs afoul of Tru64.
59523         Problem reported by Steven M. Schweda in
59524         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
59525
59526 2007-10-22  Eric Blake  <ebb9@byu.net>
59527
59528         Also wrap vf?printf.
59529         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
59530         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
59531         (xvprintf, xvfprintf): New functions.
59532
59533 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59534
59535         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
59536         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
59537
59538         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
59539         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
59540
59541 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
59542
59543         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
59544         by Bruno Haible.
59545
59546 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59547
59548         * lib/getloadavg.c
59549         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
59550         Undef `sys' after including sys/table.h, for Tru64 4.0D.
59551
59552         * tests/test-i-ring.c: Work for C89.
59553
59554 2007-10-22  Bruno Haible  <bruno@clisp.org>
59555
59556         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
59557         -1u, in preprocessor expression, so that we don't test for the bug
59558         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
59559         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
59560
59561 2007-10-22  Eric Blake  <ebb9@byu.net>
59562
59563         * tests/test-yesno.sh: Silence stderr during test.
59564
59565 2007-10-22  Simon Josefsson  <simon@josefsson.org>
59566
59567         * modules/crypto/gc-camellia: New file.
59568
59569         * m4/gc-camellia.m4: New file.
59570
59571         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
59572
59573         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
59574
59575 2007-10-22  Simon Josefsson  <simon@josefsson.org>
59576
59577         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
59578         --help to stdout.  Reported by sms@antinode.org (Steven
59579         M. Schweda).
59580
59581 2007-10-22  Simon Josefsson  <simon@josefsson.org>
59582
59583         * users.txt: Fix link to libksba.
59584
59585 2007-10-21  Ben Pfaff  <blp@gnu.org>
59586
59587         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
59588         round.c roundf implementation that depends on floorf and ceilf to
59589         be tested unconditionally.
59590
59591 2007-10-21  Ben Pfaff  <blp@gnu.org>
59592
59593         * m4/check-libm-func.m4: Removed.
59594         * m4/check-math-lib.m4: New file.
59595         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
59596         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
59597         definition and lack of AC_LIBOBJ([roundf]).
59598         * m4/roundl.m4: Ditto, and similarly for roundl.
59599         * modules/round: Reference new m4 file.
59600         * modules/roundf: Ditto.
59601         * modules/roundl: Ditto.
59602         * tests/test-round2.c (main): Use ROUND instead of round.
59603         Bug report from Bruno Haible.
59604
59605 2007-10-21  Bruno Haible  <bruno@clisp.org>
59606
59607         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
59608         context.
59609
59610 2007-10-21  Bruno Haible  <bruno@clisp.org>
59611
59612         * tests/test-wcwidth.c (main): Allow negative result for some control
59613         characters.
59614
59615         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
59616         Needed on OSF/1 5.1.
59617
59618 2007-10-21  Bruno Haible  <bruno@clisp.org>
59619
59620         * tests/test-floorf1.c: Include isnanf.h.
59621         (main): Use isnanf() instead of isnan().
59622         * tests/test-ceilf1.c: Include isnanf.h.
59623         (main): Use isnanf() instead of isnan().
59624         * tests/test-truncf1.c: Include isnanf.h.
59625         (main): Use isnanf() instead of isnan().
59626         * tests/test-roundf1.c: Include isnanf.h.
59627         (main): Use isnanf() instead of isnan().
59628
59629 2007-10-21  Eric Blake  <ebb9@byu.net>
59630
59631         * users.txt: Update URL for m4.
59632
59633 2007-10-21  Bruno Haible  <bruno@clisp.org>
59634
59635         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
59636
59637 2007-10-21  Bruno Haible  <bruno@clisp.org>
59638
59639         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
59640         Git's management files if the CVS files are not present.
59641
59642 2007-10-20  Bruno Haible  <bruno@clisp.org>
59643
59644         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
59645         gcc-3.4.x.
59646
59647 2007-10-20  Ben Pfaff  <blp@gnu.org>
59648
59649         * lib/math.in.h: Declare round, roundf, roundl if we are providing
59650         implementations.
59651         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
59652         * lib/round.c: New file.
59653         * lib/roundf.c: New file.
59654         * lib/roundl.c: New file.
59655         * m4/round.m4: New file.
59656         * m4/roundf.m4: New file.
59657         * m4/roundl.m4: New file.
59658         * m4/check-libm-func-m4: New file.
59659         * modules/math: Replace round, roundf, roundl related @VARS@ in
59660         math.in.h.
59661         * modules/round: New file.
59662         * modules/round-tests: New file.
59663         * modules/roundf: New file.
59664         * modules/roundf-tests: New file.
59665         * modules/roundl: New file.
59666         * modules/roundl-tests: New file.
59667         * tests/test-round1.c: New file.
59668         * tests/test-round2.c: New file.
59669         * tests/test-roundf1.c: New file.
59670         * tests/test-roundf2.c: New file.
59671         * tests/test-roundl.c: New file.
59672         * doc/functions/round.texi: Mention round module.
59673         * doc/functions/roundf.texi: Mention roundf module.
59674         * doc/functions/roundl.texi: Mention roundl module.
59675         * MODULES.html.sh: Mention new modules.
59676         Thanks to Bruno Haible for suggestions.
59677
59678 2007-10-20  Jim Meyering  <meyering@redhat.com>
59679
59680         * lib/xprintf.c: Include <config.h> unconditionally.
59681
59682         Change xprintf's license to GPL.
59683         * modules/xprintf (License): s/LGPL/GPL/, since this module
59684         depends on modules (exit and exitfail) which are GPL.
59685         Suggestion from Bruno Haible.
59686
59687         xprintf fixes.
59688         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
59689         Use a clearer diagnostic.
59690         Patch from Bruno Haible.
59691
59692 2007-10-20  Bruno Haible  <bruno@clisp.org>
59693
59694         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
59695         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
59696         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59697
59698 2007-10-20  Bruno Haible  <bruno@clisp.org>
59699
59700         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
59701         precision in the comparison result > x - 1 or similar.
59702         * tests/test-ceilf2.c (correct_result_p): Likewise.
59703         * tests/test-truncf2.c (correct_result_p): Likewise.
59704         * tests/test-trunc2.c (correct_result_p): Likewise.
59705         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59706
59707 2007-10-20  Bruno Haible  <bruno@clisp.org>
59708
59709         * modules/ceil: New file.
59710         * m4/ceil.m4: New file.
59711         * doc/functions/ceil.texi: Mention the 'ceil' module.
59712
59713 2007-10-20  Bruno Haible  <bruno@clisp.org>
59714
59715         * modules/floor: New file.
59716         * m4/floor.m4: New file.
59717         * doc/functions/floor.texi: Mention the 'floor' module.
59718
59719 2007-10-20  Bruno Haible  <bruno@clisp.org>
59720
59721         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
59722         of %a.
59723         * modules/floorf-tests (Depends-on): Likewise.
59724         * modules/truncf-tests (Depends-on): Likewise.
59725         * modules/trunc-tests (Depends-on): Likewise.
59726         Reported by Ben Pfaff.
59727
59728 2007-10-19  Jim Meyering  <meyering@redhat.com>
59729
59730         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
59731         Don't bother testing specific errno values.  Just test ferror.
59732
59733         New module: xprintf
59734         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
59735
59736 2007-10-19  Bruno Haible  <bruno@clisp.org>
59737
59738         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
59739         syntax.
59740         * modules/javaexec (Makefile.am): Likewise.
59741         * modules/relocatable-prog (Makefile.am): Likewise.
59742         Suggested by Jim Meyering.
59743
59744 2007-10-18  Bruno Haible  <bruno@clisp.org>
59745
59746         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
59747         Reported by Jim Meyering.
59748
59749 2007-10-18  Eric Blake  <ebb9@byu.net>
59750
59751         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
59752
59753 2007-10-18  Bruno Haible  <bruno@clisp.org>
59754
59755         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
59756         the format string into writable memory. Needed in Fortify conditions.
59757
59758 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
59759             Bruno Haible  <bruno@clisp.org>
59760
59761         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
59762         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
59763         * modules/trim (Depends-on): Add mbchar.
59764         (configure.ac): Add gl_FUNC_MBRTOWC.
59765         (Makefile.am): Augment lib_SOURCES.
59766
59767 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
59768
59769         Modify glob.c to use fstatat and dirfd, to simplify it.
59770         Suggested by Eric Blake.
59771         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
59772         Don't include <stdbool.h>; not used.
59773         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
59774         (link_exists_p): Simplify implementation, since we can now assume
59775         dirfd and fstatat.
59776         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
59777
59778 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59779
59780         * gnulib-tool (func_get_dependencies): Fix sed script to
59781         match only tests.
59782
59783 2007-10-17  Bruno Haible  <bruno@clisp.org>
59784
59785         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
59786         allow locale names without encoding suffix.
59787         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
59788         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59789
59790 2007-10-16  Bruno Haible  <bruno@clisp.org>
59791
59792         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
59793         * lib/getgroups.c (getgroups): Likewise.
59794         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
59795
59796 2007-10-16  Bruno Haible  <bruno@clisp.org>
59797
59798         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
59799         * modules/malloc-posix (License): Likewise.
59800         * modules/realloc-posix (License): Likewise.
59801         * modules/calloc-posix (License): Likewise.
59802         * modules/intprops (License): Change from GPL to LGPL, with
59803         Paul Eggert's approval.
59804
59805 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
59806
59807         Merge glibc changes into lib/glob.c.
59808
59809         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
59810         2007-10-15 04:59:03 UTC.  Here are the changes:
59811
59812         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
59813
59814         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
59815
59816         * lib/glob.c: Add some branch prediction throughout.
59817
59818         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
59819
59820         [BZ #5103]
59821         * lib/glob.c (glob): Recognize patterns starting \/.
59822
59823         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
59824
59825         [BZ #3996]
59826         * lib/glob.c (attribute_hidden): Define if not defined.
59827         (glob): Unescape dirname, filename or username when needed and not
59828         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
59829         is NULL.  Handle unescaped [ in pattern without closing ].
59830         Don't pass GLOB_CHECK down to recursive glob for directories.
59831         (__glob_pattern_type): New function.
59832         (__glob_pattern_p): Implement using __glob_pattern_type.
59833         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
59834         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
59835         Remove unreachable code.
59836
59837         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
59838
59839         * lib/glob.c (glob_in_dir): Add some comments and asserts to
59840         explain why there are no leaks.
59841
59842         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
59843
59844         [BZ #3253]
59845         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
59846         time, rather allocate increasingly bigger arrays of pointers, if
59847         possible with alloca, if too large with malloc.
59848
59849 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
59850
59851         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
59852         Problem reported by H.Merijn Brand in
59853         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
59854         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
59855         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
59856
59857 2007-10-15  Bruno Haible  <bruno@clisp.org>
59858
59859         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
59860         with explicit rpl_ prefix.
59861         * lib/fopen.c (fopen): Likewise.
59862         * lib/freopen.c (freopen): Likewise.
59863         * lib/iconv.c (iconv): Likewise.
59864         * lib/iconv_close.c (iconv_close): Likewise.
59865
59866 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59867
59868         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
59869
59870 2007-10-15  Bruno Haible  <bruno@clisp.org>
59871
59872         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
59873         <stddef.h> instead of <stdlib.h> since we only need NULL.
59874         Reported by Ben Pfaff <blp@cs.stanford.edu>.
59875
59876 2007-10-15  Bruno Haible  <bruno@clisp.org>
59877
59878         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
59879         Replace paragraph talking about LIBOBJS.
59880         Reported by Colin Watson <cjwatson@debian.org>.
59881
59882 2007-10-15  Bruno Haible  <bruno@clisp.org>
59883
59884         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
59885         <stdlib.h> before using NULL.
59886
59887 2007-10-15  Simon Josefsson  <simon@josefsson.org>
59888
59889         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
59890         Reported by Albert Chin <china@thewrittenword.com>.
59891
59892 2007-10-14  Bruno Haible  <bruno@clisp.org>
59893
59894         * modules/iconv_open-utf-tests: New file.
59895         * tests/test-iconv-utf.c: New file.
59896
59897         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
59898         * modules/iconv_open-utf: New file.
59899         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
59900         (iconv, iconv_close): New declarations.
59901         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
59902         be defined.
59903         (iconv_open): Add special handling of conversion between UTF-8 and
59904         UTF-{16,32}{BE,LE}.
59905         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
59906         * lib/iconv_close.c: New file.
59907         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
59908         gl_FUNC_ICONV_OPEN.
59909         (gl_FUNC_ICONV_OPEN): Use it.
59910         (gl_FUNC_ICONV_OPEN_UTF): New macro.
59911         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
59912         and REPLACE_ICONV_UTF.
59913         * modules/iconv_open (Depends-on): Add c-strcase.
59914         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
59915         ICONV_CONST.
59916         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
59917
59918 2007-10-13  Albert Chin  <china@thewrittenword.com>
59919             Bruno Haible  <bruno@clisp.org>
59920
59921         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
59922         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
59923
59924 2007-10-13  Bruno Haible  <bruno@clisp.org>
59925
59926         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
59927         defined, use the ISO C99 inline semantics.
59928         * lib/argp.h (ARGP_EI): Likewise.
59929
59930 2007-10-13  Bruno Haible  <bruno@clisp.org>
59931
59932         Handle 'inline' change in gcc 4.3.0.
59933         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
59934         argp_fmtstream_write, argp_fmtstream_set_lmargin,
59935         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
59936         argp_fmtstream_point): Disable 'extern' declaration if the function
59937         definition is going to be provided inline.
59938         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
59939         semantics, not the ISO C99 inline semantics.
59940         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
59941         'extern' declaration if the function definition is going to be provided
59942         inline.
59943         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
59944         the GNU C inline semantics, not the ISO C99 inline semantics. With
59945         GCC 4.2, avoid a warning.
59946
59947 2007-10-13  Bruno Haible  <bruno@clisp.org>
59948
59949         * lib/freading.h (freading): Enable the use of __freading for
59950         glibc >= 2.7.
59951         * lib/freading.c (freading): Likewise.
59952
59953 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
59954
59955         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
59956         "warning: C99 inline functions are not supported; using GNU89".
59957
59958 2007-10-12  Bruno Haible  <bruno@clisp.org>
59959
59960         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
59961         of 2.
59962         * tests/test-ceilf2.c: New file.
59963         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
59964
59965         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
59966         * modules/ceilf-tests: Update.
59967
59968 2007-10-12  Bruno Haible  <bruno@clisp.org>
59969
59970         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
59971         of 2.
59972         * tests/test-floorf2.c: New file.
59973         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
59974
59975         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
59976         * modules/floorf-tests: Update.
59977
59978 2007-10-12  Bruno Haible  <bruno@clisp.org>
59979
59980         * tests/test-trunc2.c: New file.
59981         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
59982
59983         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
59984         * modules/trunc-tests: Update.
59985
59986 2007-10-12  Bruno Haible  <bruno@clisp.org>
59987
59988         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
59989         of 2.
59990         * tests/test-truncf2.c: New file.
59991         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
59992
59993         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
59994         * modules/truncf-tests: Update.
59995
59996 2007-10-11  Eric Blake  <ebb9@byu.net>
59997
59998         Don't claim strerror is broken on Interix.
59999         * doc/functions/strerror.texi (strerror): Known broken systems are
60000         now Solaris 8, and not Interix.
60001         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
60002         Interix on cross-compile.
60003         Reported by Martin Koeppe in
60004         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
60005
60006 2007-10-11  Bruno Haible  <bruno@clisp.org>
60007
60008         * modules/i-ring-tests: New file.
60009         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
60010         instead of assert.
60011
60012 2007-10-11  Bruno Haible  <bruno@clisp.org>
60013
60014         * modules/filenamecat-tests: New file.
60015         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
60016         * lib/filenamecat.c: Remove test code.
60017
60018 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
60019
60020         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
60021
60022         * lib/strerror.c: Include <string.h> always, to test interface,
60023         and to remove the need for the dummy.
60024         Include intprops.h to compute width instead of doing it ourselves
60025         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
60026         (strerror): Define it to return NULL if there's no system strerror.
60027         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
60028         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
60029         ancient pre-strerror Unix systems well any more.  Saying "unknown
60030         system error" is enough.
60031         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
60032         simpler strerror.c implementation.
60033         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
60034         Simplify the tests to reflect the simpler strerror implementation.
60035         * modules/strerror (Depends-on): Add intprops.
60036
60037 2007-10-09  Eric Blake  <ebb9@byu.net>
60038
60039         Silence test-fpending.
60040         * modules/fpending-tests (Files): Add wrapper script.
60041         * tests/test-fpending.sh: New file.
60042
60043 2007-10-09  Bruno Haible  <bruno@clisp.org>
60044
60045         * MODULES.html.sh (func_module): Don't create a hyperlink for
60046         function names like 'printf_frexp'.
60047         (Misc): Add crc, memxor.
60048         (Characteristics of floating types): New section.
60049         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
60050         isnanf-nolibm, signbit, trunc, truncf, truncl.
60051         (Enhancements for ISO C 99 functions): New subsection Input/output.
60052         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
60053         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
60054         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
60055         (Compatibility checks for POSIX:2001 functions): Add clock-time.
60056         (Enhancements for POSIX:2001 functions): Add chdir-long.
60057         (File system functions): Add areadlink, chdir-safer, read-file.
60058         Remove cycle-check.
60059         (File system as inode set): New section.
60060         (Date and time): Add gethrxtime.
60061         (Multithreading): Add openmp.
60062         (Internationalization functions): Add localename.
60063         (Unicode string functions): Add unistr/u*-mbsnlen.
60064         (Support for maintaining and releasing projects): Add git-version-gen.
60065         (Lone files): Remove directories.
60066
60067 2007-10-08  Ben Pfaff  <blp@gnu.org>
60068
60069         * lib/xmalloca.h: Fix typo in comment.
60070
60071 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
60072
60073         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
60074         when avoiding problems with integer overflow.  Use a portable test
60075         instead.
60076
60077 2007-10-08  Simon Josefsson  <simon@josefsson.org>
60078
60079         * modules/dummy (License): Change to LGPLv2+.
60080         * modules/float (License): Likewise
60081         * modules/realloc (License): Likewise
60082         * modules/stdlib (License): Likewise
60083
60084 2007-10-07  Bruno Haible  <bruno@clisp.org>
60085
60086         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
60087         * floor.c (TWO_MANT_DIG): Likewise.
60088         * ceil.c (TWO_MANT_DIG): Likewise.
60089         Reported by Ben Pfaff.
60090
60091 2007-10-07  Bruno Haible  <bruno@clisp.org>
60092
60093         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
60094         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
60095         * lib/frexp.c (FUNC): Likewise.
60096         * lib/printf-frexp.h (printf_frexp): Likewise.
60097         * lib/printf-frexpl.h (printf_frexpl): Likewise.
60098         * lib/printf-frexp.c (FUNC): Likewise.
60099         Suggested by Jim Meyering.
60100
60101 2007-10-07  Jim Meyering  <meyering@redhat.com>
60102
60103         Make xnanosleep's integer overflow test more robust.
60104         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
60105         so that gcc-4.3.0 doesn't optimize away this test for overflow.
60106
60107 2007-10-07  Bruno Haible  <bruno@clisp.org>
60108
60109         * NEWS: Mention the license change.
60110
60111         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
60112         abbreviations in the modules files.
60113
60114         Change copyright notice from GPLv2+ to GPLv3+.
60115         * README: Change copyright notice.
60116         * MODULES.html.sh: Likewise.
60117         * build-aux/bootstrap.conf: Likewise.
60118         * build-aux/config.libpath: Likewise.
60119         * build-aux/csharpcomp.sh.in: Likewise.
60120         * build-aux/csharpexec.sh.in: Likewise.
60121         * build-aux/install-reloc: Likewise.
60122         * build-aux/javacomp.sh.in: Likewise.
60123         * build-aux/javaexec.sh.in: Likewise.
60124         * build-aux/ldd.sh.in: Likewise.
60125         * build-aux/reloc-ldflags: Likewise.
60126         * build-aux/relocatable.sh.in: Likewise.
60127         * build-aux/x-to-1.in: Likewise.
60128         * check-module: Likewise.
60129         * config/srclistvars.sh: Likewise.
60130         * gnulib-tool: Likewise.
60131         * lib/acl-internal.h: Likewise.
60132         * lib/acl.c: Likewise.
60133         * lib/acl.h: Likewise.
60134         * lib/acl_entries.c: Likewise.
60135         * lib/areadlink-with-size.c: Likewise.
60136         * lib/areadlink.c: Likewise.
60137         * lib/areadlink.h: Likewise.
60138         * lib/argmatch.c: Likewise.
60139         * lib/argmatch.h: Likewise.
60140         * lib/argp-ba.c: Likewise.
60141         * lib/argp-eexst.c: Likewise.
60142         * lib/argp-fmtstream.c: Likewise.
60143         * lib/argp-fmtstream.h: Likewise.
60144         * lib/argp-fs-xinl.c: Likewise.
60145         * lib/argp-help.c: Likewise.
60146         * lib/argp-namefrob.h: Likewise.
60147         * lib/argp-parse.c: Likewise.
60148         * lib/argp-pin.c: Likewise.
60149         * lib/argp-pv.c: Likewise.
60150         * lib/argp-pvh.c: Likewise.
60151         * lib/argp-xinl.c: Likewise.
60152         * lib/argp.h: Likewise.
60153         * lib/at-func.c: Likewise.
60154         * lib/atanl.c: Likewise.
60155         * lib/backupfile.c: Likewise.
60156         * lib/backupfile.h: Likewise.
60157         * lib/basename.c: Likewise.
60158         * lib/binary-io.h: Likewise.
60159         * lib/byteswap.in.h: Likewise.
60160         * lib/c-stack.c: Likewise.
60161         * lib/c-stack.h: Likewise.
60162         * lib/c-strcasestr.c: Likewise.
60163         * lib/c-strcasestr.h: Likewise.
60164         * lib/c-strstr.c: Likewise.
60165         * lib/c-strstr.h: Likewise.
60166         * lib/c-strtod.c: Likewise.
60167         * lib/calloc.c: Likewise.
60168         * lib/canon-host.c: Likewise.
60169         * lib/canon-host.h: Likewise.
60170         * lib/canonicalize-lgpl.c: Likewise.
60171         * lib/canonicalize.c: Likewise.
60172         * lib/canonicalize.h: Likewise.
60173         * lib/ceil.c: Likewise.
60174         * lib/ceilf.c: Likewise.
60175         * lib/ceill.c: Likewise.
60176         * lib/chdir-long.c: Likewise.
60177         * lib/chdir-long.h: Likewise.
60178         * lib/chdir-safer.c: Likewise.
60179         * lib/chdir-safer.h: Likewise.
60180         * lib/chown.c: Likewise.
60181         * lib/classpath.c: Likewise.
60182         * lib/classpath.h: Likewise.
60183         * lib/clean-temp.c: Likewise.
60184         * lib/clean-temp.h: Likewise.
60185         * lib/cloexec.c: Likewise.
60186         * lib/close-stream.c: Likewise.
60187         * lib/closein.c: Likewise.
60188         * lib/closein.h: Likewise.
60189         * lib/closeout.c: Likewise.
60190         * lib/closeout.h: Likewise.
60191         * lib/concat-filename.c: Likewise.
60192         * lib/copy-file.c: Likewise.
60193         * lib/copy-file.h: Likewise.
60194         * lib/count-one-bits.h: Likewise.
60195         * lib/crc.c: Likewise.
60196         * lib/crc.h: Likewise.
60197         * lib/creat-safer.c: Likewise.
60198         * lib/csharpcomp.c: Likewise.
60199         * lib/csharpcomp.h: Likewise.
60200         * lib/csharpexec.c: Likewise.
60201         * lib/csharpexec.h: Likewise.
60202         * lib/cycle-check.c: Likewise.
60203         * lib/cycle-check.h: Likewise.
60204         * lib/diacrit.c: Likewise.
60205         * lib/diacrit.h: Likewise.
60206         * lib/diffseq.h: Likewise.
60207         * lib/dirchownmod.c: Likewise.
60208         * lib/dirent.in.h: Likewise.
60209         * lib/dirfd.c: Likewise.
60210         * lib/dirfd.h: Likewise.
60211         * lib/dirname.c: Likewise.
60212         * lib/dirname.h: Likewise.
60213         * lib/dummy.c: Likewise.
60214         * lib/dup-safer.c: Likewise.
60215         * lib/dup2.c: Likewise.
60216         * lib/eealloc.h: Likewise.
60217         * lib/error.c: Likewise.
60218         * lib/error.h: Likewise.
60219         * lib/euidaccess.c: Likewise.
60220         * lib/exclude.c: Likewise.
60221         * lib/exclude.h: Likewise.
60222         * lib/execute.c: Likewise.
60223         * lib/execute.h: Likewise.
60224         * lib/exitfail.c: Likewise.
60225         * lib/exitfail.h: Likewise.
60226         * lib/expl.c: Likewise.
60227         * lib/fatal-signal.c: Likewise.
60228         * lib/fatal-signal.h: Likewise.
60229         * lib/fbufmode.c: Likewise.
60230         * lib/fbufmode.h: Likewise.
60231         * lib/fchdir.c: Likewise.
60232         * lib/fchmodat.c: Likewise.
60233         * lib/fchownat.c: Likewise.
60234         * lib/fcntl--.h: Likewise.
60235         * lib/fcntl-safer.h: Likewise.
60236         * lib/fcntl.in.h: Likewise.
60237         * lib/fd-safer.c: Likewise.
60238         * lib/fflush.c: Likewise.
60239         * lib/file-has-acl.c: Likewise.
60240         * lib/file-set.c: Likewise.
60241         * lib/file-type.c: Likewise.
60242         * lib/file-type.h: Likewise.
60243         * lib/fileblocks.c: Likewise.
60244         * lib/filemode.c: Likewise.
60245         * lib/filemode.h: Likewise.
60246         * lib/filename.h: Likewise.
60247         * lib/filenamecat.c: Likewise.
60248         * lib/filenamecat.h: Likewise.
60249         * lib/findprog.c: Likewise.
60250         * lib/findprog.h: Likewise.
60251         * lib/float.in.h: Likewise.
60252         * lib/floor.c: Likewise.
60253         * lib/floorf.c: Likewise.
60254         * lib/floorl.c: Likewise.
60255         * lib/fopen-safer.c: Likewise.
60256         * lib/fopen.c: Likewise.
60257         * lib/fpending.c: Likewise.
60258         * lib/fpending.h: Likewise.
60259         * lib/fprintf.c: Likewise.
60260         * lib/fprintftime.h: Likewise.
60261         * lib/fpucw.h: Likewise.
60262         * lib/fpurge.c: Likewise.
60263         * lib/fpurge.h: Likewise.
60264         * lib/freadable.c: Likewise.
60265         * lib/freadable.h: Likewise.
60266         * lib/freadahead.c: Likewise.
60267         * lib/freadahead.h: Likewise.
60268         * lib/freading.c: Likewise.
60269         * lib/freading.h: Likewise.
60270         * lib/free.c: Likewise.
60271         * lib/freopen.c: Likewise.
60272         * lib/frexp.c: Likewise.
60273         * lib/frexpl.c: Likewise.
60274         * lib/fseek.c: Likewise.
60275         * lib/fseterr.c: Likewise.
60276         * lib/fseterr.h: Likewise.
60277         * lib/fstatat.c: Likewise.
60278         * lib/fstrcmp.c: Likewise.
60279         * lib/fstrcmp.h: Likewise.
60280         * lib/fsusage.c: Likewise.
60281         * lib/fsusage.h: Likewise.
60282         * lib/ftell.c: Likewise.
60283         * lib/ftello.c: Likewise.
60284         * lib/fts-cycle.c: Likewise.
60285         * lib/fts.c: Likewise.
60286         * lib/fts_.h: Likewise.
60287         * lib/full-read.c: Likewise.
60288         * lib/full-read.h: Likewise.
60289         * lib/full-write.c: Likewise.
60290         * lib/full-write.h: Likewise.
60291         * lib/fwritable.c: Likewise.
60292         * lib/fwritable.h: Likewise.
60293         * lib/fwriteerror.c: Likewise.
60294         * lib/fwriteerror.h: Likewise.
60295         * lib/fwriting.c: Likewise.
60296         * lib/fwriting.h: Likewise.
60297         * lib/gcd.c: Likewise.
60298         * lib/gcd.h: Likewise.
60299         * lib/getcwd.c: Likewise.
60300         * lib/getdate.h: Likewise.
60301         * lib/getdate.y: Likewise.
60302         * lib/getdomainname.c: Likewise.
60303         * lib/getdomainname.h: Likewise.
60304         * lib/getgroups.c: Likewise.
60305         * lib/gethostname.c: Likewise.
60306         * lib/gethrxtime.c: Likewise.
60307         * lib/gethrxtime.h: Likewise.
60308         * lib/getloadavg.c: Likewise.
60309         * lib/getndelim2.c: Likewise.
60310         * lib/getndelim2.h: Likewise.
60311         * lib/getnline.c: Likewise.
60312         * lib/getnline.h: Likewise.
60313         * lib/getopt.c: Likewise.
60314         * lib/getopt.in.h: Likewise.
60315         * lib/getopt1.c: Likewise.
60316         * lib/getopt_int.h: Likewise.
60317         * lib/getpagesize.h: Likewise.
60318         * lib/getsubopt.c: Likewise.
60319         * lib/gettime.c: Likewise.
60320         * lib/getugroups.c: Likewise.
60321         * lib/getugroups.h: Likewise.
60322         * lib/getusershell.c: Likewise.
60323         * lib/gl_anyavltree_list1.h: Likewise.
60324         * lib/gl_anyavltree_list2.h: Likewise.
60325         * lib/gl_anyhash_list1.h: Likewise.
60326         * lib/gl_anyhash_list2.h: Likewise.
60327         * lib/gl_anylinked_list1.h: Likewise.
60328         * lib/gl_anylinked_list2.h: Likewise.
60329         * lib/gl_anyrbtree_list1.h: Likewise.
60330         * lib/gl_anyrbtree_list2.h: Likewise.
60331         * lib/gl_anytree_list1.h: Likewise.
60332         * lib/gl_anytree_list2.h: Likewise.
60333         * lib/gl_anytree_oset.h: Likewise.
60334         * lib/gl_anytreehash_list1.h: Likewise.
60335         * lib/gl_anytreehash_list2.h: Likewise.
60336         * lib/gl_array_list.c: Likewise.
60337         * lib/gl_array_list.h: Likewise.
60338         * lib/gl_array_oset.c: Likewise.
60339         * lib/gl_array_oset.h: Likewise.
60340         * lib/gl_avltree_list.c: Likewise.
60341         * lib/gl_avltree_list.h: Likewise.
60342         * lib/gl_avltree_oset.c: Likewise.
60343         * lib/gl_avltree_oset.h: Likewise.
60344         * lib/gl_avltreehash_list.c: Likewise.
60345         * lib/gl_avltreehash_list.h: Likewise.
60346         * lib/gl_carray_list.c: Likewise.
60347         * lib/gl_carray_list.h: Likewise.
60348         * lib/gl_linked_list.c: Likewise.
60349         * lib/gl_linked_list.h: Likewise.
60350         * lib/gl_linkedhash_list.c: Likewise.
60351         * lib/gl_linkedhash_list.h: Likewise.
60352         * lib/gl_list.c: Likewise.
60353         * lib/gl_list.h: Likewise.
60354         * lib/gl_oset.c: Likewise.
60355         * lib/gl_oset.h: Likewise.
60356         * lib/gl_rbtree_list.c: Likewise.
60357         * lib/gl_rbtree_list.h: Likewise.
60358         * lib/gl_rbtree_oset.c: Likewise.
60359         * lib/gl_rbtree_oset.h: Likewise.
60360         * lib/gl_rbtreehash_list.c: Likewise.
60361         * lib/gl_rbtreehash_list.h: Likewise.
60362         * lib/gl_sublist.c: Likewise.
60363         * lib/gl_sublist.h: Likewise.
60364         * lib/group-member.c: Likewise.
60365         * lib/group-member.h: Likewise.
60366         * lib/hard-locale.c: Likewise.
60367         * lib/hard-locale.h: Likewise.
60368         * lib/hash-pjw.c: Likewise.
60369         * lib/hash-pjw.h: Likewise.
60370         * lib/hash-triple.c: Likewise.
60371         * lib/hash.c: Likewise.
60372         * lib/hash.h: Likewise.
60373         * lib/human.c: Likewise.
60374         * lib/human.h: Likewise.
60375         * lib/i-ring.c: Likewise.
60376         * lib/i-ring.h: Likewise.
60377         * lib/idcache.c: Likewise.
60378         * lib/imaxabs.c: Likewise.
60379         * lib/imaxdiv.c: Likewise.
60380         * lib/inet_pton.c: Likewise.
60381         * lib/inet_pton.h: Likewise.
60382         * lib/intprops.h: Likewise.
60383         * lib/inttostr.c: Likewise.
60384         * lib/inttostr.h: Likewise.
60385         * lib/inttypes.in.h: Likewise.
60386         * lib/isapipe.c: Likewise.
60387         * lib/isdir.c: Likewise.
60388         * lib/isnan.c: Likewise.
60389         * lib/isnan.h: Likewise.
60390         * lib/isnanf.c: Likewise.
60391         * lib/isnanf.h: Likewise.
60392         * lib/isnanl-nolibm.h: Likewise.
60393         * lib/isnanl.c: Likewise.
60394         * lib/isnanl.h: Likewise.
60395         * lib/javacomp.c: Likewise.
60396         * lib/javacomp.h: Likewise.
60397         * lib/javaexec.c: Likewise.
60398         * lib/javaexec.h: Likewise.
60399         * lib/javaversion.c: Likewise.
60400         * lib/javaversion.h: Likewise.
60401         * lib/javaversion.java: Likewise.
60402         * lib/lbrkprop.h: Likewise.
60403         * lib/lchmod.h: Likewise.
60404         * lib/lchown.c: Likewise.
60405         * lib/ldexpl.c: Likewise.
60406         * lib/linebreak.c: Likewise.
60407         * lib/linebreak.h: Likewise.
60408         * lib/linebuffer.c: Likewise.
60409         * lib/linebuffer.h: Likewise.
60410         * lib/locale.in.h: Likewise.
60411         * lib/logl.c: Likewise.
60412         * lib/long-options.c: Likewise.
60413         * lib/long-options.h: Likewise.
60414         * lib/lstat.c: Likewise.
60415         * lib/lstat.h: Likewise.
60416         * lib/math.in.h: Likewise.
60417         * lib/mbchar.c: Likewise.
60418         * lib/mbchar.h: Likewise.
60419         * lib/mbfile.h: Likewise.
60420         * lib/mbiter.h: Likewise.
60421         * lib/mbscasecmp.c: Likewise.
60422         * lib/mbscasestr.c: Likewise.
60423         * lib/mbschr.c: Likewise.
60424         * lib/mbscspn.c: Likewise.
60425         * lib/mbslen.c: Likewise.
60426         * lib/mbsncasecmp.c: Likewise.
60427         * lib/mbsnlen.c: Likewise.
60428         * lib/mbspbrk.c: Likewise.
60429         * lib/mbspcasecmp.c: Likewise.
60430         * lib/mbsrchr.c: Likewise.
60431         * lib/mbssep.c: Likewise.
60432         * lib/mbsspn.c: Likewise.
60433         * lib/mbsstr.c: Likewise.
60434         * lib/mbstok_r.c: Likewise.
60435         * lib/mbswidth.c: Likewise.
60436         * lib/mbswidth.h: Likewise.
60437         * lib/mbuiter.h: Likewise.
60438         * lib/memcasecmp.c: Likewise.
60439         * lib/memcasecmp.h: Likewise.
60440         * lib/memchr.c: Likewise.
60441         * lib/memcmp.c: Likewise.
60442         * lib/memcoll.c: Likewise.
60443         * lib/memcoll.h: Likewise.
60444         * lib/memcpy.c: Likewise.
60445         * lib/memrchr.c: Likewise.
60446         * lib/mkancesdirs.c: Likewise.
60447         * lib/mkdir-p.c: Likewise.
60448         * lib/mkdir-p.h: Likewise.
60449         * lib/mkdir.c: Likewise.
60450         * lib/mkdirat.c: Likewise.
60451         * lib/mkdtemp.c: Likewise.
60452         * lib/mkstemp-safer.c: Likewise.
60453         * lib/mkstemp.c: Likewise.
60454         * lib/modechange.c: Likewise.
60455         * lib/modechange.h: Likewise.
60456         * lib/mountlist.c: Likewise.
60457         * lib/mountlist.h: Likewise.
60458         * lib/mpsort.c: Likewise.
60459         * lib/nanosleep.c: Likewise.
60460         * lib/obstack.c: Likewise.
60461         * lib/obstack.h: Likewise.
60462         * lib/open-safer.c: Likewise.
60463         * lib/open.c: Likewise.
60464         * lib/openat-die.c: Likewise.
60465         * lib/openat-priv.h: Likewise.
60466         * lib/openat-proc.c: Likewise.
60467         * lib/openat.c: Likewise.
60468         * lib/openat.h: Likewise.
60469         * lib/pagealign_alloc.c: Likewise.
60470         * lib/pagealign_alloc.h: Likewise.
60471         * lib/physmem.c: Likewise.
60472         * lib/physmem.h: Likewise.
60473         * lib/pipe-safer.c: Likewise.
60474         * lib/pipe.c: Likewise.
60475         * lib/pipe.h: Likewise.
60476         * lib/posixtm.c: Likewise.
60477         * lib/posixtm.h: Likewise.
60478         * lib/posixver.c: Likewise.
60479         * lib/printf-frexp.c: Likewise.
60480         * lib/printf-frexp.h: Likewise.
60481         * lib/printf-frexpl.c: Likewise.
60482         * lib/printf-frexpl.h: Likewise.
60483         * lib/printf.c: Likewise.
60484         * lib/progname.c: Likewise.
60485         * lib/progname.h: Likewise.
60486         * lib/progreloc.c: Likewise.
60487         * lib/putenv.c: Likewise.
60488         * lib/quote.c: Likewise.
60489         * lib/quote.h: Likewise.
60490         * lib/quotearg.c: Likewise.
60491         * lib/quotearg.h: Likewise.
60492         * lib/raise.c: Likewise.
60493         * lib/readline.c: Likewise.
60494         * lib/readline.h: Likewise.
60495         * lib/readlink.c: Likewise.
60496         * lib/readtokens.c: Likewise.
60497         * lib/readtokens.h: Likewise.
60498         * lib/readtokens0.c: Likewise.
60499         * lib/readtokens0.h: Likewise.
60500         * lib/readutmp.c: Likewise.
60501         * lib/readutmp.h: Likewise.
60502         * lib/realloc.c: Likewise.
60503         * lib/relocwrapper.c: Likewise.
60504         * lib/rename-dest-slash.c: Likewise.
60505         * lib/rename.c: Likewise.
60506         * lib/rmdir.c: Likewise.
60507         * lib/rpmatch.c: Likewise.
60508         * lib/safe-read.c: Likewise.
60509         * lib/safe-read.h: Likewise.
60510         * lib/safe-write.c: Likewise.
60511         * lib/safe-write.h: Likewise.
60512         * lib/same-inode.h: Likewise.
60513         * lib/same.c: Likewise.
60514         * lib/same.h: Likewise.
60515         * lib/save-cwd.c: Likewise.
60516         * lib/save-cwd.h: Likewise.
60517         * lib/savedir.c: Likewise.
60518         * lib/savedir.h: Likewise.
60519         * lib/savewd.c: Likewise.
60520         * lib/savewd.h: Likewise.
60521         * lib/search.in.h: Likewise.
60522         * lib/setenv.c: Likewise.
60523         * lib/setenv.h: Likewise.
60524         * lib/settime.c: Likewise.
60525         * lib/sh-quote.c: Likewise.
60526         * lib/sh-quote.h: Likewise.
60527         * lib/sig2str.c: Likewise.
60528         * lib/sig2str.h: Likewise.
60529         * lib/signal.in.h: Likewise.
60530         * lib/signbitd.c: Likewise.
60531         * lib/signbitf.c: Likewise.
60532         * lib/signbitl.c: Likewise.
60533         * lib/sigprocmask.c: Likewise.
60534         * lib/sincosl.c: Likewise.
60535         * lib/sleep.c: Likewise.
60536         * lib/sprintf.c: Likewise.
60537         * lib/sqrtl.c: Likewise.
60538         * lib/stat-time.h: Likewise.
60539         * lib/stdio--.h: Likewise.
60540         * lib/stdio-safer.h: Likewise.
60541         * lib/stdlib--.h: Likewise.
60542         * lib/stdlib-safer.h: Likewise.
60543         * lib/stdlib.in.h: Likewise.
60544         * lib/stpcpy.c: Likewise.
60545         * lib/stpncpy.c: Likewise.
60546         * lib/strchrnul.c: Likewise.
60547         * lib/strcspn.c: Likewise.
60548         * lib/strerror.c: Likewise.
60549         * lib/strftime.c: Likewise.
60550         * lib/strftime.h: Likewise.
60551         * lib/striconveh.c: Likewise.
60552         * lib/striconveh.h: Likewise.
60553         * lib/striconveha.c: Likewise.
60554         * lib/striconveha.h: Likewise.
60555         * lib/stripslash.c: Likewise.
60556         * lib/strnlen1.c: Likewise.
60557         * lib/strnlen1.h: Likewise.
60558         * lib/strtod.c: Likewise.
60559         * lib/strtoimax.c: Likewise.
60560         * lib/strtok_r.c: Likewise.
60561         * lib/strtol.c: Likewise.
60562         * lib/strtoll.c: Likewise.
60563         * lib/strtoul.c: Likewise.
60564         * lib/strtoull.c: Likewise.
60565         * lib/sysexits.in.h: Likewise.
60566         * lib/tempname.c: Likewise.
60567         * lib/tempname.h: Likewise.
60568         * lib/timespec.h: Likewise.
60569         * lib/tls.c: Likewise.
60570         * lib/tls.h: Likewise.
60571         * lib/tmpdir.c: Likewise.
60572         * lib/tmpdir.h: Likewise.
60573         * lib/tmpfile-safer.c: Likewise.
60574         * lib/tmpfile.c: Likewise.
60575         * lib/trigl.c: Likewise.
60576         * lib/trigl.h: Likewise.
60577         * lib/trim.c: Likewise.
60578         * lib/trim.h: Likewise.
60579         * lib/trunc.c: Likewise.
60580         * lib/truncf.c: Likewise.
60581         * lib/truncl.c: Likewise.
60582         * lib/tsearch.c: Likewise.
60583         * lib/unicodeio.c: Likewise.
60584         * lib/unicodeio.h: Likewise.
60585         * lib/unistd--.h: Likewise.
60586         * lib/unistd-safer.h: Likewise.
60587         * lib/unistdio/ulc-fprintf.c: Likewise.
60588         * lib/unistdio/ulc-vfprintf.c: Likewise.
60589         * lib/unlinkdir.c: Likewise.
60590         * lib/unlinkdir.h: Likewise.
60591         * lib/unlocked-io.h: Likewise.
60592         * lib/unsetenv.c: Likewise.
60593         * lib/userspec.c: Likewise.
60594         * lib/utime.c: Likewise.
60595         * lib/utimecmp.c: Likewise.
60596         * lib/utimecmp.h: Likewise.
60597         * lib/utimens.c: Likewise.
60598         * lib/verify.h: Likewise.
60599         * lib/verror.c: Likewise.
60600         * lib/verror.h: Likewise.
60601         * lib/version-etc-fsf.c: Likewise.
60602         * lib/version-etc.c: Likewise.
60603         * lib/version-etc.h: Likewise.
60604         * lib/vfprintf.c: Likewise.
60605         * lib/vprintf.c: Likewise.
60606         * lib/vsprintf.c: Likewise.
60607         * lib/w32spawn.h: Likewise.
60608         * lib/wait-process.c: Likewise.
60609         * lib/wait-process.h: Likewise.
60610         * lib/wcwidth.c: Likewise.
60611         * lib/write-any-file.c: Likewise.
60612         * lib/xalloc-die.c: Likewise.
60613         * lib/xalloc.h: Likewise.
60614         * lib/xasprintf.c: Likewise.
60615         * lib/xgetcwd.c: Likewise.
60616         * lib/xgetcwd.h: Likewise.
60617         * lib/xgetdomainname.c: Likewise.
60618         * lib/xgetdomainname.h: Likewise.
60619         * lib/xgethostname.c: Likewise.
60620         * lib/xmalloc.c: Likewise.
60621         * lib/xmalloca.c: Likewise.
60622         * lib/xmalloca.h: Likewise.
60623         * lib/xmemcoll.c: Likewise.
60624         * lib/xnanosleep.c: Likewise.
60625         * lib/xreadlink.c: Likewise.
60626         * lib/xreadlink.h: Likewise.
60627         * lib/xsetenv.c: Likewise.
60628         * lib/xsetenv.h: Likewise.
60629         * lib/xstriconv.c: Likewise.
60630         * lib/xstriconv.h: Likewise.
60631         * lib/xstrndup.c: Likewise.
60632         * lib/xstrndup.h: Likewise.
60633         * lib/xstrtod.c: Likewise.
60634         * lib/xstrtod.h: Likewise.
60635         * lib/xstrtol-error.c: Likewise.
60636         * lib/xstrtol.c: Likewise.
60637         * lib/xstrtol.h: Likewise.
60638         * lib/xtime.h: Likewise.
60639         * lib/xvasprintf.c: Likewise.
60640         * lib/xvasprintf.h: Likewise.
60641         * lib/yesno.c: Likewise.
60642         * lib/yesno.h: Likewise.
60643         * posix-modules: Likewise.
60644         * tests/test-alloca-opt.c: Likewise.
60645         * tests/test-arcfour.c: Likewise.
60646         * tests/test-arctwo.c: Likewise.
60647         * tests/test-argmatch.c: Likewise.
60648         * tests/test-argp-2.sh: Likewise.
60649         * tests/test-argp.c: Likewise.
60650         * tests/test-arpa_inet.c: Likewise.
60651         * tests/test-array_list.c: Likewise.
60652         * tests/test-array_oset.c: Likewise.
60653         * tests/test-atexit.c: Likewise.
60654         * tests/test-avltree_list.c: Likewise.
60655         * tests/test-avltree_oset.c: Likewise.
60656         * tests/test-avltreehash_list.c: Likewise.
60657         * tests/test-base64.c: Likewise.
60658         * tests/test-binary-io.c: Likewise.
60659         * tests/test-byteswap.c: Likewise.
60660         * tests/test-c-ctype.c: Likewise.
60661         * tests/test-c-strcasecmp.c: Likewise.
60662         * tests/test-c-strcasestr.c: Likewise.
60663         * tests/test-c-strncasecmp.c: Likewise.
60664         * tests/test-c-strstr.c: Likewise.
60665         * tests/test-canonicalize-lgpl.c: Likewise.
60666         * tests/test-canonicalize.c: Likewise.
60667         * tests/test-carray_list.c: Likewise.
60668         * tests/test-ceilf.c: Likewise.
60669         * tests/test-ceill.c: Likewise.
60670         * tests/test-count-one-bits.c: Likewise.
60671         * tests/test-crc.c: Likewise.
60672         * tests/test-dirname.c: Likewise.
60673         * tests/test-fbufmode.c: Likewise.
60674         * tests/test-fcntl.c: Likewise.
60675         * tests/test-fflush.c: Likewise.
60676         * tests/test-floorf.c: Likewise.
60677         * tests/test-floorl.c: Likewise.
60678         * tests/test-fopen.c: Likewise.
60679         * tests/test-fprintf-posix.c: Likewise.
60680         * tests/test-fprintf-posix.h: Likewise.
60681         * tests/test-fpurge.c: Likewise.
60682         * tests/test-freadable.c: Likewise.
60683         * tests/test-freadahead.c: Likewise.
60684         * tests/test-freading.c: Likewise.
60685         * tests/test-freopen.c: Likewise.
60686         * tests/test-frexp.c: Likewise.
60687         * tests/test-frexpl.c: Likewise.
60688         * tests/test-fseek.c: Likewise.
60689         * tests/test-fseeko.c: Likewise.
60690         * tests/test-fseterr.c: Likewise.
60691         * tests/test-fstrcmp.c: Likewise.
60692         * tests/test-ftell.c: Likewise.
60693         * tests/test-ftello.c: Likewise.
60694         * tests/test-fwritable.c: Likewise.
60695         * tests/test-fwriting.c: Likewise.
60696         * tests/test-getaddrinfo.c: Likewise.
60697         * tests/test-getpass.c: Likewise.
60698         * tests/test-gettimeofday.c: Likewise.
60699         * tests/test-hmac-md5.c: Likewise.
60700         * tests/test-hmac-sha1.c: Likewise.
60701         * tests/test-iconv.c: Likewise.
60702         * tests/test-iconvme.c: Likewise.
60703         * tests/test-inttypes.c: Likewise.
60704         * tests/test-isnan.c: Likewise.
60705         * tests/test-isnanf.c: Likewise.
60706         * tests/test-isnanl-nolibm.c: Likewise.
60707         * tests/test-isnanl.c: Likewise.
60708         * tests/test-isnanl.h: Likewise.
60709         * tests/test-ldexpl.c: Likewise.
60710         * tests/test-linked_list.c: Likewise.
60711         * tests/test-linkedhash_list.c: Likewise.
60712         * tests/test-locale.c: Likewise.
60713         * tests/test-localename.c: Likewise.
60714         * tests/test-lock.c: Likewise.
60715         * tests/test-lseek.c: Likewise.
60716         * tests/test-malloca.c: Likewise.
60717         * tests/test-math.c: Likewise.
60718         * tests/test-mbscasecmp.c: Likewise.
60719         * tests/test-mbscasestr1.c: Likewise.
60720         * tests/test-mbscasestr2.c: Likewise.
60721         * tests/test-mbscasestr3.c: Likewise.
60722         * tests/test-mbscasestr4.c: Likewise.
60723         * tests/test-mbschr.c: Likewise.
60724         * tests/test-mbscspn.c: Likewise.
60725         * tests/test-mbsncasecmp.c: Likewise.
60726         * tests/test-mbspbrk.c: Likewise.
60727         * tests/test-mbspcasecmp.c: Likewise.
60728         * tests/test-mbsrchr.c: Likewise.
60729         * tests/test-mbsspn.c: Likewise.
60730         * tests/test-mbsstr1.c: Likewise.
60731         * tests/test-mbsstr2.c: Likewise.
60732         * tests/test-mbsstr3.c: Likewise.
60733         * tests/test-md5.c: Likewise.
60734         * tests/test-memmem.c: Likewise.
60735         * tests/test-netinet_in.c: Likewise.
60736         * tests/test-open.c: Likewise.
60737         * tests/test-printf-frexp.c: Likewise.
60738         * tests/test-printf-frexpl.c: Likewise.
60739         * tests/test-printf-posix.c: Likewise.
60740         * tests/test-printf-posix.h: Likewise.
60741         * tests/test-rbtree_list.c: Likewise.
60742         * tests/test-rbtree_oset.c: Likewise.
60743         * tests/test-rbtreehash_list.c: Likewise.
60744         * tests/test-read-file.c: Likewise.
60745         * tests/test-rijndael.c: Likewise.
60746         * tests/test-search.c: Likewise.
60747         * tests/test-signbit.c: Likewise.
60748         * tests/test-sleep.c: Likewise.
60749         * tests/test-snprintf-posix.c: Likewise.
60750         * tests/test-snprintf-posix.h: Likewise.
60751         * tests/test-snprintf.c: Likewise.
60752         * tests/test-sprintf-posix.c: Likewise.
60753         * tests/test-sprintf-posix.h: Likewise.
60754         * tests/test-stat-time.c: Likewise.
60755         * tests/test-stdbool.c: Likewise.
60756         * tests/test-stdint.c: Likewise.
60757         * tests/test-stdio.c: Likewise.
60758         * tests/test-stdlib.c: Likewise.
60759         * tests/test-stpncpy.c: Likewise.
60760         * tests/test-strcasestr.c: Likewise.
60761         * tests/test-striconv.c: Likewise.
60762         * tests/test-striconveh.c: Likewise.
60763         * tests/test-striconveha.c: Likewise.
60764         * tests/test-string.c: Likewise.
60765         * tests/test-sys_select.c: Likewise.
60766         * tests/test-sys_socket.c: Likewise.
60767         * tests/test-sys_stat.c: Likewise.
60768         * tests/test-sys_time.c: Likewise.
60769         * tests/test-sysexits.c: Likewise.
60770         * tests/test-time.c: Likewise.
60771         * tests/test-tls.c: Likewise.
60772         * tests/test-trunc.c: Likewise.
60773         * tests/test-truncf.c: Likewise.
60774         * tests/test-truncl.c: Likewise.
60775         * tests/test-unistd.c: Likewise.
60776         * tests/test-vasnprintf-posix.c: Likewise.
60777         * tests/test-vasnprintf-posix2.c: Likewise.
60778         * tests/test-vasnprintf.c: Likewise.
60779         * tests/test-vasprintf-posix.c: Likewise.
60780         * tests/test-vasprintf.c: Likewise.
60781         * tests/test-verify.c: Likewise.
60782         * tests/test-vfprintf-posix.c: Likewise.
60783         * tests/test-vprintf-posix.c: Likewise.
60784         * tests/test-vsnprintf-posix.c: Likewise.
60785         * tests/test-vsnprintf.c: Likewise.
60786         * tests/test-vsprintf-posix.c: Likewise.
60787         * tests/test-wchar.c: Likewise.
60788         * tests/test-wctype.c: Likewise.
60789         * tests/test-wcwidth.c: Likewise.
60790         * tests/test-xstrtol.c: Likewise.
60791         * tests/test-xvasprintf.c: Likewise.
60792         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
60793         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
60794         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
60795         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
60796         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
60797         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
60798         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
60799         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
60800         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
60801         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
60802         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
60803         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
60804         * tests/uniname/test-uninames.c: Likewise.
60805         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
60806         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
60807         * tests/unistdio/test-u16-printf1.h: Likewise.
60808         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
60809         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
60810         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
60811         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
60812         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
60813         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
60814         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
60815         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
60816         * tests/unistdio/test-u32-printf1.h: Likewise.
60817         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
60818         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
60819         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
60820         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
60821         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
60822         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
60823         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
60824         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
60825         * tests/unistdio/test-u8-printf1.h: Likewise.
60826         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
60827         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
60828         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
60829         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
60830         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
60831         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
60832         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
60833         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
60834         * tests/unistdio/test-ulc-printf1.h: Likewise.
60835         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
60836         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
60837         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
60838         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
60839         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
60840         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
60841         * tests/uniwidth/test-u16-strwidth.c: Likewise.
60842         * tests/uniwidth/test-u16-width.c: Likewise.
60843         * tests/uniwidth/test-u32-strwidth.c: Likewise.
60844         * tests/uniwidth/test-u32-width.c: Likewise.
60845         * tests/uniwidth/test-u8-strwidth.c: Likewise.
60846         * tests/uniwidth/test-u8-width.c: Likewise.
60847         * tests/uniwidth/test-uc_width.c: Likewise.
60848         * config/srclist-update: Likewise.
60849         (fixlicense): Update to GPLv3+.
60850
60851         Change copyright notice from LGPLv2.1+ to LGPLv3+.
60852         * tests/test-tsearch.c: Change copyright notice.
60853
60854         Change copyright notice from LGPLv2.0+ to LGPLv3+.
60855         * lib/c-strcaseeq.h: Change copyright notice.
60856         * lib/streq.h: Likewise.
60857         * lib/uniconv.h: Likewise.
60858         * lib/uniconv/u-conv-from-enc.h: Likewise.
60859         * lib/uniconv/u-conv-to-enc.h: Likewise.
60860         * lib/uniconv/u-strconv-from-enc.h: Likewise.
60861         * lib/uniconv/u-strconv-to-enc.h: Likewise.
60862         * lib/uniconv/u16-conv-from-enc.c: Likewise.
60863         * lib/uniconv/u16-conv-to-enc.c: Likewise.
60864         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
60865         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
60866         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
60867         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
60868         * lib/uniconv/u32-conv-from-enc.c: Likewise.
60869         * lib/uniconv/u32-conv-to-enc.c: Likewise.
60870         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
60871         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
60872         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
60873         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
60874         * lib/uniconv/u8-conv-from-enc.c: Likewise.
60875         * lib/uniconv/u8-conv-to-enc.c: Likewise.
60876         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
60877         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
60878         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
60879         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
60880         * lib/uniname.h: Likewise.
60881         * lib/uniname/uniname.c: Likewise.
60882         * lib/unistdio.h: Likewise.
60883         * lib/unistdio/u-asnprintf.h: Likewise.
60884         * lib/unistdio/u-asprintf.h: Likewise.
60885         * lib/unistdio/u-printf-args.c: Likewise.
60886         * lib/unistdio/u-printf-args.h: Likewise.
60887         * lib/unistdio/u-printf-parse.h: Likewise.
60888         * lib/unistdio/u-snprintf.h: Likewise.
60889         * lib/unistdio/u-sprintf.h: Likewise.
60890         * lib/unistdio/u-vasprintf.h: Likewise.
60891         * lib/unistdio/u-vsnprintf.h: Likewise.
60892         * lib/unistdio/u-vsprintf.h: Likewise.
60893         * lib/unistdio/u16-asnprintf.c: Likewise.
60894         * lib/unistdio/u16-asprintf.c: Likewise.
60895         * lib/unistdio/u16-printf-parse.c: Likewise.
60896         * lib/unistdio/u16-snprintf.c: Likewise.
60897         * lib/unistdio/u16-sprintf.c: Likewise.
60898         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
60899         * lib/unistdio/u16-u16-asprintf.c: Likewise.
60900         * lib/unistdio/u16-u16-snprintf.c: Likewise.
60901         * lib/unistdio/u16-u16-sprintf.c: Likewise.
60902         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
60903         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
60904         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
60905         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
60906         * lib/unistdio/u16-vasnprintf.c: Likewise.
60907         * lib/unistdio/u16-vasprintf.c: Likewise.
60908         * lib/unistdio/u16-vsnprintf.c: Likewise.
60909         * lib/unistdio/u16-vsprintf.c: Likewise.
60910         * lib/unistdio/u32-asnprintf.c: Likewise.
60911         * lib/unistdio/u32-asprintf.c: Likewise.
60912         * lib/unistdio/u32-printf-parse.c: Likewise.
60913         * lib/unistdio/u32-snprintf.c: Likewise.
60914         * lib/unistdio/u32-sprintf.c: Likewise.
60915         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
60916         * lib/unistdio/u32-u32-asprintf.c: Likewise.
60917         * lib/unistdio/u32-u32-snprintf.c: Likewise.
60918         * lib/unistdio/u32-u32-sprintf.c: Likewise.
60919         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
60920         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
60921         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
60922         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
60923         * lib/unistdio/u32-vasnprintf.c: Likewise.
60924         * lib/unistdio/u32-vasprintf.c: Likewise.
60925         * lib/unistdio/u32-vsnprintf.c: Likewise.
60926         * lib/unistdio/u32-vsprintf.c: Likewise.
60927         * lib/unistdio/u8-asnprintf.c: Likewise.
60928         * lib/unistdio/u8-asprintf.c: Likewise.
60929         * lib/unistdio/u8-printf-parse.c: Likewise.
60930         * lib/unistdio/u8-snprintf.c: Likewise.
60931         * lib/unistdio/u8-sprintf.c: Likewise.
60932         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
60933         * lib/unistdio/u8-u8-asprintf.c: Likewise.
60934         * lib/unistdio/u8-u8-snprintf.c: Likewise.
60935         * lib/unistdio/u8-u8-sprintf.c: Likewise.
60936         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
60937         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
60938         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
60939         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
60940         * lib/unistdio/u8-vasnprintf.c: Likewise.
60941         * lib/unistdio/u8-vasprintf.c: Likewise.
60942         * lib/unistdio/u8-vsnprintf.c: Likewise.
60943         * lib/unistdio/u8-vsprintf.c: Likewise.
60944         * lib/unistdio/ulc-asnprintf.c: Likewise.
60945         * lib/unistdio/ulc-asprintf.c: Likewise.
60946         * lib/unistdio/ulc-printf-parse.c: Likewise.
60947         * lib/unistdio/ulc-snprintf.c: Likewise.
60948         * lib/unistdio/ulc-sprintf.c: Likewise.
60949         * lib/unistdio/ulc-vasnprintf.c: Likewise.
60950         * lib/unistdio/ulc-vasprintf.c: Likewise.
60951         * lib/unistdio/ulc-vsnprintf.c: Likewise.
60952         * lib/unistdio/ulc-vsprintf.c: Likewise.
60953         * lib/unistr.h: Likewise.
60954         * lib/unistr/u-cpy-alloc.h: Likewise.
60955         * lib/unistr/u-cpy.h: Likewise.
60956         * lib/unistr/u-endswith.h: Likewise.
60957         * lib/unistr/u-move.h: Likewise.
60958         * lib/unistr/u-set.h: Likewise.
60959         * lib/unistr/u-startswith.h: Likewise.
60960         * lib/unistr/u-stpcpy.h: Likewise.
60961         * lib/unistr/u-stpncpy.h: Likewise.
60962         * lib/unistr/u-strcat.h: Likewise.
60963         * lib/unistr/u-strcpy.h: Likewise.
60964         * lib/unistr/u-strcspn.h: Likewise.
60965         * lib/unistr/u-strdup.h: Likewise.
60966         * lib/unistr/u-strlen.h: Likewise.
60967         * lib/unistr/u-strncat.h: Likewise.
60968         * lib/unistr/u-strncpy.h: Likewise.
60969         * lib/unistr/u-strnlen.h: Likewise.
60970         * lib/unistr/u-strpbrk.h: Likewise.
60971         * lib/unistr/u-strspn.h: Likewise.
60972         * lib/unistr/u-strstr.h: Likewise.
60973         * lib/unistr/u-strtok.h: Likewise.
60974         * lib/unistr/u16-check.c: Likewise.
60975         * lib/unistr/u16-chr.c: Likewise.
60976         * lib/unistr/u16-cmp.c: Likewise.
60977         * lib/unistr/u16-cpy-alloc.c: Likewise.
60978         * lib/unistr/u16-cpy.c: Likewise.
60979         * lib/unistr/u16-endswith.c: Likewise.
60980         * lib/unistr/u16-mblen.c: Likewise.
60981         * lib/unistr/u16-mbsnlen.c: Likewise.
60982         * lib/unistr/u16-mbtouc-aux.c: Likewise.
60983         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
60984         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
60985         * lib/unistr/u16-mbtouc.c: Likewise.
60986         * lib/unistr/u16-mbtoucr.c: Likewise.
60987         * lib/unistr/u16-move.c: Likewise.
60988         * lib/unistr/u16-next.c: Likewise.
60989         * lib/unistr/u16-prev.c: Likewise.
60990         * lib/unistr/u16-set.c: Likewise.
60991         * lib/unistr/u16-startswith.c: Likewise.
60992         * lib/unistr/u16-stpcpy.c: Likewise.
60993         * lib/unistr/u16-stpncpy.c: Likewise.
60994         * lib/unistr/u16-strcat.c: Likewise.
60995         * lib/unistr/u16-strchr.c: Likewise.
60996         * lib/unistr/u16-strcmp.c: Likewise.
60997         * lib/unistr/u16-strcpy.c: Likewise.
60998         * lib/unistr/u16-strcspn.c: Likewise.
60999         * lib/unistr/u16-strdup.c: Likewise.
61000         * lib/unistr/u16-strlen.c: Likewise.
61001         * lib/unistr/u16-strmblen.c: Likewise.
61002         * lib/unistr/u16-strmbtouc.c: Likewise.
61003         * lib/unistr/u16-strncat.c: Likewise.
61004         * lib/unistr/u16-strncmp.c: Likewise.
61005         * lib/unistr/u16-strncpy.c: Likewise.
61006         * lib/unistr/u16-strnlen.c: Likewise.
61007         * lib/unistr/u16-strpbrk.c: Likewise.
61008         * lib/unistr/u16-strrchr.c: Likewise.
61009         * lib/unistr/u16-strspn.c: Likewise.
61010         * lib/unistr/u16-strstr.c: Likewise.
61011         * lib/unistr/u16-strtok.c: Likewise.
61012         * lib/unistr/u16-to-u32.c: Likewise.
61013         * lib/unistr/u16-to-u8.c: Likewise.
61014         * lib/unistr/u16-uctomb-aux.c: Likewise.
61015         * lib/unistr/u16-uctomb.c: Likewise.
61016         * lib/unistr/u32-check.c: Likewise.
61017         * lib/unistr/u32-chr.c: Likewise.
61018         * lib/unistr/u32-cmp.c: Likewise.
61019         * lib/unistr/u32-cpy-alloc.c: Likewise.
61020         * lib/unistr/u32-cpy.c: Likewise.
61021         * lib/unistr/u32-endswith.c: Likewise.
61022         * lib/unistr/u32-mblen.c: Likewise.
61023         * lib/unistr/u32-mbsnlen.c: Likewise.
61024         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
61025         * lib/unistr/u32-mbtouc.c: Likewise.
61026         * lib/unistr/u32-mbtoucr.c: Likewise.
61027         * lib/unistr/u32-move.c: Likewise.
61028         * lib/unistr/u32-next.c: Likewise.
61029         * lib/unistr/u32-prev.c: Likewise.
61030         * lib/unistr/u32-set.c: Likewise.
61031         * lib/unistr/u32-startswith.c: Likewise.
61032         * lib/unistr/u32-stpcpy.c: Likewise.
61033         * lib/unistr/u32-stpncpy.c: Likewise.
61034         * lib/unistr/u32-strcat.c: Likewise.
61035         * lib/unistr/u32-strchr.c: Likewise.
61036         * lib/unistr/u32-strcmp.c: Likewise.
61037         * lib/unistr/u32-strcpy.c: Likewise.
61038         * lib/unistr/u32-strcspn.c: Likewise.
61039         * lib/unistr/u32-strdup.c: Likewise.
61040         * lib/unistr/u32-strlen.c: Likewise.
61041         * lib/unistr/u32-strmblen.c: Likewise.
61042         * lib/unistr/u32-strmbtouc.c: Likewise.
61043         * lib/unistr/u32-strncat.c: Likewise.
61044         * lib/unistr/u32-strncmp.c: Likewise.
61045         * lib/unistr/u32-strncpy.c: Likewise.
61046         * lib/unistr/u32-strnlen.c: Likewise.
61047         * lib/unistr/u32-strpbrk.c: Likewise.
61048         * lib/unistr/u32-strrchr.c: Likewise.
61049         * lib/unistr/u32-strspn.c: Likewise.
61050         * lib/unistr/u32-strstr.c: Likewise.
61051         * lib/unistr/u32-strtok.c: Likewise.
61052         * lib/unistr/u32-to-u16.c: Likewise.
61053         * lib/unistr/u32-to-u8.c: Likewise.
61054         * lib/unistr/u32-uctomb.c: Likewise.
61055         * lib/unistr/u8-check.c: Likewise.
61056         * lib/unistr/u8-chr.c: Likewise.
61057         * lib/unistr/u8-cmp.c: Likewise.
61058         * lib/unistr/u8-cpy-alloc.c: Likewise.
61059         * lib/unistr/u8-cpy.c: Likewise.
61060         * lib/unistr/u8-endswith.c: Likewise.
61061         * lib/unistr/u8-mblen.c: Likewise.
61062         * lib/unistr/u8-mbsnlen.c: Likewise.
61063         * lib/unistr/u8-mbtouc-aux.c: Likewise.
61064         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
61065         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
61066         * lib/unistr/u8-mbtouc.c: Likewise.
61067         * lib/unistr/u8-mbtoucr.c: Likewise.
61068         * lib/unistr/u8-move.c: Likewise.
61069         * lib/unistr/u8-next.c: Likewise.
61070         * lib/unistr/u8-prev.c: Likewise.
61071         * lib/unistr/u8-set.c: Likewise.
61072         * lib/unistr/u8-startswith.c: Likewise.
61073         * lib/unistr/u8-stpcpy.c: Likewise.
61074         * lib/unistr/u8-stpncpy.c: Likewise.
61075         * lib/unistr/u8-strcat.c: Likewise.
61076         * lib/unistr/u8-strchr.c: Likewise.
61077         * lib/unistr/u8-strcmp.c: Likewise.
61078         * lib/unistr/u8-strcpy.c: Likewise.
61079         * lib/unistr/u8-strcspn.c: Likewise.
61080         * lib/unistr/u8-strdup.c: Likewise.
61081         * lib/unistr/u8-strlen.c: Likewise.
61082         * lib/unistr/u8-strmblen.c: Likewise.
61083         * lib/unistr/u8-strmbtouc.c: Likewise.
61084         * lib/unistr/u8-strncat.c: Likewise.
61085         * lib/unistr/u8-strncmp.c: Likewise.
61086         * lib/unistr/u8-strncpy.c: Likewise.
61087         * lib/unistr/u8-strnlen.c: Likewise.
61088         * lib/unistr/u8-strpbrk.c: Likewise.
61089         * lib/unistr/u8-strrchr.c: Likewise.
61090         * lib/unistr/u8-strspn.c: Likewise.
61091         * lib/unistr/u8-strstr.c: Likewise.
61092         * lib/unistr/u8-strtok.c: Likewise.
61093         * lib/unistr/u8-to-u16.c: Likewise.
61094         * lib/unistr/u8-to-u32.c: Likewise.
61095         * lib/unistr/u8-uctomb-aux.c: Likewise.
61096         * lib/unistr/u8-uctomb.c: Likewise.
61097         * lib/unitypes.h: Likewise.
61098         * lib/uniwidth.h: Likewise.
61099         * lib/uniwidth/cjk.h: Likewise.
61100         * lib/uniwidth/u16-strwidth.c: Likewise.
61101         * lib/uniwidth/u16-width.c: Likewise.
61102         * lib/uniwidth/u32-strwidth.c: Likewise.
61103         * lib/uniwidth/u32-width.c: Likewise.
61104         * lib/uniwidth/u8-strwidth.c: Likewise.
61105         * lib/uniwidth/u8-width.c: Likewise.
61106         * lib/uniwidth/width.c: Likewise.
61107
61108 2007-10-07  Bruno Haible  <bruno@clisp.org>
61109
61110         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
61111         The file is still under LGPL (see modules/inttypes).
61112
61113 2007-10-06  Bruno Haible  <bruno@clisp.org>
61114
61115         * modules/trunc (Dependencies): Add 'extensions'.
61116         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
61117         Reported by Ben Pfaff <blp@gnu.org>.
61118
61119 2007-10-06  Bruno Haible  <bruno@clisp.org>
61120
61121         * modules/freopen-tests: New file.
61122         * tests/test-freopen.c: New file.
61123
61124         * modules/fopen-tests: New file.
61125         * tests/test-fopen.c: New file.
61126
61127         * modules/fopen: New file.
61128         * lib/fopen.c: New file.
61129         * m4/fopen.m4: New file.
61130         * modules/freopen: New file.
61131         * lib/freopen.c: New file.
61132         * m4/freopen.m4: New file.
61133         * lib/stdio.in.h (fopen, freopen): New declarations.
61134         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
61135         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
61136         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
61137         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
61138         * doc/functions/fopen.texi: Mention the 'fopen' module.
61139         * doc/functions/freopen.texi: Mention the 'freopen' module.
61140
61141 2007-10-06  Bruno Haible  <bruno@clisp.org>
61142
61143         * modules/open-tests: New file.
61144         * tests/test-open.c: New file.
61145
61146         * modules/open: New file.
61147         * lib/open.c: New file.
61148         * m4/open.m4: New file.
61149         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
61150         lib/open.c does.
61151         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
61152         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
61153         macros.
61154         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
61155         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
61156         REPLACE_OPEN.
61157         * doc/functions/open.texi: Mention the 'open' module.
61158
61159 2007-10-04  Bruno Haible  <bruno@clisp.org>
61160
61161         * modules/ceill-tests: New file.
61162         * tests/test-ceill.c: New file.
61163
61164         * modules/ceill: New file.
61165         * lib/ceill.c: Replace entire file.
61166         * m4/ceill.m4: New file.
61167         * lib/math.in.h (ceill): Replace declaration.
61168         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
61169         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
61170         * doc/functions/ceill.texi: Mention the 'ceill' module.
61171         * modules/mathl (Files): Remove lib/ceill.c.
61172         (Depends-on): Add ceill.
61173
61174 2007-10-04  Bruno Haible  <bruno@clisp.org>
61175
61176         * modules/ceilf-tests: New file.
61177         * tests/test-ceilf.c: New file.
61178
61179         * modules/ceilf: New file.
61180         * lib/ceil.c: New file.
61181         * lib/ceilf.c: New file.
61182         * m4/ceilf.m4: New file.
61183         * lib/math.in.h (ceilf): New declaration.
61184         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
61185         HAVE_DECL_CEILF.
61186         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
61187         HAVE_DECL_CEILF.
61188         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
61189
61190 2007-10-04  Bruno Haible  <bruno@clisp.org>
61191
61192         * modules/floorl-tests: New file.
61193         * tests/test-floorl.c: New file.
61194
61195         * modules/floorl: New file.
61196         * lib/floorl.c: Replace entire file.
61197         * m4/floorl.m4: New file.
61198         * lib/math.in.h (floorl): Replace declaration.
61199         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
61200         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
61201         * doc/functions/floorl.texi: Mention the 'floorl' module.
61202         * modules/mathl (Files): Remove lib/floorl.c.
61203         (Depends-on): Add floorl.
61204
61205 2007-10-04  Bruno Haible  <bruno@clisp.org>
61206
61207         * modules/floorf-tests: New file.
61208         * tests/test-floorf.c: New file.
61209
61210         * modules/floorf: New file.
61211         * lib/floor.c: New file.
61212         * lib/floorf.c: New file.
61213         * m4/floorf.m4: New file.
61214         * lib/math.in.h (floorf): New declaration.
61215         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
61216         HAVE_DECL_FLOORF.
61217         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
61218         HAVE_DECL_FLOORF.
61219         * doc/functions/floorf.texi: Mention the 'floorf' module.
61220
61221 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
61222             Bruno Haible  <bruno@clisp.org>
61223
61224         Advertise for the Git server instead of the CVS server.
61225         * doc/gnulib-intro.texi (Steady Development): Mention the Git
61226         repository instead of the CVS one.
61227         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
61228         about all VCS systems generically.
61229         * doc/gnulib.texi (Introduction): Capitalize `Git'.
61230
61231 2007-10-04  Bruno Haible  <bruno@clisp.org>
61232
61233         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
61234         means.
61235         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
61236
61237 2007-10-04  Bruno Haible  <bruno@clisp.org>
61238
61239         * modules/truncl-tests: New file.
61240         * tests/test-truncl.c: New file.
61241
61242         * modules/truncl: New file.
61243         * lib/truncl.c: New file.
61244         * m4/truncl.m4: New file.
61245         * lib/math.in.h (truncl): New declaration.
61246         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
61247         HAVE_DECL_TRUNCL.
61248         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
61249         HAVE_DECL_TRUNCL.
61250         * doc/functions/truncl.texi: Mention the 'truncl' module.
61251
61252 2007-10-04  Bruno Haible  <bruno@clisp.org>
61253
61254         * modules/truncf-tests: New file.
61255         * tests/test-truncf.c: New file.
61256
61257         * modules/truncf: New file.
61258         * lib/trunc.c: Make paramerizable through USE_* macros.
61259         * lib/truncf.c: New file.
61260         * m4/truncf.m4: New file.
61261         * lib/math.in.h (truncf): New declaration.
61262         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
61263         HAVE_DECL_TRUNCF.
61264         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
61265         HAVE_DECL_TRUNCF.
61266         * doc/functions/truncf.texi: Mention the 'truncf' module.
61267
61268 2007-10-03  Bruno Haible  <bruno@clisp.org>
61269
61270         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
61271         augmentation also for tests modules.
61272         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
61273         * modules/atexit-tests (Makefile.am): Likewise.
61274         * modules/binary-io-tests (Makefile.am): Likewise.
61275         * modules/c-strcase-tests (Makefile.am): Likewise.
61276         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
61277         * modules/canonicalize-tests (Makefile.am): Likewise.
61278         * modules/closein-tests (Makefile.am): Likewise.
61279         * modules/fprintf-posix-tests (Makefile.am): Likewise.
61280         * modules/freadahead-tests (Makefile.am): Likewise.
61281         * modules/fseek-tests (Makefile.am): Likewise.
61282         * modules/fseeko-tests (Makefile.am): Likewise.
61283         * modules/ftell-tests (Makefile.am): Likewise.
61284         * modules/ftello-tests (Makefile.am): Likewise.
61285         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
61286         * modules/isnanl-tests (Makefile.am): Likewise.
61287         * modules/lseek-tests (Makefile.am): Likewise.
61288         * modules/mbscasecmp-tests (Makefile.am): Likewise.
61289         * modules/mbscasestr-tests (Makefile.am): Likewise.
61290         * modules/mbschr-tests (Makefile.am): Likewise.
61291         * modules/mbscspn-tests (Makefile.am): Likewise.
61292         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
61293         * modules/mbspbrk-tests (Makefile.am): Likewise.
61294         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
61295         * modules/mbsrchr-tests (Makefile.am): Likewise.
61296         * modules/mbsspn-tests (Makefile.am): Likewise.
61297         * modules/mbsstr-tests (Makefile.am): Likewise.
61298         * modules/printf-posix-tests (Makefile.am): Likewise.
61299         * modules/snprintf-posix-tests (Makefile.am): Likewise.
61300         * modules/sprintf-posix-tests (Makefile.am): Likewise.
61301         * modules/tsearch-tests (Makefile.am): Likewise.
61302         * modules/uniname/uniname-tests (Makefile.am): Likewise.
61303         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
61304         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
61305         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
61306         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
61307         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
61308         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
61309         * modules/vprintf-posix-tests (Makefile.am): Likewise.
61310         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
61311         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
61312         * modules/xstrtoimax-tests (Makefile.am): Likewise.
61313         * modules/xstrtol-tests (Makefile.am): Likewise.
61314         * modules/xstrtoumax-tests (Makefile.am): Likewise.
61315         * modules/yesno-tests (Makefile.am): Likewise.
61316
61317 2007-10-03  Bruno Haible  <bruno@clisp.org>
61318
61319         * modules/trunc-tests: New file.
61320         * tests/test-trunc.c: New file.
61321
61322         * modules/trunc: New file.
61323         * lib/trunc.c: New file.
61324         * m4/trunc.m4: New file.
61325         * lib/math.in.h (trunc): New declaration.
61326         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
61327         HAVE_DECL_TRUNC.
61328         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
61329         HAVE_DECL_TRUNC.
61330         * doc/functions/trunc.texi: Mention the 'trunc' module.
61331
61332 2007-10-03  Bruno Haible  <bruno@clisp.org>
61333
61334         * tests/test-fpending.c: New file, mostly copied
61335         from coreutils/lib/t-fpending.c.
61336         * modules/fpending-tests: New file.
61337
61338 2007-10-03  Bruno Haible  <bruno@clisp.org>
61339
61340         Port the stdio extensions to QNX (untested).
61341         * lib/fseterr.c (fseterr): Add support for QNX.
61342         * lib/fbufmode.c (fbufmode): Likewise.
61343         * lib/freadable.c (freadable): Likewise.
61344         * lib/fwritable.c (fwritable): Likewise.
61345         * lib/freading.c (freading): Likewise.
61346         * lib/fwriting.c (fwriting): Likewise.
61347         * lib/freadahead.c (freadahed): Likewise.
61348         * lib/fpurge.c (fpurge): Likewise.
61349         * lib/fseeko.c (rpl_fseeko): Likewise.
61350
61351 2007-10-03  Bruno Haible  <bruno@clisp.org>
61352             Jim Meyering  <jim@meyering.net>
61353             Eric Blake  <ebb9@byu.net>
61354
61355         * doc/relocatable.texi: Use @command instead of @program.
61356
61357 2007-10-02  Jim Meyering  <jim@meyering.net>
61358
61359         Perform one more "_.h" -> ".in.h" substitution.
61360         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
61361         instead of unistd_.h here, too.
61362
61363 2007-10-01  Bruno Haible  <bruno@clisp.org>
61364
61365         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
61366         Needed for the alloca-opt module.
61367
61368 2007-09-30  Bruno Haible  <bruno@clisp.org>
61369
61370         * lib/alloca.in.h: Renamed from lib/alloca_.h.
61371         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
61372         alloca_.h.
61373         * lib/argz.in.h: Renamed from lib/argz_.h.
61374         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
61375         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
61376         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
61377         byteswap_.h.
61378         * lib/dirent.in.h: Renamed from lib/dirent_.h.
61379         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
61380         dirent_.h.
61381         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
61382         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
61383         fcntl_.h.
61384         * lib/float.in.h: Renamed from lib/float_.h.
61385         * modules/float (Files, Makefile.am): Use float.in.h instead of
61386         float_.h.
61387         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
61388         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
61389         fnmatch_.h.
61390         * lib/getopt.in.h: Renamed from lib/getopt_.h.
61391         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
61392         getopt_.h.
61393         * lib/glob.in.h: Renamed from lib/glob_.h.
61394         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
61395         * lib/iconv.in.h: Renamed from lib/iconv_.h.
61396         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
61397         iconv_.h.
61398         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
61399         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
61400         inttypes_.h.
61401         * lib/locale.in.h: Renamed from lib/locale_.h.
61402         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
61403         locale_.h.
61404         * lib/math.in.h: Renamed from lib/math_.h.
61405         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
61406         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
61407         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
61408         of netinet_in_.h. Add dependency.
61409         * lib/poll.in.h: Renamed from lib/poll_.h.
61410         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
61411         * lib/search.in.h: Renamed from lib/search_.h.
61412         * modules/search (Files, Makefile.am): Use search.in.h instead of
61413         search_.h.
61414         * lib/signal.in.h: Renamed from lib/signal_.h.
61415         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
61416         _signal.h.
61417         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
61418         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
61419         stdbool_.h.
61420         * lib/stdint.in.h: Renamed from lib/stdint_.h.
61421         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
61422         stdint_.h.
61423         * lib/stdio.in.h: Renamed from lib/stdio_.h.
61424         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
61425         stdio_.h.
61426         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
61427         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
61428         stdlib_.h.
61429         * lib/string.in.h: Renamed from lib/string_.h.
61430         * modules/string (Files, Makefile.am): Use string.in.h instead of
61431         string_.h.
61432         * doc/gnulib-tool.texi (Initial import): Update.
61433         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
61434         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
61435         of sys_select_.h. Add dependency.
61436         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
61437         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
61438         of sys_socket_.h.
61439         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
61440         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
61441         sys_stat_.h.
61442         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
61443         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
61444         sys_time_.h.
61445         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
61446         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
61447         sysexits_.h.
61448         * lib/time.in.h: Renamed from lib/time_.h.
61449         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
61450         * lib/unistd.in.h: Renamed from lib/unistd_.h.
61451         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
61452         unistd_.h.
61453         * lib/wchar.in.h: Renamed from lib/wchar_.h.
61454         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
61455         wchar_.h.
61456         * lib/wctype.in.h: Renamed from lib/wctype_.h.
61457         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
61458         wctype_.h.
61459         * build-aux/bootstrap (slurp): Update.
61460         * lib/.cppi-disable: Update.
61461
61462 2007-09-30  Bruno Haible  <bruno@clisp.org>
61463
61464         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
61465         Needed on BeOS.
61466
61467 2007-09-30  Bruno Haible  <bruno@clisp.org>
61468
61469         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
61470
61471 2007-09-29  Bruno Haible  <bruno@clisp.org>
61472
61473         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
61474
61475 2007-09-29  Bruno Haible  <bruno@clisp.org>
61476
61477         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
61478         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
61479         * build-aux/install-reloc: Compile also areadlink.c.
61480         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
61481
61482 2007-09-29  Bruno Haible  <bruno@clisp.org>
61483
61484         * gnulib-tool (func_emit_initmacro_done): Indentation.
61485
61486 2007-09-29  Bruno Haible  <bruno@clisp.org>
61487
61488         * README: Add CVS checkout update instructions.
61489         Info from Bob Proulx <bob@proulx.com>.
61490
61491 2007-09-28  Eric Blake  <ebb9@byu.net>
61492
61493         Provide move-if-change.
61494         * build-aux/move-if-change: New file, based on best practice
61495         rather than any canonical upstream location.
61496
61497 2007-09-28  Jim Meyering  <jim@meyering.net>
61498
61499         Fix canonicalize loop-detection corner case.
61500         Do not attempt to stat the symlink values stored via seen_triple.
61501         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
61502         on linux-2.6.18, (but not 2.6.22).
61503         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
61504         triple_compare.  The former compares dev,ino,filename, while the latter
61505         would actually stat dirname(filename) when dev and ino were equal.
61506         * lib/hash-triple.c: Install <string.h>.
61507         (STREQ): Define.
61508         (triple_compare_ino_str): New function.
61509         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
61510
61511 2007-09-28  Eric Blake  <ebb9@byu.net>
61512
61513         Enforce that AC_REPLACE_FUNCS files exist.
61514         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
61515         override check for typos.
61516
61517         Fix test-closein on Solaris 10.
61518         * tests/test-closein.c (main): Don't assume stdin can be inherited
61519         closed on all systems.
61520         * tests/test-closein.sh: Likewise.
61521         Reported by Piotr Tarnowski.
61522
61523 2007-09-28  Jim Meyering  <jim@meyering.net>
61524
61525         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
61526
61527 2007-09-27  Jim Meyering  <jim@meyering.net>
61528
61529         canonicalize: Avoid a false-positive cycle failure.
61530         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
61531         Sort.  Remove cycle-check.
61532         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
61533         not cycle-check.h.
61534         (seen_triple): New function.
61535         (canonicalize_filename_mode): Use it instead of cycle-check.
61536         * tests/test-canonicalize.c: Add a test for this bug.
61537         * tests/test-canonicalize.sh: Set up and run the test.
61538
61539         New module, file-set, from coreutils.
61540         * modules/file-set: Define it.
61541         * lib/file-set.c, lib/file-set.h: Implement.
61542
61543         New module, hash-triple, from coreutils.
61544         * modules/hash-triple: Define it.
61545         * lib/hash-triple.c, lib/hash-triple.h: Implement.
61546
61547 2007-09-25  Eric Blake  <ebb9@byu.net>
61548
61549         Fix strerror on Interix.
61550         * lib/string_.h (strerror): Declare replacement.
61551         * doc/functions/strerror.texi (strerror): Document the Interix
61552         shortcoming.
61553         * modules/string (Makefile.am): Support new hooks.
61554         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
61555         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
61556         gl_FUNC_STRERROR_SEPARATE.
61557         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
61558         * lib/strerror.c (rpl_strerror): Provide replacement.
61559         * modules/strerror (Depends-on): Add string.
61560         (configure.ac): Detect use of module.
61561         * tests/test-strerror.c: New file.
61562         * modules/strerror-tests: New test module.
61563         * modules/argp (Depends-on): Add strerror.
61564         * modules/error (Depends-on): Likewise.
61565         Reported by Martin Koeppe.
61566
61567 2007-09-24  Bruno Haible  <bruno@clisp.org>
61568
61569         * README: Update git instructions.
61570
61571 2007-09-24  Eric Blake  <ebb9@byu.net>
61572
61573         Revert fpending breakage from 2007-09-08.
61574         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
61575         __fpending.c.
61576
61577 2007-09-24  Jim Meyering  <jim@meyering.net>
61578
61579         filenamecat.c: Add a test.
61580         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
61581         showing how the function works when DIR is the empty string.
61582
61583 2007-09-21  Simon Josefsson  <simon@josefsson.org>
61584
61585         * tests/test-canonicalize.sh: Turn on executable bit.
61586
61587 2007-09-19  Eric Blake  <ebb9@byu.net>
61588
61589         * README: Update CVS instructions.
61590
61591 2007-09-18  Bruno Haible  <bruno@clisp.org>
61592
61593         * modules/areadlink: New file.
61594         * lib/areadlink.h (areadlink): New declaration.
61595         * lib/areadlink.c: New file, based on lib/xreadlink.c.
61596
61597 2007-09-17  Jim Meyering  <jim@meyering.net>
61598
61599         * lib/savewd.c (ESTALE) [!defined]: Define.
61600         Reported to be required on Interix by Martin Koeppe.
61601
61602 2007-09-17  Bruno Haible  <bruno@clisp.org>
61603
61604         * gnulib-tool (func_version): Use $version.
61605
61606 2007-09-16  Bruno Haible  <bruno@clisp.org>
61607
61608         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
61609         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
61610         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
61611         Reported by Greg Schafer <gschafer@zip.com.au>.
61612
61613 2007-09-15  Bruno Haible  <bruno@clisp.org>
61614
61615         * gnulib-tool (sed): Try a little harder to make bash understand the
61616         alias.
61617         Reported by Bruce Korb <bruce.korb@gmail.com>.
61618
61619 2007-09-13  Eric Blake  <ebb9@byu.net>
61620
61621         * ChangeLog: Remove conflict markers.
61622
61623 2007-09-13  Simon Josefsson  <simon@josefsson.org>
61624
61625         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
61626         Reported by Bruno Haible <bruno@clisp.org>.
61627
61628 2007-09-12  Bruno Haible  <bruno@clisp.org>
61629
61630         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
61631         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
61632         is not defined.
61633
61634 2007-09-12  Eric Blake  <ebb9@byu.net>
61635
61636         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
61637         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
61638         Autoconf definition.
61639         * modules/euidaccess (Depends-on): Add extensions, for
61640         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
61641         * modules/fnmatch (Depends-on): Likewise.
61642         * modules/getaddrinfo (Depends-on): Likewise.
61643         * modules/getdelim (Depends-on): Likewise.
61644         * modules/getline (Depends-on): Likewise.
61645         * modules/getsubopt (Depends-on): Likewise.
61646         * modules/gettext (Depends-on): Likewise.
61647         * modules/group-member (Depends-on): Likewise.
61648         * modules/mbchar (Depends-on): Likewise.
61649         * modules/memmem (Depends-on): Likewise.
61650         * modules/mempcpy (Depends-on): Likewise.
61651         * modules/memrchr (Depends-on): Likewise.
61652         * modules/pagealign_alloc (Depends-on): Likewise.
61653         * modules/readutmp (Depends-on): Likewise.
61654         * modules/stpcpy (Depends-on): Likewise.
61655         * modules/stpncpy (Depends-on): Likewise.
61656         * modules/strchrnul (Depends-on): Likewise.
61657         * modules/strndup (Depends-on): Likewise.
61658         * modules/strsep (Depends-on): Likewise.
61659         * modules/strverscmp (Depends-on): Likewise.
61660         * modules/vasprintf (Depends-on): Likewise.
61661         * modules/wcwidth (Depends-on): Likewise.
61662         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
61663         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
61664         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
61665         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
61666         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
61667         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
61668         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
61669         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
61670         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
61671         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
61672         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
61673         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
61674         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
61675         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
61676         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
61677         * m4/readutmp.m4 (gl_READUTMP): Likewise.
61678         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
61679         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
61680         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
61681         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
61682         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
61683         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
61684         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
61685         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
61686         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
61687         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61688         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
61689         so that lock.m4 can be used in gettext without extensions module.
61690
61691 2007-09-11  Bruno Haible  <bruno@clisp.org>
61692
61693         * m4/isc-posix.m4: Remove file.
61694         Suggested by Eric Blake.
61695
61696 2007-09-11  Eric Blake  <ebb9@byu.net>
61697
61698         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
61699
61700 2007-09-10  Bruno Haible  <bruno@clisp.org>
61701
61702         * posix-modules: Fix typo in error message.
61703         Reported by Matt <mkraai@beckman.com>.
61704
61705 2007-09-09  Bruno Haible  <bruno@clisp.org>
61706
61707         * doc/functions/getdelim.texi: Update list of platforms lacking the
61708         function.
61709         * doc/functions/getline.texi: Likewise.
61710
61711 2007-09-09  Jim Meyering  <jim@meyering.net>
61712
61713         * lib/hash.c (hash_initialize): Detect calloc failure.
61714         Reported by Bruno Haible.
61715
61716 2007-09-09  Bruno Haible  <bruno@clisp.org>
61717
61718         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
61719         malloc or realloc fails.
61720
61721 2007-09-09  Bruno Haible  <bruno@clisp.org>
61722
61723         * modules/getcwd (Depends-on): Add malloc-posix.
61724         * modules/glob (Depends-on): Likewise.
61725         * modules/putenv (Depends-on): Likewise.
61726         * modules/strdup (Depends-on): Likewise.
61727         * modules/getdelim (Depends-on): Add realloc-posix.
61728         * modules/read-file (Depends-on): Likewise.
61729
61730 2007-09-09  Bruno Haible  <bruno@clisp.org>
61731
61732         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
61733         (gl_FUNC_MALLOC_POSIX): Require it.
61734         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
61735         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
61736         * modules/realloc (Files): Add m4/malloc.m4.
61737         * modules/calloc (Files): Likewise.
61738
61739 2007-09-09  Bruno Haible  <bruno@clisp.org>
61740
61741         * modules/malloc-posix: New file.
61742         * modules/malloc (Depends-on): Add malloc-posix.
61743         * lib/malloc.c: Include errno.h.
61744         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
61745         and a POSIX-compatible malloc into a single function. Set ENOMEM
61746         when returning NULL.
61747         * m4/malloc.m4: New file.
61748         * doc/functions/malloc.texi: Mention the malloc-posix module.
61749         * lib/stdlib_.h (malloc): New declaration.
61750         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
61751         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
61752         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
61753         and HAVE_MALLOC_POSIX.
61754
61755 2007-09-09  Bruno Haible  <bruno@clisp.org>
61756
61757         * modules/realloc-posix: New file.
61758         * modules/realloc (Depends-on): Add realloc-posix.
61759         * lib/realloc.c: Include errno.h.
61760         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
61761         and a POSIX-compatible realloc into a single function. Set ENOMEM
61762         when returning NULL.
61763         * m4/realloc.m4: New file.
61764         * doc/functions/realloc.texi: Mention the realloc-posix module.
61765         * lib/stdlib_.h (realloc): New declaration.
61766         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
61767         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
61768         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
61769         and HAVE_REALLOC_POSIX.
61770
61771 2007-09-09  Bruno Haible  <bruno@clisp.org>
61772
61773         * modules/calloc-posix: New file.
61774         * modules/calloc (Depends-on): Add calloc-posix.
61775         * lib/calloc.c: Include errno.h.
61776         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
61777         and a POSIX-compatible calloc into a single function. Set ENOMEM
61778         when returning NULL.
61779         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
61780         * doc/functions/calloc.texi: Mention the calloc-posix module.
61781         * lib/stdlib_.h (calloc): New declaration.
61782         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
61783         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
61784         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
61785         and HAVE_CALLOC_POSIX.
61786
61787 2007-09-09  Bruno Haible  <bruno@clisp.org>
61788
61789         Allow for modules to show an arbitrary notice.
61790         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
61791         * gnulib-tool: New option --extract-notice.
61792         (func_usage): Document it.
61793         (sed_extract_prog): Update.
61794         (func_get_notice): New function.
61795         (func_modules_notice): New function.
61796         (func_import, func_create_testdir): Invoke it.
61797         Suggested by Jim Meyering.
61798
61799 2007-09-09  Bruno Haible  <bruno@clisp.org>
61800
61801         * gnulib-tool: New options --verbose, --quiet.
61802         (func_usage): Document them.
61803         (verbose): New variable.
61804         (func_execute_command): New function.
61805         (func_import): Don't show the module list and the file list if
61806         $verbose < 0.
61807         (func_create_testdir): Likewise. Use func_execute_command.
61808         (func_create_megatestdir): Use func_execute_command.
61809
61810 2007-09-08  Bruno Haible  <bruno@clisp.org>
61811
61812         * gnulib-tool (func_import): Prefer rsync over wget when available,
61813         for fetching the PO files.
61814
61815 2007-09-08  Bruno Haible  <bruno@clisp.org>
61816
61817         * posix-modules: New file. Portions copied from gnulib-tool.
61818         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
61819
61820 2007-09-08  Jim Meyering  <jim@meyering.net>
61821
61822         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
61823         * lib/fpending.h: Rename from __fpending.h.
61824         * lib/fpending.c: Rename from __fpending.c.
61825         Include "fpending.h", not "__fpending.h".
61826         * lib/__fpending.h, lib/__fpending.c: Remove files.
61827         * modules/fpending (Files): Reflect new file names.
61828         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
61829
61830 2007-09-08  Bruno Haible  <bruno@clisp.org>
61831
61832         * m4/inttypes-h.m4: Remove stub file.
61833
61834 2007-09-07  Simon Josefsson  <simon@josefsson.org>
61835
61836         * doc/headers/stdint.texi: Discuss #include_next issue.
61837
61838 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
61839
61840         * build-aux/bootstrap: Remove obsolete comment about wget --help.
61841
61842 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61843
61844         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
61845         in variable name.
61846
61847 2007-09-03  Jim Meyering  <jim@meyering.net>
61848
61849         New module: git-version-gen.
61850         * modules/git-version-gen: New file.
61851
61852         Import changes from coreutils for bootstrap script.
61853
61854         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
61855
61856         bootstrap: uses rsync to download the .po files
61857         * build-aux/bootstrap (po_download_command_format): New global.
61858         (download_po_files): Use rsync.
61859         (update_po_files): Don't remove .po files after download,
61860         so future rsync runs can take advantage of the copies.
61861
61862         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
61863
61864         Solve the unnecessary-.po-file-regeneration problem once and for all.
61865         * build-aux/bootstrap (download_po_files): New function, renamed from
61866         get_translations.  Now, downloads, but doesn't update LINGUAS.
61867         (update_po_files): New function.
61868
61869         bootstrap: Ignore more.
61870         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
61871         uniwidth to e.g., lib/.gitignore.
61872         (slurp): Handle the sys_stat_.h -> sys mapping, too.
61873
61874         * build-aux/bootstrap: New setting: vc_ignore.
61875         (insert_sorted_if_absent): Create $file if absent.
61876         Adapt to new, possibly empty, list: $vc_ignore.
61877
61878         bootstrap: generate more ignorable names
61879         * build-aux/bootstrap (slurp): When generating ignorable names,
61880         also map .sin to .sed, .gperf to .c, and .y to .c.
61881
61882 2007-09-03  Jim Meyering  <jim@meyering.net>
61883
61884         * build-aux/git-version-gen: New file, from coreutils.  For details, see
61885         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
61886
61887 2007-09-02  Bruno Haible  <bruno@clisp.org>
61888
61889         Fix mis-recognition of 'mcs' on QNX 6.
61890         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
61891         output contains the string "Mono".
61892         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
61893         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
61894
61895 2007-09-01  Bruno Haible  <bruno@clisp.org>
61896
61897         Fix collision between uniwidth/* and linebreak modules.
61898         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
61899         u32_width): Remove declarations.
61900         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
61901         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
61902         streq3, streq2, streq1, streq0): Remove functions.
61903         (STREQ): Remove macro.
61904         (is_cjk_encoding): Remove function.
61905         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
61906         (uc_width, u8_width, u16_width, u32_width): Remove functions.
61907         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
61908         * NEWS: Document the change.
61909
61910 2007-09-01  Bruno Haible  <bruno@clisp.org>
61911
61912         * lib/streq.h: Add double-inclusion guard.
61913
61914 2007-09-01  Karl Berry  <karl@gnu.org>
61915
61916         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
61917
61918 2007-08-28  Jim Meyering  <jim@meyering.net>
61919
61920         Rename mreadlink_with_size to areadlink_with_size.
61921         * NEWS: Document the change.
61922         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
61923         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
61924         * lib/mreadlink.h: Rename this to...
61925         * lib/areadlink.h: ...this.
61926         * modules/mreadlink-with-size: Rename this to...
61927         * modules/areadlink-with-size: ...this.
61928         * lib/canonicalize.c: Reflect the renaming.
61929         * modules/canonicalize: Likewise.
61930
61931 2007-08-26  Bruno Haible  <bruno@clisp.org>
61932
61933         * gnulib-tool (func_import): When deciding which files to remove,
61934         consider also dangling symbolic links.
61935         Reported by Eric Blake.
61936
61937 2007-08-26  Bruno Haible  <bruno@clisp.org>
61938
61939         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
61940
61941 2007-08-23  Simon Josefsson  <simon@josefsson.org>
61942
61943         * lib/readline.c: Don't include getline.h, the prototype is now
61944         found in stdio.h.
61945
61946 2007-08-23  Jim Meyering  <jim@meyering.net>
61947
61948         Getdelim touchup.
61949         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
61950         around the funlockfile call, since funlockfile never sets errno.
61951         Don't set errno upon failed realloc.
61952
61953 2007-08-22  Eric Blake  <ebb9@byu.net>
61954
61955         Getline touchups.
61956         * lib/getdelim.c (getdelim): Revert regression that required *n to
61957         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
61958         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
61959         getdelim, rather than whether implementation is missing.
61960         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
61961         * lib/stdio_.h (getline): Also declare if replacement is
61962         required.
61963         * doc/functions/getdelim.texi: New file.
61964         * doc/functions/getline.texi: Likewise.
61965         * doc/gnulib.texi (Function Substitutes): Add new files.
61966         Reported by Bruno Haible.
61967
61968 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
61969
61970         * users.txt: Add Guile.
61971
61972 2007-08-22  Eric Blake  <ebb9@byu.net>
61973
61974         * tests/test-getdelim.c (main): Use remove, not unlink.
61975         * tests/test-getline.c (main): Likewise.
61976
61977         Move getline and getdelim into stdio.h, per POSIX 200x.
61978         * modules/getline (Files): Remove getline.h.
61979         (Depends-on): Add stdio.
61980         (configure.ac): Add module indicator.
61981         * modules/getdelim (Files): Remove getdelim.h.
61982         (Depends-on): Add stdio.
61983         (configure.ac): Add module indicator.
61984         * modules/stdio (Makefile.am): Work with new indicators.
61985         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
61986         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
61987         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
61988         * lib/getdelim.h: Delete.
61989         * lib/getline.h: Delete.
61990         * lib/stdio_.h (getdelim, getline): Declare.
61991         * modules/getdelim-tests: New module.
61992         * modules/getline-tests: Likewise.
61993         * tests/test-getdelim.c: New file.
61994         * tests/test-getline.c: Likewise.
61995         * NEWS: Document the change.
61996         * lib/getline.c: Update choice of header.
61997         * lib/csharpcomp.c: Likewise.
61998         * lib/getpass.c: Likewise.
61999         * lib/javacomp.c: Likewise.
62000         * lib/javaversion.c: Likewise.
62001         * lib/yesno.c: Likewise.
62002         * lib/getdelim.c: Likewise.
62003         (getdelim): Set errno on failure, and avoid memory leak.
62004
62005 2007-08-19  Bruno Haible  <bruno@clisp.org>
62006
62007         * modules/closein (Depends-on): Add freadahead.
62008         * lib/closein.c: Include freadahead.h.
62009         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
62010         is zero.
62011
62012 2007-08-19  Bruno Haible  <bruno@clisp.org>
62013
62014         * modules/freadahead-tests: New file.
62015         * tests/test-freadahead.sh: New file.
62016         * tests/test-freadahead.c: New file.
62017
62018         * modules/freadahead: New file.
62019         * lib/freadahead.h: New file.
62020         * lib/freadahead.c: New file.
62021         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
62022         fbufmode, fpurge, freadable, fwritable.
62023
62024 2007-08-19  Eric Blake  <ebb9@byu.net>
62025
62026         Test yesno in combination with closein.
62027         * lib/yesno.c (yesno): Document use of stdin.
62028         * modules/yesno-tests (Files): New module.
62029         * tests/test-yesno.c (main): New file.
62030         * tests/test-yesno.sh: Likewise.
62031
62032 2007-08-19  Bruno Haible  <bruno@clisp.org>
62033
62034         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
62035         * lib/fseeko.c (rpl_fseeko): Likewise.
62036         * lib/fseterr.c (fseterr): Likewise.
62037
62038 2007-08-19  Bruno Haible  <bruno@clisp.org>
62039
62040         * tests/test-lseek.c (main): Disable a test for BeOS.
62041         * doc/functions/lseek.texi: Document the BeOS bug.
62042
62043 2007-08-19  Bruno Haible  <bruno@clisp.org>
62044             Eric Blake  <ebb9@byu.net>
62045
62046         * lib/lseek.c: Include <sys/stat.h>.
62047         (rpl_lseek): Add workaround code also for Unix platforms.
62048         Needed for BeOS.
62049         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
62050         * doc/functions/lseek.texi: Document BeOS definiency.
62051
62052 2007-08-18  Bruno Haible  <bruno@clisp.org>
62053
62054         * modules/fstrcmp-tests: New file.
62055         * tests/test-fstrcmp.c: New file.
62056
62057 2007-08-18  Bruno Haible  <bruno@clisp.org>
62058
62059         * modules/fstrcmp: New file, from GNU gettext with modifications.
62060         * lib/fstrcmp.h: New file, from GNU gettext.
62061         * lib/fstrcmp.c: New file, from GNU gettext.
62062         * MODULES.html.sh (String handling): Add fstrcmp.
62063
62064 2007-08-18  Bruno Haible  <bruno@clisp.org>
62065
62066         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
62067         'bool'.
62068         (diag, compareseq): Remove const from the ctxt argument.
62069         (USE_HEURISTIC): Undefine at the end.
62070
62071 2007-08-18  Jim Meyering  <jim@meyering.net>
62072
62073         New file: lib/idcache.h
62074         * NEWS: Mention the addition.
62075         * modules/idcache (Files): Add lib/idcache.h
62076         * lib/idcache.c: Include "idcache.h".
62077         Don't include <sys/types.h>.
62078         Add a FIXME comment.
62079         Move file-scoped "static" declarations to the top.
62080         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
62081
62082 2007-08-17  Bruno Haible  <bruno@clisp.org>
62083         and Paul Eggert  <eggert@cs.ucla.edu>
62084
62085         * MODULES.html.sh: Add diffseq.
62086         * modules/diffseq: New file.
62087         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
62088         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
62089
62090 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62091
62092         Import changes from coreutils for bootstrap script.
62093
62094         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
62095
62096         * build-aux/bootstrap (slurp): Work even in environments where
62097         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
62098         current code does not slurp files whose names start with ".", and
62099         this looks like it might be a troublesome area.
62100
62101         2007-07-11  Jim Meyering  <jim@meyering.net>
62102
62103         If there's a GPL vN copyright comment, require that N == 3.
62104
62105         2007-07-08  Jim Meyering  <jim@meyering.net>
62106
62107         Run the coreutils-specific code only if tests/Makefile.am.in exists.
62108         * build-aux/bootstrap (mam_template): Move definition out of loop.
62109
62110         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
62111
62112         * build-aux/bootstrap (symlink_to_dir): Rename function from
62113         symlink_to_gnulib.  Add a directory parameter.  Update all
62114         callers.
62115         (cp_mark_as_generated): Also check for -- and link to -- files in
62116         gl/.
62117
62118         2007-07-08  Jim Meyering  <jim@meyering.net>
62119
62120         Adapt to deeper hierarchy in gnulib.
62121         * build-aux/bootstrap (symlink_to_dir): If the destination
62122         directory doesn't exist, create it. This is required at least for
62123         "lib/uniwidth/cjk.h".
62124
62125         2007-05-15  Jim Meyering  <jim@meyering.net>
62126
62127         * build-aux/bootstrap: Now that generated Makefile.am files
62128         are no longer under version control, they must be created at
62129         bootstrap time.
62130
62131 2007-08-14  Ben Pfaff  <blp@gnu.org>
62132
62133         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
62134
62135 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62136
62137         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
62138         given the changes below.
62139         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
62140         even on hosts that have padding bits beyond the supported 64.
62141
62142 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62143
62144         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
62145         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
62146         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
62147         depends on it.
62148         (xstrtol_error): Remove.
62149         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
62150         but with a different signature.
62151         (ATTRIBUTE_NORETURN, __attribute__): New macros.
62152         * lib/xstrtol-error.c: Include exitfail.h.
62153         (xstrtol_fatal): New function, with a different signature from the
62154         old xstrtol_error, so that the caller need not worry about passing
62155         in an exit status, or about storage management of the option argument.
62156         (xstrtol_error): Now a static function.  Redo signature to
62157         implement xstrtol_fatal.  Output the correct number of hyphens in
62158         front of the option so that the caller need not worry about
62159         storage management.
62160         (N_): New macro.
62161         (_): Remove; not used now.
62162         * modules/xstrtol: Depend on getopt.
62163         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
62164         of old STRTOL_FATAL_ERROR macro.
62165         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
62166         of test program.
62167         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
62168         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
62169
62170 2007-08-08  Eric Blake  <ebb9@byu.net>
62171
62172         * lib/xstrtol-error.c: Add missing include.
62173
62174         Move xstrtol messages into gnulib domain, when --pobase is used.
62175         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
62176         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
62177         * modules/xstrtol (Files): Distribute new file.
62178         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
62179         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
62180         * tests/test-xstrtol.c: ...into new file.
62181         * tests/test-xstrtoul.c: Also test xstrtoul.
62182         * tests/test-xstrtoimax.c: Also test xstrtoimax.
62183         * tests/test-xstrtoumax.c: Also test xstrtoumax.
62184         * tests/test-xstrtol.sh: Drive the tests.
62185         * tests/test-xstrtoimax.sh: Likewise.
62186         * tests/test-xstrtoumax.sh: Likewise.
62187         * modules/xstrtol-tests: New module.
62188         * modules/xstrtoimax-tests: Likewise.
62189         * modules/xstrtoumax-tests: Likewise.
62190
62191 2007-08-08  Jim Meyering  <jim@meyering.net>
62192
62193         New function: mfile_name_concat.
62194         * lib/filenamecat.c (mfile_name_concat): New function, just like
62195         file_name_concat, but return NULL upon failure rather than exiting
62196         with a diagnostic.
62197         * lib/filenamecat.h: Declare it.
62198
62199 2007-08-07  Bruno Haible  <bruno@clisp.org>
62200
62201         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
62202         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
62203         warning from gcc.
62204         Reported by Eric Blake.
62205
62206 2007-08-07  Simon Josefsson  <simon@josefsson.org>
62207
62208         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
62209         * modules/crypto/arcfour (License): Likewise.
62210         * modules/crypto/des-tests (License): Likewise.
62211         * modules/crypto/gc-arctwo-tests (License): Likewise.
62212         * modules/crypto/gc-des-tests (License): Likewise.
62213         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
62214         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
62215         * modules/crypto/gc-md2-tests (License): Likewise.
62216         * modules/crypto/gc-md4-tests (License): Likewise.
62217         * modules/crypto/gc-md5-tests (License): Likewise.
62218         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
62219         * modules/crypto/gc-rijndael-tests (License): Likewise.
62220         * modules/crypto/gc-sha1-tests (License): Likewise.
62221         * modules/crypto/gc-tests (License): Likewise.
62222         * modules/crypto/hmac-md5 (License): Likewise.
62223         * modules/crypto/hmac-sha1 (License): Likewise.
62224         * modules/crypto/md2-tests (License): Likewise.
62225         * modules/crypto/md4-tests (License): Likewise.
62226         * modules/crypto/md5 (License): Likewise.
62227         * modules/crypto/rijndael (License): Likewise.
62228         * modules/crypto/sha1 (License): Likewise.
62229         * modules/memxor (License): Likewise.
62230
62231 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
62232         and Bruno Haible  <bruno@clisp.org>
62233
62234         * NEWS: Describe interface changes to human, xstrtol.
62235         * lib/human.h: Include <xstrtol.h>.
62236         (human_options): Return enum strtol_error, not int.  Remove
62237         bool arg; take int * instead.
62238         * lib/human.c: Don't include "gettext.h".
62239         (_): Remove; no longer used.
62240         Don't include <xstrtol.h>, since human.h does it.
62241         (human_options): Adjust to abovementioned interface changes.
62242         Do not report error to stderr; that's now the caller's
62243         responsibility.
62244         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
62245         interface change.
62246         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
62247         Str, Argument_type_string.  All uses changed.  Put " argument"
62248         in diagnostics to make them clearer.  Change wording of suffix
62249         message for clarity.
62250         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
62251         Argument_type_string.
62252         (STRTOL_FATAL_WARN): Remove; no longer used.
62253         * modules/human (Depends-on): Remove gettext-h.
62254
62255 2007-08-06  Simon Josefsson  <simon@josefsson.org>
62256
62257         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
62258
62259 2007-07-31  Bruno Haible  <bruno@clisp.org>
62260
62261         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
62262         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
62263         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
62264
62265 2007-07-31  Bruno Haible  <bruno@clisp.org>
62266
62267         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
62268         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
62269
62270 2007-07-30  Bruno Haible  <bruno@clisp.org>
62271
62272         * modules/base64 (License): Use the synonymous term "LGPLv2+".
62273         * modules/c-ctype (License): Likewise.
62274         * modules/c-strcase (License): Likewise.
62275         * modules/check-version (License): Likewise.
62276         * modules/iconv (License): Likewise.
62277         * modules/iconv_open (License): Likewise.
62278         * modules/read-file (License): Likewise.
62279         * modules/striconv (License): Likewise.
62280         * modules/strverscmp (License): Likewise.
62281         * modules/vasprintf (License): Likewise.
62282         * modules/crypto/des (License): Likewise.
62283         * modules/crypto/gc (License): Likewise.
62284         * modules/crypto/gc-arcfour (License): Likewise.
62285         * modules/crypto/gc-arctwo (License): Likewise.
62286         * modules/crypto/gc-des (License): Likewise.
62287         * modules/crypto/gc-hmac-md5 (License): Likewise.
62288         * modules/crypto/gc-hmac-sha1 (License): Likewise.
62289         * modules/crypto/gc-md2 (License): Likewise.
62290         * modules/crypto/gc-md4 (License): Likewise.
62291         * modules/crypto/gc-md5 (License): Likewise.
62292         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
62293         * modules/crypto/gc-random (License): Likewise.
62294         * modules/crypto/gc-rijndael (License): Likewise.
62295         * modules/crypto/gc-sha1 (License): Likewise.
62296         * modules/crypto/md2 (License): Likewise.
62297         * modules/crypto/md4 (License): Likewise.
62298
62299 2007-07-30  Jim Meyering  <jim@meyering.net>
62300
62301         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
62302         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
62303         it has valid stat data.  This bug would cause du not to count the
62304         sizes of inaccessible directories.
62305         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
62306         in <http://bugzilla.redhat.com/250077>.
62307
62308 2007-07-25  Peter O'Gorman  <peter@pogma.com>
62309             Bruno Haible  <bruno@clisp.org>
62310
62311         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
62312         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
62313         #include_next, gives a diagnostic about it, but reports no error in
62314         the exit code.
62315         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
62316
62317 2007-07-24  Ben Pfaff  <blp@gnu.org>
62318
62319         Improve name: "count-one-bits" is better than "popcount".
62320         * MODULES.html.sh: Update name.
62321         * lib/popcount.h: Renamed lib/count-one-bits.h.
62322         (popcount): Renamed count_one_bits.
62323         (popcountl): Renamed count_one_bits_l.
62324         (popcountll): Renamed count_one_bits_ll.
62325         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
62326         * modules/popcount: Renamed module/count-one-bits.
62327         * modules/popcount-tests: Renamed module/count-one-bits-tests.
62328         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
62329
62330 2007-07-23  Ben Pfaff  <blp@gnu.org>
62331
62332         * lib/popcount.h (popcount32): Reduce size of constants, to allow
62333         better code generation, and add U to large constants to avoid
62334         warnings, in non-GCC case.
62335         Suggested by Bruno Haible.
62336
62337 2007-07-23  Ben Pfaff  <blp@gnu.org>
62338
62339         * lib/popcount.h: Use verify_true instead of if...abort.
62340         * modules/popcount: Depend on verify module.
62341         Suggested by Jim Meyering.
62342
62343 2007-07-23  Bruno Haible  <bruno@clisp.org>
62344
62345         * gnulib-tool (func_import): Create a .cvsignore file also when the
62346         directory is not yet in CVS but the toplevel directory is. When
62347         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
62348         Reported by Karl Berry.
62349
62350 2007-07-22  Ben Pfaff  <blp@gnu.org>
62351
62352         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
62353         case.
62354         Suggested by Eric Blake.
62355
62356 2007-07-22  Ben Pfaff  <blp@gnu.org>
62357
62358         New module: popcount.
62359         * MODULES.html.sh: Add popcount.
62360         * modules/popcount: New file.
62361         * modules/popcount-tests: New file.
62362         * tests/test-popcount.c: New file.
62363         * lib/popcount.h: New file.
62364         * m4/popcount.m4: New file.
62365
62366 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
62367
62368         * build-aux/announce-gen: Update to GPLv3.
62369
62370         * build-aux/config.guess: Update from config.
62371
62372 2007-07-21  Bruno Haible  <bruno@clisp.org>
62373
62374         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
62375         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
62376
62377 2007-07-20  Jim Meyering  <jim@meyering.net>
62378
62379         * check-module: Diagnose a self-dependency.
62380
62381 2007-07-19  Bruno Haible  <bruno@clisp.org>
62382
62383         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
62384         empty.
62385         Reported by Eric Blake.
62386
62387 2007-07-18  Bruno Haible  <bruno@clisp.org>
62388
62389         * gnulib-tool: New options --po-base, --po-domain.
62390         (func_usage): Document them.
62391         (pobase, po_domain): New variables.
62392         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
62393         DEFAULT_TEXT_DOMAIN.
62394         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
62395         (func_import): Consider pobase and po_domain. Create a po/ directory.
62396         (func_create_testdir): Set pobase and po_domain to empty.
62397         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
62398         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
62399
62400 2007-07-18  Bruno Haible  <bruno@clisp.org>
62401
62402         * gnulib-tool (func_get_automake_snippet): Synthesize also an
62403         EXTRA_DIST augmentation for files in build-aux/.
62404
62405 2007-07-16  Bruno Haible  <bruno@clisp.org>
62406
62407         * modules/lseek (License): Use the synonymous term "LGPLv2+".
62408         * modules/getdelim (License): Likewise.
62409
62410 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62411
62412         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
62413         * modules/d-type (License): Likewise.
62414         * modules/extensions (License): Likewise.
62415         * modules/fnmatch (License): Likewise.
62416         * modules/fseeko (License): Likewise.
62417         * modules/getaddrinfo (License): Likewise.
62418         * modules/getline (License): Likewise.
62419         * modules/getlogin_r (License): Likewise.
62420         * modules/getpass (License): Likewise.
62421         * modules/gettimeofday (License): Likewise.
62422         * modules/glob (License): Likewise.
62423         * modules/inet_ntop (License): Likewise.
62424         * modules/malloc (License): Likewise.
62425         * modules/malloca (License): Likewise.
62426         * modules/memmem (License): Likewise.
62427         * modules/mempcpy (License): Likewise.
62428         * modules/memset (License): Likewise.
62429         * modules/minmax (License): Likewise.
62430         * modules/mktime (License): Likewise.
62431         * modules/netinet_in (License): Likewise.
62432         * modules/pathmax (License): Likewise.
62433         * modules/poll (License): Likewise.
62434         * modules/regex (License): Likewise.
62435         * modules/snprintf (License): Likewise.
62436         * modules/stdbool (License): Likewise.
62437         * modules/stdint (License): Likewise.
62438         * modules/stdio (License): Likewise.
62439         * modules/strcase (License): Likewise.
62440         * modules/strcasestr (License): Likewise.
62441         * modules/strdup (License): Likewise.
62442         * modules/string (License): Likewise.
62443         * modules/strndup (License): Likewise.
62444         * modules/strnlen (License): Likewise.
62445         * modules/strpbrk (License): Likewise.
62446         * modules/strptime (License): Likewise.
62447         * modules/strsep (License): Likewise.
62448         * modules/sys_select (License): Likewise.
62449         * modules/sys_socket (License): Likewise.
62450         * modules/sys_stat (License): Likewise.
62451         * modules/sys_time (License): Likewise.
62452         * modules/time (License): Likewise.
62453         * modules/time_r (License): Likewise.
62454         * modules/timegm (License): Likewise.
62455         * modules/unistd (License): Likewise.
62456         * modules/vsnprintf (License): Likewise.
62457         * modules/wctype (License): Likewise.
62458
62459 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62460
62461         * modules/argz (License): LGPLv2+.
62462
62463 2007-07-15  Karl Berry  <karl@gnu.org>
62464
62465         * doc/gnulib.texi: revise node structure per new fdl.texi.
62466
62467 2007-07-14  Bruno Haible  <bruno@clisp.org>
62468
62469         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
62470         the output file.
62471         * lib/uniname/uninames.h: Regenerated.
62472
62473 2007-07-14  Karl Berry  <karl@gnu.org>
62474
62475         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
62476         omitting sectioning and index commands.
62477
62478 2007-07-13  Bruno Haible  <bruno@clisp.org>
62479
62480         New gnulib-tool option --more-symlinks.
62481         * gnulib-tool (func_usage): Document --more-symlinks.
62482         (do_copyrights): New variable.
62483         Recognize option --more-symlinks.
62484         (func_import): Don't add a copyright notice transform to
62485         sed_transform_lib_file if do_copyrights is empty.
62486
62487 2007-07-13  Bruno Haible  <bruno@clisp.org>
62488
62489         * lib/vasnprintf.c (decimal_point_char): Define also if
62490         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
62491         && !NEED_PRINTF_DIRECTIVE_A.
62492         Reported by Clemens Koller <clemens.koller@anagramm.de> via
62493         Gary V. Vaughan <gary@gnu.org>.
62494
62495 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
62496
62497         * lib/inttypes_.h: Undo previous change, since it was fixed
62498         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
62499
62500 2007-07-13  Bruno Haible  <bruno@clisp.org>
62501
62502         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
62503         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
62504
62505 2007-07-13  Jim Meyering  <jim@meyering.net>
62506
62507         df: Don't fail for Tru64's "file-on-file mount".
62508         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
62509         so we fall through and use statfs instead.  Details here:
62510         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
62511         Reported by Albert Chin.
62512
62513 2007-07-13  Bruno Haible  <bruno@clisp.org>
62514
62515         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
62516         * modules/configmake (License): Likewise.
62517         * modules/gettext (License): Likewise.
62518         * modules/gettext-h (License): Likewise.
62519         * modules/include_next (License): Likewise.
62520         * modules/link-warning (License): Likewise.
62521         * modules/localcharset (License): Likewise.
62522         * modules/localename (License): Likewise.
62523         * modules/lock (License): Likewise.
62524         * modules/relocatable-lib-lgpl (License): Likewise.
62525         * modules/size_max (License): Likewise.
62526         * modules/vasnprintf (License): Likewise.
62527         * modules/wchar (License): Likewise.
62528         * modules/xsize (License): Likewise.
62529
62530 2007-07-13  Bruno Haible  <bruno@clisp.org>
62531
62532         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
62533         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
62534
62535 2007-07-12  Bruno Haible  <bruno@clisp.org>
62536
62537         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
62538         in the modules files.
62539
62540 2007-07-11  Karl Berry  <karl@gnu.org>
62541
62542         * MODULES.html.sh (func_module): use
62543          sed -e '\|^'"${includefile}"'$|d'
62544          instead of /.../d, to avoid errors on $includefile's containing /.
62545
62546 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
62547
62548         * gnulib-tool (func_import): Avoid duplication of --avoid
62549         statements
62550         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
62551         names to `_' in variable names.
62552
62553 2007-07-10  Eric Blake  <ebb9@byu.net>
62554
62555         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
62556         * NEWS: Document this change.
62557
62558 2007-07-08  Bruno Haible  <bruno@clisp.org>
62559
62560         Update to Unicode 5.0.
62561         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
62562         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
62563         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
62564         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
62565         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
62566         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
62567         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
62568         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
62569         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
62570         U+10A3F, U+1D242..U+1D244.
62571         (nonspacing_table_ind): Update.
62572         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
62573         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
62574
62575 2007-07-08  Bruno Haible  <bruno@clisp.org>
62576
62577         Update to Unicode 5.0.
62578         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
62579         code transform. Extend the name index field of unicode_name_to_code and
62580         unicode_code_to_name from 16 to 24 bits.
62581         * lib/uniname/uniname.c (unicode_character_name,
62582         unicode_name_character): Add the range 0x12xxx to the code transform.
62583         * lib/uniname/uninames.h: Regenerated.
62584         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
62585
62586 2007-07-07  Bruno Haible  <bruno@clisp.org>
62587
62588         * modules/wcwidth-tests: New file.
62589         * tests/test-wcwidth.c: New file.
62590
62591         Work around MacOS X wcwidth() bug.
62592         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
62593         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
62594         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
62595         original wcwidth in non-UTF-8 locales.
62596         * modules/wcwidth (Depends-on): Add localcharset, streq,
62597         uniwidth/width.
62598         * doc/functions/wcwidth.texi: Update.
62599
62600 2007-07-07  Bruno Haible  <bruno@clisp.org>
62601
62602         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
62603         (wcwidth): New declaration.
62604         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
62605         macros.
62606         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
62607         here. Prepare for creating <wchar.h> unconditionally.
62608         * modules/wchar (Depends-on): Add link-warning.
62609         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
62610         REPLACE_WCWIDTH, and GL_LINK_WARNING.
62611         * lib/wcwidth.h: Remove file.
62612         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
62613         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
62614         * modules/wcwidth (Files): Remove lib/wcwidth.h.
62615         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
62616         (Include): Replace wcwidth.h with <wchar.h>.
62617         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
62618         * lib/mbchar.h: Don't include wcwidth.h.
62619         * lib/mbswidth.c: Likewise.
62620         * NEWS: Mention the change.
62621
62622 2007-07-07  Bruno Haible  <bruno@clisp.org>
62623
62624         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
62625         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
62626         definition with an external declaration.
62627         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
62628         defined as a function. Remove AC_C_INLINE requirement.
62629         * modules/wcwidth (Files): Add lib/wcwidth.c.
62630         (Makefile.am): Remove redundant statement.
62631
62632 2007-07-07  Bruno Haible  <bruno@clisp.org>
62633
62634         * MODULES.html.sh (Unicode string functions): Add the new modules.
62635
62636         * tests/uniwidth/test-u32-strwidth.c: New file.
62637         * modules/uniwidth/u32-strwidth-tests: New file.
62638
62639         * lib/uniwidth/u32-strwidth.c: New file.
62640         * modules/uniwidth/u32-strwidth: New file.
62641
62642         * tests/uniwidth/test-u16-strwidth.c: New file.
62643         * modules/uniwidth/u16-strwidth-tests: New file.
62644
62645         * lib/uniwidth/u16-strwidth.c: New file.
62646         * modules/uniwidth/u16-strwidth: New file.
62647
62648         * tests/uniwidth/test-u8-strwidth.c: New file.
62649         * modules/uniwidth/u8-strwidth-tests: New file.
62650
62651         * lib/uniwidth/u8-strwidth.c: New file.
62652         * modules/uniwidth/u8-strwidth: New file.
62653
62654         * tests/uniwidth/test-u32-width.c: New file.
62655         * modules/uniwidth/u32-width-tests: New file.
62656
62657         * lib/uniwidth/u32-width.c: New file.
62658         * modules/uniwidth/u32-width: New file.
62659
62660         * tests/uniwidth/test-u16-width.c: New file.
62661         * modules/uniwidth/u16-width-tests: New file.
62662
62663         * lib/uniwidth/u16-width.c: New file.
62664         * modules/uniwidth/u16-width: New file.
62665
62666         * tests/uniwidth/test-u8-width.c: New file.
62667         * modules/uniwidth/u8-width-tests: New file.
62668
62669         * lib/uniwidth/u8-width.c: New file.
62670         * modules/uniwidth/u8-width: New file.
62671
62672         * tests/uniwidth/test-uc_width.c: New file.
62673         * modules/uniwidth/width-tests: New file.
62674
62675         * lib/uniwidth/width.c: New file, from GNU libiconv.
62676         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
62677         * modules/uniwidth/width: New file.
62678
62679         * lib/uniwidth.h: New file, from GNU libiconv.
62680         * modules/uniwidth/base: New file.
62681
62682 2007-07-07  Bruno Haible  <bruno@clisp.org>
62683
62684         * lib/uniname.h: New file, from GNU gettext.
62685         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
62686         * lib/uniname/uninames.h: New file, from GNU gettext.
62687         * lib/uniname/uniname.c: New file, from GNU gettext.
62688         * tests/uniname/test-uninames.sh: New file.
62689         * tests/uniname/test-uninames.c: New file, from GNU gettext.
62690         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
62691         * modules/uniname/base: New file.
62692         * modules/uniname/uniname: New file.
62693         * modules/uniname/uniname-tests: New file.
62694         * MODULES.html.sh (Unicode string functions): Add the new modules.
62695
62696 2007-07-06  Bruno Haible  <bruno@clisp.org>
62697
62698         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
62699
62700 2007-07-06  Bruno Haible  <bruno@clisp.org>
62701
62702         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
62703         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
62704         includes <cygwin/sys_time.h> which includes <sys/select.h> which
62705         include <sys/time.h>.
62706         Reported by Eric Blake.
62707
62708 2007-07-06  Eric Blake  <ebb9@byu.net>
62709
62710         Fix testing canonicalize on cygwin.
62711         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
62712         Revert patch from 2007-06-19.
62713         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
62714         canonicalize module is also in use.
62715         * tests/test-canonicalize.c: New file.
62716         * tests/test-canonicalize.sh: Likewise.
62717         * modules/canonicalize-tests: Likewise.
62718
62719 2007-07-06  Jim Meyering  <jim@meyering.net>
62720
62721         * lib/getugroups.c (getugroups): Detect getgrent failure.
62722         Adjust comment to reflect reality: this function may return -1.
62723
62724 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
62725
62726         * build-aux/bootstrap (TP_URL,get_translations): Update to use
62727         the new TP address.
62728         (usage): Fix typo
62729         (gnulib_mk): New variable.
62730
62731 2007-07-05  Jim Meyering  <jim@meyering.net>
62732
62733         Don't let endgrent clobber errno, no matter how improbable.
62734         * lib/getugroups.c (getugroups): Save and restore errno around
62735         endgrent call.
62736
62737         Close the group DB even when failing with 2^31 or more members.
62738         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
62739
62740 2007-07-04  Jim Meyering  <jim@meyering.net>
62741
62742         * lib/getugroups.h: New file.
62743         * lib/getugroups.c: Include "getugroups.h".
62744         Remove uses of "register" keyword.
62745         Move local variable, "cp", down into scope where used.
62746         Give "username" parameter the "const" attribute.
62747         * modules/getugroups (Files): Add lib/getugroups.h
62748
62749 2007-07-04  Karl Berry  <karl@gnu.org>
62750
62751         * MODULES.html.sh (func_all_modules): Complete rename of
62752         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
62753
62754 2007-07-02  Bruno Haible  <bruno@clisp.org>
62755
62756         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
62757         mode, when inttypes.h comes from gnulib.
62758         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
62759
62760 2007-07-02  Simon Josefsson  <simon@josefsson.org>
62761
62762         * NEWS: Mention lgpl module name change.
62763
62764         * modules/lgpl-2.1: Renamed from lgpl.
62765
62766         * NEWS: Mention gpl module name change.
62767
62768         * modules/gpl-3.0: New file, based on gpl-2.0.
62769
62770         * modules/gpl-2.0: Renamed from gpl.
62771
62772         * modules/gpl: Fix filename, doc/gpl.texi is now found at
62773         doc/gpl-2.0.texi.
62774
62775 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
62776
62777         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
62778         #define __STDC_LIMIT_MACROS temporarily while including
62779         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
62780         Problem reported by Joel E. Denny in
62781         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
62782
62783 2007-07-01  Bruno Haible  <bruno@clisp.org>
62784
62785         * lib/unistdio.h: New file.
62786         * lib/unistdio/u-asnprintf.h: New file.
62787         * lib/unistdio/u-asprintf.h: New file.
62788         * lib/unistdio/u-printf-args.c: New file.
62789         * lib/unistdio/u-printf-args.h: New file.
62790         * lib/unistdio/u-printf-parse.h: New file.
62791         * lib/unistdio/u-snprintf.h: New file.
62792         * lib/unistdio/u-sprintf.h: New file.
62793         * lib/unistdio/u-vasprintf.h: New file.
62794         * lib/unistdio/u-vsnprintf.h: New file.
62795         * lib/unistdio/u-vsprintf.h: New file.
62796         * lib/unistdio/ulc-asnprintf.c: New file.
62797         * lib/unistdio/ulc-asprintf.c: New file.
62798         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
62799         * lib/unistdio/ulc-printf-parse.c: New file.
62800         * lib/unistdio/ulc-snprintf.c: New file.
62801         * lib/unistdio/ulc-sprintf.c: New file.
62802         * lib/unistdio/ulc-vasnprintf.c: New file.
62803         * lib/unistdio/ulc-vasprintf.c: New file.
62804         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
62805         * lib/unistdio/ulc-vsnprintf.c: New file.
62806         * lib/unistdio/ulc-vsprintf.c: New file.
62807         * lib/unistdio/u8-asnprintf.c: New file.
62808         * lib/unistdio/u8-asprintf.c: New file.
62809         * lib/unistdio/u8-printf-parse.c: New file.
62810         * lib/unistdio/u8-snprintf.c: New file.
62811         * lib/unistdio/u8-sprintf.c: New file.
62812         * lib/unistdio/u8-vasnprintf.c: New file.
62813         * lib/unistdio/u8-vasprintf.c: New file.
62814         * lib/unistdio/u8-vsnprintf.c: New file.
62815         * lib/unistdio/u8-vsprintf.c: New file.
62816         * lib/unistdio/u8-u8-asnprintf.c: New file.
62817         * lib/unistdio/u8-u8-asprintf.c: New file.
62818         * lib/unistdio/u8-u8-snprintf.c: New file.
62819         * lib/unistdio/u8-u8-sprintf.c: New file.
62820         * lib/unistdio/u8-u8-vasnprintf.c: New file.
62821         * lib/unistdio/u8-u8-vasprintf.c: New file.
62822         * lib/unistdio/u8-u8-vsnprintf.c: New file.
62823         * lib/unistdio/u8-u8-vsprintf.c: New file.
62824         * lib/unistdio/u16-asnprintf.c: New file.
62825         * lib/unistdio/u16-asprintf.c: New file.
62826         * lib/unistdio/u16-printf-parse.c: New file.
62827         * lib/unistdio/u16-snprintf.c: New file.
62828         * lib/unistdio/u16-sprintf.c: New file.
62829         * lib/unistdio/u16-vasnprintf.c: New file.
62830         * lib/unistdio/u16-vasprintf.c: New file.
62831         * lib/unistdio/u16-vsnprintf.c: New file.
62832         * lib/unistdio/u16-vsprintf.c: New file.
62833         * lib/unistdio/u16-u16-asnprintf.c: New file.
62834         * lib/unistdio/u16-u16-asprintf.c: New file.
62835         * lib/unistdio/u16-u16-snprintf.c: New file.
62836         * lib/unistdio/u16-u16-sprintf.c: New file.
62837         * lib/unistdio/u16-u16-vasnprintf.c: New file.
62838         * lib/unistdio/u16-u16-vasprintf.c: New file.
62839         * lib/unistdio/u16-u16-vsnprintf.c: New file.
62840         * lib/unistdio/u16-u16-vsprintf.c: New file.
62841         * lib/unistdio/u32-asnprintf.c: New file.
62842         * lib/unistdio/u32-asprintf.c: New file.
62843         * lib/unistdio/u32-printf-parse.c: New file.
62844         * lib/unistdio/u32-snprintf.c: New file.
62845         * lib/unistdio/u32-sprintf.c: New file.
62846         * lib/unistdio/u32-vasnprintf.c: New file.
62847         * lib/unistdio/u32-vasprintf.c: New file.
62848         * lib/unistdio/u32-vsnprintf.c: New file.
62849         * lib/unistdio/u32-vsprintf.c: New file.
62850         * lib/unistdio/u32-u32-asnprintf.c: New file.
62851         * lib/unistdio/u32-u32-asprintf.c: New file.
62852         * lib/unistdio/u32-u32-snprintf.c: New file.
62853         * lib/unistdio/u32-u32-sprintf.c: New file.
62854         * lib/unistdio/u32-u32-vasnprintf.c: New file.
62855         * lib/unistdio/u32-u32-vasprintf.c: New file.
62856         * lib/unistdio/u32-u32-vsnprintf.c: New file.
62857         * lib/unistdio/u32-u32-vsprintf.c: New file.
62858         * tests/unistdio/test-ulc-asnprintf1.c: New file.
62859         * tests/unistdio/test-ulc-asnprintf1.h: New file.
62860         * tests/unistdio/test-ulc-printf1.h: New file.
62861         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
62862         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
62863         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
62864         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
62865         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
62866         * tests/unistdio/test-ulc-vasprintf1.c: New file.
62867         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
62868         * tests/unistdio/test-ulc-vsprintf1.c: New file.
62869         * tests/unistdio/test-u8-asnprintf1.c: New file.
62870         * tests/unistdio/test-u8-asnprintf1.h: New file.
62871         * tests/unistdio/test-u8-printf1.h: New file.
62872         * tests/unistdio/test-u8-vasnprintf1.c: New file.
62873         * tests/unistdio/test-u8-vasnprintf2.c: New file.
62874         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
62875         * tests/unistdio/test-u8-vasnprintf3.c: New file.
62876         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
62877         * tests/unistdio/test-u8-vasprintf1.c: New file.
62878         * tests/unistdio/test-u8-vsnprintf1.c: New file.
62879         * tests/unistdio/test-u8-vsprintf1.c: New file.
62880         * tests/unistdio/test-u16-asnprintf1.c: New file.
62881         * tests/unistdio/test-u16-asnprintf1.h: New file.
62882         * tests/unistdio/test-u16-printf1.h: New file.
62883         * tests/unistdio/test-u16-vasnprintf1.c: New file.
62884         * tests/unistdio/test-u16-vasnprintf2.c: New file.
62885         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
62886         * tests/unistdio/test-u16-vasnprintf3.c: New file.
62887         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
62888         * tests/unistdio/test-u16-vasprintf1.c: New file.
62889         * tests/unistdio/test-u16-vsnprintf1.c: New file.
62890         * tests/unistdio/test-u16-vsprintf1.c: New file.
62891         * tests/unistdio/test-u32-asnprintf1.c: New file.
62892         * tests/unistdio/test-u32-asnprintf1.h: New file.
62893         * tests/unistdio/test-u32-printf1.h: New file.
62894         * tests/unistdio/test-u32-vasnprintf1.c: New file.
62895         * tests/unistdio/test-u32-vasnprintf2.c: New file.
62896         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
62897         * tests/unistdio/test-u32-vasnprintf3.c: New file.
62898         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
62899         * tests/unistdio/test-u32-vasprintf1.c: New file.
62900         * tests/unistdio/test-u32-vsnprintf1.c: New file.
62901         * tests/unistdio/test-u32-vsprintf1.c: New file.
62902         * modules/unistdio/base: New file.
62903         * modules/unistdio/u-printf-args: New file.
62904         * modules/unistdio/ulc-asnprintf: New file.
62905         * modules/unistdio/ulc-asprintf: New file.
62906         * modules/unistdio/ulc-fprintf: New file.
62907         * modules/unistdio/ulc-printf-parse: New file.
62908         * modules/unistdio/ulc-snprintf: New file.
62909         * modules/unistdio/ulc-sprintf: New file.
62910         * modules/unistdio/ulc-vasnprintf: New file.
62911         * modules/unistdio/ulc-vasprintf: New file.
62912         * modules/unistdio/ulc-vfprintf: New file.
62913         * modules/unistdio/ulc-vsnprintf: New file.
62914         * modules/unistdio/ulc-vsprintf: New file.
62915         * modules/unistdio/u8-asnprintf: New file.
62916         * modules/unistdio/u8-asprintf: New file.
62917         * modules/unistdio/u8-printf-parse: New file.
62918         * modules/unistdio/u8-snprintf: New file.
62919         * modules/unistdio/u8-sprintf: New file.
62920         * modules/unistdio/u8-vasnprintf: New file.
62921         * modules/unistdio/u8-vasprintf: New file.
62922         * modules/unistdio/u8-vsnprintf: New file.
62923         * modules/unistdio/u8-vsprintf: New file.
62924         * modules/unistdio/u8-u8-asnprintf: New file.
62925         * modules/unistdio/u8-u8-asprintf: New file.
62926         * modules/unistdio/u8-u8-snprintf: New file.
62927         * modules/unistdio/u8-u8-sprintf: New file.
62928         * modules/unistdio/u8-u8-vasnprintf: New file.
62929         * modules/unistdio/u8-u8-vasprintf: New file.
62930         * modules/unistdio/u8-u8-vsnprintf: New file.
62931         * modules/unistdio/u8-u8-vsprintf: New file.
62932         * modules/unistdio/u16-asnprintf: New file.
62933         * modules/unistdio/u16-asprintf: New file.
62934         * modules/unistdio/u16-printf-parse: New file.
62935         * modules/unistdio/u16-snprintf: New file.
62936         * modules/unistdio/u16-sprintf: New file.
62937         * modules/unistdio/u16-vasnprintf: New file.
62938         * modules/unistdio/u16-vasprintf: New file.
62939         * modules/unistdio/u16-vsnprintf: New file.
62940         * modules/unistdio/u16-vsprintf: New file.
62941         * modules/unistdio/u16-u16-asnprintf: New file.
62942         * modules/unistdio/u16-u16-asprintf: New file.
62943         * modules/unistdio/u16-u16-snprintf: New file.
62944         * modules/unistdio/u16-u16-sprintf: New file.
62945         * modules/unistdio/u16-u16-vasnprintf: New file.
62946         * modules/unistdio/u16-u16-vasprintf: New file.
62947         * modules/unistdio/u16-u16-vsnprintf: New file.
62948         * modules/unistdio/u16-u16-vsprintf: New file.
62949         * modules/unistdio/u32-asnprintf: New file.
62950         * modules/unistdio/u32-asprintf: New file.
62951         * modules/unistdio/u32-printf-parse: New file.
62952         * modules/unistdio/u32-snprintf: New file.
62953         * modules/unistdio/u32-sprintf: New file.
62954         * modules/unistdio/u32-vasnprintf: New file.
62955         * modules/unistdio/u32-vasprintf: New file.
62956         * modules/unistdio/u32-vsnprintf: New file.
62957         * modules/unistdio/u32-vsprintf: New file.
62958         * modules/unistdio/u32-u32-asnprintf: New file.
62959         * modules/unistdio/u32-u32-asprintf: New file.
62960         * modules/unistdio/u32-u32-snprintf: New file.
62961         * modules/unistdio/u32-u32-sprintf: New file.
62962         * modules/unistdio/u32-u32-vasnprintf: New file.
62963         * modules/unistdio/u32-u32-vasprintf: New file.
62964         * modules/unistdio/u32-u32-vsnprintf: New file.
62965         * modules/unistdio/u32-u32-vsprintf: New file.
62966         * modules/unistdio/ulc-asnprintf-tests: New file.
62967         * modules/unistdio/ulc-vasnprintf-tests: New file.
62968         * modules/unistdio/ulc-vasprintf-tests: New file.
62969         * modules/unistdio/ulc-vsnprintf-tests: New file.
62970         * modules/unistdio/ulc-vsprintf-tests: New file.
62971         * modules/unistdio/u8-asnprintf-tests: New file.
62972         * modules/unistdio/u8-vasnprintf-tests: New file.
62973         * modules/unistdio/u8-vasprintf-tests: New file.
62974         * modules/unistdio/u8-vsnprintf-tests: New file.
62975         * modules/unistdio/u8-vsprintf-tests: New file.
62976         * modules/unistdio/u16-asnprintf-tests: New file.
62977         * modules/unistdio/u16-vasnprintf-tests: New file.
62978         * modules/unistdio/u16-vasprintf-tests: New file.
62979         * modules/unistdio/u16-vsnprintf-tests: New file.
62980         * modules/unistdio/u16-vsprintf-tests: New file.
62981         * modules/unistdio/u32-asnprintf-tests: New file.
62982         * modules/unistdio/u32-vasnprintf-tests: New file.
62983         * modules/unistdio/u32-vasprintf-tests: New file.
62984         * modules/unistdio/u32-vsnprintf-tests: New file.
62985         * modules/unistdio/u32-vsprintf-tests: New file.
62986         * MODULES.html.sh (Unicode string functions): Add the new modules.
62987
62988 2007-07-01  Bruno Haible  <bruno@clisp.org>
62989
62990         * lib/sprintf.c (sprintf): Limit the available length estimation,
62991         to avoid address wraparound.
62992         * lib/vsprintf.c (vsprintf): Likewise.
62993         * modules/sprintf-posix (Dependencies): Add stdint.
62994         * modules/vsprintf-posix (Dependencies): Likewise.
62995
62996 2007-07-01  Bruno Haible  <bruno@clisp.org>
62997
62998         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
62999         Windows PATH as well. Conservative double-quoting. Comments.
63000
63001 2007-07-01  Bruno Haible  <bruno@clisp.org>
63002             Eric Blake  <ebb9@byu.net>
63003             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63004
63005         * gnulib-tool (self_abspathname): Fix algorithm to cope with
63006         empty components in $PATH, denoting '.'.
63007
63008 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63009
63010         * gnulib-tool: Fix indentation.
63011         (func_create_megatestdir): Likewise.
63012         Report by Bruno Haible.
63013
63014 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63015
63016         Sync from Automake.
63017         * build-aux/gnupload: Fix shell portability issues with for loops.
63018         Report by Karl Berry.
63019
63020 2007-06-29  Simon Josefsson  <simon@josefsson.org>
63021
63022         * build-aux/maint.mk (POURL): Use translationproject.org.
63023
63024 2007-06-27  Simon Josefsson  <simon@josefsson.org>
63025             Bruno Haible  <bruno@clisp.org>
63026
63027         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
63028         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
63029         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
63030         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
63031         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
63032
63033 2007-06-27  Bruno Haible  <bruno@clisp.org>
63034
63035         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
63036         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
63037
63038 2007-06-26  Karl Berry  <karl@gnu.org>
63039
63040         * MODULES.html.sh: remove xreadlink-with-size.
63041
63042 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
63043
63044         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
63045         method that I hope also handles the double-include problem noted
63046         by Bruno Haible in
63047         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
63048
63049 2007-06-23  Bruno Haible  <bruno@clisp.org>
63050
63051         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63052         Don't let the 'mostlyclean' target fail if the last subdirectory could
63053         not be removed.
63054         Reported by Karl Berry.
63055
63056 2007-06-23  Bruno Haible  <bruno@clisp.org>
63057
63058         * gnulib-tool (echo): Add a speedier workaround for ksh.
63059         * tests/test-echo.sh: Likewise.
63060
63061 2007-06-23  Bruno Haible  <bruno@clisp.org>
63062
63063         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
63064         * tests/test-echo.sh: Likewise.
63065
63066 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63067
63068         * gnulib-tool (IFS): Initialize early, so we don't set it to
63069         empty later.
63070         (self_abspathname): Rewrite algorithm to set it, reindent.
63071         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
63072         (func_create_megatestdir): Merge some sed scripts.
63073
63074 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
63075
63076         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
63077         exposed by Sun Studio 11 cc on Solaris 8.
63078
63079 2007-06-22  Bruno Haible  <bruno@clisp.org>
63080
63081         * gnulib-tool (echo): Ensure the echo primitive does not interpret
63082         backslashes.
63083         * tests/test-echo.sh: New file.
63084
63085 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63086
63087         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
63088         simplify `sed_replace_build_aux' scripts, they are portable but
63089         echoing them with `echo' is not.
63090         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
63091
63092 2007-06-21  Karl Berry  <karl@gnu.org>
63093
63094         * config/srclist.txt: guess we can't handle the licenses via
63095         srclist at the moment.
63096
63097 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
63098
63099         * MODULES.html.sh: Add include_next.
63100         * modules/include_next: New file.
63101
63102 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
63103
63104         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
63105         INCLUDE_NEXT.
63106         (gl_CHECK_NEXT_HEADERS): New macro.
63107         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
63108         the obsolescent gl_ABSOLUTE_HEADER.
63109         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
63110         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
63111         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
63112         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
63113         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
63114         * m4/math_h.m4 (gl_MATH_H): Likewise.
63115         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
63116         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
63117         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
63118         * m4/stdint.m4 (gl_STDINT_H): Likewise.
63119         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
63120         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
63121         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
63122         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
63123         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
63124         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
63125         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
63126         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
63127         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
63128         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
63129         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
63130         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
63131         * m4/inttypes.m4 (gl_INTTYPES_H): Define
63132         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
63133         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
63134         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
63135         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
63136         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
63137         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
63138         * lib/float_.h: Likewise.
63139         * lib/inttypes_.h: Likewise.
63140         * lib/math_.h: Likewise.
63141         * lib/search_.h: Likewise.
63142         * lib/signal_.h: Likewise.
63143         * lib/stdint_.h: Likewise.
63144         * lib/stdio_.h: Likewise.
63145         * lib/stdlib_.h: Likewise.
63146         * lib/string_.h: Likewise.
63147         * lib/sys_stat_.h: Likewise.
63148         * lib/sys_time_.h: Likewise.
63149         * lib/time_.h: Likewise.
63150         * lib/unistd_.h: Likewise.
63151         * lib/wchar_.h: Likewise.
63152         * lib/wctype_.h: Likewise.
63153         * lib/dirent_.h: Likewise.
63154         * lib/iconv_.h: Likewise.
63155         * lib/locale_.h: Likewise.
63156         * lib/netinet_in_.h: Likewise.
63157         * lib/sys_select_.h: Likewise.
63158         * lib/sys_socket_.h: Likewise.
63159         * lib/sysexits_.h: Likewise.
63160         * modules/fcntl (Depends-on): Depend on include_next, not
63161         absolute_header.
63162         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
63163         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
63164         * modules/fchdir: Likewise.
63165         * modules/float: Likewise.
63166         * modules/iconv_open: Likewise.
63167         * modules/inttypes: Likewise.
63168         * modules/locale: Likewise.
63169         * modules/math: Likewise.
63170         * modules/netinet_in: Likewise.
63171         * modules/search: Likewise.
63172         * modules/signal: Likewise.
63173         * modules/stdint: Likewise.
63174         * modules/stdio: Likewise.
63175         * modules/stdlib: Likewise.
63176         * modules/string: Likewise.
63177         * modules/sys_select: Likewise.
63178         * modules/sys_socket: Likewise.
63179         * modules/sys_stat: Likewise.
63180         * modules/sys_time: Likewise.
63181         * modules/sysexits: Likewise.
63182         * modules/time: Likewise.
63183         * modules/unistd: Likewise.
63184         * modules/wchar: Likewise.
63185         * modules/wctype: Likewise.
63186         * modules/sys_stat: Change maintainer to "all".
63187         * modules/unistd: Likewise.
63188
63189 2007-06-20  Karl Berry  <karl@gnu.org>
63190
63191         * config/srclist.txt: track www changes in license files.
63192
63193 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
63194
63195         * build-aux/bootstrap: Remove stray dot.
63196         Make sure build_aux settings are honored when linking
63197         gnulib_extra_files.
63198
63199 2007-06-19  Eric Blake  <ebb9@byu.net>
63200
63201         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
63202         Allow compilation on cygwin.
63203
63204 2007-06-19  Jim Meyering  <jim@meyering.net>
63205
63206         xreadlink-with-size: Remove module.  No longer used.
63207         Ex-callers now use xreadlink or mreadlink-with-size.
63208         * modules/xreadlink-with-size: Remove module.
63209         * lib/xreadlink-with-size.c: Remove file.
63210         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
63211         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
63212         just before the function definition *is* accurate.
63213
63214         Eliminate one way canonicalize_filename_mode could exit.
63215         * lib/canonicalize.c (canonicalize_filename_mode):
63216         Use mreadlink_with_size, not xreadlink_with_size.
63217
63218 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
63219
63220         Detect porting problems to FreeBSD/arm, which has time_t wider than
63221         long int.  Original problem reported for GNU diff by Xin Li in
63222         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
63223         * modules/getdate (Depends-on): Add intprops, verify.
63224         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
63225         is an integer type no wider than long int.
63226
63227 2007-06-18  Jim Meyering  <jim@meyering.net>
63228
63229         New module: mreadlink-with-size.
63230         * MODULES.html.sh: Add mreadlink-with-size.
63231         * modules/mreadlink-with-size: New module
63232         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
63233         not xreadlink-with-size.
63234         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
63235
63236 2007-06-16  Bruno Haible  <bruno@clisp.org>
63237
63238         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
63239         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
63240         Reported by Gary V. Vaughan <gary@gnu.org>.
63241
63242 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
63243
63244         Revamp lchown so that it lives in unistd.h where it belongs.
63245         * lib/lchown.h: Remove.
63246         * lib/dirchownmod.c: Don't include lib/lchown.h.
63247         * lib/fchownat.c: Likewise.
63248         * lib/openat.c: Likewise.
63249         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
63250         does not follow symlinks.
63251         (EOPNOTSUPP): Define if not defined.
63252         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
63253         is defined to 0.
63254         (lchown): New decl.
63255         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
63256         Do not check for lchown decl.
63257         Set REPLACE_LCHOWN.
63258         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
63259         REPLACE_LCHOWN.
63260         * modules/chown: Make it clear it follows symlinks.
63261         * modules/lchown: Make it clear it doesn't follow symlinks.
63262         (Files): Remove lib/lchown.h
63263         (Depends-on): Add unistd.
63264         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
63265         (Include): Include <unistd.h>, not "lchown.h".
63266         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
63267         REPLACE_LCHOWN.
63268
63269 2007-06-15  Jim Meyering  <jim@meyering.net>
63270
63271         Change license (GPL to LGPL) of fsusage and dependents.
63272         * modules/fsusage (License): Change to LGPL.
63273         * modules/full-read (License): Likewise.
63274         * modules/full-write (License): Likewise.
63275         * modules/safe-read (License): Likewise.
63276         * modules/safe-write (License): Likewise.
63277
63278 2007-06-14  Ben Pfaff  <blp@gnu.org>
63279
63280         Missing part of allocsa -> malloca transition.
63281         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
63282         gl_MALLOCA.
63283
63284 2007-06-12  Bruno Haible  <bruno@clisp.org>
63285
63286         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
63287         to ia64, x86_64, i386.
63288         Reported by Eric Blake.
63289
63290 2007-06-12  Bruno Haible  <bruno@clisp.org>
63291
63292         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
63293         cross-compiling to x86_64.
63294
63295 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
63296
63297         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
63298         glitch reported by Ralf Wildenhues in
63299         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
63300
63301         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
63302         Vin Shelton.
63303
63304 2007-06-11  Bruno Haible  <bruno@clisp.org>
63305
63306         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
63307         replacement string.
63308         Reported by Eric Blake.
63309
63310 2007-06-10  Bruno Haible  <bruno@clisp.org>
63311
63312         Prepare vasnprintf code for use with Unicode strings.
63313         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
63314         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
63315         TYPE_U32_STRING.
63316         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
63317         a_u32_string variants.
63318         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
63319         * lib/printf-args.c: Don't include config.h and the specification
63320         header if PRINTF_FETCHARGS is already defined.
63321         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
63322         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
63323         TYPE_U16_STRING, TYPE_U32_STRING.
63324         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
63325         u16_directive, u16_directives, u32_directive, u32_directives): New
63326         types.
63327         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
63328         New declarations.
63329         * lib/printf-parse.c: Don't include config.h and the specification
63330         header if PRINTF_PARSE is already defined. Eliminate the set of
63331         parameters for WIDE_CHAR_VERSION; the user of this file must provide
63332         them now. Include c-ctype.h.
63333         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
63334         directive and CHAR_T_ONLY_ASCII.
63335         * lib/vasnprintf.c: Don't include config.h and the specification header
63336         if VASNPRINTF is already defined.
63337         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
63338         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
63339         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
63340         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
63341         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
63342         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
63343         code accordingly.
63344         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
63345         pad_ourselves also in this case, with the 'c' and 's' directives, and
63346         with a different notion of "width".
63347         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
63348
63349 2007-06-10  Bruno Haible  <bruno@clisp.org>
63350
63351         * modules/unistr/u32-mbsnlen: New file.
63352         * lib/unistr/u32-mbsnlen.c: New file.
63353
63354         * modules/unistr/u16-mbsnlen: New file.
63355         * lib/unistr/u16-mbsnlen.c: New file.
63356
63357         * modules/unistr/u8-mbsnlen: New file.
63358         * lib/unistr/u8-mbsnlen.c: New file.
63359
63360         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
63361         declarations.
63362
63363 2007-06-10  Bruno Haible  <bruno@clisp.org>
63364
63365         * lib/string_.h (mbsnlen): New declaration.
63366         * lib/mbsnlen.c: New file.
63367         * m4/mbsnlen.m4: New file.
63368         * modules/mbsnlen: New file.
63369         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
63370         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
63371         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
63372
63373 2007-06-10  Bruno Haible  <bruno@clisp.org>
63374
63375         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
63376
63377 2007-06-10  Bruno Haible  <bruno@clisp.org>
63378
63379         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
63380         * lib/mbuiter.h: Likewise.
63381
63382 2007-06-10  Bruno Haible  <bruno@clisp.org>
63383
63384         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
63385         declaration.
63386
63387 2007-06-10  Karl Berry  <karl@gnu.org>
63388
63389         * config/srclist.txt: remove gettext entries, Bruno prefers
63390         to update individually.
63391
63392 2007-06-10  Bruno Haible  <bruno@clisp.org>
63393
63394         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
63395         'maxlen'. Ensure only length + width bytes are allocated, not
63396         length + 1 + width.
63397
63398 2007-06-09  Bruno Haible  <bruno@clisp.org>
63399
63400         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
63401         (CHAR_T): Remove macro.
63402         (VASNPRINTF): Update.
63403
63404 2007-06-09  Bruno Haible  <bruno@clisp.org>
63405
63406         * MODULES.html.sh (Unicode string functions): Add the new modules.
63407
63408         * modules/uniconv/u32-conv-to-enc: New file.
63409         * lib/uniconv/u32-conv-to-enc.c: New file.
63410         * modules/uniconv/u32-conv-to-enc-tests: New file.
63411         * tests/uniconv/test-u32-conv-to-enc.c: New file.
63412
63413         * modules/uniconv/u16-conv-to-enc: New file.
63414         * lib/uniconv/u16-conv-to-enc.c: New file.
63415         * lib/uniconv/u-conv-to-enc.h: New file.
63416         * modules/uniconv/u16-conv-to-enc-tests: New file.
63417         * tests/uniconv/test-u16-conv-to-enc.c: New file.
63418
63419         * modules/uniconv/u8-conv-to-enc: New file.
63420         * lib/uniconv/u8-conv-to-enc.c: New file.
63421         * modules/uniconv/u8-conv-to-enc-tests: New file.
63422         * tests/uniconv/test-u8-conv-to-enc.c: New file.
63423
63424         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
63425         u32_conv_to_encoding): New declarations.
63426
63427 2007-06-09  Bruno Haible  <bruno@clisp.org>
63428
63429         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
63430
63431 2007-06-09  Bruno Haible  <bruno@clisp.org>
63432
63433         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
63434         * modules/malloca: Renamed from modules/allocsa, updated.
63435         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
63436         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
63437         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
63438         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
63439         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
63440         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
63441         * modules/xmalloca: Renamed from modules/xallocsa, updated.
63442         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
63443         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
63444         * modules/c-strcasestr (Depends-on): Update.
63445         * lib/c-strcasestr.c: Update.
63446         * modules/c-strstr (Depends-on): Update.
63447         * lib/c-strstr.c: Update.
63448         * modules/canonicalize-lgpl (Depends-on): Update.
63449         * lib/canonicalize-lgpl.c: Update.
63450         * modules/clean-temp (Depends-on): Update.
63451         * lib/clean-temp.c: Update.
63452         * modules/csharpcomp (Depends-on): Update.
63453         * lib/csharpcomp.c: Update.
63454         * modules/csharpexec (Depends-on): Update.
63455         * lib/csharpexec.c: Update.
63456         * modules/javacomp (Depends-on): Update.
63457         * lib/javacomp.c: Update.
63458         * modules/javaexec (Depends-on): Update.
63459         * lib/javaexec.c: Update.
63460         * modules/mbscasestr (Depends-on): Update.
63461         * lib/mbscasestr.c: Update.
63462         * modules/mbsstr (Depends-on): Update.
63463         * lib/mbsstr.c: Update.
63464         * modules/setenv (Depends-on): Update.
63465         * lib/setenv.c: Update.
63466         * modules/strcasestr (Depends-on): Update.
63467         * lib/strcasestr.c: Update.
63468         * modules/striconveha (Depends-on): Update.
63469         * lib/striconveha.c: Update.
63470         * modules/relocatable-prog-wrapper (Files): Update.
63471         * lib/relocwrapper.c: Update.
63472         * build-aux/install-reloc: Update.
63473         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
63474
63475 2007-06-08  Bruno Haible  <bruno@clisp.org>
63476
63477         Port to uClibc.
63478         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
63479         * lib/fpurge.c (fpurge): Likewise.
63480         * lib/freading.c (freading): Likewise.
63481         * lib/fseeko.c (rpl_fseeko): Likewise.
63482         * lib/fseterr.c (fseterr): Likewise.
63483         * lib/fwriting.c (fwriting): Likewise.
63484         * tests/test-fflush.c (main): Avoid a failure on uClibc.
63485
63486 2007-06-08  Bruno Haible  <bruno@clisp.org>
63487
63488         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
63489         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
63490         * modules/gettext (Files): Add m4/intlmacosx.m4.
63491
63492 2007-06-07  Bruno Haible  <bruno@clisp.org>
63493
63494         * modules/localename-tests: New file.
63495         * tests/test-localename.c: New file.
63496
63497         New module 'localename'.
63498         * lib/localename.h: New file.
63499         * lib/localename.c: New file, from GNU gettext.
63500         * m4/localename.m4: New file.
63501         * modules/localename: New file.
63502
63503 2007-06-07  Bruno Haible  <bruno@clisp.org>
63504
63505         Work around the lack of <wchar.h> on some builds of uClibc.
63506         * doc/headers/wchar.texi: Update.
63507         * lib/wchar_.h: Include <wchar.h> only if it exists.
63508         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
63509         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
63510         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
63511         doesn't exist.
63512         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
63513         * modules/mbfile (Depends-on): Add wchar.
63514         * modules/mbiter (Depends-on): Likewise.
63515         * modules/mbuiter (Depends-on): Likewise.
63516         Reported by Simon Josefsson.
63517
63518 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
63519
63520         Work around problem reported by Steven M. Schweda in
63521         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
63522         Tru64 5.1B with the Compaq compiler environment installed declares
63523         an 'isblank' function but does not define it in the C library.
63524         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
63525         * lib/regex_internal.h (isblank): Likewise.
63526         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
63527         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
63528
63529 2007-06-05  Bruno Haible  <bruno@clisp.org>
63530
63531         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
63532         ia64.
63533         * modules/printf-safe: New file.
63534         * modules/fprintf-posix (Depends-on): Add printf-safe.
63535         * modules/printf-posix (Depends-on): Likewise.
63536         * modules/snprintf-posix (Depends-on): Likewise.
63537         * modules/sprintf-posix (Depends-on): Likewise.
63538         * modules/vasnprintf-posix (Depends-on): Likewise.
63539         * modules/vasprintf-posix (Depends-on): Likewise.
63540         * modules/vfprintf-posix (Depends-on): Likewise.
63541         * modules/vprintf-posix (Depends-on): Likewise.
63542         * modules/vsnprintf-posix (Depends-on): Likewise.
63543         * modules/vsprintf-posix (Depends-on): Likewise.
63544         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
63545         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
63546         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
63547         "no" on i386, x86_64, ia64.
63548         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
63549         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63550         on i386, x86_64, ia64.
63551         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
63552         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63553         on i386, x86_64, ia64.
63554         * tests/test-vasnprintf-posix.c: Include float.h.
63555         (LDBL80_WORDS): New macro.
63556         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63557         on i386, x86_64, ia64.
63558         * tests/test-vasprintf-posix.c: Include float.h.
63559         (LDBL80_WORDS): New macro.
63560         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63561         on i386, x86_64, ia64.
63562         * tests/test-snprintf-posix.c: Include float.h.
63563         * tests/test-sprintf-posix.c: Likewise.
63564         * tests/test-vsnprintf-posix.c: Likewise.
63565         * tests/test-vsprintf-posix.c: Likewise.
63566
63567 2007-06-05  Bruno Haible  <bruno@clisp.org>
63568
63569         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
63570         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
63571         non-IEEE numbers on i386, x86_64, ia64.
63572         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
63573         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
63574         * tests/test-isnanl.h: Include float.h.
63575         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
63576
63577 2007-06-05  Bruno Haible  <bruno@clisp.org>
63578
63579         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
63580         also the %a / %A. Handle the %a / %A code before this extra handling.
63581
63582 2007-06-05  Bruno Haible  <bruno@clisp.org>
63583
63584         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
63585         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
63586
63587 2007-06-05  Bruno Haible  <bruno@clisp.org>
63588
63589         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
63590         typo in variable name.
63591
63592 2007-06-05  Eric Blake  <ebb9@byu.net>
63593
63594         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
63595         Reported by Simon Josefsson.
63596
63597 2007-06-04  Bruno Haible  <bruno@clisp.org>
63598
63599         Avoid test failures on some PowerPC platforms.
63600         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
63601         Define differently for PowerPC.
63602         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
63603         Reported by Gary V. Vaughan <gary@gnu.org>.
63604
63605 2007-06-02  Bruno Haible  <bruno@clisp.org>
63606
63607         Fix test-stdint failure on FreeBSD/ia64.
63608         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
63609         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
63610         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
63611         * doc/headers/stdint.texi: Update.
63612
63613 2007-06-01  Bruno Haible  <bruno@clisp.org>
63614
63615         * tests/test-binary-io.c (main): Pass a third argument to open().
63616         Reported by Gary V. Vaughan <gary@gnu.org>.
63617
63618 2007-06-01  Bruno Haible  <bruno@clisp.org>
63619
63620         * doc/functions/frexpl.texi: Update for mingw.
63621
63622 2007-06-01  Bruno Haible  <bruno@clisp.org>
63623
63624         * tests/test-lseek.c (main): Disable test of errno for invalid third
63625         argument.
63626         * doc/functions/lseek.texi: Update.
63627         Reported by Gary V. Vaughan <gary@gnu.org>.
63628
63629 2007-05-28  Bruno Haible  <bruno@clisp.org>
63630
63631         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
63632
63633 2007-05-31  Eric Blake  <ebb9@byu.net>
63634
63635         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
63636         cross compiling.
63637
63638 2007-05-30  Eric Blake  <ebb9@byu.net>
63639         and Bruno Haible  <bruno@clisp.org>
63640
63641         Work around mingw test failures exposed by m4-1.4.9b.
63642         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
63643         * tests/test-unistd.c: Disable uid_t and git_t tests for the
63644         moment.
63645
63646 2007-05-30  Bruno Haible  <bruno@clisp.org>
63647
63648         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
63649         assuming that they are closed. Needed on HP-UX 11.
63650
63651 2007-05-29  Bruno Haible  <bruno@clisp.org>
63652
63653         Fix a problem with #include_next.
63654         * lib/dirent_.h: Split the double-inclusion guard.
63655         * lib/fcntl_.h: Likewise.
63656         * lib/float_.h: Likewise.
63657         * lib/iconv_.h: Likewise.
63658         * lib/inttypes_.h: Likewise.
63659         * lib/locale_.h: Likewise.
63660         * lib/math_.h: Likewise.
63661         * lib/netinet_in_.h: Likewise.
63662         * lib/search_.h: Likewise.
63663         * lib/signal_.h: Likewise.
63664         * lib/stdint_.h: Likewise.
63665         * lib/stdio_.h: Likewise.
63666         * lib/stdlib_.h: Likewise.
63667         * lib/string_.h: Likewise.
63668         * lib/sys_select_.h: Likewise.
63669         * lib/sys_socket_.h: Likewise.
63670         * lib/sys_stat_.h: Likewise.
63671         * lib/sys_time_.h: Likewise.
63672         * lib/sysexits_.h: Likewise.
63673         * lib/time_.h: Likewise.
63674         * lib/unistd_.h: Likewise.
63675         * lib/wchar_.h: Likewise.
63676         * lib/wctype_.h: Likewise.
63677
63678 2007-05-29  Bruno Haible  <bruno@clisp.org>
63679
63680         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
63681         for the moment.
63682
63683 2007-05-29  Bruno Haible  <bruno@clisp.org>
63684
63685         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
63686         invocation.
63687         Reported by Eric Blake.
63688
63689 2007-05-29  Bruno Haible  <bruno@clisp.org>
63690
63691         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
63692         compiling case.
63693
63694 2007-05-29  Eric Blake  <ebb9@byu.net>
63695             Bruno Haible  <bruno@clisp.org>
63696
63697         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
63698         cross compiles.
63699
63700 2007-05-28  Eric Blake  <ebb9@byu.net>
63701
63702         * modules/closein-tests (test_closein_LDADD): Support test on
63703         cygwin with libtool.
63704
63705 2007-05-28  Bruno Haible  <bruno@clisp.org>
63706
63707         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
63708         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
63709         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
63710         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
63711         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
63712         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
63713         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
63714         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
63715         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
63716
63717 2007-05-28  Eric Blake  <ebb9@byu.net>
63718
63719         Unconditionally include <config.h> in unit tests.
63720         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
63721         * tests/test-allocsa.c, tests/test-arcfour.c,
63722         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
63723         tests/test-array_list.c, tests/test-array_oset.c,
63724         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
63725         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
63726         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
63727         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
63728         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
63729         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
63730         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
63731         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
63732         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
63733         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
63734         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
63735         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
63736         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
63737         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
63738         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
63739         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
63740         test-md5.c, test-memmem.c, test-printf-posix.c,
63741         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
63742         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
63743         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
63744         test-strcasestr.c, test-striconv.c, test-striconveh.c,
63745         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
63746         test-vasnprintf-posix2.c, test-vasnprintf.c,
63747         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
63748         test-vfprintf-posix.c, test-vprintf-posix.c,
63749         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
63750         test-xvasprintf.c: Likewise.
63751
63752 2007-05-28  Bruno Haible  <bruno@clisp.org>
63753
63754         * gnulib-tool (func_import): Remember the --with-tests command-line
63755         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
63756         Reported by Eric Blake.
63757
63758 2007-05-28  Bruno Haible  <bruno@clisp.org>
63759
63760         * modules/ftell-tests: New file.
63761         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
63762         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
63763
63764         * lib/ftell.c: New file.
63765         * modules/ftell: New file.
63766         * m4/ftell.m4: New file.
63767         * doc/functions/ftell.texi: Update.
63768         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
63769         REPLACE_FTELL.
63770         * lib/stdio_.h (rpl_ftell): New declaration.
63771         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
63772         REPLACE_FTELL.
63773
63774 2007-05-28  Eric Blake  <ebb9@byu.net>
63775
63776         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
63777
63778 2007-05-28  Bruno Haible  <bruno@clisp.org>
63779
63780         * modules/fseek-tests: New file.
63781         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
63782         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
63783
63784         * lib/fseek.c: New file.
63785         * modules/fseek: New file.
63786         * m4/fseek.m4: New file.
63787         * doc/functions/fseek.texi: Update.
63788         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
63789         REPLACE_FSEEK.
63790         * lib/stdio_.h (rpl_fseek): New declaration.
63791         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
63792         REPLACE_FSEEK.
63793
63794 2007-05-28  Bruno Haible  <bruno@clisp.org>
63795
63796         * lib/stdio_.h (fflush): More comments.
63797
63798 2007-05-28  Bruno Haible  <bruno@clisp.org>
63799
63800         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
63801         runtime test.
63802
63803 2007-05-28  Eric Blake  <ebb9@byu.net>
63804
63805         Improve lseek module.
63806         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
63807         * lib/unistd_.h (lseek): Scale back link warning message.
63808         * tests/test-lseek.c: Beef up test.
63809         * tests/test-lseek.sh: Exercise more facets of lseek.
63810         Reported by Bruno Haible.
63811
63812 2007-05-28  Bruno Haible  <bruno@clisp.org>
63813
63814         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
63815         to define.
63816
63817 2007-05-27  Bruno Haible  <bruno@clisp.org>
63818
63819         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
63820
63821 2007-05-27  Bruno Haible  <bruno@clisp.org>
63822
63823         * modules/openmp: New file.
63824         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
63825         Noah Misch.
63826
63827 2007-05-26  Bruno Haible  <bruno@clisp.org>
63828
63829         * modules/chdir-long (Depends-on): Add fchdir.
63830         * modules/chdir-safer (Depends-on): Likewise.
63831         * modules/fts (Depends-on): Likewise.
63832         * modules/fts-lgpl (Depends-on): Likewise.
63833         * modules/openat (Depends-on): Likewise.
63834         * modules/savewd (Depends-on): Likewise.
63835
63836 2007-05-24  Eric Blake  <ebb9@byu.net>
63837
63838         Fix lseek on mingw.
63839         * modules/lseek: New module.
63840         * m4/lseek.m4: New file.
63841         * lib/lseek.c: New file.
63842         * modules/lseek-tests: New file.
63843         * tests/test-lseek.c: New file.
63844         * tests/test-lseek.sh: New file.
63845         * MODULES.html.sh: Document lseek module.
63846         * modules/fflush (Depends-on): Add lseek, fseeko.
63847         * modules/fseeko (Depends-on): Likewise.
63848         * modules/ftello (Depends-on): Likewise.
63849         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
63850         broken.
63851         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
63852         broken.
63853         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
63854         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
63855         * lib/ftello.c (rpl_ftello): Likewise.
63856         * tests/test-fseeko.c (main): Test this.
63857         * tests/test-fseeko.sh: Likewise.
63858         * tests/test-ftello.c (main): Likewise.
63859         * tests/test-ftello.sh: Likewise.
63860         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
63861         implies replacing fseek.
63862         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
63863         HAVE_FTELLO.
63864         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
63865         * modules/unistd (Makefile.am): Likewise.
63866         * lib/unistd_.h (lseek): Declare a replacement.
63867         * doc/functions/lseek.texi (lseek): Document this fix.
63868         * doc/functions/fseek.texi (fseek): Likewise.
63869         * doc/functions/ftell.texi (ftell): Likewise.
63870
63871 2007-05-24  Bruno Haible  <bruno@clisp.org>
63872
63873         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
63874         in the printed representation of a NaN.
63875         * tests/test-vasprintf-posix.c (test_function): Likewise.
63876         * tests/test-snprintf-posix.h (test_function): Likewise.
63877         * tests/test-sprintf-posix.h (test_function): Likewise.
63878         Reported by Eric Blake.
63879
63880 2007-05-23  Eric Blake  <ebb9@byu.net>
63881
63882         Fix fseeko/ftello on cygwin 1.5.24.
63883         * doc/functions/fseeko.texi (fseeko): Document the fix.
63884         * doc/functions/ftello.texi (ftello): Document the fix.
63885         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
63886         * doc/functions/stdout.text (stdout): New file.
63887         * doc/functions/stderr.text (stderr): New file.
63888         * doc/gnulib.texi (Function Substitutes): Use new files.
63889         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
63890         prior to 1.7.0.
63891         * tests/test-ftello.c (main): Likewise for ftello.
63892         * tests/test-fseeko.sh: New file.
63893         * tests/test-ftello.sh: New file.
63894         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
63895         with seekable stdin.
63896         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
63897         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
63898         (gl_REPLACE_FSEEKO): New macro.
63899         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
63900         * modules/fseeko (Files): Distribute fseeko.c.
63901         * modules/ftello (Files): Distribute ftello.c.
63902         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
63903         mode.
63904         * lib/ftello.c (rpl_ftello): New file.
63905         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
63906         fseeko, ftello.
63907         (gl_STDIN_LARGE_OFFSET): New macro.
63908         * modules/stdio (Makefile.am): Perform the replacement.
63909         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
63910
63911 2007-05-23  Bruno Haible  <bruno@clisp.org>
63912
63913         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
63914         GNULIB_POSIXCHECK is defined.
63915
63916 2007-05-21  Bruno Haible  <bruno@clisp.org>
63917
63918         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
63919         Check also the output for NaN arguments. When cross-compiling, guess
63920         no on IRIX.
63921         * lib/vasnprintf.c: Update comments.
63922         * tests/test-vasnprintf-posix.c (strisnan): New function.
63923         (test_function): Use it.
63924         * tests/test-vasprintf-posix.c (strisnan): New function.
63925         (test_function): Use it.
63926         * tests/test-snprintf-posix.h (strisnan): New function.
63927         (test_function): Use it.
63928         * tests/test-sprintf-posix.h (strisnan): New function.
63929         (test_function): Use it.
63930         Reported by Eric Blake.
63931
63932 2007-05-20  Bruno Haible  <bruno@clisp.org>
63933
63934         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
63935         numbers that fails on BeOS.
63936         * doc/functions/frexpl.texi: Update.
63937
63938 2007-05-20  Jim Meyering  <jim@meyering.net>
63939
63940         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
63941         forced upon us by glibc-2.6.
63942
63943 2007-05-20  Bruno Haible  <bruno@clisp.org>
63944
63945         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
63946         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
63947         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
63948         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
63949         NEED_PRINTF_INFINITE.
63950         (is_infinitel): New function.
63951         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
63952         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
63953         gl_PREREQ_VASNPRINTF_INFINITE.
63954         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
63955         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63956         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
63957         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
63958         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
63959         gl_PREREQ_VASNPRINTF_INFINITE.
63960         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63961         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63962         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63963         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63964         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63965         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63966         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63967         * doc/functions/fprintf.texi: Update.
63968         * doc/functions/printf.texi: Update.
63969         * doc/functions/snprintf.texi: Update.
63970         * doc/functions/sprintf.texi: Update.
63971         * doc/functions/vfprintf.texi: Update.
63972         * doc/functions/vprintf.texi: Update.
63973         * doc/functions/vsnprintf.texi: Update.
63974         * doc/functions/vsprintf.texi: Update.
63975
63976 2007-05-20  Bruno Haible  <bruno@clisp.org>
63977
63978         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
63979         was not found in libc.
63980         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
63981
63982 2007-05-20  Bruno Haible  <bruno@clisp.org>
63983
63984         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
63985         printed as "-nan" instead of "nan".
63986         * tests/test-vasprintf-posix.c (test_function): Likewise.
63987         * tests/test-snprintf-posix.h (test_function): Likewise.
63988         * tests/test-sprintf-posix.h (test_function): Likewise.
63989         Needed for HP-UX 11.
63990
63991 2007-05-20  Jim Meyering  <jim@meyering.net>
63992
63993         Fix buggy test for the fchownat-deref bug.
63994         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
63995         symlink required for the run-test.  Without it, this test would
63996         always declare that fchownat doesn't work, and client code would
63997         unnecessarily use the replacement function with fixed libc.
63998         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
63999         Reported by Greg Schafer.
64000
64001 2007-05-19  Bruno Haible  <bruno@clisp.org>
64002
64003         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
64004         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
64005         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
64006         Needed for IRIX 6.5 and Solaris 2.5.1.
64007
64008 2007-05-19  Bruno Haible  <bruno@clisp.org>
64009
64010         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
64011         (test_function): Skip tests involving -0.0 on platforms where
64012         -0.0 = 0.0.
64013         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
64014         (test_function): Skip tests involving -0.0 on platforms where
64015         -0.0 = 0.0.
64016         * tests/test-snprintf-posix.h (have_minus_zero): New function.
64017         (test_function): Skip tests involving -0.0 on platforms where
64018         -0.0 = 0.0.
64019         * tests/test-sprintf-posix.h (have_minus_zero): New function.
64020         (test_function): Skip tests involving -0.0 on platforms where
64021         -0.0 = 0.0.
64022         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
64023         tests.
64024         * tests/test-printf-posix.h (test_function): Likewise.
64025         * tests/test-printf-posix.output: Remove all -0.0 related results.
64026         Needed for IRIX 6.5.
64027
64028 2007-05-19  Bruno Haible  <bruno@clisp.org>
64029
64030         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
64031         printed as "nan0x7fffffff" instead of "nan".
64032         * tests/test-vasprintf-posix.c (test_function): Likewise.
64033         * tests/test-snprintf-posix.h (test_function): Likewise.
64034         * tests/test-sprintf-posix.h (test_function): Likewise.
64035         * tests/test-fprintf-posix.h (NaN): Remove macro.
64036         (test_function): Remove all NaN related tests.
64037         * tests/test-printf-posix.h (NaN): Remove macro.
64038         (test_function): Remove all NaN related tests.
64039         * tests/test-printf-posix.output: Remove all NaN related results.
64040         Needed for IRIX 6.5.
64041
64042 2007-05-19  Bruno Haible  <bruno@clisp.org>
64043
64044         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
64045         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
64046
64047 2007-05-19  Bruno Haible  <bruno@clisp.org>
64048
64049         * lib/float_.h: New file.
64050         * m4/float_h.m4: New file.
64051         * modules/float: New file.
64052         * modules/isnanl (Dependencies): Add float.
64053         * modules/isnanl-nolibm (Dependencies): Likewise.
64054         * modules/mathl (Dependencies): Likewise.
64055         * modules/printf-frexpl (Dependencies): Likewise.
64056         * modules/signbit (Dependencies): Likewise.
64057         * modules/vasnprintf (Dependencies): Likewise.
64058         * doc/headers/float.texi: Update.
64059
64060 2007-05-19  Jim Meyering  <jim@meyering.net>
64061
64062         * lib/utimens.c (gl_futimens): Rename from futimens,
64063         now that glibc-2.6 declares futimens.
64064         * lib/utimens.h: Likewise.
64065
64066 2007-05-19  Bruno Haible  <bruno@clisp.org>
64067
64068         Avoid test failures on mingw.
64069         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
64070         * tests/test-printf-posix.sh: Likewise.
64071         * tests/test-vfprintf-posix.sh: Likewise.
64072         * tests/test-vprintf-posix.sh: Likewise.
64073
64074 2007-05-19  Bruno Haible  <bruno@clisp.org>
64075
64076         Fix *printf result for NaN, Inf, -0.0 on mingw.
64077         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
64078         * lib/vasnprintf.c: Include math.h and isnan.h.
64079         (is_infinite_or_zero): New function.
64080         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
64081         values in the %f, %F, %e, %E, %g, %G directives.
64082         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
64083         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64084         gl_PRINTF_INFINITE and test its result. Invoke
64085         gl_PREREQ_VASNPRINTF_INFINITE.
64086         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64087         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64088         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64089         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64090         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64091         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64092         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64093         * doc/functions/fprintf.texi: Update.
64094         * doc/functions/printf.texi: Update.
64095         * doc/functions/snprintf.texi: Update.
64096         * doc/functions/sprintf.texi: Update.
64097         * doc/functions/vfprintf.texi: Update.
64098         * doc/functions/vprintf.texi: Update.
64099         * doc/functions/vsnprintf.texi: Update.
64100         * doc/functions/vsprintf.texi: Update.
64101
64102 2007-05-19  Bruno Haible  <bruno@clisp.org>
64103
64104         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
64105         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
64106         Instead of multiplying with 10^k, set extra_zeroes to k.
64107         (scale10_round_long_double): Remove function.
64108
64109 2007-05-18  Bruno Haible  <bruno@clisp.org>
64110
64111         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
64112         introduced on 2007-05-06.
64113
64114 2007-05-18  Bruno Haible  <bruno@clisp.org>
64115
64116         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
64117         %g directives.
64118         * tests/test-vasprintf-posix.c (test_function): Likewise.
64119         * tests/test-snprintf-posix.h (test_function): Likewise.
64120         * tests/test-sprintf-posix.h (test_function): Likewise.
64121
64122 2007-05-18  Bruno Haible  <bruno@clisp.org>
64123
64124         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
64125         (strmatch): New function.
64126         (test_function): Test the %f directive on numbers of various exponents.
64127         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
64128         (strmatch): New function.
64129         (test_function): Test the %f directive on numbers of various exponents.
64130         * tests/test-snprintf-posix.h (strmatch): New function.
64131         (test_function): Test the %f directive on numbers of various exponents.
64132         * tests/test-sprintf-posix.h (strmatch): New function.
64133         (test_function): Test the %f directive on numbers of various exponents.
64134         * tests/test-snprintf-posix.c (SIZEOF): New macro.
64135         * tests/test-sprintf-posix.c (SIZEOF): New macro.
64136         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
64137         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
64138
64139 2007-05-18  Bruno Haible  <bruno@clisp.org>
64140
64141         Add support for 'long double' number output.
64142         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
64143         * lib/vasnprintf.c: Include math.h and float+.h.
64144         (mp_limb_t): New type.
64145         (GMP_LIMB_BITS): New macro.
64146         (mp_twolimb_t): New type.
64147         (GMP_TWOLIMB_BITS): New macro.
64148         (mpn_t): New type.
64149         (multiply, divide, convert_to_decimal, decode_long_double,
64150         scale10_round_long_double, scale10_round_decimal_long_double,
64151         floorlog10l): New functions.
64152         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
64153         for the %f, %F, %e, %E, %g, %G directives.
64154         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
64155         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64156         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
64157         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
64158         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64159         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64160         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64161         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64162         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64163         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64164         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64165         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
64166         * modules/snprintf-posix (Depends-on): Likewise.
64167         * modules/sprintf-posix (Depends-on): Likewise.
64168         * modules/vasnprintf-posix (Depends-on): Likewise.
64169         * modules/vasprintf-posix (Depends-on): Likewise.
64170         * modules/vfprintf-posix (Depends-on): Likewise.
64171         * modules/vsnprintf-posix (Depends-on): Likewise.
64172         * modules/vsprintf-posix (Depends-on): Likewise.
64173         * modules/vasnprintf (Files): Add lib/float+.h.
64174         * doc/functions/fprintf.texi: Update.
64175         * doc/functions/printf.texi: Update.
64176         * doc/functions/snprintf.texi: Update.
64177         * doc/functions/sprintf.texi: Update.
64178         * doc/functions/vfprintf.texi: Update.
64179         * doc/functions/vprintf.texi: Update.
64180         * doc/functions/vsnprintf.texi: Update.
64181         * doc/functions/vsprintf.texi: Update.
64182
64183 2007-05-18  Bruno Haible  <bruno@clisp.org>
64184
64185         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
64186
64187 2007-05-18  Bruno Haible  <bruno@clisp.org>
64188
64189         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
64190         for printing 64-bit integers. Needed for mingw.
64191
64192 2007-05-18  Bruno Haible  <bruno@clisp.org>
64193
64194         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
64195         gl_FUNC_FREXPL_WORKS.
64196         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
64197
64198 2007-05-18  Bruno Haible  <bruno@clisp.org>
64199
64200         * modules/frexpl-nolibm-tests: New file.
64201
64202         * modules/frexpl-nolibm: New file.
64203         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
64204
64205 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
64206
64207         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
64208         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
64209         GCC 4.2, which otherwise issues a lot of warnings.
64210         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
64211         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
64212         Likewise.
64213         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
64214         * modules/iconv_open (iconv.h): Likewise.
64215         * modules/locale (locale.h): Likewise.
64216         * modules/netinet_in (netinet/in.h): Likewise.
64217         * modules/sys_select (sys_select.h): Likewise.
64218         * modules/sys_socket (sys/socket.h): Likewise.
64219         * modules/sys_stat (sys/stat.h): Likewise.
64220         * modules/sysexits (sysexits.h): Likewise.
64221         * modules/unistd (unistd.h): Likewise.
64222
64223 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64224
64225         * modules/closein-tests (Makefile.am): Distribute
64226         `test-closein.sh'.
64227
64228 2007-05-17  Bruno Haible  <bruno@clisp.org>
64229
64230         * tests/test-printf-posix.output: Renamed from
64231         tests/test-fprintf-posix.out.
64232         * modules/fprintf-posix-tests: Update.
64233         * modules/printf-posix-tests: Update.
64234         * modules/vfprintf-posix-tests: Update.
64235         * modules/vprintf-posix-tests: Update.
64236         * tests/test-fprintf-posix.sh: Update.
64237         * tests/test-printf-posix.sh: Update.
64238         * tests/test-vfprintf-posix.sh: Update.
64239         * tests/test-vprintf-posix.sh: Update.
64240         Reported by Ralf Wildenhues.
64241
64242 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
64243
64244         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
64245         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
64246         GCC 4.2, which otherwise issues a lot of warnings.
64247         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
64248         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
64249         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
64250         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
64251         it should no longer be needed.
64252         * lib/string_.h: Likewise.
64253         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
64254         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
64255         * modules/inttypes (inttypes.h): Likewise.
64256         * modules/math (math.h): Likewise.
64257         * modules/search (search.h): Likewise.
64258         * modules/signal (signal.h): Likewise.
64259         * modules/stdint (stdint.h): Likewise.
64260         * modules/stdio (stdio.h): Likewise.
64261         * modules/stdlib (stdlib.h): Likewise.
64262         * modules/string (string.h): Likewise.
64263         * modules/sys_time (sys/time.h): Likewise.
64264         * modules/time (time.h): Likewise.
64265         * modules/wchar (wchar.h): Likewise.
64266         * modules/wctype (wtype.h): Likewise.
64267
64268 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
64269
64270         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
64271
64272 2007-05-13  Bruno Haible  <bruno@clisp.org>
64273
64274         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
64275         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64276         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
64277         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64278         (gl_PREREQ_STRTOK_R): Don't require it here.
64279
64280 2007-05-13  Bruno Haible  <bruno@clisp.org>
64281
64282         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
64283         when used in C++ mode.
64284
64285 2007-05-12  Bruno Haible  <bruno@clisp.org>
64286
64287         * lib/linebuffer.h: Tweak doc.
64288         * lib/linebuffer.c: Likewise.
64289
64290 2007-05-12  James Youngman  <jay@gnu.org>
64291
64292         * lib/linebuffer.c (readlinebuffer_delim): New function,
64293         like readlinebuffer, but use a caller-specified delimiter.
64294         (readlinebuffer): Just call readlinebuffer_delim with '\n'
64295         as the delimiter.
64296         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
64297
64298 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
64299
64300         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
64301         * modules/openat (Files): Remove openat-die.c.
64302         (Depends-on): Add openat-die.
64303         * modules/openat-die: New module.
64304
64305 2007-05-06  Bruno Haible  <bruno@clisp.org>
64306
64307         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
64308         Update with info about Cygwin.
64309         * doc/functions/fprintf.texi: Update.
64310         * doc/functions/printf.texi: Update.
64311         * doc/functions/snprintf.texi: Update.
64312         * doc/functions/sprintf.texi: Update.
64313         * doc/functions/vfprintf.texi: Update.
64314         * doc/functions/vprintf.texi: Update.
64315         * doc/functions/vsnprintf.texi: Update.
64316         * doc/functions/vsprintf.texi: Update.
64317         Reported by Eric Blake.
64318
64319 2007-05-06  Bruno Haible  <bruno@clisp.org>
64320
64321         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
64322         padding ourselves for the floating-point directives.
64323         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
64324         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
64325         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64326         gl_PRINTF_FLAG_ZERO and test its result. Invoke
64327         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
64328         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64329         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
64330         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64331         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64332         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64333         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64334         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64335         * tests/test-snprintf-posix.h (test_function): Also check the width
64336         and some flags in the %f directive.
64337         * tests/test-sprintf-posix.h (test_function): Likewise.
64338         * tests/test-vasnprintf-posix.c (test_function): Likewise.
64339         * tests/test-vasprintf-posix.c (test_function): Likewise.
64340         * doc/functions/fprintf.texi: Update.
64341         * doc/functions/printf.texi: Update.
64342         * doc/functions/snprintf.texi: Update.
64343         * doc/functions/sprintf.texi: Update.
64344         * doc/functions/vfprintf.texi: Update.
64345         * doc/functions/vprintf.texi: Update.
64346         * doc/functions/vsnprintf.texi: Update.
64347         * doc/functions/vsprintf.texi: Update.
64348
64349 2007-05-06  Bruno Haible  <bruno@clisp.org>
64350
64351         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
64352         pass the ' flag character to sprintf or snprintf.
64353         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
64354         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
64355         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64356         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
64357         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
64358         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64359         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
64360         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64361         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64362         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64363         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64364         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64365         * tests/test-snprintf-posix.h (test_function): Also check the grouping
64366         flag.
64367         * tests/test-sprintf-posix.h (test_function): Likewise.
64368         * tests/test-vasnprintf-posix.c (test_function): Likewise.
64369         * tests/test-vasprintf-posix.c (test_function): Likewise.
64370         * doc/functions/fprintf.texi: Update.
64371         * doc/functions/printf.texi: Update.
64372         * doc/functions/snprintf.texi: Update.
64373         * doc/functions/sprintf.texi: Update.
64374         * doc/functions/vfprintf.texi: Update.
64375         * doc/functions/vprintf.texi: Update.
64376         * doc/functions/vsnprintf.texi: Update.
64377         * doc/functions/vsprintf.texi: Update.
64378
64379 2007-05-01  Bruno Haible  <bruno@clisp.org>
64380
64381         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
64382
64383 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
64384
64385         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
64386         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
64387
64388 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64389
64390         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
64391         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
64392         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
64393
64394 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
64395
64396         * lib/argp-help.c (struct hol_entry): New member `ord'.
64397         (HOL_ENTRY_PTRCMP): Use ord for comparison
64398         (hol_sort): Initialize ord.
64399
64400 2007-05-01  Bruno Haible  <bruno@clisp.org>
64401
64402         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
64403         Reported by Eric Blake.
64404         * doc/gnulib.texi (Function Substitutes): Update.
64405
64406 2007-05-01  Bruno Haible  <bruno@clisp.org>
64407
64408         * doc/functions.texi: Remove file, now redundant through
64409         doc/functions/*.texi.
64410
64411 2007-05-01  Bruno Haible  <bruno@clisp.org>
64412
64413         * modules/argp (Depends-on): Add sleep.
64414
64415 2007-05-01  Bruno Haible  <bruno@clisp.org>
64416
64417         * modules/sleep-tests: New file.
64418         * tests/test-sleep.c: New file.
64419
64420         * modules/sleep: New file.
64421         * lib/sleep.c: New file.
64422         * m4/sleep.m4: New file.
64423         * lib/unistd_.h (sleep): New declaration.
64424         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
64425         HAVE_SLEEP.
64426         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
64427         * doc/functions/sleep.texi: Document the sleep module.
64428
64429 2007-05-01  Bruno Haible  <bruno@clisp.org>
64430
64431         * lib/sigprocmask.h: Remove file.
64432         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
64433         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
64434         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
64435         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
64436         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
64437         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
64438         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
64439         HAVE_SIGSET_T as a shell variable.
64440         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
64441         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
64442         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
64443         (Depends-on): Add signal. Remove verify.
64444         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
64445         (Include): Mention <signal.h> instead of sigprocmask.h.
64446         * NEWS: Mention the change.
64447         * lib/fatal-signal.c: Don't include sigprocmask.h.
64448
64449 2007-05-01  Bruno Haible  <bruno@clisp.org>
64450
64451         * modules/signal: New file.
64452         * lib/signal_.h: New file.
64453         * m4/signal_h.m4: New file.
64454
64455 2007-05-01  Bruno Haible  <bruno@clisp.org>
64456
64457         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
64458         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
64459         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
64460         HAVE_WCTYPE_CTMP_BUG into wctype.h.
64461
64462 2007-05-01  Bruno Haible  <bruno@clisp.org>
64463
64464         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
64465         configure time.
64466         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
64467         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
64468         * modules/sys_stat (Makefile.am): Substitute their values into
64469         sys/stat.h.
64470
64471 2007-05-01  Bruno Haible  <bruno@clisp.org>
64472
64473         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
64474         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
64475         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
64476
64477 2007-05-01  Bruno Haible  <bruno@clisp.org>
64478
64479         * doc/header/assert.texi: Undo last change: don't mention the gnulib
64480         'assert' module here.
64481
64482 2007-05-01  Bruno Haible  <bruno@clisp.org>
64483
64484         * doc/functions/*.texi: New files.
64485         * doc/functions/google-ranking.txt: New file.
64486         * doc/gnulib.texi (Function Substitutes): New chapter.
64487         (ctime, inet_ntoa): Remove sections.
64488         * doc/ctime.texi: Remove file.
64489         * doc/inet_ntoa.texi: Remove file.
64490         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
64491         dependencies.
64492         (%.info): New rule, specifying a --reference-limit.
64493
64494 2007-05-01  Bruno Haible  <bruno@clisp.org>
64495
64496         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
64497
64498 2007-05-01  Bruno Haible  <bruno@clisp.org>
64499
64500         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
64501         the portability of 'mkdir' to mingw systems.
64502
64503 2007-05-01  Bruno Haible  <bruno@clisp.org>
64504
64505         * doc/headers/google-ranking.txt: New file.
64506
64507 2007-04-30  Eric Blake  <ebb9@byu.net>
64508
64509         Prefer fseeko to fseek.
64510         * modules/getpass (Depends-on): Add fseeko.
64511         * lib/getpass.c (getpass): Use fseeko, not fseek.
64512
64513 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
64514
64515         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
64516         assumes the sorting is stable, while most qsort implementations
64517         are not.  Use argument addresses to ensure they never compare as
64518         equal.
64519
64520         * tests/test-argp-2.sh (usage-indent test): Fix output
64521         (func_compare): Restore diff options
64522         * tests/test-argp.c: Restore #include "progname.h"
64523
64524 2007-04-29  Bruno Haible  <bruno@clisp.org>
64525
64526         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
64527         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64528         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
64529         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64530         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
64531         (configure.ac): Define CHECK_SNPRINTF_POSIX.
64532         (TESTS, check_PROGRAMS): Add test-snprintf.
64533         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
64534         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
64535         (TESTS, check_PROGRAMS): Add test-vsnprintf.
64536         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
64537         assertions that fail on HP-UX, OSF/1, or IRIX.
64538         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
64539
64540 2007-04-29  Bruno Haible  <bruno@clisp.org>
64541
64542         * MODULES.html.sh (posix_functions): Remove 'contents'.
64543
64544 2007-04-29  Karl Berry  <karl@gnu.org>
64545
64546         * config/srclist.txt (gendocs_template_min): new entry.
64547
64548 2007-04-29  Bruno Haible  <bruno@clisp.org>
64549
64550         Work around fpurge bug on BSD systems.
64551         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
64552         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
64553         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
64554         fpurge to rpl_fpurge if the system already has this function.
64555         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
64556         the case where the system already has this function. Correct invariants
64557         on BSD systems.
64558         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
64559         BSD systems.
64560
64561 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
64562
64563         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
64564         proposed by Sven Verdoolaege.
64565
64566         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
64567         options.
64568         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
64569         (usage and help tests): Update
64570
64571 2007-04-29  Bruno Haible  <bruno@clisp.org>
64572
64573         * tests/test-fflush.c (main): Use a file of size 17, not 10.
64574         Print more information in case of failure. Disable a test on BeOS.
64575
64576 2007-04-29  Bruno Haible  <bruno@clisp.org>
64577
64578         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
64579         This helps debugging on systems on which no gdb is available.
64580
64581 2007-04-29  Bruno Haible  <bruno@clisp.org>
64582
64583         * lib/freading.h: Improve comments.
64584         * lib/fwriting.h: Likewise.
64585         * tests/test-freading.c (main): Don't check freading immediately after
64586         repositioning. Needed for glibc.
64587
64588 2007-04-29  Bruno Haible  <bruno@clisp.org>
64589
64590         * lib/freading.c (freading): Trivial simplification.
64591
64592 2007-04-28  Bruno Haible  <bruno@clisp.org>
64593
64594         * tests/test-fwriting.c (main): Also test the interaction between
64595         fflush and fwriting.
64596         * modules/fwriting-tests (Depends-on): Add fflush.
64597
64598         * tests/test-freading.c (main): Also test the interaction between
64599         fflush and freading.
64600         * modules/freading-tests (Depends-on): Add fflush.
64601
64602 2007-04-28  Bruno Haible  <bruno@clisp.org>
64603
64604         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
64605         fseeko and ftello.
64606         Suggested by Eric Blake.
64607
64608 2007-04-28  Jim Meyering  <jim@meyering.net>
64609
64610         Avoid false-negative in gl_STDINT_H's C99 conformance test.
64611         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
64612         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
64613
64614 2007-04-27  Eric Blake  <ebb9@byu.net>
64615
64616         * doc/headers/assert.texi (assert.h): Document assert module use.
64617
64618 2007-04-27  Bruno Haible  <bruno@clisp.org>
64619
64620         * doc/headers/*.texi: New files.
64621         * doc/gnulib.texi (Header File Substitutes): New chapter.
64622         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
64623         dependencies.
64624         (standards.info ,standards.html, standards.dvi): Update dependencies.
64625         (mostlyclean, clean): New targets.
64626
64627 2007-04-27  Bruno Haible  <bruno@clisp.org>
64628
64629         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
64630         * modules/sysexits (Files, Makefile.am): Update.
64631
64632         * lib/sys_socket_.h: Renamed from lib/socket_.h.
64633         * modules/sys_socket (Files, Makefile.am): Update.
64634
64635         * lib/sys_stat_.h: Renamed from lib/stat_.h.
64636         * modules/sys_stat (Files, Makefile.am): Update.
64637
64638 2007-04-27  Eric Blake  <ebb9@byu.net>
64639
64640         * lib/freading.h: Improve comments.
64641         * lib/fwriting.h: Likewise.
64642         * lib/fflush.c: Likewise.
64643
64644         Fix closein for mingw.
64645         * modules/closein-tests: Add tests for closein.
64646         * tests/test-closein.c: New file.
64647         * tests/test-closein.sh: Likewise.
64648         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
64649         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
64650
64651 2007-04-27  Bruno Haible  <bruno@clisp.org>
64652
64653         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
64654         version is < 6.
64655         * lib/math_.h [__DECC]: Likewise.
64656         * lib/stdio_.h [__DECC]: Likewise.
64657         * lib/stdlib_.h [__DECC]: Likewise.
64658         * lib/string_.h [__DECC]: Likewise.
64659         * lib/time_.h [__DECC]: Likewise.
64660         * lib/wchar_.h [__DECC]: Likewise.
64661         * lib/wctype_.h [__DECC]: Likewise.
64662
64663 2007-04-27  Bruno Haible  <bruno@clisp.org>
64664
64665         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
64666
64667 2007-04-27  Bruno Haible  <bruno@clisp.org>
64668
64669         * lib/fflush.c: Add comments.
64670         * modules/fpurge-tests (Depends-on): Add fflush.
64671         * modules/freadable-tests (Depends-on): Likewise.
64672         * modules/fwritable-tests (Depends-on): Likewise.
64673
64674 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
64675
64676         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
64677         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
64678         Report by Bruno Haible <bruno@clisp.org>.
64679
64680 2007-04-26  Eric Blake  <ebb9@byu.net>
64681
64682         Fix fflush on mingw.
64683         * modules/fflush (Depends-on): Add freading.
64684         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
64685         but unread data.
64686
64687 2007-04-26  Eric Blake  <ebb9@byu.net>
64688         and Bruno Haible  <bruno@clisp.org>
64689
64690         Implement freading and fwriting.
64691         * lib/freading.c: New file.
64692         * lib/freading.h: Likewise.
64693         * m4/freading.m4: Likewise.
64694         * modules/freading: Likewise.
64695         * modules/freading-tests: Likewise.
64696         * tests/test-freading.c: Likewise.
64697         * lib/fwriting.c: New file.
64698         * lib/fwriting.h: Likewise.
64699         * m4/fwriting.m4: Likewise.
64700         * modules/fwriting: Likewise.
64701         * modules/fwriting-tests: Likewise.
64702         * tests/test-fwriting.c: Likewise.
64703         * MODULES.html.sh (File stream based Input/Output): Mention them.
64704
64705 2007-04-26  Bruno Haible  <bruno@clisp.org>
64706
64707         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
64708         'long' when we assume it.
64709         Suggested by Eric Blake.
64710
64711 2007-04-26  Bruno Haible  <bruno@clisp.org>
64712
64713         Ensure fseeko, ftello are declared on glibc systems.
64714         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
64715         * modules/fseeko (configure.ac-early): Likewise.
64716         * modules/ftello (configure.ac-early): Likewise.
64717         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
64718         AC_FUNC_FSEEKO for this.
64719         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
64720         (gl_CHECK_FSEEKO): Remove macro.
64721
64722 2007-04-26  Bruno Haible  <bruno@clisp.org>
64723
64724         * tests/test-fflush.c (main): Also check the ftell result after
64725         fflush and fseek/fseeko.
64726         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
64727         file descriptor position cache in the stream.
64728         * lib/fseeko.c (rpl_fseeko): Likewise.
64729
64730 2007-04-26  Bruno Haible  <bruno@clisp.org>
64731
64732         * modules/fflush-tests (Depends-on): Add fseeko.
64733
64734 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
64735             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64736
64737         * lib/argz_.h: ensure error_t definition is obtained in same
64738         mechanism system argz.h would have.
64739         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
64740         argz facilities are known bad.  Err on the side of caution if
64741         cross-compiling.
64742
64743 2007-04-25  Eric Blake  <ebb9@byu.net>
64744
64745         * lib/fpurge.c (includes): Use stdlib.h for free.
64746         * tests/test-fflush.c (main): Also test fflush-fseeko.
64747
64748 2007-04-25  Bruno Haible  <bruno@clisp.org>
64749
64750         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
64751         * lib/fseeko.c: New file.
64752         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
64753         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
64754         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
64755         gl_FUNC_FSEEKO.
64756         (gl_FUNC_FSEEKO): Invoke it.
64757         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
64758         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
64759         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
64760
64761 2007-04-25  Bruno Haible  <bruno@clisp.org>
64762
64763         * modules/fflush (Depends-on): Add ftello.
64764
64765 2007-04-25  Bruno Haible  <bruno@clisp.org>
64766
64767         * modules/ftello-tests: New file.
64768         * tests/test-ftello.c: New file.
64769
64770         * modules/ftello: New file.
64771         * m4/ftello.m4: New file.
64772         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
64773         HAVE_FTELLO.
64774         * lib/stdio_.h (ftello): New declaration.
64775         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
64776         HAVE_FTELLO.
64777
64778 2007-04-25  Bruno Haible  <bruno@clisp.org>
64779
64780         * modules/fseeko-tests: New file.
64781         * tests/test-fseeko.c: New file.
64782
64783         * modules/fseeko: New file.
64784         * m4/fseeko.m4: New file.
64785         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
64786         HAVE_FSEEKO.
64787         * lib/stdio_.h (fseeko): New declaration.
64788         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
64789         HAVE_FSEEKO.
64790
64791 2007-04-25  Bruno Haible  <bruno@clisp.org>
64792
64793         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
64794
64795 2007-04-25  Bruno Haible  <bruno@clisp.org>
64796
64797         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
64798         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
64799         * tests/test-unistd.c: Likewise.
64800         * tests/test-fcntl.c: Likewise.
64801
64802 2007-04-23  Eric Blake  <ebb9@byu.net>
64803
64804         * lib/fflush.c: Fix missing include.
64805         Reported by Bruno Haible.
64806
64807 2007-04-23  Bruno Haible  <bruno@clisp.org>
64808
64809         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
64810         Reported by Eric Blake.
64811
64812 2007-04-23  Bruno Haible  <bruno@clisp.org>
64813
64814         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
64815
64816 2007-04-23  Bruno Haible  <bruno@clisp.org>
64817
64818         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
64819
64820 2007-04-23  Bruno Haible  <bruno@clisp.org>
64821
64822         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
64823         Needed on HP-UX 11.
64824
64825 2007-04-16  Eric Blake  <ebb9@byu.net>
64826
64827         Make fflush rely on fpurge.
64828         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
64829         open coding all variants.
64830         * modules/fflush (Depends-on): Add fpurge and unistd.
64831         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
64832         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
64833
64834         Fix --with-tests compilation on cygwin.
64835         * modules/argmatch-tests (Makefile.am): List gnulib library first
64836         in LDADD.
64837         * modules/argp-tests (Makefile.am): Likewise.
64838         * modules/array-list-tests (Makefile.am): Likewise.
64839         * modules/array-oset-tests (Makefile.am): Likewise.
64840         * modules/avltree-list-tests (Makefile.am): Likewise.
64841         * modules/avltree-oset-tests (Makefile.am): Likewise.
64842         * modules/avltreehash-list-tests (Makefile.am): Likewise.
64843         * modules/carray-list-tests (Makefile.am): Likewise.
64844         * modules/dirname-tests (Makefile.am): Likewise.
64845         * modules/frexp-tests (Makefile.am): Likewise.
64846         * modules/isnanl-tests (Makefile.am): Likewise.
64847         * modules/linked-list-tests (Makefile.am): Likewise.
64848         * modules/linkedhash-list-tests (Makefile.am): Likewise.
64849         * modules/lock-tests (Makefile.am): Likewise.
64850         * modules/rbtree-list-tests (Makefile.am): Likewise.
64851         * modules/rbtree-oset-tests (Makefile.am): Likewise.
64852         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
64853         * modules/tls-tests (Makefile.am): Likewise.
64854         * modules/tsearch-tests (Makefile.am): Likewise.
64855         * modules/xvasprintf-tests (Makefile.am): Likewise.
64856
64857         Fix fpurge for cygwin.
64858         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
64859         value.
64860         * modules/fpurge-tests (Depends-on): Clean up trash.
64861
64862 2007-04-16  Simon Josefsson  <simon@josefsson.org>
64863
64864         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
64865
64866         * m4/autobuild.m4: Re-indent.
64867
64868 2007-04-13  Bruno Haible  <bruno@clisp.org>
64869
64870         * modules/fpurge-tests: New file.
64871         * tests/test-fpurge.c: New file.
64872
64873         * modules/fpurge: New file.
64874         * lib/fpurge.h: New file.
64875         * lib/fpurge.c: New file.
64876         * m4/fpurge.m4: New file.
64877
64878 2007-04-13  Bruno Haible  <bruno@clisp.org>
64879
64880         * modules/fbufmode-tests: New file.
64881         * tests/test-fbufmode.c: New file.
64882
64883         * modules/fbufmode: New file.
64884         * lib/fbufmode.h: New file.
64885         * lib/fbufmode.c: New file.
64886         * m4/fbufmode.m4: New file.
64887
64888 2007-04-13  Bruno Haible  <bruno@clisp.org>
64889
64890         * modules/fwritable-tests: New file.
64891         * tests/test-fwritable.c: New file.
64892
64893         * modules/fwritable: New file.
64894         * lib/fwritable.h: New file.
64895         * lib/fwritable.c: New file.
64896         * m4/fwritable.m4: New file.
64897
64898 2007-04-13  Bruno Haible  <bruno@clisp.org>
64899
64900         * modules/freadable-tests: New file.
64901         * tests/test-freadable.c: New file.
64902
64903         * modules/freadable: New file.
64904         * lib/freadable.h: New file.
64905         * lib/freadable.c: New file.
64906         * m4/freadable.m4: New file.
64907
64908 2007-04-13  Bruno Haible  <bruno@clisp.org>
64909
64910         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
64911         MOSTLYCLEANFILES.
64912
64913 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
64914
64915         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
64916         gzip bootstrap.conf to avoid dragging in i18n machinery.
64917         (gnulib_tool_option): Use it.
64918
64919 2007-04-13  Bruno Haible  <bruno@clisp.org>
64920
64921         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
64922         %F directives.
64923         * tests/test-vasprintf-posix.c (test_function): Likewise.
64924         * tests/test-snprintf-posix.h (test_function): Likewise.
64925         * tests/test-sprintf-posix.h (test_function): Likewise.
64926         * tests/test-fprintf-posix.h (test_function): Likewise.
64927         * tests/test-printf-posix.h (test_function): Likewise.
64928         * tests/test-fprintf-posix.out: Likewise.
64929
64930 2007-04-13  Bruno Haible  <bruno@clisp.org>
64931
64932         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
64933         * modules/tls-tests (configure.ac): Likewise.
64934         Reported by Arto C. Nirkko <anirkko@insel.ch>.
64935
64936 2007-04-13  Bruno Haible  <bruno@clisp.org>
64937
64938         * lib/tls.c (glthread_tls_get): Fix return type.
64939         Patch by Arto C. Nirkko <anirkko@insel.ch>.
64940
64941 2007-04-12  Eric Blake  <ebb9@byu.net>
64942
64943         * modules/gettime (Depends-on): Remove gettime.
64944         Reported by Dmitry V. Levin.
64945
64946 2007-04-12  Bruno Haible  <bruno@clisp.org>
64947
64948         * modules/fflush (Include): Mention <stdio.h>.
64949         * modules/strtoimax (Include): Mention <inttypes.h>.
64950         * modules/strtoumax (Include): Likewise.
64951
64952 2007-04-12  Eric Blake  <ebb9@byu.net>
64953
64954         * .cvsignore: New file.
64955         * .gitignore: Likewise.
64956
64957 2007-04-12  Bruno Haible  <bruno@clisp.org>
64958
64959         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
64960         not before, since $(LDADD) often contains libgnu.a.
64961         * modules/striconv-tests (test_striconv_LDADD): Likewise.
64962         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
64963         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
64964         Needed on Cygwin.
64965
64966 2007-04-12  Eric Blake  <ebb9@byu.net>
64967
64968         Work around glibc's failure to flush stdin on fclose.
64969         * lib/closein.c (close_stdin): Flush stdin before closing.
64970
64971         Work around glibc's failure to reset seekable stdin on exit.
64972         * modules/closein: New module.
64973         * lib/closein.c: New file.
64974         * lib/closein.h: Likewise.
64975         * m4/closein.m4: Likewise.
64976         * MODULES.html.sh (File stream based Input/Output): Document it.
64977
64978 2007-04-12  Simon Josefsson  <simon@josefsson.org>
64979
64980         * gnulib-tool: Rename generated 'autobuild' script to
64981         'do-autobuild' in --create-megatestdir output.
64982
64983         * doc/gnulib.texi (Build robot for gnulib): Fix.
64984
64985 2007-04-12  Simon Josefsson  <simon@josefsson.org>
64986
64987         * modules/sysexits (Depends-on): Add absolute-header.
64988
64989 2007-04-12  Eric Blake  <ebb9@byu.net>
64990
64991         No need to preserve errno on success.
64992         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
64993         Reported by Bruno Haible.
64994
64995 2007-04-12  Simon Josefsson  <simon@josefsson.org>
64996
64997         * MODULES.html.sh (Support for maintaining and releasing
64998         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
64999
65000 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65001
65002         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
65003
65004 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65005
65006         * modules/autobuild: New module.
65007
65008         * m4/autobuild.m4: New file.
65009
65010 2007-04-11  Bruno Haible  <bruno@clisp.org>
65011
65012         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
65013         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
65014         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
65015         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
65016         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65017         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65018         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65019         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65020         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65021         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65022         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
65023         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65024         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65025         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
65026         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65027         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65028         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
65029         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65030         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65031         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
65032         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65033         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65034         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
65035         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65036         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65037         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
65038         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65039         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65040         Reported by Eric Blake.
65041
65042 2007-04-11  Bruno Haible  <bruno@clisp.org>
65043
65044         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
65045
65046 2007-04-10  Bruno Haible  <bruno@clisp.org>
65047
65048         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
65049         for NaN and Infinity. Needed on FreeBSD 6.1.
65050         * tests/test-vasnprintf-posix.c (test_function): Undo last change
65051         regarding results for "%010a" of Infinity and NaN.
65052         * tests/test-vasprintf-posix.c (test_function): Likewise.
65053         * tests/test-snprintf-posix.h (test_function): Likewise.
65054         * tests/test-sprintf-posix.h (test_function): Likewise.
65055         * tests/test-fprintf-posix.h (test_function): Likewise.
65056         * tests/test-printf-posix.h (test_function): Likewise.
65057         * tests/test-fprintf-posix.out: Likewise.
65058
65059 2007-04-10  Bruno Haible  <bruno@clisp.org>
65060
65061         * modules/locale-tests: New file.
65062         * tests/test-locale.c: New file.
65063
65064         * modules/locale: New file.
65065         * lib/locale_.h: New file.
65066         * m4/locale_h.m4: New file.
65067
65068 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
65069             Bruno Haible  <bruno@clisp.org>
65070
65071         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
65072         be determined, test for availability of the copysignf, copysign,
65073         copysignl functions.
65074         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
65075         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
65076         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
65077
65078 2007-04-09  Eric Blake  <ebb9@byu.net>
65079
65080         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
65081         * modules/stdio (Makefile.am): Support fflush.
65082         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
65083         * modules/fflush: New file.
65084         * lib/fflush.c: Likewise.
65085         * m4/fflush.m4: Likewise.
65086         * modules/fflush-tests: New test.
65087         * tests/test-fflush.c: Likewise.
65088         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
65089
65090 2007-04-06  Bruno Haible  <bruno@clisp.org>
65091
65092         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
65093         (VASNPRINTF): Use signbit for faster determination whether to print a
65094         minus sign.
65095         * modules/vasnprintf (Files): Remove lib/float+.h.
65096         * modules/fprintf-posix (Depends-on): Add signbit.
65097         * modules/snprintf-posix (Depends-on): Likewise.
65098         * modules/sprintf-posix (Depends-on): Likewise.
65099         * modules/vasnprintf-posix (Depends-on): Likewise.
65100         * modules/vasprintf-posix (Depends-on): Likewise.
65101         * modules/vfprintf-posix (Depends-on): Likewise.
65102         * modules/vsnprintf-posix (Depends-on): Likewise.
65103         * modules/vsprintf-posix (Depends-on): Likewise.
65104
65105 2007-04-06  Bruno Haible  <bruno@clisp.org>
65106
65107         * tests/test-frexp.c (main): Test also the sign bit of zero results.
65108         * tests/test-frexpl.c (main): Likewise.
65109         * tests/test-ldexpl.c (main): Likewise.
65110         * modules/frexp-tests (Depends-on): Add signbit.
65111         * modules/frexpl-tests (Depdends-on): Likewise.
65112         * modules/ldexpl-tests (Depdends-on): Likewise.
65113
65114 2007-04-06  Bruno Haible  <bruno@clisp.org>
65115
65116         * modules/signbit-tests: New file.
65117         * tests/test-signbit.c: New file.
65118
65119         * modules/signbit: New file.
65120         * lib/signbitf.c: New file.
65121         * lib/signbitd.c: New file.
65122         * lib/signbitl.c: New file.
65123         * m4/signbit.m4: New file.
65124         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
65125         (signbit): New macro.
65126         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
65127         REPLACE_SIGNBIT.
65128         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
65129         REPLACE_FREXPL into math.h.
65130
65131 2007-04-06  Bruno Haible  <bruno@clisp.org>
65132
65133         * modules/isnanf-nolibm-tests: New file.
65134         * tests/test-isnanf.c: New file.
65135
65136         * modules/isnanf-nolibm: New file.
65137         * lib/isnanf.h: New file.
65138         * lib/isnanf.c: New file.
65139         * lib/isnan.c: Consider the USE_FLOAT macro.
65140         * m4/isnanf.m4: New file.
65141
65142 2007-04-06  Bruno Haible  <bruno@clisp.org>
65143
65144         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
65145         (Link): New section.
65146
65147         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
65148
65149 2007-04-06  Bruno Haible  <bruno@clisp.org>
65150
65151         Assume the 'long double' type.
65152         * m4/longdouble.m4: Remove file.
65153         * config/srclist.txt: Don't mention longdouble.m4.
65154         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
65155         * lib/float+.h: Likewise.
65156         * lib/frexp.c: Likewise.
65157         * lib/printf-args.h: Likewise.
65158         * lib/printf-args.c: Likewise.
65159         * lib/printf-frexp.c: Likewise.
65160         * lib/printf-parse.c: Likewise.
65161         * lib/vasnprintf.c: Likewise.
65162         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
65163         * m4/intl.m4: Likewise.
65164         * m4/isnanl.m4: Likewise.
65165         * m4/printf.m4: Likewise.
65166         * m4/printf-frexpl.m4: Likewise.
65167         * m4/vasnprintf.m4: Likewise.
65168         * modules/allocsa (Files): Remove m4/longdouble.m4.
65169         * modules/gettext (Files): Likewise.
65170         * modules/relocatable-prog-wrapper (Files): Likewise.
65171         * modules/vasnprintf (Files): Likewise.
65172         * modules/isnanl (Files): Likewise.
65173         (Include): Simplify.
65174         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
65175         (Include): Simplify.
65176         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
65177         (Include): Simplify.
65178         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
65179         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65180         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
65181         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65182         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
65183         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65184         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
65185         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65186         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
65187         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65188         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
65189         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65190         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
65191         * tests/test-isnanl.c: Likewise.
65192         * tests/test-snprintf-posix.h: Likewise.
65193         * tests/test-sprintf-posix.h: Likewise.
65194         * tests/test-vasnprintf-posix.c: Likewise.
65195         * tests/test-vasnprintf-posix2.c: Likewise.
65196         * tests/test-vasprintf-posix.c: Likewise.
65197
65198 2007-04-06  Bruno Haible  <bruno@clisp.org>
65199
65200         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
65201         * lib/math_.h [__DECC]: Include the overridden include file through
65202         #include_next, outside the double-inclusion guard.
65203         * lib/stdio_.h [__DECC]: Likewise.
65204         * lib/stdlib_.h [__DECC]: Likewise.
65205         * lib/string_.h [__DECC]: Likewise.
65206         * lib/time_.h [__DECC]: Likewise.
65207         * lib/wchar_.h [__DECC]: Likewise.
65208         * lib/wctype_.h [__DECC]: Likewise.
65209         * lib/inttypes_.h [__DECC]: Likewise.
65210         Reported by Albert Chin <china@thewrittenword.com> in
65211         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
65212
65213 2007-04-04  Eric Blake  <ebb9@byu.net>
65214
65215         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
65216         1.5.x.
65217
65218 2007-04-04  Bruno Haible  <bruno@clisp.org>
65219
65220         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
65221         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
65222
65223 2007-04-04  Bruno Haible  <bruno@clisp.org>
65224
65225         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
65226         results for "%010a" of Infinity and NaN.
65227         * tests/test-vasprintf-posix.c (test_function): Likewise.
65228         * tests/test-snprintf-posix.h (test_function): Likewise.
65229         * tests/test-sprintf-posix.h (test_function): Likewise.
65230         * tests/test-fprintf-posix.h (test_function): Remove these tests.
65231         * tests/test-printf-posix.h (test_function): Likewise.
65232         * tests/test-fprintf-posix.out: Update.
65233         Needed for FreeBSD 6.1.
65234
65235 2007-04-04  Bruno Haible  <bruno@clisp.org>
65236
65237         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
65238         directly used by the gnulib modules nor by gnulib-tool.
65239
65240 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
65241
65242         * DEPENDENCIES: Give overall description of version dependency
65243         desirability.  Use more-typical names for apps.
65244         Add shell, coreutils, diffutils, grep, tar, gzip.
65245
65246 2007-04-04  Simon Josefsson  <simon@josefsson.org>
65247
65248         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
65249
65250 2007-04-04  Karl Berry  <karl@gnu.org>
65251
65252         * MODULES.html.sh (func_module): missing '.
65253
65254 2007-04-03  Bruno Haible  <bruno@clisp.org>
65255
65256         * modules/argmatch-tests (Makefile.am): New variable
65257         test_argmatch_LDADD.
65258         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
65259         * modules/array-list-tests (Makefile.am): New variable
65260         test_array_list_LDADD.
65261         * modules/array-oset-tests (Makefile.am): New variable
65262         test_array_oset_LDADD.
65263         * modules/avltree-list-tests (Makefile.am): New variable
65264         test_avltree_list_LDADD.
65265         * modules/avltree-oset-tests (Makefile.am): New variable
65266         test_avltree_oset_LDADD.
65267         * modules/avltreehash-list-tests (Makefile.am): New variable
65268         test_avltreehash_list_LDADD.
65269         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
65270         test_canonicalize_lgpl_LDADD.
65271         * modules/carray-list-tests (Makefile.am): New variable
65272         test_carray_list_LDADD.
65273         * modules/dirname-tests (Makefile.am): New variable
65274         test_dirname_LDADD.
65275         * modules/linked-list-tests (Makefile.am): New variable
65276         test_linked_list_LDADD.
65277         * modules/linkedhash-list-tests (Makefile.am): New variable
65278         test_linkedhash_list_LDADD.
65279         * modules/rbtree-list-tests (Makefile.am): New variable
65280         test_rbtree_list_LDADD.
65281         * modules/rbtree-oset-tests (Makefile.am): New variable
65282         test_rbtree_oset_LDADD.
65283         * modules/rbtreehash-list-tests (Makefile.am): New variable
65284         test_rbtreehash_list_LDADD.
65285         * modules/xvasprintf-tests (Makefile.am): New variable
65286         test_xvasprintf_LDADD.
65287         Reported by Eric Blake.
65288
65289 2007-04-03  Eric Blake  <ebb9@byu.net>
65290
65291         * DEPENDENCIES: Weaken m4 requirements.
65292
65293 2007-04-03  Bruno Haible  <bruno@clisp.org>
65294
65295         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
65296         * modules/isnanl-tests (configure.ac): Likewise.
65297
65298 2007-04-03  Ben Pfaff  <blp@gnu.org>
65299
65300         * modules/iconv_open: Add $(srcdir)/ to source directory
65301         references in Makefile fragments that call gperf, to fix VPATH
65302         builds.
65303
65304 2007-04-03  Bruno Haible  <bruno@clisp.org>
65305
65306         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
65307         * lib/ldexpl.c: Undo last change.
65308
65309 2007-04-03  Bruno Haible  <bruno@clisp.org>
65310
65311         * modules/printf-frexpl (Depends-on): Undo last change.
65312         (Files): Add m4/ldexpl.m4.
65313
65314 2007-04-03  Bruno Haible  <bruno@clisp.org>
65315
65316         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
65317         * modules/isnanl (Link): New section.
65318
65319         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
65320         * modules/frexp (Link): New section.
65321
65322         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
65323         * modules/frexpl (Link): New section.
65324
65325         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
65326         * modules/ldexpl (Link): New section.
65327
65328 2007-04-03  Bruno Haible  <bruno@clisp.org>
65329
65330         * modules/TEMPLATE-EXTENDED: New file.
65331         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
65332
65333 2007-04-03  Bruno Haible  <bruno@clisp.org>
65334
65335         * DEPENDENCIES: New file.
65336         Suggested by Simon Josefsson.
65337
65338 2007-04-03  Bruno Haible  <bruno@clisp.org>
65339
65340         * doc/gnulib.texi: Escape @.
65341
65342 2007-04-03  James Youngman  <jay@gnu.org>
65343         and Paul Eggert  <eggert@cs.ucla.edu>
65344
65345         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
65346         birthtime on all systems that have birthtime, not just those which
65347         use st_birthtimensec rather than st_birthtim.  Putting zero in
65348         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
65349         that the birth time is not available for files on an NFS mount.
65350
65351 2007-04-03  Simon Josefsson  <simon@josefsson.org>
65352
65353         * modules/memxor: Move back from crypto/, suggested by Bruno.
65354         * modules/crypto/hmac-sha1: Fix memxor dependency.
65355
65356         * modules/crypto/gc: Moved from ../.
65357
65358 2007-04-02  Eric Blake  <ebb9@byu.net>
65359
65360         * lib/ldexpl.c (includes): Avoid libm.
65361
65362         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
65363
65364 2007-04-02  Bruno Haible  <bruno@clisp.org>
65365
65366         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
65367         on IRIX.
65368
65369 2007-04-02  Bruno Haible  <bruno@clisp.org>
65370
65371         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
65372         x86 or x86_64 platforms running MacOS X.
65373         Reported by Ryan Schmidt <@ryandesign.com>.
65374
65375 2007-04-02  Bruno Haible  <bruno@clisp.org>
65376
65377         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
65378         i386.
65379
65380 2007-04-01  Simon Josefsson  <simon@josefsson.org>
65381
65382         * modules/crypto/arcfour: Moved from ../.
65383         * modules/crypto/arcfour-tests: Moved from ../.
65384         * modules/crypto/arctwo: Moved from ../.
65385         * modules/crypto/arctwo-tests: Moved from ../.
65386         * modules/crypto/des: Moved from ../.
65387         * modules/crypto/des-tests: Moved from ../.
65388         * modules/crypto/gc-arcfour: Moved from ../.
65389         * modules/crypto/gc-arcfour-tests: Moved from ../.
65390         * modules/crypto/gc-arctwo: Moved from ../.
65391         * modules/crypto/gc-arctwo-tests: Moved from ../.
65392         * modules/crypto/gc-des: Moved from ../.
65393         * modules/crypto/gc-des-tests: Moved from ../.
65394         * modules/crypto/gc-hmac-md5: Moved from ../.
65395         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
65396         * modules/crypto/gc-hmac-sha1: Moved from ../.
65397         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
65398         * modules/crypto/gc-md2: Moved from ../.
65399         * modules/crypto/gc-md2-tests: Moved from ../.
65400         * modules/crypto/gc-md4: Moved from ../.
65401         * modules/crypto/gc-md4-tests: Moved from ../.
65402         * modules/crypto/gc-md5: Moved from ../.
65403         * modules/crypto/gc-md5-tests: Moved from ../.
65404         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
65405         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
65406         * modules/crypto/gc-random: Moved from ../.
65407         * modules/crypto/gc-rijndael: Moved from ../.
65408         * modules/crypto/gc-rijndael-tests: Moved from ../.
65409         * modules/crypto/gc-sha1: Moved from ../.
65410         * modules/crypto/gc-sha1-tests: Moved from ../.
65411         * modules/crypto/gc-tests: Moved from ../.
65412         * modules/crypto/hmac-md5: Moved from ../.
65413         * modules/crypto/hmac-md5-tests: Moved from ../.
65414         * modules/crypto/hmac-sha1: Moved from ../.
65415         * modules/crypto/hmac-sha1-tests: Moved from ../.
65416         * modules/crypto/md2: Moved from ../.
65417         * modules/crypto/md2-tests: Moved from ../.
65418         * modules/crypto/md4: Moved from ../.
65419         * modules/crypto/md4-tests: Moved from ../.
65420         * modules/crypto/md5: Moved from ../.
65421         * modules/crypto/md5-tests: Moved from ../.
65422         * modules/crypto/memxor: Moved from ../.
65423         * modules/crypto/rijndael: Moved from ../.
65424         * modules/crypto/rijndael-tests: Moved from ../.
65425         * modules/crypto/sha1: Moved from ../.
65426
65427 2007-03-30  James Youngman  <jay@gnu.org>
65428
65429         * tests/test-stat-time.c (prepare_test): use chmod() rather than
65430         rename() to change the ctime of a file (because ctime is unaffected
65431         by rename on jfs2 on AIX 5.1).
65432         (main): Start by doing cleanup, in case a previous run failed leaving
65433         test files behind.
65434
65435 2007-03-31  Bruno Haible  <bruno@clisp.org>
65436
65437         Support old proprietary implementations of iconv.
65438         * modules/iconv_open: New file.
65439         * lib/iconv_.h: New file.
65440         * m4/iconv_h.m4: New file.
65441         * lib/iconv_open.c: New file.
65442         * lib/iconv_open-aix.gperf: New file.
65443         * lib/iconv_open-hpux.gperf: New file.
65444         * lib/iconv_open-irix.gperf: New file.
65445         * lib/iconv_open-osf.gperf: New file.
65446         * m4/iconv_open.m4: New file.
65447         * modules/linebreak (Depends-on): Add iconv_open.
65448         * modules/striconv (Depends-on): Likewise.
65449         * modules/striconveh (Depends-on): Likewise.
65450         * modules/unicodeio (Depends-on): Likewise.
65451         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
65452         (iconv_t)(-1).
65453         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
65454         conversion if cd is (iconv_t)(-1).
65455         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
65456         is not possible.
65457
65458 2007-03-31  Bruno Haible  <bruno@clisp.org>
65459
65460         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
65461         work on Solaris either. Protect also second use of "autodetect_jp".
65462
65463 2007-03-31  Bruno Haible  <bruno@clisp.org>
65464
65465         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
65466         the function is not present.
65467
65468 2007-03-31  Bruno Haible  <bruno@clisp.org>
65469
65470         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
65471         the function is not present.
65472
65473 2007-03-31  Bruno Haible  <bruno@clisp.org>
65474
65475         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
65476         a bug in HP-UX iconv_open().
65477
65478 2007-03-31  Bruno Haible  <bruno@clisp.org>
65479
65480         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
65481         (Mathematics <math.h>): New section, add fpieee.
65482         (Input/output <stdio.h>): Add fseterr.
65483         (Mathematics <math.h>): New section, add printf-frexp.
65484         (Container data structures): Add sublist.
65485         (Core language properties): Add fpucw, inline.
65486         (Functions for greatest-width integer types <inttypes.h>): Add
65487         imaxabs, imaxdiv, inttypes.
65488         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
65489         isnanl-nolibm, ldexp.
65490         (Mathematics <math.h>): New section, add printf-frexpl.
65491         (Support for systems lacking POSIX:2001): Add fprintf-posix,
65492         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
65493         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
65494         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
65495         (Unicode string functions): Add unistr/u*-mbtoucr.
65496         (Java): Add javacomp-script, javaexec-script.
65497         (C#): Add csharpcomp-script, csharpexec-script.
65498         (Support for building libraries and executables): Add havelib,
65499         relocatable-*.
65500         (Support for maintaining and releasing projects): Renamed from
65501         'Support for maintaining and release projects'. Add announce-gen.
65502
65503 2007-03-31  Bruno Haible  <bruno@clisp.org>
65504
65505         * README: Talk primarily about git.
65506         (git and CVS): Renamed from CVS.
65507         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
65508         gnulib is available through git.
65509         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
65510
65511 2007-03-30  Bruno Haible  <bruno@clisp.org>
65512
65513         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
65514         * lib/poll_.h: Likewise.
65515         * lib/stat_.h: Likewise.
65516         * lib/sys_time_.h: Likewise.
65517         * lib/sysexit_.h: Likewise.
65518         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
65519         * lib/stdbool_.h: Likewise.
65520         * lib/byteswap_.h: Add double-inclusion guard.
65521
65522 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
65523
65524         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
65525
65526 2007-03-30  Karl Berry  <karl@gnu.org>
65527
65528         * config/srclist-update: double space after USA in the license
65529         substitution, since that's how it's usually (?) written.
65530
65531 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
65532
65533         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
65534         reported by Bruno Haible.
65535
65536 2007-03-29  Bruno Haible  <bruno@clisp.org>
65537
65538         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
65539         a bug in AIX iconv().
65540
65541 2007-03-29  Bruno Haible  <bruno@clisp.org>
65542
65543         * modules/ldexpl-tests: New file.
65544         * tests/test-ldexpl.c: New file.
65545
65546 2007-03-29  Bruno Haible  <bruno@clisp.org>
65547
65548         * lib/ldexpl.c: Include fpucw.h.
65549         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
65550         multiplication.
65551         * modules/ldexpl (Depends-on): Add fpucw.
65552
65553 2007-03-29  Bruno Haible  <bruno@clisp.org>
65554
65555         * modules/ldexpl: New file.
65556         * m4/ldexpl.m4: New file.
65557         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
65558         set.
65559         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
65560         REPLACE_LDEXPL.
65561         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
65562         REPLACE_LDEXPL.
65563         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
65564         gl_FUNC_LDEXPL_WORKS.
65565         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
65566         * modules/mathl (Files): Remove lib/ldexpl.c.
65567         (Depends-on): Add ldexpl.
65568
65569 2007-03-29  Bruno Haible  <bruno@clisp.org>
65570
65571         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
65572
65573 2007-03-29  Bruno Haible  <bruno@clisp.org>
65574
65575         * tests/test-striconveh.c (main): Don't assume that a direct conversion
65576         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
65577         and possibly also HP-UX.
65578         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
65579         work on AIX, IRIX, HP-UX, OSF/1.
65580         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
65581         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
65582         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
65583         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
65584         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
65585         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
65586
65587 2007-03-29  Bruno Haible  <bruno@clisp.org>
65588
65589         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
65590
65591 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
65592
65593         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
65594         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
65595
65596 2007-03-29  Eric Blake  <ebb9@byu.net>
65597
65598         * lib/acl-internal.h: Remove redundant include.
65599         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
65600         Cygwin when a file is locked.
65601
65602 2007-03-29  Bruno Haible  <bruno@clisp.org>
65603
65604         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
65605         file.
65606         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
65607
65608 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
65609
65610         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
65611         try to remove a parent directory if the child couldn't be removed
65612         (except for the first rmdir, which could fail because the child
65613         doesn't exist).  Problem reported by Jeff Blaine in
65614         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
65615
65616 2007-03-28  Bruno Haible  <bruno@clisp.org>
65617
65618         * lib/striconveh.c (utf8conv_carefully): New function.
65619         (mem_cd_iconveh_internal): Invoke it.
65620
65621 2007-03-28  Bruno Haible  <bruno@clisp.org>
65622
65623         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
65624         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
65625         input.
65626         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
65627         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
65628         unistr/u8-uctomb.
65629
65630 2007-03-28  Bruno Haible  <bruno@clisp.org>
65631
65632         * modules/unistr/u8-mbtoucr: New file.
65633         * lib/unistr/u8-mbtoucr.c: New file.
65634         * modules/unistr/u16-mbtoucr: New file.
65635         * lib/unistr/u16-mbtoucr.c: New file.
65636         * modules/unistr/u16-mbtoucr: New file.
65637         * lib/unistr/u16-mbtoucr.c: New file.
65638         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
65639
65640 2007-03-27  Simon Josefsson  <simon@josefsson.org>
65641             Bruno Haible  <bruno@clisp.org>
65642
65643         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
65644         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
65645         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
65646
65647         * m4/stdio_h.m4: Add stubs for vasprintf too.
65648
65649         * modules/stdio: Support vasprintf in sed command.
65650
65651         * modules/vasprintf: Depend on stdio for prototypes.  Remove
65652         vasprintf.h.  Add stdio module indicator.
65653
65654         * lib/stdio_.h: Declare asprintf and vasprintf, based on
65655         vasprintf.h.
65656
65657         * lib/vasprintf.h: File removed.
65658
65659         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
65660         * lib/vasprintf.c: Ditto.
65661         * lib/xvasprintf.c: Ditto.
65662         * tests/test-vasprintf-posix.c: Ditto.
65663         * tests/test-vasprintf.c: Ditto.
65664
65665 2007-03-27  Bruno Haible  <bruno@clisp.org>
65666
65667         Make vasnprintf multithread-safe.
65668         * lib/vasnprintf.c (decimal_point_char): New function.
65669         (VASNPRINTF): Use it.
65670         Suggested by Simon Josefsson.
65671
65672 2007-03-27  Eric Blake  <ebb9@byu.net>
65673
65674         Support sub-second birthtime on cygwin.
65675         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
65676         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
65677         (get_stat_birthtime): Also work with st_birthtim.
65678
65679 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
65680
65681         * lib/stat-time.h (USE_BIRTHTIME): Remove.
65682         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
65683         (get_stat_birthtime_ns): Do not try to use "spare" fields.
65684         (get_stat_birthtime_ns): Simplify compile-time tests.
65685         (get_stat_birthtime): Change the API to look like
65686         get_stat_mtime etc., except return a negative tv_nsec on error.
65687         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
65688         Don't check for "spare" fields.
65689         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
65690         or for struct stat.st_birthtime, as these tests aren't used.
65691         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
65692
65693 2007-03-27  Bruno Haible  <bruno@clisp.org>
65694
65695         * lib/stat-time.h: Include <sys/stat.h>.
65696
65697 2007-03-27  James Youngman  <jay@gnu.org>
65698
65699         * lib/stat-time.h (get_stat_birthtime): New function for
65700           retrieving st_birthtime as provided by UFS2 (hence *BSD).
65701         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
65702           and its variants.
65703         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
65704         * modules/stat-time-test: New file.
65705         * tests/test-stat-time.c: New test, devised by Bruno Haible.
65706
65707 2007-03-26  Bruno Haible  <bruno@clisp.org>
65708
65709         Better support of signalling NaNs.
65710         * lib/atanl.c: Include isnanl.h.
65711         (atanl): Perform test for NaN at the beginning of the function and
65712         through a call to isnanl.
65713         * lib/cosl.c: Include isnanl.h.
65714         (cosl): Perform test for NaN at the beginning of the function and
65715         through a call to isnanl.
65716         * lib/ldexpl.c: Include isnanl.h.
65717         (ldexpl): Perform test for NaN through a call to isnanl.
65718         * lib/logl.c: Include isnanl.h.
65719         (logl): Perform test for NaN at the beginning of the function and
65720         through a call to isnanl.
65721         * lib/sinl.c: Include isnanl.h.
65722         (sinl): Perform test for NaN at the beginning of the function and
65723         through a call to isnanl.
65724         * lib/sqrtl.c: Include isnanl.h.
65725         (sqrtl): Perform test for NaN at the beginning of the function and
65726         through a call to isnanl.
65727         * lib/tanl.c: Include isnanl.h.
65728         (tanl): Perform test for NaN at the beginning of the function and
65729         through a call to isnanl.
65730         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
65731         * modules/mathl (Depends-on): Add isnanl.
65732
65733 2007-03-26  Eric Blake  <ebb9@byu.net>
65734
65735         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
65736         regression in logic sense of previous patch.
65737
65738 2007-03-26  Bruno Haible  <bruno@clisp.org>
65739
65740         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
65741         unportable shell command "if ! ...".
65742         Reported by Ralf Wildenhues.
65743
65744 2007-03-25  Bruno Haible  <bruno@clisp.org>
65745
65746         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
65747         <sysexits.h> file, and only add EX_CONFIG.
65748         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
65749         absolute file name and whether it is sufficient. Substitute also
65750         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
65751         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
65752         ABSOLUTE_SYSEXITS_H into sysexits.h.
65753
65754 2007-03-25  Bruno Haible  <bruno@clisp.org>
65755
65756         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
65757         hints is NULL.
65758
65759 2007-03-25  Bruno Haible  <bruno@clisp.org>
65760
65761         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
65762         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
65763
65764 2007-03-25  Bruno Haible  <bruno@clisp.org>
65765
65766         * lib/vasnprintf.c: Include langinfo.h.
65767         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
65768         multithread-safe.
65769         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
65770         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
65771         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65772         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65773         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65774         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65775         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65776         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
65777         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65778         Reported by Simon Josefsson.
65779
65780 2007-03-25  Bruno Haible  <bruno@clisp.org>
65781
65782         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
65783         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
65784         * modules/vasnprintf (Depends-on): Add stdint.
65785
65786 2007-03-25  Bruno Haible  <bruno@clisp.org>
65787
65788         * modules/fpieee: New file.
65789         * m4/fpieee.m4: New file.
65790         * modules/isnan-nolibm (Depends-on): Add fpieee.
65791         * modules/isnanl-nolibm (Depends-on): Add fpieee.
65792         * modules/isnanl (Depends-on): Add fpieee.
65793
65794 2007-03-25  Bruno Haible  <bruno@clisp.org>
65795
65796         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
65797
65798 2007-03-25  Bruno Haible  <bruno@clisp.org>
65799
65800         Avoid test failures on IRIX 6.5.
65801         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
65802         (main): Use it.
65803         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
65804         macros.
65805         (main): Use them.
65806
65807 2007-03-25  Bruno Haible  <bruno@clisp.org>
65808
65809         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
65810         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
65811         exists but doesn't work.
65812         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
65813         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
65814         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
65815         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
65816         math.h.
65817
65818 2007-03-25  Bruno Haible  <bruno@clisp.org>
65819
65820         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
65821         returns inf. Needed on IRIX 6.5.
65822
65823 2007-03-25  Bruno Haible  <bruno@clisp.org>
65824
65825         * tests/test-frexpl.c: Include isnanl-nolibm.h.
65826         (main): Use isnanl instead of x != x idiom.
65827         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
65828
65829         * tests/test-frexp.c: Include isnan.h.
65830         (main): Use isnan instead of x != x idiom.
65831         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
65832
65833 2007-03-25  Bruno Haible  <bruno@clisp.org>
65834
65835         * tests/test-frexp.c (NaN): New function/macro.
65836         (main): Use it instead of 0.0 / 0.0.
65837         * tests/test-isnan.c (NaN): New function/macro.
65838         (main): Use it instead of 0.0 / 0.0.
65839         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
65840         (test_function): Use it instead of 0.0 / 0.0.
65841         * tests/test-vasprintf-posix.c (NaN): New function/macro.
65842         (test_function): Use it instead of 0.0 / 0.0.
65843         * tests/test-snprintf-posix.h (NaN): New function/macro.
65844         (test_function): Use it instead of 0.0 / 0.0.
65845         * tests/test-sprintf-posix.h (NaN): New function/macro.
65846         (test_function): Use it instead of 0.0 / 0.0.
65847         * tests/test-fprintf-posix.h (NaN): New function/macro.
65848         (test_function): Use it instead of 0.0 / 0.0.
65849         * tests/test-printf-posix.h (NaN): New function/macro.
65850         (test_function): Use it instead of 0.0 / 0.0.
65851
65852         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
65853
65854 2007-03-25  Bruno Haible  <bruno@clisp.org>
65855
65856         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
65857
65858 2007-03-25  Bruno Haible  <bruno@clisp.org>
65859
65860         * lib/regexec.c (merge_state_with_log): Make static.
65861
65862 2007-03-25  Bruno Haible  <bruno@clisp.org>
65863
65864         * lib/trigl.c (kernel_rem_pio2): Make static.
65865
65866 2007-03-25  Bruno Haible  <bruno@clisp.org>
65867
65868         * lib/sincosl.c (sincosl_table): Make static.
65869
65870 2007-03-25  Bruno Haible  <bruno@clisp.org>
65871
65872         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
65873         if the compiler does not support C99.
65874
65875 2007-03-25  Bruno Haible  <bruno@clisp.org>
65876
65877         * modules/time (Makefile.am): Ensure all rule action lines start with a
65878         tab.
65879
65880 2007-03-24  Bruno Haible  <bruno@clisp.org>
65881
65882         * modules/tsearch-tests: New file.
65883         * tests/test-tsearch.sh: New file.
65884         * tests/test-tsearch.c: New file, mostly copied from glibc.
65885
65886         * modules/search-tests: New file.
65887         * tests/test-search.c: New file.
65888
65889         * modules/search: New file.
65890         * lib/search_.h: New file, incorporating lib/tsearch.h.
65891         * m4/search_h.m4: New file.
65892         * lib/tsearch.h: Remove file.
65893         * lib/tsearch.c: Include search.h instead of tsearch.h.
65894         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
65895         HAVE_TSEARCH.
65896         * modules/tsearch (Files): Remove lib/tsearch.h.
65897         (Depends-on): Add search.
65898         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
65899         (Include): Change tsearch.h into search.h.
65900
65901 2007-03-24  Bruno Haible  <bruno@clisp.org>
65902
65903         * modules/fpucw: New file.
65904         * lib/fpucw.h: New file.
65905         * lib/frexp.c: Include fpucw.h.
65906         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
65907         (FUNC): Use them.
65908         * lib/printf-frexp.c: Include fpucw.h.
65909         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
65910         (FUNC): Use them.
65911         * lib/vasnprintf.c: Include fpucw.h.
65912         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
65913         'long double' calculations.
65914         * tests/test-frexpl.c: Include fpucw.h.
65915         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
65916         * tests/test-printf-frexpl.c: Include fpucw.h.
65917         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
65918         * modules/frexpl (Depends-on): Add fpucw.
65919         * modules/printf-frexpl (Depends-on): Likewise.
65920         * modules/fprintf-posix (Depends-on): Likewise.
65921         * modules/snprintf-posix (Depends-on): Likewise.
65922         * modules/sprintf-posix (Depends-on): Likewise.
65923         * modules/vasnprintf-posix (Depends-on): Likewise.
65924         * modules/vasprintf-posix (Depends-on): Likewise.
65925         * modules/vfprintf-posix (Depends-on): Likewise.
65926         * modules/vsnprintf-posix (Depends-on): Likewise.
65927         * modules/vsprintf-posix (Depends-on): Likewise.
65928         * modules/frexpl-tests (Depends-on): Likewise.
65929         * modules/printf-frexpl-tests (Depends-on): Likewise.
65930
65931 2007-03-24  Bruno Haible  <bruno@clisp.org>
65932
65933         * lib/float+.h: New file.
65934         * lib/isnan.c: Include float+.h.
65935         (SIZE): New macro.
65936         (FUNC): Compare only SIZE bytes of the value.
65937         * lib/vasnprintf.c: Include float+.h.
65938         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
65939         SIZEOF_LDBL or SIZEOF_DBL bytes.
65940         * modules/isnan-nolibm (Files): Add lib/float+.h.
65941         * modules/isnanl-nolibm (Files): Add lib/float+.h.
65942         * modules/isnanl (Files): Add lib/float+.h.
65943         * modules/vasnprintf (Files): Add lib/float+.h.
65944
65945 2007-03-24  Bruno Haible  <bruno@clisp.org>
65946
65947         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
65948         include isnanl-nolibm.h.
65949
65950 2007-03-24  Bruno Haible  <bruno@clisp.org>
65951
65952         * tests/test-read-file.c (main): Don't produce spurious output for
65953         expected situations. Make the test fail if it encountered unexpected
65954         results.
65955
65956 2007-03-24  Bruno Haible  <bruno@clisp.org>
65957
65958         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
65959         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
65960
65961 2007-03-24  Bruno Haible  <bruno@clisp.org>
65962
65963         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
65964
65965 2007-03-24  Bruno Haible  <bruno@clisp.org>
65966
65967         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
65968         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
65969
65970         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
65971         * modules/utf8-ucs4: Turn into a symbolic link to module
65972         unistr/u8-mbtouc.
65973
65974         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
65975         utf8-ucs4-unsafe.
65976         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
65977         unistr/u8-mbtouc-unsafe.
65978
65979         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
65980         * modules/utf16-ucs4: Turn into a symbolic link to module
65981         unistr/u16-mbtouc.
65982
65983         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
65984         utf16-ucs4-unsafe.
65985         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
65986         unistr/u16-mbtouc-unsafe.
65987
65988         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
65989         * modules/ucs4-utf8: Turn into a symbolic link to module
65990         unistr/u8-ubtomb.
65991
65992         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
65993         * modules/ucs4-utf16: Turn into a symbolic link to module
65994         unistr/u16-ubtomb.
65995
65996 2007-03-24  Bruno Haible  <bruno@clisp.org>
65997
65998         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
65999         Enable the function only if HAVE_INLINE.
66000         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
66001         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
66002         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
66003         Enable the function only if HAVE_INLINE.
66004         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
66005         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
66006         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
66007         Enable the function only if HAVE_INLINE.
66008         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
66009         Enable the function only if HAVE_INLINE.
66010         * modules/utf8-ucs4: Update.
66011         * modules/utf8-ucs4-unsafe: Update.
66012         * modules/utf16-ucs4: Update.
66013         * modules/utf16-ucs4-unsafe: Update.
66014         * modules/ucs4-utf8: Update.
66015         * modules/ucs4-utf16: Update.
66016
66017 2007-03-24  Bruno Haible  <bruno@clisp.org>
66018
66019         * lib/utf8-ucs4.h: Remove file.
66020         * lib/utf8-ucs4-unsafe.h: Remove file.
66021         * lib/utf16-ucs4.h: Remove file.
66022         * lib/utf16-ucs4-unsafe.h: Remove file.
66023         * lib/ucs4-utf8.h: Remove file.
66024         * lib/ucs4-utf16.h: Remove file.
66025         * lib/unistr.h: Include their previous contents.
66026         * m4/utf-ucs4.m4: Remove file.
66027         * m4/ucs4-utf.m4: Remove file.
66028         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
66029         (Depends-on): Add unistr/base.
66030         (configure.ac): Remove gl_UTF_UCS4.
66031         (Makefile.am): Update.
66032         (Include): Change to unistr.h.
66033         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
66034         (Depends-on): Add unistr/base.
66035         (configure.ac): Remove gl_UTF_UCS4.
66036         (Makefile.am): Update.
66037         (Include): Change to unistr.h.
66038         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
66039         (Depends-on): Add unistr/base.
66040         (configure.ac): Remove gl_UTF_UCS4.
66041         (Makefile.am): Update.
66042         (Include): Change to unistr.h.
66043         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
66044         (Depends-on): Add unistr/base.
66045         (configure.ac): Remove gl_UTF_UCS4.
66046         (Makefile.am): Update.
66047         (Include): Change to unistr.h.
66048         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
66049         (Depends-on): Add unistr/base.
66050         (configure.ac): Remove gl_UCS4_UTF.
66051         (Makefile.am): Update.
66052         (Include): Change to unistr.h.
66053         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
66054         (Depends-on): Add unistr/base.
66055         (configure.ac): Remove gl_UCS4_UTF.
66056         (Makefile.am): Update.
66057         (Include): Change to unistr.h.
66058         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
66059         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
66060         utf8-ucs4-unsafe.h.
66061         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
66062         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
66063         utf16-ucs4-unsafe.h.
66064         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
66065         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
66066         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
66067         * lib/unistr/u8-strchr.c: Likewise.
66068         * lib/unistr/u8-strrchr.c: Likewise.
66069         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
66070         * lib/unistr/u16-strchr.c: Likewise.
66071         * lib/unistr/u16-strrchr.c: Likewise.
66072         * lib/striconveh.c: Update.
66073         * lib/linebreak.c: Update.
66074
66075 2007-03-24  Bruno Haible  <bruno@clisp.org>
66076
66077         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
66078         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
66079
66080 2007-03-22  Bruno Haible  <bruno@clisp.org>
66081
66082         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
66083
66084 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
66085
66086         * MODULES.html.sh (File system functions): New module write-any-file.
66087         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
66088         * m4/write-any-file.m4: New files.
66089
66090 2007-03-23  Eric Blake  <ebb9@byu.net>
66091
66092         * gnulib-tool: Rearrange space-tab sequences, since some editors
66093         like to eat them.
66094
66095 2007-03-23  Eric Blake  <ebb9@byu.net>
66096
66097         * lib/version-etc.c (version_etc_va): Update license wording to
66098         be more concise.  Recommended by Richard Stallman.
66099
66100 2007-03-22  Bruno Haible  <bruno@clisp.org>
66101
66102         * lib/poll.c (MSG_PEEK): New fallback definition.
66103
66104 2007-03-22  Bruno Haible  <bruno@clisp.org>
66105
66106         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
66107         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
66108         (main): Update.
66109         Fixes a compilation error on BeOS.
66110
66111 2007-03-22  Bruno Haible  <bruno@clisp.org>
66112
66113         * modules/frexpl-tests: New file.
66114         * tests/test-frexpl.c: New file.
66115
66116         * modules/frexpl: New file.
66117         * m4/frexpl.m4: New file.
66118         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
66119         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
66120         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
66121         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
66122         (Depends-on): Add frexpl. Remove isnanl-nolibm.
66123         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
66124
66125 2007-03-22  Bruno Haible  <bruno@clisp.org>
66126
66127         * lib/frexpl.c: Share code with lib/frexp.c.
66128         * modules/mathl (Files): Add lib/frexp.c.
66129         (Depends-on): Add isnanl-nolibm.
66130
66131 2007-03-22  Bruno Haible  <bruno@clisp.org>
66132
66133         * modules/printf-frexp (Files): Add m4/frexp.m4.
66134         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
66135         only if the found frexp function actually works.
66136
66137 2007-03-22  Bruno Haible  <bruno@clisp.org>
66138
66139         * lib/frexp.c: Remove older implementation that uses divisions.
66140
66141 2007-03-21  Bruno Haible  <bruno@clisp.org>
66142
66143         * modules/frexp-tests: New file.
66144         * tests/test-frexp.c: New file.
66145
66146         * modules/frexp: New file.
66147         * lib/frexp.c: New file.
66148         * m4/frexp.m4: New file.
66149         * lib/math_.h (frexp): New declaration.
66150         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
66151         REPLACE_FREXP.
66152         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
66153
66154 2007-03-21  Bruno Haible  <bruno@clisp.org>
66155
66156         * modules/isnanl-tests: New file.
66157         * tests/test-isnanl.c: New file.
66158
66159         * modules/isnanl: New file.
66160         * lib/isnanl.h: New file.
66161         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
66162         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
66163         gl_FUNC_ISNANL_WORKS.
66164         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
66165         New macros.
66166
66167 2007-03-21  Bruno Haible  <bruno@clisp.org>
66168
66169         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
66170         lib/isnanl.h.
66171         (Include): Update.
66172         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
66173         * lib/vasnprintf.c: Update.
66174         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
66175         tests/test-isnanl.h, remove tests/test-isnanl.c.
66176         (Makefile.am): Update.
66177         * tests/test-isnanl-nolibm.c: New file.
66178         * tests/test-isnanl.h: New file.
66179         * tests/test-isnanl.c: Remove file.
66180
66181 2007-03-21  Jim Meyering  <jim@meyering.net>
66182
66183         When trying to open ".", treat ESTALE like EACCES.
66184         * lib/savewd.c (savewd_save): Resort to forking not just upon
66185         failure with EACCES, but also when errno is ESTALE.
66186
66187 2007-03-20  Bruno Haible  <bruno@clisp.org>
66188
66189         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
66190         Needed on AIX 5.1. Reported by Matthew Woehlke.
66191
66192 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66193
66194         Suggestions by Bruno Haible:
66195         * lib/acl-internal.h: Include "gettext.h" rather than rolling
66196         our own.
66197         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
66198         * modules/acl (Depends-on): Add gettext.
66199
66200 2007-03-19  Bruno Haible  <bruno@clisp.org>
66201
66202         * modules/iconvme: Remove file.
66203         * lib/iconvme.h: Remove file.
66204         * lib/iconvme.c: Remove file.
66205         * m4/iconvme.m4: Remove file.
66206
66207 2007-03-19  Bruno Haible  <bruno@clisp.org>
66208
66209         * doc/relocatable-maint.texi: Break long shell script line.
66210         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
66211
66212 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66213
66214         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
66215         handle file_has_acl.
66216         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
66217         * lib/acl.c: Move header inclusions and related macro defns into
66218         lib/acl-internal.h.
66219         (S_ISLNK): Remove defn, since that's now done for us.
66220         (file_has_acl): Move to lib/file-has-acl.c.
66221         Call acl_trivial if available.  This is the crucial part of the fix.
66222         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
66223         shared within the library.  Rewrite a bit, partly to make it compatible
66224         with the GNU coding style.
66225         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
66226         Remove unnecessary double-quotes.
66227         Don't test for acl_to_text; the build will catch that.
66228         Replace acl_entries if it doesn't exist and it is needed.
66229         Check for -lsec and acl_trivial (as used on Solaris 10).
66230         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
66231         lib/file-has-acl.c.
66232         (Depends-on): Add sys_stat, for S_ISLNK.
66233
66234 2007-03-19  Ben Pfaff  <blp@gnu.org>
66235
66236         * doc/gnulib.texi: Fix typos.
66237         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
66238
66239 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66240
66241         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
66242         If size is zero here, buf must be zero.
66243
66244 2007-03-19  Simon Josefsson  <simon@josefsson.org>
66245
66246         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
66247         <bruno@clisp.org>.
66248
66249 2007-03-18  Bruno Haible  <bruno@clisp.org>
66250
66251         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
66252         Suggested by Eric Blake.
66253
66254 2007-03-18  Ben Pfaff  <blp@gnu.org>
66255
66256         * doc/relocatable.texi: Recommend using as prefix a directory
66257         that does not exist and will never be created.  Based on
66258         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
66259         and others.
66260
66261 2007-03-17  Bruno Haible  <bruno@clisp.org>
66262
66263         * lib/fchownat.c: Include lchown.h.
66264
66265 2007-03-17  Bruno Haible  <bruno@clisp.org>
66266
66267         Fix endless loop when the given allocated size was > INT_MAX.
66268         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
66269         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
66270         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
66271         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
66272         * lib/sprintf.c (sprintf): Likewise.
66273
66274 2007-03-17  Bruno Haible  <bruno@clisp.org>
66275
66276         * tests/test-argp-2.sh (func_compare): Output a context diff.
66277
66278 2007-03-17  Bruno Haible  <bruno@clisp.org>
66279
66280         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
66281         locale's decimal-point character.
66282
66283 2007-03-17  Bruno Haible  <bruno@clisp.org>
66284
66285         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
66286         before comparing it. Needed because on some platforms (e.g. x86) a
66287         'long double' occupies less bytes than sizeof (long double).
66288
66289 2007-03-17  Bruno Haible  <bruno@clisp.org>
66290
66291         * tests/test-crc.c (main): Make printf statements 64-bit clean.
66292         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
66293         * tests/test-getaddrinfo.c (simple): Likewise.
66294         * tests/test-read-file.c (main): Likewise.
66295
66296 2007-03-17  Bruno Haible  <bruno@clisp.org>
66297
66298         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
66299
66300 2007-03-17  Bruno Haible  <bruno@clisp.org>
66301
66302         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
66303         unused variable.
66304
66305 2007-03-17  Bruno Haible  <bruno@clisp.org>
66306
66307         * tests/test-c-strcasecmp.c: Include c-strcase.h.
66308         * tests/test-c-strncasecmp.c: Likewise.
66309
66310 2007-03-17  Bruno Haible  <bruno@clisp.org>
66311
66312         * modules/stdlib (Depends-on): Add unistd.
66313         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
66314         Needed for MacOS X 10.3.
66315
66316 2007-03-17  Bruno Haible  <bruno@clisp.org>
66317
66318         * lib/unistr/u-strdup.h: Include <stdlib.h>.
66319
66320 2007-03-17  Bruno Haible  <bruno@clisp.org>
66321
66322         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
66323
66324 2007-03-17  Bruno Haible  <bruno@clisp.org>
66325
66326         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
66327         to reflect files copied from gnulib (with or without modifications).
66328         Suggested by Jim Meyering.
66329
66330 2007-03-17  Eric Blake  <ebb9@byu.net>
66331
66332         * NEWS: Document stdlib change from 2007-02-18.
66333
66334 2007-03-17  Jim Meyering  <jim@meyering.net>
66335
66336         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
66337         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
66338         someone uses a name containing shell meta-characters.
66339         Reported by Alfred M. Szmidt.
66340
66341         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
66342
66343 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
66344
66345         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
66346         and copy gettext configuration files only if configure.ac contains
66347         a use of AM_GNU_GETTEXT_VERSION.
66348
66349 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
66350
66351         * build-aux/bootstrap (gnulib_name): New variable.
66352         (gnulib_tool_options): Use it.
66353
66354 2007-03-13  Simon Josefsson  <simon@josefsson.org>
66355
66356         * tests/test-des.c: Use new namespace.
66357
66358 2007-03-15  Bruno Haible  <bruno@clisp.org>
66359
66360         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
66361         Reported by James Youngman <jay@gnu.org>.
66362
66363 2007-03-15  Bruno Haible  <bruno@clisp.org>
66364
66365         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
66366         declared prototype. Needed with cc on OSF/1 5.1.
66367
66368 2007-03-15  Bruno Haible  <bruno@clisp.org>
66369
66370         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
66371         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
66372         (struct gl_list_implementation): Add dispose_fn argument to the
66373         'create_empty', 'create' methods.
66374         (struct gl_list_impl_base): Add field 'dispose_fn'.
66375         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
66376         argument.
66377         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
66378         dispose_fn argument.
66379         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
66380         dispose_fn on the dropped values.
66381         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
66382         dispose_fn argument.
66383         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
66384         dropped values.
66385         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
66386         (gl_tree_remove_node): Call dispose_fn on the dropped value.
66387         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
66388         (gl_tree_remove_node): Call dispose_fn on the dropped value.
66389         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
66390         argument.
66391         (gl_tree_list_free): Call dispose_fn on the dropped values.
66392         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
66393         the dropped values.
66394         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
66395         Add dispose_fn argument.
66396         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
66397         Call dispose_fn on the dropped values.
66398         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
66399         Add dispose_fn argument.
66400         (gl_sublist_create): Initialize the 'dispose_fn' field.
66401         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
66402         * tests/test-array_list.c (main): Update.
66403         * tests/test-carray_list.c (main): Update.
66404         * tests/test-avltree_list.c (main): Update.
66405         * tests/test-rbtree_list.c (main): Update.
66406         * tests/test-avltreehash_list.c (main): Update.
66407         * tests/test-rbtreehash_list.c (main): Update.
66408         * tests/test-linked_list.c (main): Update.
66409         * tests/test-linkedhash_list.c (main): Update.
66410         * tests/test-array_oset.c (main): Update.
66411
66412 2007-03-15  Bruno Haible  <bruno@clisp.org>
66413
66414         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
66415         (gl_oset_create_empty): Add dispose_fn argument.
66416         (struct gl_oset_implementation): Add dispose_fn argument to
66417         'create_empty' method.
66418         (struct gl_oset_impl_base): Add dispose_fn field.
66419         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
66420         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
66421         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
66422         values.
66423         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
66424         (gl_tree_oset_free): Call dispose_fn on the dropped values.
66425         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
66426         dropped value.
66427         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
66428         dropped value.
66429         * tests/test-array_oset.c (main): Update.
66430         * tests/test-avltree_oset.c (main): Update.
66431         * tests/test-rbtree_oset.c (main): Update.
66432         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
66433
66434 2007-03-13  Bruno Haible  <bruno@clisp.org>
66435
66436         * tests/test-stdbool.c (i): Update after last patch.
66437
66438 2007-03-12  Bruno Haible  <bruno@clisp.org>
66439
66440         * lib/quotearg.c: Include <wctype.h> early, before the definition of
66441         the iswprint macro. Needed on Solaris 2.5.1.
66442
66443 2007-03-12  Bruno Haible  <bruno@clisp.org>
66444
66445         * tests/test-printf-frexp.c (main): Declare x as volatile.
66446
66447 2007-03-12  Simon Josefsson  <simon@josefsson.org>
66448
66449         * doc/gnulib.texi (Build robot for gnulib): New section.
66450
66451 2007-03-12  Jim Meyering  <jim@meyering.net>
66452
66453         * build-aux/bootstrap: New file.
66454         * build-aux/bootstrap.conf: New file, from coreutils.
66455
66456 2007-03-11  Bruno Haible  <bruno@clisp.org>
66457
66458         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
66459
66460 2007-03-12  Simon Josefsson  <simon@josefsson.org>
66461
66462         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
66463         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
66464         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
66465
66466 2007-03-11  Bruno Haible  <bruno@clisp.org>
66467
66468         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
66469         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
66470
66471 2007-03-11  Bruno Haible  <bruno@clisp.org>
66472
66473         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
66474         formula. Needed for SunPRO C 5.0.
66475
66476 2007-03-11  Bruno Haible  <bruno@clisp.org>
66477
66478         * modules/long-options (Depends-on): Add getopt.
66479
66480 2007-03-11  Bruno Haible  <bruno@clisp.org>
66481
66482         * modules/modechange (Depends-on): Add stdbool.
66483
66484 2007-03-11  Bruno Haible  <bruno@clisp.org>
66485
66486         * modules/i-ring (Depends-on): Add stdbool.
66487
66488 2007-03-11  Bruno Haible  <bruno@clisp.org>
66489
66490         * modules/gc-des (Depends-on): Add stdbool.
66491
66492 2007-03-11  Bruno Haible  <bruno@clisp.org>
66493
66494         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
66495
66496 2007-03-11  Bruno Haible  <bruno@clisp.org>
66497
66498         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
66499
66500 2007-03-11  Bruno Haible  <bruno@clisp.org>
66501
66502         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
66503
66504 2007-03-11  Bruno Haible  <bruno@clisp.org>
66505
66506         * lib/vasnprintf.c (sprintf): Undefine.
66507
66508 2007-03-11  Bruno Haible  <bruno@clisp.org>
66509
66510         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
66511         initializers in SunPRO C and Compaq C compilers.
66512
66513 2007-03-11  Bruno Haible  <bruno@clisp.org>
66514
66515         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
66516         decrementing code ANSI C compliant.
66517
66518 2007-03-11  Bruno Haible  <bruno@clisp.org>
66519
66520         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
66521         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
66522
66523 2007-03-11  Bruno Haible  <bruno@clisp.org>
66524
66525         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
66526         <stdbool.h> substitute doesn't pass.
66527
66528 2007-03-11  Bruno Haible  <bruno@clisp.org>
66529
66530         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
66531
66532 2007-03-11  Bruno Haible  <bruno@clisp.org>
66533
66534         * gnulib-tool (func_create_megatestdir): Create also an autobuild
66535         script, for submission to autobuild.josefsson.org.
66536
66537 2007-03-10  Bruno Haible  <bruno@clisp.org>
66538
66539         * modules/canonicalize-lgpl-tests: New file.
66540         * tests/test-canonicalize-lgpl.sh: New file.
66541         * tests/test-canonicalize-lgpl.c: New file.
66542
66543         * modules/c-strcase-tests: New file.
66544         * tests/test-c-strcase.sh: New file.
66545         * tests/test-c-strcasecmp.c: New file.
66546         * tests/test-c-strncasecmp.c: New file.
66547
66548         * modules/atexit-tests: New file.
66549         * tests/test-atexit.sh: New file.
66550         * tests/test-atexit.c: New file.
66551
66552 2007-03-10  Bruno Haible  <bruno@clisp.org>
66553
66554         * tests/test-binary-io.sh: Use temporary filenames that are not so
66555         likely to clash with those of other tests (in a parallel make).
66556         * tests/test-binary-io.c: Likewise.
66557
66558 2007-03-10  Bruno Haible  <bruno@clisp.org>
66559
66560         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
66561         fallback; use #error instead.
66562         Suggested by Simon Josefsson.
66563
66564 2007-03-10  Bruno Haible  <bruno@clisp.org>
66565
66566         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
66567         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
66568         first and the last.
66569
66570 2007-03-10  Bruno Haible  <bruno@clisp.org>
66571
66572         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
66573
66574 2007-03-10  Bruno Haible  <bruno@clisp.org>
66575
66576         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
66577         "make distcheck".
66578         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
66579         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
66580         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
66581
66582 2007-03-10  Bruno Haible  <bruno@clisp.org>
66583
66584         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
66585         variable.
66586         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
66587         variable.
66588
66589 2007-03-09  Eric Blake  <ebb9@byu.net>
66590         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
66591
66592         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
66593         types are not being provided by gnulib.
66594         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
66595         types are supported.
66596
66597 2007-03-10  Bruno Haible  <bruno@clisp.org>
66598
66599         * lib/stdio_.h (__attribute__): New macro.
66600         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
66601         vsprintf): Specify __attribute__ __format__ for GCC.
66602         Suggested by Eric Blake.
66603
66604 2007-03-09  Bruno Haible  <bruno@clisp.org>
66605
66606         * modules/printf-posix-tests: New file.
66607         * tests/test-printf-posix.sh: New file.
66608         * tests/test-printf-posix.c: New file.
66609
66610         * modules/printf-posix: New file.
66611         * lib/printf.c: New file.
66612         * m4/printf-posix-rpl.m4: New file.
66613         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
66614         REPLACE_PRINTF.
66615         * lib/stdio_.h (printf): New declaration.
66616         (format, __format__, ____printf____, ____scanf____, ____strftime____,
66617         ____strfmon____): New macros.
66618         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
66619         REPLACE_PRINTF.
66620
66621 2007-03-09  Bruno Haible  <bruno@clisp.org>
66622
66623         * tests/test-vasnprintf-posix2.sh: New file.
66624         * tests/test-vasnprintf-posix2.c: New file.
66625         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
66626         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
66627         (Makefile.am): Activate test-vasnprintf-posix2.sh.
66628
66629         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
66630         a locale dependent decimal point, rather than always '.'.
66631
66632 2007-03-09  Eric Blake  <ebb9@byu.net>
66633
66634         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
66635         spite of platforms like Tandem/NSK that define it to -1.
66636
66637 2007-03-08  Bruno Haible  <bruno@clisp.org>
66638
66639         * modules/vprintf-posix-tests: New file.
66640         * tests/test-vprintf-posix.sh: New file.
66641         * tests/test-vprintf-posix.c: New file.
66642         * tests/test-printf-posix.h: New file.
66643
66644         * modules/vprintf-posix: New file.
66645         * lib/vprintf.c: New file.
66646         * m4/vprintf-posix.m4: New file.
66647         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
66648         REPLACE_VPRINTF.
66649         * lib/stdio_.h (vprintf): New declaration.
66650         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
66651         REPLACE_VPRINTF.
66652
66653 2007-03-08  Bruno Haible  <bruno@clisp.org>
66654
66655         * modules/fprintf-posix-tests: New file.
66656         * tests/test-fprintf-posix.sh: New file.
66657         * tests/test-fprintf-posix.c: New file.
66658
66659         * modules/fprintf-posix: New file.
66660         * lib/fprintf.c: New file.
66661         * m4/fprintf-posix.m4: New file.
66662         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
66663         REPLACE_FPRINTF.
66664         * lib/stdio_.h (fprintf): New declaration.
66665         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
66666         REPLACE_FPRINTF.
66667
66668 2007-03-08  Bruno Haible  <bruno@clisp.org>
66669
66670         * modules/vfprintf-posix-tests: New file.
66671         * tests/test-vfprintf-posix.sh: New file.
66672         * tests/test-vfprintf-posix.c: New file.
66673         * tests/test-fprintf-posix.h: New file.
66674         * tests/test-fprintf-posix.out: New file.
66675
66676         * modules/vfprintf-posix: New file.
66677         * lib/vfprintf.c: New file.
66678         * m4/vfprintf-posix.m4: New file.
66679         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
66680         REPLACE_VFPRINTF.
66681         * lib/stdio_.h (vfprintf): New declaration.
66682         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
66683         REPLACE_VFPRINTF.
66684
66685 2007-03-08  Bruno Haible  <bruno@clisp.org>
66686
66687         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
66688
66689 2007-03-08  Bruno Haible  <bruno@clisp.org>
66690
66691         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
66692         instead of 'expr' invocations.
66693         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66694         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66695         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66696         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66697         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66698         Suggested by Paul Eggert.
66699
66700 2007-03-08  Bruno Haible  <bruno@clisp.org>
66701
66702         * modules/fseterr-tests: New file.
66703         * tests/test-fseterr.c: New file.
66704
66705         * modules/fseterr: New file.
66706         * lib/fseterr.h: New file.
66707         * lib/fseterr.c: New file.
66708
66709 2007-03-08  Bruno Haible  <bruno@clisp.org>
66710
66711         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
66712         * lib/getopt_.h: Likewise.
66713         * lib/mbswidth.h: Likewise.
66714         * lib/setenv.h: Likewise.
66715         * lib/vasnprintf.h: Likewise.
66716         * lib/vasprintf.h: Likewise.
66717         * lib/verror.h: Likewise.
66718         * lib/xsetenv.h: Likewise.
66719         * lib/xvasprintf.h: Likewise.
66720
66721 2007-03-08  Jim Meyering  <jim@meyering.net>
66722
66723         * users.txt: Add parted.
66724
66725         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
66726
66727 2007-03-07  Bruno Haible  <bruno@clisp.org>
66728
66729         * m4/printf.m4: Make the shell script snippets copy&pastable.
66730
66731 2007-03-02  Bruno Haible  <bruno@clisp.org>
66732
66733         * lib/netinet_in_.h: New file.
66734         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
66735         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
66736         * modules/netinet_in (Files): Add lib/netinet_in_.h.
66737         (Depends-on): Add absolute-header.
66738         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
66739         into netinet/in.h.
66740
66741 2007-03-03  Bruno Haible  <bruno@clisp.org>
66742
66743         * lib/sys_select_.h: New file.
66744         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
66745         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
66746         * modules/sys_select (Files): Add lib/sys_select_.h.
66747         (Depends-on): Add absolute-header.
66748         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
66749         into sys/select.h.
66750
66751 2007-03-02  Bruno Haible  <bruno@clisp.org>
66752
66753         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
66754         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
66755         values.
66756         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
66757         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
66758         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
66759         * modules/sys_socket (Depends-on): Add absolute-header.
66760         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
66761         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
66762         (Include): Remove requirement of inclusion of <sys/types.h>.
66763
66764 2007-03-02  Bruno Haible  <bruno@clisp.org>
66765
66766         * lib/byteswap_.h (bswap_32): Fix formula.
66767
66768 2007-03-06  Bruno Haible  <bruno@clisp.org>
66769
66770         * modules/sprintf-posix-tests: New file.
66771         * tests/test-sprintf-posix.c: New file.
66772
66773         * modules/sprintf-posix: New file.
66774         * lib/sprintf.c: New file.
66775         * m4/sprintf-posix.m4: New file.
66776         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
66777         REPLACE_SPRINTF.
66778         * lib/stdio_.h (sprintf): New declaration.
66779         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
66780         REPLACE_SPRINTF.
66781
66782 2007-03-06  Bruno Haible  <bruno@clisp.org>
66783
66784         * modules/vsprintf-posix-tests: New file.
66785         * tests/test-vsprintf-posix.c: New file.
66786         * tests/test-sprintf-posix.h: New file.
66787
66788         * modules/vsprintf-posix: New file.
66789         * lib/vsprintf.c: New file.
66790         * m4/vsprintf-posix.m4: New file.
66791         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
66792         REPLACE_VSPRINTF.
66793         * lib/stdio_.h (vsprintf): New declaration.
66794         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
66795         REPLACE_VSPRINTF.
66796
66797 2007-03-06  Bruno Haible  <bruno@clisp.org>
66798
66799         * modules/vsnprintf (Depend-on): Remove minmax.
66800
66801 2007-03-06  Bruno Haible  <bruno@clisp.org>
66802
66803         * modules/snprintf-posix-tests: New file.
66804         * tests/test-snprintf-posix.c: New file.
66805
66806         * modules/snprintf-posix: New file.
66807         * m4/snprintf-posix.m4: New file.
66808         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
66809         gl_FUNC_SNPRINTF.
66810         (gl_FUNC_SNPRINTF): Invoke it.
66811         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
66812         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
66813         is set.
66814         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
66815
66816 2007-03-06  Bruno Haible  <bruno@clisp.org>
66817
66818         * modules/vsnprintf-posix-tests: New file.
66819         * tests/test-vsnprintf-posix.c: New file.
66820         * tests/test-snprintf-posix.h: New file.
66821
66822         * modules/vsnprintf-posix: New file.
66823         * m4/vsnprintf-posix.m4: New file.
66824         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
66825         gl_FUNC_VSNPRINTF.
66826         (gl_FUNC_VSNPRINTF): Invoke it.
66827         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
66828         * lib/stdio_.h (vsnprintf): Define as a replacement if
66829         REPLACE_VSNPRINTF is set.
66830         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
66831
66832 2007-03-06  Bruno Haible  <bruno@clisp.org>
66833
66834         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
66835         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
66836
66837 2007-03-06  Bruno Haible  <bruno@clisp.org>
66838
66839         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
66840         (asinl): Declare also if HAVE_DECL_ASINL is set.
66841         (atanl): Declare also if HAVE_DECL_ATANL is set.
66842         (ceill): Declare also if HAVE_DECL_CEILL is set.
66843         (cosl): Declare also if HAVE_DECL_COSL is set.
66844         (expl): Declare also if HAVE_DECL_EXPL is set.
66845         (floorl): Declare also if HAVE_DECL_FLOORL is set.
66846         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
66847         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
66848         (logl): Declare also if HAVE_DECL_LOGL is set.
66849         (sinl): Declare also if HAVE_DECL_SINL is set.
66850         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
66851         (tanl): Declare also if HAVE_DECL_TANL is set.
66852         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
66853         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
66854         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
66855         declaration of frexpl, ldexpl.
66856         * modules/printf-frexpl (Depends-on): Add math.
66857         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
66858
66859 2007-03-05  Bruno Haible  <bruno@clisp.org>
66860
66861         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
66862         frexpl and ldexpl are declared.
66863         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
66864
66865 2007-03-05  Bruno Haible  <bruno@clisp.org>
66866
66867         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
66868         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
66869
66870 2007-03-05  Bruno Haible  <bruno@clisp.org>
66871
66872         * lib/stdio_.h: Include <stddef.h>.
66873
66874 2007-03-05  Bruno Haible  <bruno@clisp.org>
66875
66876         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
66877
66878 2007-03-05  Bruno Haible  <bruno@clisp.org>
66879
66880         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
66881         NetBSD 4, from Ralf Wildenhues.
66882
66883 2007-03-04  Bruno Haible  <bruno@clisp.org>
66884
66885         * lib/vasprintf.h: Update #if logic for the case when the functions
66886         exist but are overridden.
66887
66888 2007-03-04  Bruno Haible  <bruno@clisp.org>
66889
66890         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
66891         implementations: glibc-2.4 and MacOS X 10.3.
66892         * tests/test-vasnprintf-posix.c (test_function): Test also the case
66893         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
66894         * tests/test-vasprintf-posix.c (test_function): Likewise.
66895
66896 2007-03-04  Bruno Haible  <bruno@clisp.org>
66897
66898         * modules/vasprintf-posix-tests: New file.
66899         * tests/test-vasprintf-posix.c: New file.
66900
66901         * modules/vasprintf-posix: New file.
66902         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
66903         defined.
66904         * m4/vasprintf-posix.m4: New file.
66905         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
66906         gl_FUNC_VASPRINTF.
66907         (gl_FUNC_VASPRINTF): Invoke it.
66908         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
66909         here.
66910         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
66911
66912 2007-03-04  Bruno Haible  <bruno@clisp.org>
66913
66914         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
66915         REPLACE_GETTIMEOFDAY.
66916         * modules/sys_time (Makefile.am): Likewise.
66917         * m4/sys_time_h.m4: Likewise.
66918         * m4/gettimeofday.m4: Likewise.
66919
66920 2007-03-04  Bruno Haible  <bruno@clisp.org>
66921
66922         * modules/vasnprintf-posix-tests: New file.
66923         * tests/test-vasnprintf-posix.c: New file.
66924
66925         * modules/vasnprintf-posix: New file.
66926         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
66927         printf-frexpl.h.
66928         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
66929         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
66930         REPLACE_VASNPRINTF is defined.
66931         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
66932         gl_FUNC_VASNPRINTF.
66933         (gl_FUNC_VASNPRINTF): Invoke it.
66934         * m4/vasnprintf-posix.m4: New file.
66935         * m4/printf.m4: New file.
66936
66937 2007-03-04  Bruno Haible  <bruno@clisp.org>
66938
66939         Compile progreloc.c only if --enable-relocatable is specified.
66940         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
66941         if --enable-relocatable was specified.
66942         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
66943         lib_SOURCES.
66944
66945 2007-03-04  Jim Meyering  <jim@meyering.net>
66946
66947         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
66948         Use it consistently, rather than enumerating errno constants.
66949
66950 2007-03-04  Bruno Haible  <bruno@clisp.org>
66951
66952         * modules/xvasprintf-tests: New file.
66953         * tests/test-xvasprintf.c: New file.
66954
66955         * modules/vasprintf-tests: New file.
66956         * tests/test-vasprintf.c: New file.
66957
66958         * modules/vasnprintf-tests: New file.
66959         * tests/test-vasnprintf.c: New file.
66960
66961         * modules/vsnprintf-tests: New file.
66962         * tests/test-vsnprintf.c: New file.
66963
66964         * modules/snprintf-tests: New file.
66965         * tests/test-snprintf.c: New file.
66966
66967 2007-03-04  Bruno Haible  <bruno@clisp.org>
66968
66969         Compile relocatable.c only if --enable-relocatable is specified.
66970         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
66971         gl_RELOCATABLE_LIBRARY.
66972         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
66973         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
66974         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
66975         gl_RELOCATABLE_LIBRARY.
66976         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
66977         (Makefile.am): Remove lib_SOURCES.
66978         * modules/relocatable-lib-lgpl (configure.ac): Invoke
66979         gl_RELOCATABLE_LIBRARY.
66980         (Makefile.am): Remove lib_SOURCES.
66981         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
66982         always.
66983         * modules/relocatable-prog-wrapper (configure.ac): Invoke
66984         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
66985
66986 2007-03-04  Bruno Haible  <bruno@clisp.org>
66987
66988         * modules/argmatch-tests: New file.
66989         * tests/test-argmatch.c: New file.
66990
66991         * tests/test-allocsa.c (main): Halve the number of loop runs.
66992
66993         * modules/alloca-opt-tests: New file.
66994         * tests/test-alloca-opt.c: New file.
66995
66996 2007-03-04  Jim Meyering  <jim@meyering.net>
66997
66998         Work around difference between Linux ACLs and Solaris 10 ZFS.
66999         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
67000         for EINVAL.
67001
67002 2007-03-03  Bruno Haible  <bruno@clisp.org>
67003
67004         * modules/relocatable-prog (Depends-on): Add back progreloc's
67005         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
67006
67007 2007-03-03  Bruno Haible  <bruno@clisp.org>
67008
67009         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
67010         * modules/relocatable-lib: New file.
67011
67012 2007-03-03  Bruno Haible  <bruno@clisp.org>
67013
67014         * modules/relocatable-prog: Renamed from modules/relocatable.
67015         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
67016
67017 2007-03-03  Bruno Haible  <bruno@clisp.org>
67018
67019         * modules/relocatable-script (Files): Add doc/relocatable.texi,
67020         m4/relocatable-lib.m4.
67021         (Depends-on): Remove 'relocatable'.
67022         (configure.ac): Add gl_RELOCATABLE_NOP.
67023
67024 2007-03-03  Bruno Haible  <bruno@clisp.org>
67025
67026         * modules/relocatable-prog-wrapper: New file.
67027         * modules/relocatable (Depends-on): Add it. Remove all other
67028         dependencies except progname.
67029         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
67030
67031         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
67032         (gl_FUNC_STRERROR): Nop.
67033         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
67034
67035         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
67036         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
67037
67038         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
67039         (gl_FUNC_READLINK): Update.
67040
67041         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
67042
67043 2007-03-03  Bruno Haible  <bruno@clisp.org>
67044
67045         * lib/xreadlink.c: Include <unistd.h> unconditionally.
67046         * modules/xreadlink (Depends-on): Add unistd.
67047         * modules/xreadlink-with-size (Depends-on): Likewise.
67048
67049 2007-03-03  Bruno Haible  <bruno@clisp.org>
67050
67051         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
67052         extracted from gt_FUNC_SETENV.
67053         (gt_FUNC_SETENV): Remove macro.
67054         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
67055         remove gt_FUNC_SETENV.
67056
67057 2007-03-03  Bruno Haible  <bruno@clisp.org>
67058
67059         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
67060         ENABLE_RELOCATABLE here.
67061         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
67062
67063 2007-03-03  Bruno Haible  <bruno@clisp.org>
67064
67065         * modules/rbtreehash-list-tests (Depends-on): Add progname.
67066         * tests/test-rbtreehash_list.c: Include progname.h.
67067         (main): Call set_program_name.
67068
67069         * modules/rbtree-oset-tests (Depends-on): Add progname.
67070         * tests/test-rbtree_oset.c: Include progname.h.
67071         (main): Call set_program_name.
67072
67073         * modules/rbtree-list-tests (Depends-on): Add progname.
67074         * tests/test-rbtree_list.c: Include progname.h.
67075         (main): Call set_program_name.
67076
67077         * modules/linked-list-tests (Depends-on): Add progname.
67078         * tests/test-linked_list.c: Include progname.h.
67079         (main): Call set_program_name.
67080
67081 2007-03-03  Bruno Haible  <bruno@clisp.org>
67082
67083         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
67084         All uses of __restrict changed to _Restrict_.
67085         * lib/glob_.h (__restrict): Remove macro.
67086
67087 2007-03-02  Bruno Haible  <bruno@clisp.org>
67088
67089         * modules/gettext (configure.ac): Require gettext infrastructure
67090         from version 0.16.1.
67091
67092 2007-03-02  Bruno Haible  <bruno@clisp.org>
67093
67094         * modules/linkedhash-list-tests (Depends-on): Add progname.
67095         * tests/test-linkedhash_list.c: Include progname.h.
67096         (main): Call set_program_name.
67097
67098         * modules/carray-list-tests (Depends-on): Add progname.
67099         * tests/test-carray_list.c: Include progname.h.
67100         (main): Call set_program_name.
67101
67102         * modules/avltreehash-list-tests (Depends-on): Add progname.
67103         * tests/test-avltreehash_list.c: Include progname.h.
67104         (main): Call set_program_name.
67105
67106         * modules/avltree-oset-tests (Depends-on): Add progname.
67107         * tests/test-avltree_oset.c: Include progname.h.
67108         (main): Call set_program_name.
67109
67110         * modules/avltree-list-tests (Depends-on): Add progname.
67111         * tests/test-avltree_list.c: Include progname.h.
67112         (main): Call set_program_name.
67113
67114         * modules/array-oset-tests (Depends-on): Add progname.
67115         * tests/test-array_oset.c: Include progname.h.
67116         (main): Call set_program_name.
67117
67118         * modules/array-list-tests (Depends-on): Add progname.
67119         * tests/test-array_list.c: Include progname.h.
67120         (main): Call set_program_name.
67121
67122         * modules/argp-tests (Depends-on): Add progname.
67123         * tests/test-argp.c: Include argp.h first. Include progname.h.
67124         (main): Call set_program_name.
67125
67126 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
67127
67128         * doc/gnulib-tool.texi (Initial import): Reword description of
67129         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
67130         limited effect even if defined after the first system include.
67131
67132 2007-03-01  Bruno Haible  <bruno@clisp.org>
67133
67134         * build-aux/config.libpath: Update to libtool-1.5.22.
67135         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
67136
67137 2007-03-01  Bruno Haible  <bruno@clisp.org>
67138
67139         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
67140         foo_CFLAGS.
67141         Reported by Ralf Wildenhues.
67142
67143 2007-03-01  Bruno Haible  <bruno@clisp.org>
67144
67145         * build-aux/install-reloc: Remove object files left over by some
67146         compilers.
67147         Reported by Ralf Wildenhues.
67148
67149 2007-03-01  Bruno Haible  <bruno@clisp.org>
67150
67151         * build-aux/install-reloc: Break long lines.
67152
67153 2007-03-01  Bruno Haible  <bruno@clisp.org>
67154
67155         * doc/relocatable.texi: Document that it may not work on OpenBSD.
67156         Reported by Ralf Wildenhues.
67157
67158 2007-03-01  Bruno Haible  <bruno@clisp.org>
67159
67160         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
67161         include ordering constraints.
67162
67163 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67164
67165         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
67166         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
67167         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
67168         as another example.
67169         * lib/time_.h: Fix misspelling.
67170         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
67171         Require gl_HEADER_TIME_H_DEFAULTS.
67172         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
67173         * m4/time_r.m4 (gl_TIME_R): Likewise.
67174         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
67175
67176 2007-03-01  Bruno Haible  <bruno@clisp.org>
67177
67178         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
67179         * m4/utimens.m4 (gl_UTIMENS): Likewise.
67180
67181 2007-03-01  Jim Meyering  <jim@meyering.net>
67182
67183         * modules/xreadlink (Maintainer): Add my name.
67184         * modules/xreadlink-with-size (Depends-on): Alphabetize.
67185
67186 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
67187             Bruno Haible  <bruno@clisp.org>
67188
67189         * build-aux/install-reloc: Compile also c-ctype.c.
67190         * build-aux/relocatable.sh.in: New file.
67191         * doc/relocatable.texi: New file.
67192         * doc/relocatable-maint.texi: New file.
67193         * doc/gnulib.texi: Include relocatable-maint.texi.
67194         * lib/progreloc.c: Include unistd.h unconditionally.
67195         * lib/relocwrapper.c: Include unistd.h unconditionally.
67196         Include c-ctype.h.
67197         (add_dotbin): Use c_tolower.
67198         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
67199         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
67200         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
67201         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
67202         to m4/relocatable-lib.m4.
67203         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
67204         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
67205         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
67206         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
67207         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
67208         * modules/relocatable: New file.
67209         * modules/relocatable-lib: New file.
67210         * modules/relocatable-script: New file.
67211
67212 2007-02-28  Bruno Haible  <bruno@clisp.org>
67213
67214         Import --enable-relocatable infrastructure.
67215         * build-aux/config.libpath: New file, from GNU gettext.
67216         * build-aux/install-reloc: New file, from GNU gettext.
67217         * build-aux/reloc-ldflags: New file, from GNU gettext.
67218         * lib/relocatable.h: New file, from GNU gettext.
67219         * lib/relocatable.c: New file, from GNU gettext.
67220         * lib/relocwrapper.c: New file, from GNU gettext.
67221         * m4/relocatable.m4: New file, from GNU gettext.
67222
67223 2007-02-28  Bruno Haible  <bruno@clisp.org>
67224
67225         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
67226
67227         * modules/xreadlink: New file, from GNU gettext with modifications.
67228         * lib/xreadlink.c: New file, from GNU gettext.
67229         * lib/xreadlink.h: Add comments.
67230         (xreadlink): New declaration.
67231
67232         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
67233         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
67234         lib/xreadlink-with-size.c.
67235         (configure.ac): Remove gl_XREADLINK invocation.
67236         (Makefile.am): Augment lib_SOURCES.
67237         * m4/xreadlink.m4: Remove file.
67238         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
67239         (xreadlink_with_size): Renamed from xreadink.
67240         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
67241         * modules/canonicalize (Depends-on): Replace xreadlink with
67242         xreadlink-with-size.
67243         * lib/canonicalize.c (canonicalize_filename_mode): Update.
67244
67245 2007-02-25  Jim Meyering  <jim@meyering.net>
67246
67247         * build-aux/announce-gen: When complaining about excess arguments,
67248         list them.
67249
67250 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
67251
67252         * README: Document signed integer overflow situation more
67253         accurately.
67254
67255 2007-02-25  Bruno Haible  <bruno@clisp.org>
67256
67257         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
67258         'a' or 'A' conversion.
67259
67260 2007-02-25  Bruno Haible  <bruno@clisp.org>
67261
67262         * modules/filename: Renamed from modules/pathname.
67263         (Files): Replace lib/pathname.h with lib/filename.h. Replace
67264         lib/concatpath.c with lib/concat-filename.c.
67265         (Makefile.am): Update.
67266         (Include): Replace pathname.h with filename.h.
67267         * lib/filename.h: Renamed from lib/pathname.h.
67268         (concatenated_filename): Renamed from concatenated_pathname.
67269         * lib/concat-filename.c: Renamed from lib/concatpath.c.
67270         (concatenated_filename): Renamed from concatenated_pathname.
67271         * lib/findprog.c: Include filename.h instead of pathname.h.
67272         (find_in_path): Update.
67273         * lib/javacomp.c: Include filename.h instead of pathname.h.
67274         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
67275         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
67276         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
67277         is_oldgcj_14_13_usable, is_javac_usable): Update.
67278         * lib/javaexec.c: Include filename.h instead of pathname.h.
67279         (execute_java_class): Update.
67280         * modules/findprog: Update.
67281         * modules/javacomp: Update.
67282         * modules/javaexec: Update.
67283         * MODULES.html.sh (File system functions): Add 'filename', remove
67284         'pathname'.
67285
67286 2007-02-25  Bruno Haible  <bruno@clisp.org>
67287
67288         * modules/printf-frexpl-tests: New file.
67289         * tests/test-printf-frexpl.c: New file.
67290
67291         * modules/printf-frexpl: New file.
67292         * lib/printf-frexpl.h: New file.
67293         * lib/printf-frexpl.c: New file.
67294         * m4/printf-frexpl.m4: New file.
67295
67296 2007-02-25  Bruno Haible  <bruno@clisp.org>
67297
67298         * modules/printf-frexp-tests: New file.
67299         * tests/test-printf-frexp.c: New file.
67300
67301         * modules/printf-frexp: New file.
67302         * lib/printf-frexp.h: New file.
67303         * lib/printf-frexp.c: New file.
67304         * m4/printf-frexp.m4: New file.
67305
67306 2007-02-25  Bruno Haible  <bruno@clisp.org>
67307
67308         Assume automake >= 1.10 for the tests.
67309         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
67310         * modules/arctwo-tests: Likewise.
67311         * modules/argp-tests: Likewise.
67312         * modules/avltree-list-tests: Likewise.
67313         * modules/avltree-oset-tests: Likewise.
67314         * modules/avltreehash-list-tests: Likewise.
67315         * modules/carray-list-tests: Likewise.
67316         * modules/crc-tests: Likewise.
67317         * modules/des-tests: Likewise.
67318         * modules/gc-arcfour-tests: Likewise.
67319         * modules/gc-arctwo-tests: Likewise.
67320         * modules/gc-des-tests: Likewise.
67321         * modules/gc-hmac-md5-tests: Likewise.
67322         * modules/gc-hmac-sha1-tests: Likewise.
67323         * modules/gc-md2-tests: Likewise.
67324         * modules/gc-md4-tests: Likewise.
67325         * modules/gc-md5-tests: Likewise.
67326         * modules/gc-pbkdf2-sha1-tests: Likewise.
67327         * modules/gc-rijndael-tests: Likewise.
67328         * modules/gc-sha1-tests: Likewise.
67329         * modules/gc-tests: Likewise.
67330         * modules/getaddrinfo-tests: Likewise.
67331         * modules/hmac-md5-tests: Likewise.
67332         * modules/hmac-sha1-tests: Likewise.
67333         * modules/linked-list-tests: Likewise.
67334         * modules/linkedhash-list-tests: Likewise.
67335         * modules/lock-tests: Likewise.
67336         * modules/md2-tests: Likewise.
67337         * modules/md4-tests: Likewise.
67338         * modules/md5-tests: Likewise.
67339         * modules/rbtree-list-tests: Likewise.
67340         * modules/rbtree-oset-tests: Likewise.
67341         * modules/rbtreehash-list-tests: Likewise.
67342         * modules/read-file-tests: Likewise.
67343         * modules/rijndael-tests: Likewise.
67344         * modules/stdint-tests: Likewise.
67345         * modules/tls-tests: Likewise.
67346
67347 2007-02-24  Bruno Haible  <bruno@clisp.org>
67348
67349         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
67350         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
67351         function; instead check whether isnan with a double argument links.
67352         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
67353         function; instead check whether isnan with a 'long double' argument
67354         links.
67355         Reported by Eric Blake <ebb9@byu.net>.
67356
67357 2007-02-24  Bruno Haible  <bruno@clisp.org>
67358
67359         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
67360         defined.
67361         * lib/isnanl.c: Remove all code. Just include isnan.c.
67362         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
67363
67364 2007-02-25  Jim Meyering  <jim@meyering.net>
67365
67366         Avoid conflicting types for 'unsetenv' on FreeBSD.
67367         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
67368         conflicting with FreeBSD's (5.0 and 6.1) function declaration
67369         in stdlib.h.
67370
67371 2007-02-24  Bruno Haible  <bruno@clisp.org>
67372
67373         * modules/isnanl-nolibm-tests: New file.
67374         * tests/test-isnanl.c: New file.
67375
67376         * modules/isnanl-nolibm: New file.
67377         * lib/isnanl.h: New file.
67378         * lib/isnanl.c: New file.
67379         * m4/isnanl.m4: New file.
67380
67381 2007-02-24  Bruno Haible  <bruno@clisp.org>
67382
67383         * modules/isnan-nolibm-tests: New file.
67384         * tests/test-isnan.c: New file.
67385
67386         * modules/isnan-nolibm: New file.
67387         * lib/isnan.h: New file.
67388         * lib/isnan.c: New file.
67389         * m4/isnan.m4: New file.
67390
67391 2007-02-24  Bruno Haible  <bruno@clisp.org>
67392
67393         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
67394         assume that an exponent fits in 20 bits.
67395
67396 2007-02-24  Jim Meyering  <jim@meyering.net>
67397
67398         * m4/regex.m4: Update the description of the configure-time option,
67399         --without-included-regex, to state accurately what the defaults are,
67400         and perhaps to give people an idea why using this option is risky.
67401
67402 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
67403
67404         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
67405         loops on small arguments.  This attempts to avoid the problem
67406         Bruno Haible reported for AIX 4.3.2 in
67407         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
67408
67409 2007-02-23  Bruno Haible  <bruno@clisp.org>
67410
67411         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
67412         Needed for help2man.
67413
67414 2007-02-23  Karl Berry  <karl@gnu.org>
67415
67416         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
67417         exists, foo.h should be cvs-ignored, not committed.
67418
67419 2007-02-23  Eric Blake  <ebb9@byu.net>
67420
67421         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
67422         * lib/stat-time.h (includes): Likewise.
67423         * lib/utimecmp.c (includes): Likewise.
67424         * lib/utimens.h (includes): Likewise.
67425         * lib/getdate.y (includes): Also include "timespec.h" for use
67426         internal to the module.
67427         * modules/utimens (Depends-on): Revert yesterday's patch.
67428         * modules/nanosleep (Depends-on): Add missing dependency.
67429
67430 2007-02-22  Bruno Haible  <bruno@clisp.org>
67431
67432         * lib/glob.c: Don't include getlogin_r.h.
67433
67434 2007-02-22  Jim Meyering  <jim@meyering.net>
67435
67436         * modules/utimens (Depends-on): Add timespec, required for
67437         utimens.h's inclusion of timespec.h.
67438
67439 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
67440
67441         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
67442         long unreadable paths in GNU/Linux.  Problem reported by Andreas
67443         Schwab in
67444         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
67445         I'll try to think of a better way to fix the Solaris problem.
67446
67447         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
67448         like glibc; on Solaris 10, it fails with errno == EINVAL.
67449         POSIX says the behavior is unspecified if the first argument is NULL,
67450         so play it safe and never pass NULL to the system getcwd.
67451
67452 2007-02-21  Jim Meyering  <jim@meyering.net>
67453
67454         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
67455         of gettimeofday.  It would conflict with the one now always
67456         provided via sys_time_.h.  Reported by Matthew Woehlke, as
67457         an IRIX 6.5 build failure.
67458
67459 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
67460
67461         Minor fixups to port to Solaris 10 with Sun C 5.8.
67462         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
67463         * modules/getcwd (Depends-on): Add dirfd.
67464         * lib/putenv.c (putenv): #undef it.
67465         (rpl_putenv): New decl.
67466         (malloc, free): Include <stdlib.h> rather than prototyping separately.
67467
67468 2007-02-20  Bruno Haible  <bruno@clisp.org>
67469
67470         * modules/stdio-tests: New file.
67471         * tests/test-stdio.c: New file.
67472
67473         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
67474         (Depends-on): Add stdio.
67475         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
67476         (Include): Use <stdio.h> instead of vsnprintf.h.
67477         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
67478         HAVE_DECL_VSNPRINTF.
67479         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
67480
67481         * modules/snprintf (Files): Remove lib/snprintf.h.
67482         (Depends-on): Add stdio.
67483         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
67484         (Include): Use <stdio.h> instead of snprintf.h.
67485         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
67486         HAVE_DECL_SNPRINTF.
67487         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
67488         * lib/getaddrinfo.c: Likewise.
67489
67490         * modules/stdio: New file.
67491         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
67492         * lib/snprintf.h: Remove file.
67493         * lib/vsnprintf.h: Remove file.
67494         * lib/.cppi-disable: Remove snprintf.h.
67495         * m4/stdio_h.m4: New file.
67496         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
67497
67498 2007-02-20  Jim Meyering  <jim@meyering.net>
67499
67500         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
67501         used by e.g., mingw.  From Bruno Haible.
67502
67503 2007-02-19  Bruno Haible  <bruno@clisp.org>
67504
67505         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
67506         warnings.
67507         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67508
67509 2007-02-19  Bruno Haible  <bruno@clisp.org>
67510
67511         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
67512         from mingw users.
67513
67514 2007-02-19  Bruno Haible  <bruno@clisp.org>
67515
67516         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
67517         warnings.
67518         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
67519
67520 2007-02-19  Jim Meyering  <jim@meyering.net>
67521
67522         Don't use FD after a successful "fdopendir (fd)".
67523         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
67524         Reset it by calling dirfd on the just-obtained DIR*.
67525
67526         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
67527         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
67528
67529 2007-02-18  Bruno Haible  <bruno@clisp.org>
67530
67531         * lib/readlink.c: Include <unistd.h>.
67532         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
67533         HAVE_READLINK.
67534         * modules/readlink (Depends-on): Add unistd.
67535         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67536         (Include): Add <unistd.h>.
67537
67538         * lib/getlogin_r.h: Remove file.
67539         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
67540         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
67541         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
67542         HAVE_DECL_GETLOGIN_R.
67543         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
67544         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67545         (Include): Use <unistd.h> instead of getlogin_r.h.
67546
67547         * lib/getcwd.h: Remove file.
67548         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
67549         * lib/xgetcwd.c: Likewise.
67550         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
67551         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
67552         * modules/getcwd (Files): Remove lib/getcwd.h.
67553         (Depends-on): Add unistd.
67554         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67555         (Include): Use <unistd.h> instad of getcwd.h.
67556
67557         * lib/ftruncate.c: Include <unistd.h> first.
67558         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
67559         Set HAVE_FTRUNCATE.
67560         * modules/ftruncate (Depends-on): Add unistd.
67561         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67562
67563         * lib/fchdir.c: Include <unistd.h> first.
67564         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
67565         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
67566         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
67567         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67568         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
67569
67570         * lib/dup2.c: Include <unistd.h> first.
67571         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
67572         HAVE_DUP2.
67573         * modules/dup2 (Depends-on): Add unistd.
67574         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67575
67576         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
67577         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
67578         REPLACE_CHOWN. Don't define chown as a macro here.
67579         * modules/chown (Depends-on): Add unistd.
67580         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67581
67582         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
67583         Add definition for GL_LINK_WARNING.
67584         (chown, dup2): New declarations.
67585         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
67586         link warning.
67587         (ftruncate): New declaration.
67588         (getcwd): New declaration, taken from old getcwd.h.
67589         (getlogin_r): New declaration, taken from old getlogin_r.h.
67590         (readlink): New declaration.
67591         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
67592         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
67593         (gl_PREREQ_UNISTD): Remove macro.
67594         (gl_UNISTD_MODULE_INDICATOR): New macro.
67595         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
67596         many new variables. Don't set UNISTD_H.
67597         * modules/unistd (Description): Change.
67598         (Depends-on): Add link-warning.
67599         (configure.ac): Update.
67600         (Makefile.am): Create unistd.h always. Substitute many new variables
67601         into it.
67602
67603 2007-02-18  Bruno Haible  <bruno@clisp.org>
67604
67605         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
67606         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
67607         HAVE_GETSUBOPT.
67608         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
67609         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
67610         * lib/getsubopt.h: Remove file.
67611         * modules/getsubopt (Files): Remove lib/getsubopt.h.
67612         (Depends-on): Add stdlib.
67613         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
67614         (Includes): Use <stdlib.h> instead of getsubopt.h.
67615         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
67616         Set HAVE_GETSUBOPT.
67617         * lib/getsubopt.c: Don't include getsubopt.h.
67618
67619 2007-02-18  Bruno Haible  <bruno@clisp.org>
67620
67621         * modules/fchdir (Depends-on): Add dup2.
67622
67623 2007-02-18  Bruno Haible  <bruno@clisp.org>
67624
67625         * lib/stdlib_.h: Handle glibc's special invocation convention
67626         specially.
67627
67628 2007-02-18  Bruno Haible  <bruno@clisp.org>
67629
67630         * modules/stdlib-tests: New file.
67631         * tests/test-stdlib.c: New file.
67632
67633         * modules/mkstemp (Files): Remove lib/mkstemp.h.
67634         (Depends-on): Add stdlib.
67635         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
67636         (Includes): Use <stdlib.h> instead of mkstemp.h.
67637         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
67638         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
67639         * lib/mkstemp.c: Don't include mkstemp.h.
67640         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
67641         * lib/stdlib--.h: Don't include mkstemp.h.
67642
67643         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
67644         (Depends-on): Add stdlib.
67645         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
67646         (Includes): Use <stdlib.h> instead of mkdtemp.h.
67647         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
67648         HAVE_MKDTEMP.
67649         * lib/mkdtemp.c: Don't include mkdtemp.h.
67650         * lib/clean-temp.c: Don't include mkdtemp.h.
67651
67652         * modules/exit (Files): Remove lib/exit.h.
67653         (Depends-on): Add stdlib.
67654         (Makefile.am): Remove lib_SOURCES.
67655         (Include): Use <stdlib.h> instead of exit.h.
67656         * lib/argmatch.c: Don't include exit.h.
67657         * lib/execute.c: Likewise.
67658         * lib/pagealign_alloc.c: Likewise.
67659         * lib/pipe.c: Likewise.
67660         * lib/wait-process.c: Likewise.
67661         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
67662         * lib/exitfail.c: Likewise.
67663         * lib/savewd.c: Likewise.
67664         * lib/xsetenv.c: Likewise.
67665
67666         * modules/stdlib: New file.
67667         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
67668         and extra comments about mkstemp().
67669         * lib/exit.h: Remove file.
67670         * lib/mkdtemp.h: Remove file.
67671         * lib/mkstemp.h: Remove file.
67672         * m4/stdlib_h.m4: New file.
67673         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
67674
67675 2007-02-18  Bruno Haible  <bruno@clisp.org>
67676
67677         * modules/math-tests: New file.
67678         * tests/test-math.c: New file.
67679
67680         * modules/math: New file.
67681         * modules/mathl (Files): Remove lib/mathl.h.
67682         (Depends-on): Add math.
67683         (Makefile.am): Don't mention mathl.h.
67684         (Include): Use <math.h> instead of mathl.h.
67685         * lib/math_.h: New file.
67686         * lib/mathl.h: Remove file.
67687         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
67688         mathl.h.
67689         * lib/asinl.c: Likewise.
67690         * lib/atanl.c: Likewise.
67691         * lib/ceill.c: Likewise.
67692         * lib/cosl.c: Likewise.
67693         * lib/expl.c: Likewise.
67694         * lib/floorl.c: Likewise.
67695         * lib/frexpl.c: Likewise.
67696         * lib/ldexpl.c: Likewise.
67697         * lib/logl.c: Likewise.
67698         * lib/sincosl.c: Likewise.
67699         * lib/sinl.c: Likewise.
67700         * lib/sqrtl.c: Likewise.
67701         * lib/tanl.c: Likewise.
67702         * lib/trigl.c: Likewise.
67703         * m4/math_h.m4: New file.
67704         * MODULES.html.sh (Mathematics): Add math.
67705
67706 2007-02-17  Bruno Haible  <bruno@clisp.org>
67707
67708         * modules/wctype-tests: New file.
67709         * tests/test-wctype.c: New file.
67710
67711         * modules/wchar-tests: New file.
67712         * tests/test-wchar.c: New file.
67713
67714         * modules/unistd-tests: New file.
67715         * tests/test-unistd.c: New file.
67716
67717         * modules/time-tests: New file.
67718         * tests/test-time.c: New file.
67719
67720         * modules/sysexits-tests: New file.
67721         * tests/test-sysexits.c: New file.
67722
67723         * modules/sys_time-tests: New file.
67724         * tests/test-sys_time.c: New file.
67725
67726         * modules/sys_stat-tests: New file.
67727         * tests/test-sys_stat.c: New file.
67728
67729         * modules/sys_socket-tests: New file.
67730         * tests/test-sys_socket.c: New file.
67731
67732         * modules/sys_select-tests: New file.
67733         * tests/test-sys_select.c: New file.
67734
67735         * modules/string-tests: New file.
67736         * tests/test-string.c: New file.
67737
67738         * modules/stdbool-tests: New file.
67739         * tests/test-stdbool.c: New file.
67740
67741         * modules/netinet_in-tests: New file.
67742         * tests/test-netinet_in.c: New file.
67743
67744         * modules/inttypes-tests: New file.
67745         * tests/test-inttypes.c: New file.
67746
67747         * modules/fcntl-tests: New file.
67748         * tests/test-fcntl.c: New file.
67749
67750         * modules/byteswap-tests: New file.
67751         * tests/test-byteswap.c: New file.
67752
67753         * modules/arpa_inet-tests: New file.
67754         * tests/test-arpa_inet.c: New file.
67755
67756 2007-02-17  Bruno Haible  <bruno@clisp.org>
67757
67758         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
67759         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
67760         if the corresponding module is not enabled. Emit link warnings if
67761         the function is used nevertheless.
67762         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
67763         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
67764         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
67765         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
67766         * modules/inttypes (Depends-on): Add link-warning.
67767         (Makefile.am): Copy the contents of build-aux/link-warning.h into
67768         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
67769         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
67770         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
67771         * modules/imaxdiv (configure.ac): Likewise.
67772         * modules/strtoimax (configure.ac): Likewise.
67773         * modules/strtoumax (configure.ac): Likewise.
67774
67775 2007-02-17  Bruno Haible  <bruno@clisp.org>
67776
67777         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
67778         gl_STRING_MODULE_INDICATOR_DEFAULTS.
67779         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
67780         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
67781
67782 2007-02-17  Bruno Haible  <bruno@clisp.org>
67783
67784         * modules/link-warning: New file.
67785         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
67786         * lib/string_.h (GL_LINK_WARNING): Remove definition.
67787         * modules/string (Depends-on): Add link-warning.
67788         (Makefile.am): Copy the contents of build-aux/link-warning.h into
67789         string.h.
67790         * MODULES.html.sh (Support for building libraries and executables): Add
67791         link-warning.
67792
67793 2007-02-17  Bruno Haible  <bruno@clisp.org>
67794
67795         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
67796         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
67797         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
67798         long lines.
67799
67800 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
67801             Bruno Haible  <bruno@clisp.org>
67802
67803         * modules/tmpfile: New file.
67804         * lib/tmpfile.c: New file.
67805         * m4/tmpfile.m4: New file.
67806         * MODULES.html.sh (func_all_modules): New section "Input/output".
67807
67808 2007-02-15  Bruno Haible  <bruno@clisp.org>
67809
67810         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
67811         (supports_delete_on_close): New function.
67812         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
67813
67814 2007-02-14  Bruno Haible  <bruno@clisp.org>
67815
67816         * modules/mbspcasecmp-tests: New file.
67817         * tests/test-mbspcasecmp.sh: New file.
67818         * tests/test-mbspcasecmp.c: New file.
67819
67820         New module mbspcasecmp.
67821         * modules/mbspcasecmp: New file.
67822         * lib/mbspcasecmp.c: New file.
67823         * lib/string_.h (strncasecmp): Change warning message.
67824         (mbspcasecmp): New declaration.
67825         * m4/mbspcasecmp.m4: New file.
67826         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67827         GNULIB_MBSPCASECMP.
67828         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
67829         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
67830
67831 2007-02-14  Bruno Haible  <bruno@clisp.org>
67832
67833         * modules/mbsncasecmp-tests: New file.
67834         * tests/test-mbsncasecmp.sh: New file.
67835         * tests/test-mbsncasecmp.c: New file.
67836
67837         New module mbsncasecmp.
67838         * modules/mbsncasecmp: New file.
67839         * lib/mbsncasecmp.c: New file.
67840         * lib/string_.h (mbsncasecmp): New declaration.
67841         * m4/mbsncasecmp.m4: New file.
67842         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67843         GNULIB_MBSNCASECMP.
67844         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
67845         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
67846
67847 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
67848
67849         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
67850         Verify that it doesn't overlap with our flags.
67851         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
67852         do not have the desired effect in multibyte locales; instead, use
67853         mbscasecmp.
67854         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
67855         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
67856         we don't require GNU fnmatch ourselves (if our users require it, they
67857         should do so explicitly).
67858
67859         Fix regex code so it doesn't rely on strcasecmp.
67860         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
67861         Otherwise, include gnulib's langinfo.h.
67862         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
67863         undesirable behavior in non-C locales.  Instead, rely on localecharset.
67864         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
67865         * modules/regex (FILES): Remove m4/codeset.m4.
67866         (Depends-on): Add localcharset.  Remove strcase.
67867
67868 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67869
67870         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
67871         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
67872
67873 2007-02-13  Bruno Haible  <bruno@clisp.org>
67874
67875         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
67876         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67877
67878 2007-02-12  Bruno Haible  <bruno@clisp.org>
67879
67880         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
67881         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
67882         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
67883         time warning rather than a link error.
67884
67885 2007-02-12  Bruno Haible  <bruno@clisp.org>
67886
67887         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
67888         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
67889         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67890
67891 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
67892
67893         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
67894         args, not 2.
67895
67896 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
67897
67898         New module 'time', so that apps can include <time.h> as per
67899         POSIX and GNU instead of separate include files like time_r.h
67900         and timegm.h.  This implementation tries out a simpler approach
67901         for replacing decls in standard include files (as compared to
67902         the string module), somewhat as an experiment.
67903
67904         * config/srclist.txt: Comment out mktime.c for now.
67905         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
67906         since it doesn't apply any more.  Use generic wording instead.
67907         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
67908         'time'.
67909         * lib/time_.h, m4/time_h.m4, modules/time: New files.
67910         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
67911         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
67912         Don't include <sys/types.h>; no longer needed since we assume C89.
67913         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
67914         * lib/strftime.c: Likewise.
67915         * lib/time_r.c: Likewise.
67916         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
67917         * lib/nanosleep.c: Include <time.h> first, to check interface.
67918         * lib/strptime.c: Likewise.
67919         * lib/time_r.c: Likewise.
67920         * lib/timegm.c: Likewise.
67921         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
67922         needed.
67923         * lib/timegm.c: Don't include timegm.h; no longer needed.
67924         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
67925         time.h now handles any problems in that area.
67926         (struct timespec, nanosleep): Remove; time.h now arranges for these.
67927         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
67928         that time.h defines struct timespec.
67929         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
67930         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
67931         handles that.
67932         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
67933         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
67934         needed.  Set REPLACE_LOCALTIME.
67935         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
67936         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
67937         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
67938         nanosleep; time_h.m4 now does that.  Don't require
67939         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
67940         module handles this now.
67941         * modules/getdate (Depends-on): Remove timespec.  Add time.
67942         * modules/nanosleep (Depends-on): Likewise.
67943         * modules/stat-time (Depends-on): Likewise.
67944         * modules/nanosleep (Include): Include time.h, not timespec.h.
67945         * modules/strptime (Files): Remove lib/strptime.h.
67946         (Depends-on): Add extensions, time.
67947         (Include): Include time.h, not strptime.h.
67948         * modules/time_r (Files): Remove lib/time_r.h.
67949         (Depends-on): Add time.
67950         (Include): Include time.h, not time_r.h.
67951         * modules/timegm: Likewise.
67952         * modules/timespec (Description): Now does timespec-related decls
67953         of our own, instead of struct timespec itself.
67954         (Depends-on): Add time; remove extensions.
67955         (Maintainer): Add self.
67956         * modules/utimecmp (Depends-on): Add time; remove timespec.
67957         * modules/utimens (Depends-on): Likewise.
67958         * modules/xnanosleep (Depends-on): Likewise.
67959
67960 2007-02-11  Bruno Haible  <bruno@clisp.org>
67961
67962         * lib/c-strstr.c: Include allocsa.h.
67963         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
67964         * lib/c-strcasestr.c: Include allocsa.h.
67965         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
67966         * lib/strcasestr.c: Include allocsa.h.
67967         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
67968         * lib/mbsstr.c: Include allocsa.h.
67969         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
67970         allocsa/freesa instead of malloc/free.
67971         * lib/mbscasestr.c: Include allocsa.h.
67972         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
67973         allocsa/freesa instead of malloc/free.
67974         * modules/c-strstr (Depends-on): Add allocsa.
67975         * modules/c-strcasestr (Depends-on): Likewise.
67976         * modules/strcasestr (Depends-on): Likewise.
67977         * modules/mbsstr (Depends-on): Likewise.
67978         * modules/mbscasestr (Depends-on): Likewise.
67979
67980 2007-02-11  Bruno Haible  <bruno@clisp.org>
67981
67982         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
67983
67984         * modules/mbsspn-tests: New file.
67985         * tests/test-mbsspn.sh: New file.
67986         * tests/test-mbsspn.c: New file.
67987
67988 2007-02-11  Bruno Haible  <bruno@clisp.org>
67989
67990         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
67991
67992         * modules/mbspbrk-tests: New file.
67993         * tests/test-mbspbrk.sh: New file.
67994         * tests/test-mbspbrk.c: New file.
67995
67996 2007-02-11  Bruno Haible  <bruno@clisp.org>
67997
67998         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
67999         unneeded cast.
68000
68001         * modules/mbscspn-tests: New file.
68002         * tests/test-mbscspn.sh: New file.
68003         * tests/test-mbscspn.c: New file.
68004
68005 2007-02-11  Bruno Haible  <bruno@clisp.org>
68006
68007         * modules/mbscasecmp-tests: New file.
68008         * tests/test-mbscasecmp.sh: New file.
68009         * tests/test-mbscasecmp.c: New file.
68010
68011 2007-02-11  Bruno Haible  <bruno@clisp.org>
68012
68013         Ensure O(n) worst-case complexity of mbscasestr.
68014         * lib/mbscasestr.c: Include stdbool.h.
68015         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
68016         functions.
68017         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
68018         the bookkeeping indicates that it's worth it.
68019         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
68020
68021         * modules/mbscasestr-tests: New file.
68022         * tests/test-mbscasestr1.c: New file.
68023         * tests/test-mbscasestr2.sh: New file.
68024         * tests/test-mbscasestr2.c: New file.
68025         * tests/test-mbscasestr3.sh: New file.
68026         * tests/test-mbscasestr3.c: New file.
68027         * tests/test-mbscasestr4.sh: New file.
68028         * tests/test-mbscasestr4.c: New file.
68029         * m4/locale-tr.m4: New file.
68030
68031 2007-02-11  Bruno Haible  <bruno@clisp.org>
68032
68033         Ensure O(n) worst-case complexity of mbsstr.
68034         * lib/mbsstr.c: Include stdbool.h.
68035         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
68036         functions.
68037         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
68038         bookkeeping indicates that it's worth it.
68039         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
68040
68041         * modules/mbsstr-tests: New file.
68042         * tests/test-mbsstr1.c: New file.
68043         * tests/test-mbsstr2.sh: New file.
68044         * tests/test-mbsstr2.c: New file.
68045         * tests/test-mbsstr3.sh: New file.
68046         * tests/test-mbsstr3.c: New file.
68047         * m4/locale-fr.m4: New file.
68048
68049 2007-02-11  Bruno Haible  <bruno@clisp.org>
68050
68051         * lib/mbsrchr.c (mbsrchr): Fix bug.
68052
68053         * modules/mbsrchr-tests: New file.
68054         * tests/test-mbsrchr.sh: New file.
68055         * tests/test-mbsrchr.c: New file.
68056
68057 2007-02-11  Bruno Haible  <bruno@clisp.org>
68058
68059         * lib/mbschr.c (mbschr): Fix bug.
68060
68061         * modules/mbschr-tests: New file.
68062         * tests/test-mbschr.sh: New file.
68063         * tests/test-mbschr.c: New file.
68064         * m4/locale-zh.m4: New file.
68065
68066 2007-02-11  Bruno Haible  <bruno@clisp.org>
68067
68068         Support for copying multibyte string iterators.
68069         * lib/mbiter.h: Include <string.h>.
68070         (mbiter_multi_copy): New function.
68071         (mbi_copy): New macro.
68072         * lib/mbuiter.h: Include <string.h>.
68073         (mbuiter_multi_copy): New function.
68074         (mbui_copy): New macro.
68075
68076 2007-02-11  Bruno Haible  <bruno@clisp.org>
68077
68078         New module mbslen.
68079         * modules/mbslen: New file.
68080         * lib/mbslen.c: New file.
68081         * lib/string_.h (mbslen): New declaration.
68082         * m4/mbslen.m4: New file.
68083         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68084         GNULIB_MBSLEN.
68085         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
68086         * MODULES.html.sh (Internationalization functions): Add mbslen.
68087
68088 2007-02-11  Bruno Haible  <bruno@clisp.org>
68089
68090         Ensure O(n) worst-case complexity of strcasestr substitute.
68091         * lib/strcasestr.c: Include stdbool.h.
68092         (knuth_morris_pratt): New function.
68093         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
68094         bookkeeping indicates that it's worth it.
68095         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
68096
68097         * modules/strcasestr-tests: New file.
68098         * tests/test-strcasestr.c: New file.
68099
68100 2007-02-11  Bruno Haible  <bruno@clisp.org>
68101
68102         Ensure O(n) worst-case complexity of c_strcasestr.
68103         * lib/c-strcasestr.c: Include stdbool.h, string.h.
68104         (knuth_morris_pratt): New function.
68105         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
68106         the bookkeeping indicates that it's worth it.
68107         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
68108
68109         * modules/c-strcasestr-tests: New file.
68110         * tests/test-c-strcasestr.c: New file.
68111
68112 2007-02-11  Bruno Haible  <bruno@clisp.org>
68113
68114         Ensure O(n) worst-case complexity of c_strstr.
68115         * lib/c-strstr.c: Include stdbool.h, string.h.
68116         (knuth_morris_pratt): New function.
68117         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
68118         bookkeeping indicates that it's worth it.
68119         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
68120
68121         * lib/c-strstr.c: Complete rewrite for maintainability.
68122
68123         * modules/c-strstr-tests: New file.
68124         * tests/test-c-strstr.c: New file.
68125
68126 2007-02-11  Bruno Haible  <bruno@clisp.org>
68127
68128         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
68129         5.2.1 and earlier, whereby \055 was treated just like the range
68130         delimiter '-'.
68131         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
68132
68133 2007-02-08  Bruno Haible  <bruno@clisp.org>
68134
68135         * modules/regex (Depends-on): Add stdbool.
68136         Reported by Dalibor Topic <robilad@kaffe.org>.
68137
68138 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
68139
68140         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
68141         Prefer returning from main to exiting from it.
68142         Remove unnecessary parens after sizeof.
68143
68144 2007-02-05  Bruno Haible  <bruno@clisp.org>
68145
68146         New module mbssep.
68147         * modules/mbssep: New file.
68148         * lib/mbssep.c: New file.
68149         * lib/string_.h (strsep): Add a conditional link warning.
68150         (mbssep): New declaration.
68151         * m4/mbssep.m4: New file.
68152         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68153         GNULIB_MBSSEP.
68154         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
68155         * MODULES.html.sh (Internationalization functions): Add mbssep.
68156
68157 2007-02-05  Bruno Haible  <bruno@clisp.org>
68158
68159         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
68160         Optimize search in case of 1 delimiter.
68161
68162 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
68163
68164         * lib/acl.h: Include sys/types.h before sys/acl.h.
68165
68166 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
68167
68168         Merge upstream fix for glibc bugzilla #3957:
68169
68170         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
68171
68172         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
68173         bit for RE_HAT_LISTS_NOT_NEWLINE.
68174         (build_charclass_op): Remove bogus comment.
68175
68176 2007-02-05  Simon Josefsson  <simon@josefsson.org>
68177
68178         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
68179
68180 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
68181
68182         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
68183         * lib/memmem.c [!defined _LIBC]: Include config.h.
68184
68185 2007-02-04  Bruno Haible  <bruno@clisp.org>
68186
68187         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
68188         warning message.
68189
68190 2007-02-04  Bruno Haible  <bruno@clisp.org>
68191
68192         New module mbstok_r.
68193         * modules/mbstok_r: New file.
68194         * lib/mbstok_r.c: New file.
68195         * lib/string_.h (strtok_r): Change argument names to match the
68196         comments. Add a conditional link warning.
68197         (mbstok_r): New declaration.
68198         * m4/mbstok_r.m4: New file.
68199         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68200         GNULIB_MBSTOK_R.
68201         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
68202         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
68203
68204 2007-02-04  Bruno Haible  <bruno@clisp.org>
68205
68206         New module mbsspn.
68207         * modules/mbsspn: New file.
68208         * lib/mbsspn.c: New file.
68209         * lib/string_.h (strspn): Add a conditional link warning.
68210         (mbsspn): New declaration.
68211         * m4/mbsspn.m4: New file.
68212         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68213         GNULIB_MBSSPN.
68214         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
68215         * MODULES.html.sh (Internationalization functions): Add mbsspn.
68216
68217 2007-02-04  Bruno Haible  <bruno@clisp.org>
68218
68219         New module mbspbrk.
68220         * modules/mbspbrk: New file.
68221         * lib/mbspbrk.c: New file.
68222         * lib/string_.h (strpbrk): Add a conditional link warning.
68223         (mbspbrk): New declaration.
68224         * m4/mbspbrk.m4: New file.
68225         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68226         GNULIB_MBSPBRK.
68227         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
68228         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
68229
68230 2007-02-04  Bruno Haible  <bruno@clisp.org>
68231
68232         New module mbscspn.
68233         * modules/mbscspn: New file.
68234         * lib/mbscspn.c: New file.
68235         * lib/string_.h (strcspn): Add a conditional link warning.
68236         (mbscspn): New declaration.
68237         * m4/mbscspn.m4: New file.
68238         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68239         GNULIB_MBSCSPN.
68240         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
68241         * MODULES.html.sh (Internationalization functions): Add mbscspn.
68242
68243 2007-02-04  Bruno Haible  <bruno@clisp.org>
68244
68245         New module mbscasestr, reduced goal of strcasestr.
68246         * modules/mbscasestr: New file.
68247         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
68248         (mbscasestr): Renamed from strcasestr.
68249         * lib/strcasestr.c: Don't include mbuiter.h.
68250         (strcasestr): Remove support for multibyte locales.
68251         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
68252         Change the conditional link warning.
68253         (mbscasestr): New declaration.
68254         * m4/mbscasestr.m4: New file.
68255         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
68256         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
68257         REPLACE_STRCASESTR.
68258         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
68259         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68260         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
68261         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
68262         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
68263         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
68264         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
68265         (Depends-on): Remove mbuiter.
68266         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
68267
68268 2007-02-04  Bruno Haible  <bruno@clisp.org>
68269
68270         Simplify handling of strncasecmp.
68271         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
68272         the conditional link warning.
68273         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68274         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
68275         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
68276         * modules/strcase (configure.ac): Don't invoke
68277         gl_STRING_MODULE_INDICATOR.
68278         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
68279
68280 2007-02-04  Bruno Haible  <bruno@clisp.org>
68281
68282         New module mbscasecmp, reduced goal of strcasecmp.
68283         * modules/mbscasecmp: New file.
68284         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
68285         (mbscasecmp): Renamed from strcasecmp.
68286         * lib/strcasecmp.c: Don't include mbuiter.h.
68287         (strcasecmp): Remove support for multibyte locales.
68288         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
68289         Change the conditional link warning.
68290         (mbscasecmp): New declaration.
68291         * m4/mbscasecmp.m4: New file.
68292         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
68293         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
68294         REPLACE_STRCASECMP.
68295         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
68296         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68297         GNULIB_MBSCASECMP.
68298         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
68299         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
68300         * modules/strcase (Files): Remove m4/mbrtowc.m4.
68301         (Depends-on): Remove mbuiter.
68302         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
68303
68304 2007-02-04  Bruno Haible  <bruno@clisp.org>
68305
68306         New module mbsstr. Remove module strstr.
68307         * modules/mbsstr: New file.
68308         * modules/strstr: Remove file.
68309         * lib/mbsstr.c: Renamed from lib/strstr.c.
68310         (mbsstr): Renamed from strstr.
68311         * lib/string_.h (strstr): Remove declaration. Change the conditional
68312         link warning.
68313         (mbsstr): New declaration.
68314         * m4/mbsstr.m4: New file.
68315         * m4/strstr.m4: Remove file.
68316         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
68317         REPLACE_STRSTR.
68318         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
68319         Don't initialize GNULIB_STRSTR.
68320         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
68321         substitute GNULIB_STRSTR and REPLACE_STRSTR.
68322         * MODULES.html.sh (Internationalization functions): Add mbsstr.
68323         (Support for systems lacking ANSI C 89): Remove strstr.
68324
68325 2007-02-04  Bruno Haible  <bruno@clisp.org>
68326
68327         New module mbsrchr.
68328         * modules/mbsrchr: New file.
68329         * lib/mbsrchr.c: New file.
68330         * lib/string_.h (strrchr): Add a conditional link warning.
68331         (mbsrchr): New declaration.
68332         * m4/mbsrchr.m4: New file.
68333         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68334         GNULIB_MBSRCHR.
68335         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
68336         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
68337
68338 2007-02-04  Bruno Haible  <bruno@clisp.org>
68339
68340         New module mbschr.
68341         * modules/mbschr: New file.
68342         * lib/mbschr.c: New file.
68343         * lib/string_.h (strchr): Add a conditional link warning.
68344         (mbschr): New declaration.
68345         * m4/mbschr.m4: New file.
68346         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68347         GNULIB_MBSCHR.
68348         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
68349         * MODULES.html.sh (Internationalization functions): Add mbschr.
68350
68351 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
68352
68353         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
68354
68355         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
68356
68357 2007-02-04  Bruno Haible  <bruno@clisp.org>
68358
68359         New module description section 'configure.ac-early'.
68360         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
68361         (func_get_autoconf_early_snippet): New function.
68362         (func_import, func_create_testdir): Use it. Remove special cases for
68363         modules 'extensions' and 'lock'.
68364         * modules/extensions (configure.ac-early): Require
68365         gl_USE_SYSTEM_EXTENSIONS.
68366         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
68367
68368 2007-02-04  Bruno Haible  <bruno@clisp.org>
68369
68370         Make use of gcj-4.3's -fsource and -ftarget option.
68371         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
68372         and if so try the options -fsource and -ftarget.
68373         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
68374         source_version, ftarget_option, target_version arguments.
68375         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
68376         (is_envjavac_oldgcj_14_14_usable): Renamed from
68377         is_envjavac_gcj_14_14_usable.
68378         (is_envjavac_oldgcj_14_13_usable): Renamed from
68379         is_envjavac_gcj_14_13_usable.
68380         (is_gcj_present): Update.
68381         (is_gcj_43, is_gcj43_usable): New functions.
68382         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
68383         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
68384         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
68385         try the options -fsource and -ftarget.
68386
68387 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
68388
68389         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
68390         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
68391         larger value.
68392
68393 2007-02-03  Jim Meyering  <jim@meyering.net>
68394
68395         Give tools a better chance to allocate space for very large buffers.
68396         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
68397
68398         Make pwd and readlink work also when run with an unreadable parent dir
68399         on systems with openat support.
68400         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
68401         provided getcwd function, even when we have openat support.
68402         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
68403
68404 2007-02-02  Bruno Haible  <bruno@clisp.org>
68405
68406         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
68407         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
68408         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
68409         portability problems if one of these functions is only used on specific
68410         platforms.
68411         Reported by Paul Eggert.
68412
68413 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
68414
68415         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
68416         is causing more trouble than it's curing.
68417         * lib/regex_internal.h (__mempcpy): Remove.
68418         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
68419         (and make the code a tad smaller to boot).
68420         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
68421
68422 2007-02-02  Jim Meyering  <jim@meyering.net>
68423
68424         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
68425         section, not in the Makefile.am: one.
68426
68427 2007-02-02  Eric Blake  <ebb9@byu.net>
68428
68429         * lib/strchrnul.c: Always include config.h first.
68430
68431         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
68432         gnulib strstr is not necessary here.
68433
68434 2007-02-02  Simon Josefsson  <simon@josefsson.org>
68435
68436         * m4/socklen.m4: Fix typo.
68437
68438 2007-02-02  Eric Blake  <ebb9@byu.net>
68439
68440         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
68441         * modules/netinet_in (Makefile.am): Likewise.
68442
68443 2007-02-01  Bruno Haible  <bruno@clisp.org>
68444
68445         * lib/string_.h (GL_LINK_WARNING): New macro.
68446         (strcasecmp, strstr, strcasestr): If provided by the system,
68447         conditionally define as a macro that leads to a warning instead of to
68448         an error.
68449         (strncasecmp): Conditionally define as a macro that leads to a warning.
68450
68451 2007-02-01  Karl Berry  <karl@gnu.org>
68452
68453         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
68454
68455 2007-02-01  Bruno Haible  <bruno@clisp.org>
68456
68457         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
68458         renamings.
68459
68460 2007-02-01  Eric Blake  <ebb9@byu.net>
68461
68462         * modules/regex (Depends-on): Revert dependence on mempcpy.
68463         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
68464         module's definition of mempcpy.
68465         Reported by Paul Eggert.
68466
68467 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
68468
68469         * lib/string_.h: If the gnulib module XYZ is not present, undefine
68470         the symbol XYZ before redefining it.  This fixes a problem with
68471         programs that don't use XYZ, when compiled on systems that define
68472         XYZ to something else.
68473
68474 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
68475
68476         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
68477         occurs when "mkdir -m foo" creates a setgid directory that is (1)
68478         writeable to group or other and (2) is intended to have a special
68479         mode bit that is set or cleared.  In such a case, the directory
68480         should be neither group- nor other-writeable until the special
68481         mode bits are right.
68482
68483 2007-01-31  Eric Blake  <ebb9@byu.net>
68484
68485         * modules/mountlist (Depends-on): Add strstr.
68486
68487         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
68488         bug.
68489         * modules/string (Makefile.am): Remove redundant replacement.
68490         * modules/regex (Depends-on): Add mempcpy.
68491
68492 2007-01-31  Bruno Haible  <bruno@clisp.org>
68493
68494         New module description field 'Link'.
68495         * gnulib-tool (func_usage): Document --extract-link-directive.
68496         (sed_extract_prog): Recognize 'Link' directive.
68497         (func_get_link_directive): New function.
68498         (func_import): Show summary of link directives.
68499         Handle --extract-link-directive option.
68500         * modules/acl (Link): New section.
68501         * modules/clock-time (Link): New section.
68502         * modules/euidaccess (Link): New section.
68503         * modules/gettext (Link): New section.
68504         * modules/iconv (Link): New section.
68505         * modules/lock (Link): New section.
68506         * modules/nanosleep (Link): New section.
68507         * modules/readline (Link): New section.
68508
68509 2007-01-27  Bruno Haible  <bruno@clisp.org>
68510
68511         Enforce the use of gnulib modules for unportable <string.h> functions.
68512         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
68513         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
68514         (gl_HEADER_STRING_H_BODY): Require it.
68515         * lib/string_.h: If the gnulib module XYZ is not present, redefine
68516         the symbol XYZ to one that gives a link error.
68517         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
68518         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
68519         * modules/mempcpy (configure.ac): Likewise.
68520         * modules/memrchr (configure.ac): Likewise.
68521         * modules/stpcpy (configure.ac): Likewise.
68522         * modules/stpncpy (configure.ac): Likewise.
68523         * modules/strcase (configure.ac): Likewise.
68524         * modules/strcasestr (configure.ac): Likewise.
68525         * modules/strchrnul (configure.ac): Likewise.
68526         * modules/strdup (configure.ac): Likewise.
68527         * modules/strndup (configure.ac): Likewise.
68528         * modules/strnlen (configure.ac): Likewise.
68529         * modules/strpbrk (configure.ac): Likewise.
68530         * modules/strsep (configure.ac): Likewise.
68531         * modules/strstr (configure.ac): Likewise.
68532         * modules/strtok_r (configure.ac): Likewise.
68533
68534 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
68535
68536         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
68537
68538 2007-01-30  Jim Meyering  <jim@meyering.net>
68539
68540         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
68541
68542 2007-01-29  Bruno Haible  <bruno@clisp.org>
68543
68544         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
68545         * lib/execute.c: Likewise.
68546         * lib/pipe.c: Likewise.
68547         * lib/printf-args.h: Likewise.
68548         * lib/printf-args.c: Likewise.
68549         * lib/printf-parse.c: Likewise.
68550         * lib/vasnprintf.c: Likewise.
68551
68552 2007-01-29  Eric Blake  <ebb9@byu.net>
68553
68554         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
68555         declaration.
68556
68557 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
68558
68559         * lib/strptime.h (strptime): Use 'restrict' for args where
68560         POSIX requires this.
68561         * lib/strptime.c (strptime): Likewise.
68562         Change license notice from LGPL to GPL, since gnulib-tool will
68563         change this as needed.
68564         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
68565         defined.
68566         Include "strptime.h" first, to check interface.
68567         Do not #undef _LIBC and _NL_CURRENT.
68568         Do not include <stdlib.h>; no longer needed.
68569         Include "time_r.h" and declare ptime_locale_status
68570         only if _LIBC is not defined.
68571         (__P): Remove unused macro.
68572         (match_string): Bring back glibc version, but use it only if _LIBC
68573         is defined.
68574         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
68575         Remove unnecessary assertion and abort() call.
68576         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
68577         * m4/strptime.m4: Fix serial number comment.
68578         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
68579         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
68580         (Depends-on): Add time_r.
68581
68582 2007-01-29  Bruno Haible  <bruno@clisp.org>
68583
68584         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68585         strptime.
68586         * modules/strptime (Depends-on): Add stdbool.
68587         * lib/strptime.h: Include <time.h> always. Add comments.
68588
68589 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68590
68591         * modules/strptime: New file.
68592         * lib/strptime.h: New file.
68593         * lib/strptime.c: New file.
68594         * m4/strptime.m4: New file.
68595
68596 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
68597
68598         * MODULES.html.sh: New module mpsort.
68599         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
68600
68601         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
68602         a circularity problem with HP-UX ia64 reported by Bob Proulx in
68603         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
68604         All uses changed.
68605         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
68606         All uses changed.
68607         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
68608         to _Restrict_.
68609         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
68610         the parameter matches the prototype.
68611
68612 2007-01-28  Jim Meyering  <jim@meyering.net>
68613
68614         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
68615         sys/time.h here, reverting that part of the previous patch:
68616         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
68617
68618 2007-01-28  Bruno Haible  <bruno@clisp.org>
68619
68620         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
68621         value of $(SYS_TIME_H).
68622         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
68623         remove it conditionally, too. [added by Jim Meyering]
68624         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
68625         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
68626         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
68627         GETTIMEOFDAY_REPLACEMENT to 1.
68628
68629 2007-01-28  Bruno Haible  <bruno@clisp.org>
68630
68631         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
68632         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
68633         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
68634         Set UNISTD_H instead of UNISTD_H2.
68635         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
68636
68637 2007-01-28  Bruno Haible  <bruno@clisp.org>
68638
68639         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
68640         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
68641
68642 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68643
68644         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
68645         (func_create_testdir): Ensure C locale for `grep' and `tr'
68646         character ranges.
68647         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
68648         ACLOCAL_AMFLAGS parsing state machine.
68649
68650 2007-01-27  Bruno Haible  <bruno@clisp.org>
68651
68652         * modules/unistr/base: Update.
68653
68654 2007-01-27  Bruno Haible  <bruno@clisp.org>
68655
68656         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
68657         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
68658         * modules/unistr/u32-mbtouc-unsafe: Renamed from
68659         modules/unistr/u32-mbtouc.
68660         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
68661         * lib/unistr.h: Update.
68662         * lib/linebreak.c: Update.
68663         * modules/unistr/u32-mbtouc: Renamed from
68664         modules/unistr/u32-mbtouc-safe.
68665         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
68666         * lib/unistr.h: Update.
68667         * lib/unistr/u32-to-u8.c: Update.
68668         * lib/unistr/u32-to-u16.c: Update.
68669
68670 2007-01-27  Bruno Haible  <bruno@clisp.org>
68671
68672         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
68673         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
68674         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
68675         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
68676         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
68677         * modules/unistr/u16-mbtouc-unsafe: Renamed from
68678         modules/unistr/u16-mbtouc.
68679         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
68680         * lib/unistr.h: Update.
68681         * lib/linebreak.c: Update.
68682         * modules/linebreak: Update.
68683         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
68684         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
68685         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
68686         * modules/unistr/u16-mbtouc: Renamed from
68687         modules/unistr/u16-mbtouc-safe.
68688         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
68689         * lib/unistr.h: Update.
68690         * lib/unistr/u16-to-u8.c: Update.
68691         * modules/unistr/u16-to-u8: Update.
68692         * lib/unistr/u16-to-u32.c: Update.
68693         * modules/unistr/u16-to-u32: Update.
68694
68695 2007-01-27  Bruno Haible  <bruno@clisp.org>
68696
68697         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
68698         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
68699         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
68700         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
68701         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
68702         * modules/unistr/u8-mbtouc-unsafe: Renamed from
68703         modules/unistr/u8-mbtouc.
68704         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
68705         * lib/unistr.h: Update.
68706         * lib/striconveh.c: Update.
68707         * modules/striconveh: Update.
68708         * lib/linebreak.c: Update.
68709         * modules/linebreak: Update.
68710         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
68711         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
68712         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
68713         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
68714         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
68715         * lib/unistr.h: Update.
68716         * lib/striconveh.c: Update.
68717         * modules/striconveh: Update.
68718         * lib/unistr/u8-to-u16.c: Update.
68719         * modules/unistr/u8-to-u16: Update.
68720         * lib/unistr/u8-to-u32.c: Update.
68721         * modules/unistr/u8-to-u32: Update.
68722
68723 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68724
68725         Sync from Libtool.
68726         * lib/argz.c: Do not include strings.h nor memory.h, include
68727         string.h unconditionally.  Patch by Simon Josefsson.
68728
68729 2007-01-27  Bruno Haible  <bruno@clisp.org>
68730
68731         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
68732         from gl_HEADER_STRING_H_BODY.
68733         (gl_HEADER_STRING_H_BODY): Require it.
68734         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
68735         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
68736         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
68737         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
68738         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
68739         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
68740         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
68741         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
68742         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
68743         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
68744         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
68745         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
68746         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
68747         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
68748         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
68749
68750 2007-01-27  Bruno Haible  <bruno@clisp.org>
68751
68752         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
68753         check_PROGRAMS into noinst_PROGRAMS.
68754         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
68755         check_PROGRAMS in this case.
68756         (func_import): Set for_test to false.
68757         (func_create_testdir): Set for_test to true.
68758
68759 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
68760             Bruno Haible  <bruno@clisp.org>
68761
68762         * modules/strcasestr (Files): Remove lib/strcasestr.h.
68763         (Depends-on): Add string.
68764         (Includes): Use <string.h> instead of strcasestr.h.
68765         * modules/string (Makefile.am): Also substitute the value of
68766         REPLACE_STRCASESTR.
68767         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
68768         assume strcasestr is declared in <string.h> not <strings.h>. Also
68769         set REPLACE_STRCASESTR.
68770         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
68771         REPLACE_STRCASESTR.
68772         * lib/strcasestr.h: Remove file.
68773         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
68774         * lib/string_.h (strcasestr): New declaration.
68775
68776 2007-01-27  Bruno Haible  <bruno@clisp.org>
68777
68778         * lib/string_.h: Use 'extern'.
68779
68780 2007-01-27  Jim Meyering  <jim@meyering.net>
68781
68782         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
68783         of set-but-not-used local, "q".
68784
68785         * lib/mempcpy.c: Include <config.h> before <string.h>.
68786         This fixes a compilation error on HP-UX, due to the system's
68787         "restrict"-using mempcpy prototype.
68788
68789 2007-01-26  Bruno Haible  <bruno@clisp.org>
68790
68791         Small optimization.
68792         * lib/javacomp.c: Include c-strstr.h.
68793          (is_envjavac_gcj): Use c_strstr instead of strstr.
68794         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
68795
68796 2007-01-26  Bruno Haible  <bruno@clisp.org>
68797
68798         * MODULES.html.sh (Unicode string functions): Add the new modules.
68799
68800         * modules/uniconv/u32-strconv-to-locale: New file.
68801         * lib/uniconv/u32-strconv-to-locale.c: New file.
68802
68803         * modules/uniconv/u16-strconv-to-locale: New file.
68804         * lib/uniconv/u16-strconv-to-locale.c: New file.
68805
68806         * modules/uniconv/u8-strconv-to-locale: New file.
68807         * lib/uniconv/u8-strconv-to-locale.c: New file.
68808
68809         * modules/uniconv/u32-strconv-from-locale: New file.
68810         * lib/uniconv/u32-strconv-from-locale.c: New file.
68811
68812         * modules/uniconv/u16-strconv-from-locale: New file.
68813         * lib/uniconv/u16-strconv-from-locale.c: New file.
68814
68815         * modules/uniconv/u8-strconv-from-locale: New file.
68816         * lib/uniconv/u8-strconv-from-locale.c: New file.
68817
68818         * modules/uniconv/u32-strconv-to-enc: New file.
68819         * lib/uniconv/u32-strconv-to-enc.c: New file.
68820         * modules/uniconv/u32-strconv-to-enc-tests: New file.
68821         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
68822
68823         * modules/uniconv/u16-strconv-to-enc: New file.
68824         * lib/uniconv/u16-strconv-to-enc.c: New file.
68825         * lib/uniconv/u-strconv-to-enc.h: New file.
68826         * modules/uniconv/u16-strconv-to-enc-tests: New file.
68827         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
68828
68829         * modules/uniconv/u8-strconv-to-enc: New file.
68830         * lib/uniconv/u8-strconv-to-enc.c: New file.
68831         * modules/uniconv/u8-strconv-to-enc-tests: New file.
68832         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
68833
68834         * modules/uniconv/u32-strconv-from-enc: New file.
68835         * lib/uniconv/u32-strconv-from-enc.c: New file.
68836         * modules/uniconv/u32-strconv-from-enc-tests: New file.
68837         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
68838
68839         * modules/uniconv/u16-strconv-from-enc: New file.
68840         * lib/uniconv/u16-strconv-from-enc.c: New file.
68841         * modules/uniconv/u16-strconv-from-enc-tests: New file.
68842         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
68843
68844         * modules/uniconv/u8-strconv-from-enc: New file.
68845         * lib/uniconv/u8-strconv-from-enc.c: New file.
68846         * lib/uniconv/u-strconv-from-enc.h: New file.
68847         * modules/uniconv/u8-strconv-from-enc-tests: New file.
68848         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
68849
68850         * modules/uniconv/u32-conv-from-enc: New file.
68851         * lib/uniconv/u32-conv-from-enc.c: New file.
68852         * modules/uniconv/u32-conv-from-enc-tests: New file.
68853         * tests/uniconv/test-u32-conv-from-enc.c: New file.
68854
68855         * modules/uniconv/u16-conv-from-enc: New file.
68856         * lib/uniconv/u16-conv-from-enc.c: New file.
68857         * lib/uniconv/u-conv-from-enc.h: New file.
68858         * modules/uniconv/u16-conv-from-enc-tests: New file.
68859         * tests/uniconv/test-u16-conv-from-enc.c: New file.
68860
68861         * modules/uniconv/u8-conv-from-enc: New file.
68862         * lib/uniconv/u8-conv-from-enc.c: New file.
68863         * modules/uniconv/u8-conv-from-enc-tests: New file.
68864         * tests/uniconv/test-u8-conv-from-enc.c: New file.
68865
68866         * modules/uniconv/base: New file.
68867         * lib/uniconv.h: New file.
68868
68869 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
68870
68871         * doc/gnulib-tool.texi (Initial import): Update to match current
68872         behavior with strdup module.
68873         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
68874         * lib/memmem.h: Remove; all uses removed.  This is now done
68875         by <string.h>.
68876         * lib/mempcpy.h: Likewise.
68877         * lib/memrchr.h: Likewise.
68878         * lib/stpcpy.h: Likewise.
68879         * lib/stpncpy.h: Likewise.
68880         * lib/strcase.h: Likewise.
68881         * lib/strchrnul.h: Likewise.
68882         * lib/strdup.h: Likewise.
68883         * lib/strndup.h: Likewise.
68884         * lib/strnlen.h: Likewise.
68885         * lib/strpbrk.h: Likewise.
68886         * lib/strsep.h: Likewise.
68887         * lib/strstr.h: Likewise.
68888         * lib/strtok_r.h: Likewise.
68889         * lib/string_.h: New file.
68890         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
68891         Rely on <string.h> instead.
68892         * lib/canon-host.c: Likewise.
68893         * lib/chdir-long.c: Likewise.
68894         * lib/concatpath.c: Likewise.
68895         * lib/exclude.c: Likewise.
68896         * lib/fchdir.c: Likewise.
68897         * lib/getaddrinfo.c: Likewise.
68898         * lib/getcwd.c: Likewise.
68899         * lib/getsubopt.c: Likewise.
68900         * lib/glob.c: Likewise.
68901         * lib/hard-locale.c: Likewise.
68902         * lib/iconvme.c: Likewise.
68903         * lib/javacomp.c: Likewise.
68904         * lib/mempcpy.c: Likewise.
68905         * lib/memrchr.c: Likewise.
68906         * lib/regex_internal.h: Likewise.
68907         * lib/stpncpy.c: Likewise.
68908         * lib/strcasecmp.c: Likewise.
68909         * lib/strchrnul.c: Likewise.
68910         * lib/strdup.c: Likewise.
68911         * lib/striconv.c: Likewise.
68912         * lib/striconveh.c: Likewise.
68913         * lib/striconveha.c: Likewise.
68914         * lib/strncasecmp.c: Likewise.
68915         * lib/strndup.c: Likewise.
68916         * lib/strnlen.c: Likewise.
68917         * lib/strsep.c: Likewise.
68918         * lib/strstr.c: Likewise.
68919         * lib/strtok_r.c: Likewise.
68920         * lib/userspec.c: Likewise.
68921         * lib/w32spawn.h: Likewise.
68922         * lib/xstrndup.c: Likewise.
68923         * lib/mountlist.c (strstr): Remove decl.
68924         * m4/string_h.m4: New file.
68925         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
68926         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
68927         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
68928         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
68929         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
68930         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
68931         Set REPLACE_STRCASECMP if necessary.
68932         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
68933         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
68934         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
68935         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
68936         HAVE_DECL_STRDUP if necessary.
68937         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
68938         since gl_FUNC_STRNDUP does that now.
68939         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
68940         Check for decl here...
68941         (gl_PREREQ_STRNLEN): ... not here.
68942         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
68943         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
68944         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
68945         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
68946         necessary.
68947         * modules/string: New file.
68948         * modules/memmem (Files): Remove special-purpose include file.
68949         (Depends-on): Add string.
68950         (Include): Include <string.h>, not the removed file.
68951         * modules/mempcpy: Likewise.
68952         * modules/memrchr: Likewise.
68953         * modules/stpcpy: Likewise.
68954         * modules/stpncpy: Likewise.
68955         * modules/strcase: Likewise.
68956         * modules/strchrnul: Likewise.
68957         * modules/strdup: Likewise.
68958         * modules/strndup: Likewise.
68959         * modules/strnlen: Likewise.
68960         * modules/strpbrk: Likewise.
68961         * modules/strsep: Likewise.
68962         * modules/strstr: Likewise.
68963         * modules/strtok_r: Likewise.
68964         * tests/test-dirname.c: Don't include "strdup.h", since
68965         <string.h> now suffices.
68966         * tests/test-memmem.c: Don't include "memmem.h", since
68967         <string.h> now suffices.
68968
68969 2007-01-25  Bruno Haible  <bruno@clisp.org>
68970
68971         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
68972         *resultp is 0.
68973
68974         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
68975         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
68976         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
68977         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
68978
68979         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
68980         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
68981         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
68982         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
68983         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
68984         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
68985
68986 2007-01-24  Bruno Haible  <bruno@clisp.org>
68987
68988         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
68989         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
68990         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
68991         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
68992         gl_FUNC_FTS_CORE.
68993         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
68994         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
68995         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
68996         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
68997         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
68998         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
68999         gl_FUNC_FCHOWNAT.
69000         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
69001         gl_FUNC_STRFTIME.
69002         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
69003         Reported by Ralf Wildenhues.
69004
69005 2007-01-24  Bruno Haible  <bruno@clisp.org>
69006
69007         Drop AC_REQUIRE calls that are redundant with the module dependencies.
69008         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
69009         gl_GETADDRINFO.
69010         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
69011         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
69012         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
69013
69014 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
69015
69016         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
69017         Don't use 'exit'; just return from 'main'.
69018         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
69019
69020         * lib/fnmatch_.h: Readjust white space and comments to match
69021         glibc, to avoid spurious diffs.
69022
69023 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69024
69025         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
69026         2004-12-01 change by Jakub Jelinek, since this code won't compile
69027         if !LIBC.  Problem reported by Bob Proulx.
69028
69029 2007-01-23  Bruno Haible  <bruno@clisp.org>
69030
69031         * lib/striconveh.c: Include c-strcaseeq.h.
69032         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
69033         * modules/striconveh (Depends-on): Add c-strcaseeq.
69034
69035 2007-01-23  Bruno Haible  <bruno@clisp.org>
69036
69037         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
69038
69039         * modules/c-strcaseeq: New file.
69040         * lib/c-strcaseeq.h: New file.
69041
69042         * modules/streq: New file.
69043         * lib/streq.h: New file.
69044
69045 2007-01-23  Bruno Haible  <bruno@clisp.org>
69046
69047         * modules/striconveha-tests: New file.
69048         * tests/test-striconveha.c: New file.
69049
69050         * lib/striconveha.h: Include <stdbool.h>.
69051         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
69052         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
69053         (mem_iconveha_notranslit): Renamed from mem_iconveha.
69054         (mem_iconveha): New function.
69055         (str_iconveha_notranslit): Renamed from str_iconveha.
69056         (str_iconveha): New function.
69057         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
69058         c-strcase.
69059
69060 2007-01-23  Bruno Haible  <bruno@clisp.org>
69061
69062         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
69063         encodings without forgiving before trying any encoding with handler.
69064         (str_iconveha): Try all encodings without forgiving before trying any
69065         encoding with handler.
69066
69067 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69068
69069         Import the following changes from libc.
69070
69071         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
69072
69073         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
69074
69075         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
69076
69077         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
69078         normal_bracket label.
69079
69080         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
69081
69082         [BZ #361]
69083         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
69084         to normal_bracket after fetching the next character.
69085
69086 2007-01-22  Bruno Haible  <bruno@clisp.org>
69087
69088         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
69089         argument.
69090         * lib/striconveh.c (iconv_carefully_1): New function.
69091         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
69092         argument.
69093         (str_cd_iconveh): Update.
69094         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
69095         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
69096         * tests/test-striconveh.c (MAGIC): New macro.
69097         (new_offsets): New function.
69098         (main): Test call with and without offsets.
69099
69100 2007-01-22  Bruno Haible  <bruno@clisp.org>
69101
69102         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
69103         * modules/sys_select (Makefile.am): Likewise.
69104         * modules/sys_socket (Makefile.am): Likewise.
69105         * modules/sys_time (Makefile.am): Likewise.
69106
69107 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
69108
69109         * modules/gettimeofday (License): Change from GPL to LGPL, since
69110         gettimeofday is a library function.
69111
69112 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69113
69114         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
69115
69116 2007-01-21  Bruno Haible  <bruno@clisp.org>
69117
69118         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
69119
69120 2007-01-21  Bruno Haible  <bruno@clisp.org>
69121
69122         * modules/striconveha: New file.
69123         * lib/striconveha.h: New file.
69124         * lib/striconveha.c: New file.
69125         * MODULES.html.sh (Internationalization functions): Add striconveha.
69126         * lib/striconv.c (str_iconv): Optimize the case of an empty input
69127         string.
69128         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
69129
69130 2007-01-21  Bruno Haible  <bruno@clisp.org>
69131
69132         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
69133         * lib/striconveh.c (str_iconveh): Likewise.
69134
69135 2007-01-21  Bruno Haible  <bruno@clisp.org>
69136
69137         * lib/striconveh.h (mem_iconveh): New declaration.
69138         * lib/striconveh.c (mem_iconveh): New function.
69139         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
69140
69141 2007-01-21  Bruno Haible  <bruno@clisp.org>
69142
69143         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
69144
69145         * lib/striconveh.h (mem_cd_iconveh): Change specification.
69146         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
69147         original result buffer.
69148         (str_cd_iconveh): Update.
69149         * tests/test-striconveh.c (main): Update.
69150
69151         * lib/striconv.h (mem_cd_iconv): Change specification.
69152         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
69153         result buffer.
69154         (str_cd_iconv): Update.
69155         * tests/test-striconv.c (main): Update.
69156
69157 2007-01-21  Bruno Haible  <bruno@clisp.org>
69158
69159         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
69160
69161 2007-01-20  Jim Meyering  <jim@meyering.net>
69162
69163         * lib/userspec.c (parse_with_separator): If a user or group string
69164         starts with "+", skip the corresponding name-to-ID look-up, since
69165         such a look-up must fail: user and group names may not include "+".
69166
69167 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
69168
69169         * lib/poll.c: Include sys/time.h and time.h unconditionally,
69170         since we now assume the sys_time module.
69171         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
69172         check for sys/time.h; no longer needed.
69173         * modules/poll (Depends-on): Depend on sys_time.
69174
69175 2007-01-18  Bruno Haible  <bruno@clisp.org>
69176
69177         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
69178         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
69179
69180         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
69181         gettimeofday.
69182
69183         * tests/test-gettimeofday.c: Include <time.h>.
69184         (dummy): Remove variable.
69185
69186         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
69187         gl_HEADER_SYS_TIME_H.
69188         (gl_HEADER_SYS_TIME_H): New macro.
69189
69190         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
69191         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69192         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
69193         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
69194         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69195         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
69196         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
69197         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69198         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
69199         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
69200         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69201
69202         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
69203         last change; it caused a compilation error when cross-compiling to
69204         Cygwin.
69205
69206 2007-01-18  Jim Meyering  <jim@meyering.net>
69207
69208         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
69209         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
69210         than the race-prone "test -d sys || mkdir sys".
69211         (configure.ac): Use AC_PROG_MKDIR_P.
69212         * modules/sys_select: Likewise.
69213         * modules/sys_socket: Likewise.
69214         * modules/sys_time: Likewise.
69215
69216 2007-01-18  Eric Blake  <ebb9@byu.net>
69217
69218         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
69219         replace gettimeofday.
69220         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
69221         name, to avoid infinite recursion.
69222
69223 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
69224
69225         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
69226         module sys_time.
69227         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
69228         assume timespec.h defines struct timeval.
69229         * lib/settime.c: Likewise.
69230         * lib/utimens.c: Likewise.
69231         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
69232         since we now assume the gettimeofday module.
69233         * lib/tempname.c (__gen_tempname): Likewise.
69234         * lib/gettimeofday.h: Remove.
69235         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
69236         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
69237         Include <time.h>, for 'time()'.
69238         (localtime_buffer_addr): Also use this workaround if
69239         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
69240         to simplify the uses.  All uses changed.
69241         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
69242         that #undef is inside {}, and 'const' follows type name consistently.
69243         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
69244         (gettimeofday): Do not use the maximum possible value for
69245         tv->tv_usec, since that might break usages other than ls.c.
69246         Instead, we'll leave ls.c alone.  This undoes today's patch
69247         by Bruno.  Add a compile-time warning for 1s-clock resolution;
69248         we've never observed the problem but might as well keep the
69249         canary.
69250         * lib/nanosleep.c: Include timespec.h first, for interface check.
69251         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
69252         now assume the sys_time module.
69253         * lib/tempname.c: Likewise.
69254         * lib/timespec.h: Likewise.
69255         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
69256         needed.
69257         * lib/strftime.c: Likewise.
69258         * lib/timespec.h: Likewise.
69259         * lib/posixtm.c: Include posixtm.h first, for interface check.
69260         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
69261         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
69262         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
69263         * lib/sys_time_.h: New file.
69264         * lib/timespec.h (struct timespec): Use long int, not long.
69265         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
69266         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
69267         Remove obsolescent call to AC_HEADER_TIME.
69268         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
69269         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
69270         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
69271         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
69272         Likewise.
69273         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
69274         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
69275         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
69276         into the sys_time module.  Check for gettimeofday just once.
69277         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
69278         for gettimeofday signature to just check the signature.  Merely
69279         compile it, since linking doesn't test signature.  Improve test for
69280         whether gettimeofday.o is actually needed.
69281         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
69282         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
69283         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
69284         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69285         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
69286         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
69287         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
69288         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
69289         than worrying about sys/time.h.
69290         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69291         Don't bother worrying about TIME_WITH_SYS_TIME.
69292         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
69293         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
69294         * m4/sys_time_h.m4: New file.
69295         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
69296         Don't include sys/time.h.  Return from main rather than exiting.
69297         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
69298         all uses changed.
69299         * modules/gethrxtime (Depends-on): Add sys_time.
69300         * modules/gettime (Depends-on): Likewise.
69301         * modules/gettimeofday (Depends-on): Likewise.
69302         * modules/nanosleep (Depends-on): Likewise.
69303         * modules/settime (Depends-on): Likewise.
69304         * modules/tempname (Depends-on): Likewise.
69305         * modules/utimens (Depends-on): Likewise.
69306         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
69307         (Include): Change back to <sys/time.h>.
69308         (Maintainer): Add self.
69309         * modules/sys_time: New file.
69310         * modules/tempname (Depends-on): Add gettimeofday.
69311         * tests/test-gettimeofday.c: Include <sys/time.h>
69312         rather than gettimeofday.h.
69313
69314 2007-01-17  Bruno Haible  <bruno@clisp.org>
69315
69316         * gnulib-tool (func_get_license): Revert last patch. Instead, let
69317         the license default to GPL.
69318         (func_create_testdir): Don't complain if a module is LGPL and its
69319         tests module depends on GPLed modules.
69320
69321 2007-01-17  Bruno Haible  <bruno@clisp.org>
69322
69323         * lib/gettimeofday.c (gettimeofday): Add code for the case
69324         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
69325         maximum possible value for tv->tv_usec, rather than the minimum one.
69326
69327 2005-10-08  Martin Lambers  <marlam@marlam.de>
69328 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
69329 2007-01-16  Bruno Haible  <bruno@clisp.org>
69330
69331         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
69332         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
69333         gl_FUNC_GETTIMEOFDAY.
69334         (Include): Add gettimeofday.h.
69335         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
69336         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
69337         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
69338         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
69339         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
69340         * lib/gettimeofday.h: New file.
69341         * lib/gettimeofday.c: Include <sys/timeb.h>.
69342         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
69343         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69344         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
69345         fall back on time().
69346
69347         * tests/test-gettimeofday.c: New file.
69348         * modules/gettimeofday-tests: New file.
69349
69350 2007-01-16  Eric Blake  <ebb9@byu.net>
69351
69352         * modules/fnmatch (Depends-on): Depend on wchar.
69353         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
69354         * m4/fnmatch.m4: Likewise.
69355         * modules/mbchar (Makefile.am): Assume <wchar.h>.
69356         * m4/mbchar.m4: Likewise.
69357         * modules/mbswidth (Depends-on): Depend on wchar.
69358         * lib/mbswidth.c: Assume <wchar.h>.
69359         * m4/mbswidth.m4: Likewise.
69360         * modules/quotearg (Depends-on): Depend on wchar.
69361         * lib/quotearg.c: Assume <wchar.h>.
69362         * m4/quotearg.m4: Likewise.
69363         * modules/regex (Depends-on): Depend on wchar.
69364         * lib/regex_internal.h: Assume <wchar.h>.
69365         * m4/regex.m4: Likewise.
69366         * modules/stdint (Depends-on): Depend on wchar.
69367         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
69368         * m4/stdint.m4: Likewise.
69369         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
69370         * modules/strftime (Depends-on): Depend on wchar.
69371         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
69372         * modules/strtol (Depends-on): Depend on wchar.
69373         * lib/strtol.c: Assume <wchar.h>.
69374         * modules/wcwidth (Depends-on): Depend on wchar.
69375         * lib/wcwidth.h: Assume <wchar.h>.
69376         * m4/wcwidth.m4: Likewise.
69377
69378 2007-01-16  Bruno Haible  <bruno@clisp.org>
69379
69380         * modules/csharpexec-script: New, created from...
69381         * modules/csharpexec: ... this.
69382
69383 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
69384
69385         * modules/javaexec-script: New, created from...
69386         * modules/javaexec: ... this.
69387
69388 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69389
69390         * modules/poll (Dependencies): Add sys_select.
69391
69392 2007-01-15  Jim Meyering  <jim@meyering.net>
69393
69394         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
69395         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
69396         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
69397         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
69398
69399 2007-01-15  Bruno Haible  <bruno@clisp.org>
69400
69401         * modules/striconveh: New file.
69402         * lib/striconveh.h: New file.
69403         * lib/striconveh.c: New file.
69404         * MODULES.html.sh (Internationalization functions): Add striconveh.
69405
69406         * modules/striconveh-tests: New file.
69407         * tests/test-striconveh.c: New file.
69408
69409 2007-01-15  Bruno Haible  <bruno@clisp.org>
69410
69411         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
69412         not from GNU libiconv or GNU libc.
69413
69414 2007-01-15  Bruno Haible  <bruno@clisp.org>
69415
69416         * doc/gnulib-intro.texi (Copyright): Explain the different license
69417         terms for module descriptions, autoconf macros, tests, documentation.
69418
69419 2007-01-14  Bruno Haible  <bruno@clisp.org>
69420
69421         * modules/striconv-tests: New file.
69422         * tests/test-striconv.c: New file.
69423
69424 2007-01-14  Bruno Haible  <bruno@clisp.org>
69425
69426         * modules/iconv-tests: New file.
69427         * tests/test-iconv.c: New file.
69428
69429 2007-01-14  Bruno Haible  <bruno@clisp.org>
69430
69431         * gnulib-tool (func_get_license): For test modules, use the license of
69432         the main module.
69433
69434 2007-01-14  Bruno Haible  <bruno@clisp.org>
69435
69436         * modules/iconv (Include): Clarify that <iconv.h> can only be included
69437         if iconv is found to exist.
69438
69439 2007-01-14  Bruno Haible  <bruno@clisp.org>
69440
69441         * modules/c-ctype-tests: New file.
69442         * tests/test-c-ctype.c: New file.
69443
69444 2007-01-14  Bruno Haible  <bruno@clisp.org>
69445
69446         * modules/binary-io-tests: New file.
69447         * tests/test-binary-io.sh: New file.
69448         * tests/test-binary-io.c: New file.
69449
69450 2007-01-14  Bruno Haible  <bruno@clisp.org>
69451
69452         * modules/array-oset-tests: New file.
69453         * tests/test-array_oset.c: New file.
69454
69455 2007-01-14  Bruno Haible  <bruno@clisp.org>
69456
69457         * modules/array-list-tests: New file.
69458         * tests/test-array_list.c: New file.
69459
69460 2007-01-14  Bruno Haible  <bruno@clisp.org>
69461
69462         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
69463         and make.
69464         Reported by Simon Josefsson in
69465         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
69466
69467 2007-01-14  Bruno Haible  <bruno@clisp.org>
69468
69469         * modules/allocsa-tests: New file.
69470         * tests/test-allocsa.c: New file.
69471
69472 2007-01-14  Bruno Haible  <bruno@clisp.org>
69473
69474         * modules/fchdir (Depends-on): Add absolute-header.
69475         * modules/unistd (Depends-on): Likewise.
69476
69477 2006-12-30  Bruno Haible  <bruno@clisp.org>
69478
69479         * modules/fchdir: New file.
69480         * modules/unistd (Files): Add lib/unistd_.h.
69481         (Makefile.am): Generate unistd.h from unistd_.h.
69482         * lib/fchdir.c: New file.
69483         * lib/dirent_.h: New file.
69484         * lib/unistd_.h: New file.
69485         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
69486         * m4/fchdir.m4: New file.
69487         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
69488         (gl_HEADER_UNISTD): Invoke it.
69489         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
69490         function.
69491         * lib/backupfile.c (opendir, closedir): Undefine.
69492         * lib/chown.c (open, close): Undefine.
69493         * lib/clean-temp.c (open, close): Undefine.
69494         * lib/copy-file.c (open, close): Undefine.
69495         * lib/execute.c (open, close): Undefine.
69496         * lib/fsusage.c (open, close): Undefine.
69497         * lib/gc-gnulib.c (open, close): Undefine.
69498         * lib/getcwd.c (opendir, closedir): Undefine.
69499         * lib/glob.c (opendir, closedir): Undefine.
69500         * lib/javacomp.c (open, close): Undefine.
69501         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
69502         * lib/openat-proc.c (open, close): Undefine.
69503         * lib/pagealign_alloc.c (open, close): Undefine.
69504         * lib/pipe.c (open, close): Undefine.
69505         * lib/progreloc.c (open, close): Undefine.
69506         * lib/savedir.c (opendir, closedir): Undefine.
69507         * lib/utime.c (open, close): Undefine.
69508         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
69509
69510 2007-01-10  Bruno Haible  <bruno@clisp.org>
69511
69512         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
69513
69514 2007-01-12  Eric Blake  <ebb9@byu.net>
69515
69516         Provide a robust <wchar.h>.  Further simplifications are now
69517         possible in other modules, but not included here.
69518         * modules/wchar: New module.
69519         * m4/wchar.m4: New file.
69520         * lib/wchar_.h: Likewise.
69521         * modules/mbchar (Depends-on): Depend on wchar, as the first use
69522         of the new module.
69523         * MODULES.html.sh (Extended multibyte and wide character utilities):
69524         New section.
69525
69526 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
69527
69528         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
69529         to a reasonable default for memory allocation.
69530         (xreadlink): Don't allocate a huge buffer, to work around a buggy
69531         file system that reports garbage st_size values for symlinks.
69532         Problem reported by Liyang Hu.
69533
69534 2007-01-11  Simon Josefsson  <simon@josefsson.org>
69535
69536         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
69537         Emacs .#* auto-save files).
69538
69539 2007-01-11  Bruno Haible  <bruno@clisp.org>
69540
69541         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
69542         directory.
69543
69544 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69545
69546         Use @...@ consistently in lib/wctype_.h.
69547         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
69548         on it being set to 1 or 0.
69549         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
69550         go back to AC_SUBSTing it.
69551         * modules/wctype (Makefile.am): Undo previous change.
69552
69553 2007-01-10  Eric Blake  <ebb9@byu.net>
69554
69555         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
69556         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
69557         * modules/wctype (Makefile.am): Likewise.
69558         Reported by Chris McGuire.
69559
69560 2007-01-10  Jim Meyering  <jim@meyering.net>
69561
69562         fts.c: a small readability/maintainability improvement
69563         * lib/fts.c (fts_read): Make this code slightly more readable and
69564         maintainable by hoisting the "sp->fts_cur = p" assignments to
69565         immediately follow the statements that set P.  Derived from
69566         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
69567
69568 2007-01-10  Eric Blake  <ebb9@byu.net>
69569
69570         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
69571         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
69572         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
69573         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
69574         Reported by Chris McGuire.
69575
69576 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69577
69578         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
69579         in sed script.
69580
69581 2007-01-09  Bruno Haible  <bruno@clisp.org>
69582
69583         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
69584         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
69585         variables.
69586         (func_module): Use them.
69587
69588 2007-01-09  Bruno Haible  <bruno@clisp.org>
69589
69590         * modules/unistr/base: New file.
69591         * lib/unistr.h: New file.
69592
69593         * modules/unistr/u8-to-u16: New file.
69594         * lib/unistr/u8-to-u16.c: New file.
69595
69596         * modules/unistr/u8-to-u32: New file.
69597         * lib/unistr/u8-to-u32.c: New file.
69598
69599         * modules/unistr/u16-to-u8: New file.
69600         * lib/unistr/u16-to-u8.c: New file.
69601
69602         * modules/unistr/u16-to-u32: New file.
69603         * lib/unistr/u16-to-u32.c: New file.
69604
69605         * modules/unistr/u32-to-u8: New file.
69606         * lib/unistr/u32-to-u8.c: New file.
69607
69608         * modules/unistr/u32-to-u16: New file.
69609         * lib/unistr/u32-to-u16.c: New file.
69610
69611         * modules/unistr/u8-check: New file.
69612         * modules/unistr/u16-check: New file.
69613         * modules/unistr/u32-check: New file.
69614         * lib/unistr/u8-check.c: New file.
69615         * lib/unistr/u16-check.c: New file.
69616         * lib/unistr/u32-check.c: New file.
69617
69618         * modules/unistr/u8-chr: New file.
69619         * modules/unistr/u16-chr: New file.
69620         * modules/unistr/u32-chr: New file.
69621         * lib/unistr/u8-chr.c: New file.
69622         * lib/unistr/u16-chr.c: New file.
69623         * lib/unistr/u32-chr.c: New file.
69624
69625         * modules/unistr/u8-cmp: New file.
69626         * modules/unistr/u16-cmp: New file.
69627         * modules/unistr/u32-cmp: New file.
69628         * lib/unistr/u8-cmp.c: New file.
69629         * lib/unistr/u16-cmp.c: New file.
69630         * lib/unistr/u32-cmp.c: New file.
69631
69632         * modules/unistr/u8-cpy: New file.
69633         * modules/unistr/u16-cpy: New file.
69634         * modules/unistr/u32-cpy: New file.
69635         * lib/unistr/u8-cpy.c: New file.
69636         * lib/unistr/u16-cpy.c: New file.
69637         * lib/unistr/u32-cpy.c: New file.
69638         * lib/unistr/u-cpy.h: New file.
69639
69640         * modules/unistr/u8-cpy-alloc: New file.
69641         * modules/unistr/u16-cpy-alloc: New file.
69642         * modules/unistr/u32-cpy-alloc: New file.
69643         * lib/unistr/u8-cpy-alloc.c: New file.
69644         * lib/unistr/u16-cpy-alloc.c: New file.
69645         * lib/unistr/u32-cpy-alloc.c: New file.
69646         * lib/unistr/u-cpy-alloc.h: New file.
69647
69648         * modules/unistr/u8-endswith: New file.
69649         * modules/unistr/u16-endswith: New file.
69650         * modules/unistr/u32-endswith: New file.
69651         * lib/unistr/u8-endswith.c: New file.
69652         * lib/unistr/u16-endswith.c: New file.
69653         * lib/unistr/u32-endswith.c: New file.
69654         * lib/unistr/u-endswith.h: New file.
69655
69656         * modules/unistr/u8-mblen: New file.
69657         * modules/unistr/u16-mblen: New file.
69658         * modules/unistr/u32-mblen: New file.
69659         * lib/unistr/u8-mblen.c: New file.
69660         * lib/unistr/u16-mblen.c: New file.
69661         * lib/unistr/u32-mblen.c: New file.
69662
69663         * modules/unistr/u8-mbtouc: New file.
69664         * modules/unistr/u16-mbtouc: New file.
69665         * modules/unistr/u32-mbtouc: New file.
69666         * lib/unistr/u8-mbtouc.c: New file.
69667         * lib/unistr/u16-mbtouc.c: New file.
69668         * lib/unistr/u32-mbtouc.c: New file.
69669
69670         * modules/unistr/u8-mbtouc-safe: New file.
69671         * modules/unistr/u16-mbtouc-safe: New file.
69672         * modules/unistr/u32-mbtouc-safe: New file.
69673         * lib/unistr/u8-mbtouc-safe.c: New file.
69674         * lib/unistr/u16-mbtouc-safe.c: New file.
69675         * lib/unistr/u32-mbtouc-safe.c: New file.
69676
69677         * modules/unistr/u8-move: New file.
69678         * modules/unistr/u16-move: New file.
69679         * modules/unistr/u32-move: New file.
69680         * lib/unistr/u8-move.c: New file.
69681         * lib/unistr/u16-move.c: New file.
69682         * lib/unistr/u32-move.c: New file.
69683         * lib/unistr/u-move.h: New file.
69684
69685         * modules/unistr/u8-next: New file.
69686         * modules/unistr/u16-next: New file.
69687         * modules/unistr/u32-next: New file.
69688         * lib/unistr/u8-next.c: New file.
69689         * lib/unistr/u16-next.c: New file.
69690         * lib/unistr/u32-next.c: New file.
69691
69692         * modules/unistr/u8-prev: New file.
69693         * modules/unistr/u16-prev: New file.
69694         * modules/unistr/u32-prev: New file.
69695         * lib/unistr/u8-prev.c: New file.
69696         * lib/unistr/u16-prev.c: New file.
69697         * lib/unistr/u32-prev.c: New file.
69698
69699         * modules/unistr/u8-set: New file.
69700         * modules/unistr/u16-set: New file.
69701         * modules/unistr/u32-set: New file.
69702         * lib/unistr/u8-set.c: New file.
69703         * lib/unistr/u16-set.c: New file.
69704         * lib/unistr/u32-set.c: New file.
69705         * lib/unistr/u-set.h: New file.
69706
69707         * modules/unistr/u8-startswith: New file.
69708         * modules/unistr/u16-startswith: New file.
69709         * modules/unistr/u32-startswith: New file.
69710         * lib/unistr/u8-startswith.c: New file.
69711         * lib/unistr/u16-startswith.c: New file.
69712         * lib/unistr/u32-startswith.c: New file.
69713         * lib/unistr/u-startswith.h: New file.
69714
69715         * modules/unistr/u8-stpcpy: New file.
69716         * modules/unistr/u16-stpcpy: New file.
69717         * modules/unistr/u32-stpcpy: New file.
69718         * lib/unistr/u8-stpcpy.c: New file.
69719         * lib/unistr/u16-stpcpy.c: New file.
69720         * lib/unistr/u32-stpcpy.c: New file.
69721         * lib/unistr/u-stpcpy.h: New file.
69722
69723         * modules/unistr/u8-stpncpy: New file.
69724         * modules/unistr/u16-stpncpy: New file.
69725         * modules/unistr/u32-stpncpy: New file.
69726         * lib/unistr/u8-stpncpy.c: New file.
69727         * lib/unistr/u16-stpncpy.c: New file.
69728         * lib/unistr/u32-stpncpy.c: New file.
69729         * lib/unistr/u-stpncpy.h: New file.
69730
69731         * modules/unistr/u8-strcat: New file.
69732         * modules/unistr/u16-strcat: New file.
69733         * modules/unistr/u32-strcat: New file.
69734         * lib/unistr/u8-strcat.c: New file.
69735         * lib/unistr/u16-strcat.c: New file.
69736         * lib/unistr/u32-strcat.c: New file.
69737         * lib/unistr/u-strcat.h: New file.
69738
69739         * modules/unistr/u8-strchr: New file.
69740         * modules/unistr/u16-strchr: New file.
69741         * modules/unistr/u32-strchr: New file.
69742         * lib/unistr/u8-strchr.c: New file.
69743         * lib/unistr/u16-strchr.c: New file.
69744         * lib/unistr/u32-strchr.c: New file.
69745
69746         * modules/unistr/u8-strcmp: New file.
69747         * modules/unistr/u16-strcmp: New file.
69748         * modules/unistr/u32-strcmp: New file.
69749         * lib/unistr/u8-strcmp.c: New file.
69750         * lib/unistr/u16-strcmp.c: New file.
69751         * lib/unistr/u32-strcmp.c: New file.
69752
69753         * modules/unistr/u8-strcpy: New file.
69754         * modules/unistr/u16-strcpy: New file.
69755         * modules/unistr/u32-strcpy: New file.
69756         * lib/unistr/u8-strcpy.c: New file.
69757         * lib/unistr/u16-strcpy.c: New file.
69758         * lib/unistr/u32-strcpy.c: New file.
69759         * lib/unistr/u-strcpy.h: New file.
69760
69761         * modules/unistr/u8-strcspn: New file.
69762         * modules/unistr/u16-strcspn: New file.
69763         * modules/unistr/u32-strcspn: New file.
69764         * lib/unistr/u8-strcspn.c: New file.
69765         * lib/unistr/u16-strcspn.c: New file.
69766         * lib/unistr/u32-strcspn.c: New file.
69767         * lib/unistr/u-strcspn.h: New file.
69768
69769         * modules/unistr/u8-strdup: New file.
69770         * modules/unistr/u16-strdup: New file.
69771         * modules/unistr/u32-strdup: New file.
69772         * lib/unistr/u8-strdup.c: New file.
69773         * lib/unistr/u16-strdup.c: New file.
69774         * lib/unistr/u32-strdup.c: New file.
69775         * lib/unistr/u-strdup.h: New file.
69776
69777         * modules/unistr/u8-strlen: New file.
69778         * modules/unistr/u16-strlen: New file.
69779         * modules/unistr/u32-strlen: New file.
69780         * lib/unistr/u8-strlen.c: New file.
69781         * lib/unistr/u16-strlen.c: New file.
69782         * lib/unistr/u32-strlen.c: New file.
69783         * lib/unistr/u-strlen.h: New file.
69784
69785         * modules/unistr/u8-strmblen: New file.
69786         * modules/unistr/u16-strmblen: New file.
69787         * modules/unistr/u32-strmblen: New file.
69788         * lib/unistr/u8-strmblen.c: New file.
69789         * lib/unistr/u16-strmblen.c: New file.
69790         * lib/unistr/u32-strmblen.c: New file.
69791
69792         * modules/unistr/u8-strmbtouc: New file.
69793         * modules/unistr/u16-strmbtouc: New file.
69794         * modules/unistr/u32-strmbtouc: New file.
69795         * lib/unistr/u8-strmbtouc.c: New file.
69796         * lib/unistr/u16-strmbtouc.c: New file.
69797         * lib/unistr/u32-strmbtouc.c: New file.
69798
69799         * modules/unistr/u8-strncat: New file.
69800         * modules/unistr/u16-strncat: New file.
69801         * modules/unistr/u32-strncat: New file.
69802         * lib/unistr/u8-strncat.c: New file.
69803         * lib/unistr/u16-strncat.c: New file.
69804         * lib/unistr/u32-strncat.c: New file.
69805         * lib/unistr/u-strncat.h: New file.
69806
69807         * modules/unistr/u8-strncmp: New file.
69808         * modules/unistr/u16-strncmp: New file.
69809         * modules/unistr/u32-strncmp: New file.
69810         * lib/unistr/u8-strncmp.c: New file.
69811         * lib/unistr/u16-strncmp.c: New file.
69812         * lib/unistr/u32-strncmp.c: New file.
69813
69814         * modules/unistr/u8-strncpy: New file.
69815         * modules/unistr/u16-strncpy: New file.
69816         * modules/unistr/u32-strncpy: New file.
69817         * lib/unistr/u8-strncpy.c: New file.
69818         * lib/unistr/u16-strncpy.c: New file.
69819         * lib/unistr/u32-strncpy.c: New file.
69820         * lib/unistr/u-strncpy.h: New file.
69821
69822         * modules/unistr/u8-strnlen: New file.
69823         * modules/unistr/u16-strnlen: New file.
69824         * modules/unistr/u32-strnlen: New file.
69825         * lib/unistr/u8-strnlen.c: New file.
69826         * lib/unistr/u16-strnlen.c: New file.
69827         * lib/unistr/u32-strnlen.c: New file.
69828         * lib/unistr/u-strnlen.h: New file.
69829
69830         * modules/unistr/u8-strpbrk: New file.
69831         * modules/unistr/u16-strpbrk: New file.
69832         * modules/unistr/u32-strpbrk: New file.
69833         * lib/unistr/u8-strpbrk.c: New file.
69834         * lib/unistr/u16-strpbrk.c: New file.
69835         * lib/unistr/u32-strpbrk.c: New file.
69836         * lib/unistr/u-strpbrk.h: New file.
69837
69838         * modules/unistr/u8-strrchr: New file.
69839         * modules/unistr/u16-strrchr: New file.
69840         * modules/unistr/u32-strrchr: New file.
69841         * lib/unistr/u8-strrchr.c: New file.
69842         * lib/unistr/u16-strrchr.c: New file.
69843         * lib/unistr/u32-strrchr.c: New file.
69844
69845         * modules/unistr/u8-strspn: New file.
69846         * modules/unistr/u16-strspn: New file.
69847         * modules/unistr/u32-strspn: New file.
69848         * lib/unistr/u8-strspn.c: New file.
69849         * lib/unistr/u16-strspn.c: New file.
69850         * lib/unistr/u32-strspn.c: New file.
69851         * lib/unistr/u-strspn.h: New file.
69852
69853         * modules/unistr/u8-strstr: New file.
69854         * modules/unistr/u16-strstr: New file.
69855         * modules/unistr/u32-strstr: New file.
69856         * lib/unistr/u8-strstr.c: New file.
69857         * lib/unistr/u16-strstr.c: New file.
69858         * lib/unistr/u32-strstr.c: New file.
69859         * lib/unistr/u-strstr.h: New file.
69860
69861         * modules/unistr/u8-strtok: New file.
69862         * modules/unistr/u16-strtok: New file.
69863         * modules/unistr/u32-strtok: New file.
69864         * lib/unistr/u8-strtok.c: New file.
69865         * lib/unistr/u16-strtok.c: New file.
69866         * lib/unistr/u32-strtok.c: New file.
69867         * lib/unistr/u-strtok.h: New file.
69868
69869         * modules/unistr/u8-uctomb: New file.
69870         * modules/unistr/u16-uctomb: New file.
69871         * modules/unistr/u32-uctomb: New file.
69872         * lib/unistr/u8-uctomb.c: New file.
69873         * lib/unistr/u16-uctomb.c: New file.
69874         * lib/unistr/u32-uctomb.c: New file.
69875
69876         * MODULES.html.sh (Unicode string functions): Add the new modules.
69877
69878 2007-01-08  Bruno Haible  <bruno@clisp.org>
69879
69880         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
69881         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
69882         subdirectories.
69883
69884 2007-01-08  Karl Berry  <karl@gnu.org>
69885
69886         * doc/error.texi: mention that main() fns must set program_name
69887         when progname is used.
69888
69889 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
69890
69891         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
69892         WCTYPE_H is empty, for the benefit of builds from non-distclean
69893         directories.  Problem reported by Eric Blake in
69894         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
69895
69896 2007-01-08  Bruno Haible  <bruno@clisp.org>
69897
69898         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
69899         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
69900         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
69901         PROVIDE_CANONICALIZE_FILENAME_MODE.
69902         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
69903
69904 2007-01-08  Bruno Haible  <bruno@clisp.org>
69905
69906         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
69907         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
69908         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
69909         * lib/fts.c: Likewise.
69910         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
69911
69912 2006-12-25  Bruno Haible  <bruno@clisp.org>
69913
69914         * modules/utf8-ucs4-safe: New file.
69915         * lib/utf8-ucs4-safe.h: New file.
69916         * lib/unistr/utf8-ucs4-safe.c: New file.
69917
69918         * modules/utf16-ucs4-safe: New file.
69919         * lib/utf16-ucs4-safe.h: New file.
69920         * lib/unistr/utf16-ucs4-safe.c: New file.
69921
69922         * MODULES.html.sh (Unicode string functions): Add the new modules.
69923
69924 2007-01-08  Bruno Haible  <bruno@clisp.org>
69925
69926         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
69927         (Depends-on): Add unitypes.
69928         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
69929         (u8_mbtouc_aux): Move out to separate file.
69930         (u8_mbtouc): Use ucs4_t, uint8_t types.
69931         * lib/unistr/utf8-ucs4.c: New file.
69932
69933         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
69934         (Depends-on): Add unitypes.
69935         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
69936         (u16_mbtouc_aux): Move out to separate file.
69937         (u16_mbtouc): Use ucs4_t, uint16_t types.
69938         * lib/unistr/utf16-ucs4.c: New file.
69939
69940         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
69941         (Depends-on): Add unitypes.
69942         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
69943         (u8_uctomb_aux): Move out to separate file.
69944         (u8_uctomb): Use ucs4_t, uint8_t types.
69945         * lib/unistr/ucs4-utf8.c: New file.
69946
69947         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
69948         (Depends-on): Add unitypes.
69949         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
69950         (u16_uctomb_aux): Move out to separate file.
69951         (u16_uctomb): Use ucs4_t, uint16_t types.
69952         * lib/unistr/ucs4-utf16.c: New file.
69953
69954 2006-12-25  Bruno Haible  <bruno@clisp.org>
69955
69956         * modules/unitypes: New file.
69957         * lib/unitypes.h: New file.
69958         * MODULES.html.sh (func_all_modules): New section "Unicode string
69959         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
69960         this section. Add unitypes.
69961
69962 2007-01-08  Bruno Haible  <bruno@clisp.org>
69963
69964         Avoid variable names that conflict with those from libtool.
69965         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
69966         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
69967         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
69968         library_names_spec to acl_library_names_spec, hardcode_* to
69969         acl_hardcode_*.
69970         Reported by Ralf Wildenhues.
69971
69972 2007-01-08  Bruno Haible  <bruno@clisp.org>
69973
69974         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
69975         definition.
69976         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
69977         definition.
69978         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
69979         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
69980         definition.
69981         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
69982         definition.
69983         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
69984         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
69985         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
69986         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
69987         definition.
69988         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
69989         definition.
69990         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
69991         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
69992         GC_USE_<algorithm>.
69993         * lib/gc-libgcrypt.c: Likewise.
69994         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
69995         * modules/gc-arctwo (configure.ac): Likewise.
69996         * modules/gc-des (configure.ac): Likewise.
69997         * modules/gc-hmac-md5 (configure.ac): Likewise.
69998         * modules/gc-hmac-sha1 (configure.ac): Likewise.
69999         * modules/gc-md2 (configure.ac): Likewise.
70000         * modules/gc-md4 (configure.ac): Likewise.
70001         * modules/gc-md5 (configure.ac): Likewise.
70002         * modules/gc-random (configure.ac): Likewise.
70003         * modules/gc-rijndael (configure.ac): Likewise.
70004         * modules/gc-sha1 (configure.ac): Likewise.
70005
70006 2007-01-08  Bruno Haible  <bruno@clisp.org>
70007
70008         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
70009         macro definition.
70010         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
70011         definition.
70012         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
70013         definition.
70014         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
70015         * modules/fcntl-safer (configure.ac): Likewise.
70016         * modules/fopen-safer (configure.ac): Likewise.
70017         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
70018         GNULIB_FWRITEERROR macro definition.
70019
70020 2007-01-08  Bruno Haible  <bruno@clisp.org>
70021
70022         * m4/gnulib-common.m4: New file.
70023         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
70024         (func_get_filelist): Add m4/gnulib-common.m4.
70025
70026 2007-01-08  Bruno Haible  <bruno@clisp.org>
70027
70028         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
70029         command.
70030
70031 2007-01-08  Jim Meyering  <jim@meyering.net>
70032
70033         Use a more robust test for a "can't happen" condition.
70034         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
70035         narrowed the st_size value.  Presuming the "can't happen" condition
70036         is true, that narrowing could conceivably convert an invalid st_size
70037         value into a valid one.  Instead, use a change based on Matthew
70038         Woehlke's original patch.
70039
70040         Slight readability improvement: use an assert-like macro
70041         in place of literal "abort ()" uses.
70042         * lib/fts.c (fts_assert): Define.
70043         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
70044         Use this macro instead of a bare 'abort'.
70045
70046 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
70047
70048         Don't worry about using IRIX 5.3's wctype.h broken definitions;
70049         simply work around them.
70050         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
70051         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
70052         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
70053         declaring.
70054         Don't bother to define as macros, since the standard doesn't require it.
70055         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
70056         longer worry about IRIX 5.3.
70057         (HAVE_WCTYPE_CTMP_BUG): Remove.
70058
70059 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70060
70061         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
70062         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
70063         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
70064         Problems reported by Georg Schwarz for IRIX 5.3.
70065
70066         * gnulib-tool (autoconf_minversion): Take the maximum version number
70067         found, not the minimum.  Problem reported by James Youngman.
70068
70069 2007-01-03  Karl Berry  <karl@gnu.org>
70070
70071         * doc/error.texi: new file, explaining interaction with progname.
70072         * doc/gnulib.texi: include it.  Update copyright.
70073
70074 2007-01-03  Simon Josefsson  <simon@josefsson.org>
70075
70076         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
70077         AC_CANONICAL_HOST, to improve autobuild outputs.
70078
70079 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
70080             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
70081
70082         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
70083         sockets, server sockets, and other file descriptors.  Count errors
70084         to compute the return value.  Reorder the code a bit to be easier
70085         to follow.  Don't set event bits that were not requested (except
70086         POLLERR and POLLHUP).
70087
70088 2007-01-01  Bruno Haible  <bruno@clisp.org>
70089
70090         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
70091
70092 2007-01-03  Jim Meyering  <jim@meyering.net>
70093
70094         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
70095
70096 2007-01-02  Bruno Haible  <bruno@clisp.org>
70097
70098         * modules/settime (Include): Require timespec.h.
70099         * modules/nanosleep (Include): Likewise.
70100
70101 2007-01-01  Bruno Haible  <bruno@clisp.org>
70102
70103         * gnulib-tool (func_emit_copyright_notice): Bump year.
70104         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
70105
70106 2007-01-01  Bruno Haible  <bruno@clisp.org>
70107
70108         Improve support for OpenBSD.
70109         * build-aux/config.rpath (libname_spec): Export.
70110         (library_names_spec): New variable. Export.
70111         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
70112         library_names_spec from the config.rpath output. Locate shared library
70113         through the name pattern in library_names_spec.
70114
70115 2007-01-01  Eric Blake  <ebb9@byu.net>
70116
70117         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
70118
70119 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
70120
70121         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
70122         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
70123         assume the C locale, and avoid an "eval" that could cause trouble.
70124         Problem with SORT reported by Bob Proulx.
70125
70126         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
70127         Define.  Trivial patch from Henning Nielsen Lund, originally
70128         sent to bug-grep@gnu.org today.
70129
70130 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
70131
70132         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
70133         struct stat.  Problem reported by Henning Nielsen Lund.
70134         * lib/acl.c: Include acl.h first, to check interface.  Don't
70135         bother to include sys/types.h and sys/stat.h again.
70136
70137 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
70138
70139         Import the following change from libc; problem reported by
70140         Sven Verdoolaege.
70141
70142         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
70143
70144         [BZ #1373]
70145         * lib/argp.h: Remove __NTH for __argp_usage inline function.
70146
70147 2006-12-28  Jim Meyering  <jim@meyering.net>
70148
70149         * build-aux/announce-gen: Do not assume that the package
70150         builds any of tar.gz, tar.bz2, and .xdelta files.
70151         Suggestion from Simon Josefsson.
70152
70153 2006-12-28  Simon Josefsson  <simon@josefsson.org>
70154
70155         * modules/announce-gen: New file.
70156
70157 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
70158
70159         * lib/mbchar.h: Just include <wctype.h>; the wctype module
70160         handles its gotchas now.
70161         * lib/mbswidth.c: Likewise.
70162         * lib/wcwidth.h: Likewise.
70163         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
70164         and iswcntrl; the wctype module does this stuff now.
70165         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
70166         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
70167         * modules/mbchar (Depends-on): Add wctype.
70168         * modules/mbswidth (Depends-on): Likewise.
70169         * modules/wcwidth (Depends-on): Likewise.
70170
70171 2006-12-27  Eric Blake  <ebb9@byu.net>
70172
70173         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
70174         module uses more than what <wctype.h> is required to provide.
70175
70176 2006-12-26  Eric Blake  <ebb9@byu.net>
70177
70178         * gnulib-tool (sed_extract_prog): Avoid space-tab.
70179
70180 2006-12-26  Eric Blake  <ebb9@byu.net>
70181
70182         * modules/absolute-header: New module.
70183         * modules/fcntl (Depends-on): Depend on it.
70184         * modules/inttypes (Depends-on): Likewise.
70185         * modules/stdint (Depends-on): Likewise.
70186         * modules/sys_stat (Depends-on): Likewise.
70187         * modules/wctype (Depends-on): Likewise.
70188         * MODULES.html.sh (Support for building libraries and
70189         executables): Document it.
70190
70191 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
70192
70193         * gnulib-tool (SED): Remove, undoing previous change.
70194         The problem was that it broke coreutils on Solaris, because
70195         "sed --posix" leaked into a makefile.
70196         (sed): New alias, if 'alias' and GNU sed.
70197
70198 2006-12-24  Jim Meyering  <jim@meyering.net>
70199
70200         Work around an fchownat bug in glibc-2.4:
70201         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
70202         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
70203         in spite of the -P option.
70204         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
70205         New macros.
70206         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
70207         * modules/openat (Files): Add lib/fchownat.c.
70208         * lib/openat.c (fchownat): Don't define here.  Move to...
70209         * lib/fchownat.c: ...this new file.
70210
70211 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
70212
70213         Fix bug reported by Bruno Haible in
70214         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
70215         where quotearg.c didn't compile on Mac OS X 10.2 because it
70216         lacks <wchar.h> and wint_t.
70217         * lib/wctype_.h (__wctype_wint_t): New type.
70218         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
70219         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
70220         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
70221         Arg is now of type __wctype_wint_t, not wint_t.
70222         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
70223         substitute HAVE_WINT_T.
70224         * modules/wctype (Files): Add m4/wint_t.m4.
70225         (wctype.h): Substitute HAVE_WINT_T.
70226
70227 2006-12-23  Bruno Haible  <bruno@clisp.org>
70228
70229         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
70230
70231 2006-12-23  Bruno Haible  <bruno@clisp.org>
70232
70233         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
70234         S_ISLNK.
70235         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
70236         mingw.
70237
70238 2006-12-22  Bruno Haible  <bruno@clisp.org>
70239
70240         * lib/copy-file.c: Include acl.h.
70241         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
70242         Close the file descriptors only after being done with copy_acl.
70243         * modules/copy-file (Depends-on): Add acl.
70244
70245 2006-12-22  Bruno Haible  <bruno@clisp.org>
70246
70247         * gnulib-tool (SED): New variable.
70248         Use $SED instead of sed everywhere.
70249
70250 2006-12-22  Bruno Haible  <bruno@clisp.org>
70251
70252         * modules/no-c++: New file.
70253         * m4/no-c++.m4: New file.
70254         * MODULES.html.sh (Support for building libraries and executables):
70255         Add no-c++.
70256
70257 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
70258
70259         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
70260         Include <limits.h>, and use its INT_MAX to rewrite the
70261         j loop so that it does not overflow 'int'.  Problem reported by
70262         Ralf Wildenhues in
70263         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
70264         Play it safe by shifting left by 1 rather than multiplying by 2,
70265         as GCC is less likely to optimize this away when the value
70266         is signed (when it assumes overflow leads to undefined behavior).
70267         Also, don't assume time_t uses two's complement.
70268
70269 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
70270
70271         * MODULES.html.sh: New module wctype.
70272         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
70273         * lib/fnmatch.c: Don't bother to include <wchar.h> before
70274         <wctype.h>, since the new wctype module should fix this.
70275         * lib/quotearg.c: Include <wctype.h> unconditionally, since
70276         the wctype module should arrange for it.
70277         * lib/regex_internal.h: Likewise.
70278         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
70279         since the wctype module should handle this now.
70280         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
70281         * modules/fnmatch (Depends-on): Add wctype.
70282         * modules/quotearg (Depends-on): Likewise.
70283         * modules/regex (Depends-on): Likewise.
70284
70285 2006-12-19  Bruno Haible  <bruno@clisp.org>
70286
70287         * lib/strdup.h [C++]: Wrap definitions in extern "C".
70288         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
70289
70290 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70291
70292         * modules/savewd (Depends-on): Fix dependency on fcntl.
70293
70294 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
70295
70296         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
70297         conforms to C99, rather than relying on the user's environment
70298         setting of STDINT_H.
70299
70300 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
70301         and Eric Blake  <ebb9@byu.net>
70302
70303         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
70304         This is more consistent with the other defines here.
70305         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
70306         Port to z/OS.  Problem reported by Paul Gilmartin.
70307         Change local vars to use gl_ prefix rather than ac_.
70308         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
70309         with other defines.
70310         * modules/double-slash-root: New module.
70311         * modules/dirname (Files): Remove m4/double-slash-root.m4.
70312         (Depends-on): Add double-slash-root.
70313         * MODULES.html.sh (File system functions): Mention new module.
70314
70315 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
70316
70317         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
70318         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
70319         This is for the benefit of gzip, which doesn't do i18n.
70320
70321 2006-12-12  Jim Meyering  <jim@meyering.net>
70322
70323         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
70324         Reported by Andreas Schwab <schwab@suse.de>.
70325
70326 2006-12-12  Bruno Haible  <bruno@clisp.org>
70327
70328         Merge these changes.
70329         2006-09-05  Bruno Haible  <bruno@clisp.org>
70330         * lib/iconvme.c (iconv_string): No need to save and restore errno when
70331         iconv_alloc succeeded.
70332         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
70333         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
70334         test for " && dest " at the end - dest is always != NULL there. Call
70335         iconv with 4xNULL arguments initially, to reset the state. Call iconv
70336         with 2xNULL arguments, also to flush the state storage. Handle the
70337         IRIX iconv behaviour. Realloc the final result, to throw away unused
70338         memory.
70339
70340 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
70341
70342         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
70343         and fchmodat unconditionally, since glibc 2.4 has them.
70344         Problem reported by Arkadiusz Miskiewicz.
70345
70346 2006-12-10  Bruno Haible  <bruno@clisp.org>
70347
70348         * gnulib-tool (func_import): Show the include files only for those
70349         modules that are copied and specified.
70350         Reported by Karl Berry.
70351
70352 2006-12-08  Jim Meyering  <jim@meyering.net>
70353
70354         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
70355         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
70356
70357         * build-aux/announce-gen: Add two new options, both optional:
70358         --bootstrap-tools=TOOL_LIST
70359               a comma-separated list of tools, e.g.,
70360               autoconf,automake,bison,gnulib
70361         --gnulib-snapshot-date=DATE
70362               if gnulib is in the bootstrap tool list,
70363               then report this as the snapshot date.
70364               If not specified, use the current date/time.
70365               If you specify a date here, be sure it's UTC.
70366
70367 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70368
70369         * tests/test-argp-2.sh: Fix test to match actual output.
70370         (func_compare): Fix sed script to be portable.
70371
70372 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
70373
70374         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
70375         workaround for this case.  It is not autoconfigured now; offhand
70376         it's hard to see how to autoconfigure it.
70377
70378 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
70379
70380         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
70381         a directory that is about to be chowned.  Such a directory's
70382         initial file permissions should permit the owner only and this
70383         should not be changed until after the chown, since the group and
70384         other bits would be incorrect if they granted permission before
70385         the chown.
70386
70387         Fix porting problem for iswctype reported by Georg Schwarz in:
70388         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
70389         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
70390         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
70391         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
70392         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
70393
70394 2006-12-03  Jim Meyering  <jim@meyering.net>
70395
70396         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
70397         p->fts_statp may not yet be defined.
70398         (fts_read): Instead, set it in the caller, once p->fts_statp is
70399         sure to be defined, and corresponds to a top-level directory.
70400         This bug made du -x fail.  Here's the coreutils test case:
70401         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
70402         Reported by Mike Frysinger.
70403
70404 2006-12-01  Jim Meyering  <jim@meyering.net>
70405
70406         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
70407         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
70408         Reported by Simon Josefsson.
70409
70410 2006-11-30  Jim Meyering  <jim@meyering.net>
70411
70412         * m4/warning.m4: Use the all-permissive copyright notice
70413         recommended by RMS (rather than LGPL).
70414         * m4/vararrays.m4: Likewise.
70415         * m4/flexmember.m4: Likewise.
70416
70417 2006-11-29  Bruno Haible  <bruno@clisp.org>
70418
70419         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
70420         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
70421         using +=.
70422         Reported by Simon Josefsson <simon@josefsson.org>.
70423
70424 2006-11-28  James Youngman <jay@gnu.org>
70425
70426         * README: Advise users that they might find the bug-gnulib@gnu.org
70427         and autotools-announce@gnu.org mailing lists useful.
70428
70429 2006-11-28  Bruno Haible  <bruno@clisp.org>
70430
70431         * m4/ptrdiff_max.m4: Remove file.
70432
70433 2006-11-21  Bruno Haible  <bruno@clisp.org>
70434
70435         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
70436         _AC_COMPUTE_INT.
70437         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70438         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
70439         _AC_COMPUTE_INT.
70440         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70441         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
70442         _AC_COMPUTE_INT.
70443         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70444
70445 2006-11-28  Jim Meyering  <jim@meyering.net>
70446
70447         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
70448         warning from "gcc -Wshadow" about shadowing the builtin.
70449
70450 2006-11-27  Bruno Haible  <bruno@clisp.org>
70451
70452         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
70453         _AC_COMPUTE_INT.
70454         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70455
70456 2006-11-27  Bruno Haible  <bruno@clisp.org>
70457             Paul Eggert  <eggert@cs.ucla.edu>
70458
70459         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
70460
70461 2006-11-26  Bruno Haible  <bruno@clisp.org>
70462
70463         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
70464         noinst_LTLIBRARIES.
70465
70466 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
70467             Bruno Haible  <bruno@clisp.org>
70468
70469         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
70470         if compiling with "gcc -ansi".
70471
70472 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
70473
70474         Fix some incompatibilities with gcc -ansi -pedantic.
70475         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
70476         if compiling pedantically with GCC, unless it's C99 or later.
70477         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
70478         it mishandles gcc -ansi -pedantic as well.
70479         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
70480         if gcc -pedantic.
70481         * lib/regexec.c (check_node_accept_bytes): Don't use auto
70482         initializers for struct if -pedantic, unless it's C99 or later.
70483
70484 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
70485
70486         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
70487         Don't close an fd more than once. Identical atimes indicate
70488         success, not failure.
70489
70490 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
70491
70492         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
70493
70494 2006-11-23  Jim Meyering  <jim@meyering.net>
70495
70496         * build-aux/announce-gen: New file.  From coreutils.
70497
70498 2006-11-22  Jim Meyering  <jim@meyering.net>
70499
70500         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
70501         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
70502         (fts_read): Use a temporary to narrow the overused st_size member
70503         before using it in a switch statement.  Reported by Matthew Woehlke.
70504
70505         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
70506         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
70507
70508 2006-11-20  Bruno Haible  <bruno@clisp.org>
70509
70510         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
70511         changequote instead of pairs of brackets.
70512         Reported by Andreas Schwab <schwab@suse.de>.
70513
70514 2006-11-21  Jim Meyering  <jim@meyering.net>
70515
70516         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
70517         so as to remain compatible with older compilers.
70518         Patch from Michael Deutschmann.
70519
70520 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
70521
70522         * MODULES.html.sh (File system functions): Add openat.
70523
70524         * lib/openat.h (rpl_fstatat): New macro, if
70525         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
70526         (fstatat): Define to rpl_fstatat under the same conditions,
70527         unless COMPILING_FSTATAT.
70528         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
70529         seems to have the bug.
70530         * lib/fstatat.c: New file.
70531         * modules/openat (Files): Add it.
70532
70533 2006-11-20  Bruno Haible  <bruno@clisp.org>
70534
70535         * Makefile: New file.
70536
70537 2006-11-20  Jim Meyering  <jim@meyering.net>
70538
70539         The beginnings of syntax-related checks for gnulib.
70540         * lib/Makefile: New file.
70541         * lib/t-idcache: New script.  Ensure that the two halves of
70542         idcache.c stay in sync.
70543
70544         * lib/idcache.c: Adjust comments in user- and group- portions to
70545         be more accurate, and to be consistent with one another.
70546
70547 2006-11-20  Jim Meyering  <jim@meyering.net>
70548
70549         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
70550         continue using the flexible array member (thus, this module performs
70551         half as many malloc calls), with the addition that...
70552         (getgroup, getuser): Consistently record a non-match via an empty
70553         "name" string, and map an empty string match to a NULL return value.
70554         * modules/idcache (Depends-on): Re-add flexmember.
70555
70556         * lib/idcache.c (getuser): Remove all uses of the register keyword.
70557         (getuidbyname, getgroup, getgidbyname): Likewise.
70558
70559         Use cleaner syntax: NULL rather than 0.
70560         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
70561
70562 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
70563
70564         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
70565         It mishandled the case where the group was missing.
70566         Problem reported by Greg Schafer.
70567         * modules/idcache: Likewise.
70568
70569 2006-11-18  Jim Meyering  <jim@meyering.net>
70570
70571         * check-module (%exempt_header): Add exception for some
70572         conditionally-included headers.
70573
70574         * modules/i-ring (Depends-on): Add verify.
70575         (License): Change to LGPL.
70576
70577 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70578
70579         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
70580         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
70581         and inttostr.h.  Use snprintf rather than uinttostr, so that
70582         LGPLed code doesn't depend on GPLed.
70583
70584 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
70585
70586         * modules/inline (License): Change from GPL to LGPL.
70587
70588 2006-11-17  Jim Meyering  <jim@meyering.net>
70589
70590         * modules/d-type (License): Switch to LGPL.
70591
70592 2006-11-15  Bruno Haible  <bruno@clisp.org>
70593
70594         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
70595
70596 2006-11-15  Eric Blake  <ebb9@byu.net>
70597
70598         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
70599         the module dependency.
70600
70601 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70602             Bruno Haible  <bruno@clisp.org>
70603
70604         * gnulib-tool (func_create_testdir): Add license consistency check.
70605
70606 2006-11-15  Eric Blake  <ebb9@byu.net>
70607
70608         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
70609         random "(cached)" in configure output.
70610
70611 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70612
70613         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
70614         test for conforming inttypes.h is both announced and cached.
70615
70616         * MODULES.html.sh (seen_modules, seen_files): New variables.
70617         (func_module): Rewrite to use a few less gnulib-tool and sed
70618         invocations.  Avoid a couple of quadratic algorithms for ...
70619         (missed_modules, missed_files): ... these, with ...
70620         (func_append, func_tmpdir): ... these new functions, from
70621         gnulib-tool.  Analogously, install traps for cleanup.
70622
70623         * tests/test-gc.c (main): Remove unused variables.
70624         * tests/test-read-file.c: Include stdlib.h, for 'free'.
70625
70626 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
70627
70628         * modules/inttostr (License): Change to LGPL.
70629
70630 2006-11-14  Eric Blake  <ebb9@byu.net>
70631
70632         * modules/tempname (License): Change to LGPL.
70633
70634 2006-11-14  Eric Blake  <ebb9@byu.net>
70635
70636         * doc/functions.texi (Function Portability): *printf functions on
70637         Cygwin now understand all POSIX size specifiers.
70638
70639 2006-11-14  Bruno Haible  <bruno@clisp.org>
70640
70641         * modules/c-ctype (License): Change to LGPL.
70642
70643 2006-11-12  Bruno Haible  <bruno@clisp.org>
70644
70645         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
70646         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
70647         for GNOME libraries, for which the include files are installed in
70648         subdirectories of $prefix/include.
70649
70650 2006-11-12  Bruno Haible  <bruno@clisp.org>
70651
70652         * m4/lib-link.m4: Require at least autoconf-2.54.
70653         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
70654         name to underscores for the --with option.
70655
70656 2006-11-13  Bruno Haible  <bruno@clisp.org>
70657
70658         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
70659         the tests directory.
70660         Reported by Ralf Wildenhues.
70661
70662 2006-11-13  Bruno Haible  <bruno@clisp.org>
70663
70664         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
70665         (func_emit_initmacro_end): Undo the override here.
70666         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
70667         Works around the famous automake error in coreutils.
70668
70669 2006-11-13  Eric Blake  <ebb9@byu.net>
70670
70671         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
70672         element, not its node.
70673
70674 2006-11-12  Bruno Haible  <bruno@clisp.org>
70675
70676         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
70677         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
70678
70679 2006-11-12  Bruno Haible  <bruno@clisp.org>
70680
70681         * gnulib-tool: New option --local-symlink.
70682         (func_usage): Document it.
70683         (lsymbolic): New variable.
70684         (func_import, func_create_testdir): If --symlink was not specified,
70685         test whether --local-symlink was specified and the file comes from
70686         the local_gnulib_dir.
70687
70688 2006-11-12  Bruno Haible  <bruno@clisp.org>
70689
70690         * gnulib-tool (func_ln): New function.
70691         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
70692
70693 2006-11-12  Bruno Haible  <bruno@clisp.org>
70694
70695         Finish support for source files in subdirectories.
70696         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
70697         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
70698         AUTOMAKE_OPTIONS.
70699         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
70700
70701 2006-11-12  Bruno Haible  <bruno@clisp.org>
70702
70703         * gnulib-tool (func_get_automake_snippet): Synthesize also an
70704         EXTRA_lib_SOURCES augmentation.
70705         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
70706
70707 2006-11-12  Jim Meyering  <jim@meyering.net>
70708
70709         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
70710         file descriptors.  This also averts a failure on systems with
70711         native openat support when a traversed directory lacks "x" access.
70712         * lib/fts_.h: Include "i-ring.h"
70713         (struct FTS) [fts_fd_ring]: New member.
70714         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
70715         (FCHDIR): Add parentheses.
70716         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
70717         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
70718         When descending, rather than simply closing the previous
70719         fts_cwd_fd value, push that file descriptor onto the ring.
70720         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
70721         (fts_open): Initialize the new fd_ring member.
70722         (fts_close): Clear the ring.
70723         (fts_safe_changedir): When possible, use our new fd_ring to skip
70724         the diropen and fstat and dev/ino comparison that would normally
70725         accompany a virtual `chdir ("..")'.
70726
70727         * modules/fts (Depends-on): Add i-ring.
70728         * modules/i-ring: New module.
70729         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
70730         * m4/i-ring.m4: New file.
70731
70732 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70733
70734         * gnulib-tool (func_create_testdir): Fix replacement of
70735         `build-aux' in configure.ac.  Run autotools in gltests
70736         subdirectory.
70737         (func_create_testdir, func_create_megatestdir, test): There is
70738         no need for '--force' in most autotool invocations in a new
70739         tree.  Actually fail the whole test if any of the tools, or the
70740         configure or make stages fail.
70741
70742         Sync from Automake.
70743         * build-aux/gnupload: Revert last change.  Add pointer to upload
70744         instructions of the GNU Maintenance Instructions.
70745         Suggestion by Karl Berry.
70746
70747 2006-11-10  Jim Meyering  <jim@meyering.net>
70748
70749         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
70750
70751 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
70752
70753         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
70754         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
70755         (bind_textdomain_codeset) [! ENABLE_NLS]:
70756         Evaluate all the arguments.  That way, callers get compatible behavior
70757         if the arguments have side effects.  Also, it avoids some GCC
70758         diagnostics in some cases; Joel E. Denny reported problems when Bison
70759         was configured with --enable-gcc-warnigs.
70760
70761 2006-11-10  Jim Meyering  <jim@meyering.net>
70762
70763         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
70764         relevant options in CFLAGS (like -O, -fno-inline) are taken into
70765         account.
70766
70767 2006-11-10  Jim Meyering  <jim@meyering.net>
70768
70769         * modules/inline: New file/module.
70770         * modules/xalloc (Files): Remove m4/inline.m4.
70771         (Depends-on): Add inline, instead.
70772         * modules/oset: Likewise.
70773         * modules/list: Likewise.
70774
70775 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
70776
70777         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
70778         Problem reported by Matthew Woehlke.
70779
70780 2006-11-09  Bruno Haible  <bruno@clisp.org>
70781
70782         * lib/tempname.c (gen_tempname): Remove variant that invokes
70783         __gen_tempname.
70784         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
70785         __gen_tempname.
70786
70787 2006-11-08  Bruno Haible  <bruno@clisp.org>
70788
70789         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
70790         to 'yes' instead of 'cross-compiling'.
70791
70792 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
70793
70794         * lib/quotearg.h (quotearg_free): New decl.
70795         * lib/quotearg.c (quotearg_free): New function.
70796         (slot0, nslots, slotvec0, slotvec):
70797         Now file-scope so that quotearg_free can get at them.
70798
70799 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70800
70801         Sync from Automake.
70802         * build-aux/gnupload: Add missing 'gnu' to example URL.
70803         Report by Karl Berry.
70804
70805 2006-11-08  Bruno Haible  <bruno@clisp.org>
70806
70807         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
70808         Suggested by Paul Eggert.
70809
70810 2006-11-08  Jim Meyering  <jim@meyering.net>
70811
70812         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
70813         It's already included if !_LIBC.
70814         (fts_safe_changedir): Add a comment.
70815
70816 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
70817
70818         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
70819         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
70820         Matthew Woehlke.
70821
70822         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
70823         definitions up, to avoid colliding with change below.
70824         (static_inline) [HAVE_INLINE]: New macro.
70825         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
70826         Provide extern decls when !HAVE_INLINE.  Do not define unless
70827         static_inline is defined, either by us or by xmalloc.c.  Use
70828         static_inline rather than static inline.
70829         (XCALLOC): Optimize sizeof(T) = 1 case.
70830         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
70831
70832 2006-11-07  Bruno Haible  <bruno@clisp.org>
70833
70834         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
70835         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
70836         AC_C_INLINE.
70837         * modules/xalloc (Files): Add m4/inline.m4.
70838
70839 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70840
70841         * README: Fix typo.
70842         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
70843         (Miscellanous Notes): ...from this.
70844
70845 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
70846
70847         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
70848         Mention that offsetof should be used instead of sizeof.
70849         From Bruno Haible.
70850
70851 2006-11-07  Bruno Haible  <bruno@clisp.org>
70852
70853         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
70854
70855 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
70856
70857         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
70858         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
70859         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
70860         (gl_tree_add_before, gl_tree_add_after):
70861         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
70862         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
70863         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
70864         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
70865         (gl_linked_add_after, gl_linked_add_at): Likewise.
70866         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
70867         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
70868         (gl_tree_add_before, gl_tree_add_after): Likewise.
70869         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
70870         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
70871         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
70872
70873 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70874
70875         * lib/gl_oset.h: Use C comment style, not C++ comment style.
70876
70877 2006-11-06  Bruno Haible  <bruno@clisp.org>
70878
70879         * m4/inline.m4: New file.
70880         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
70881         * modules/list (Files): Add m4/inline.m4.
70882         * modules/oset (Files): Likewise.
70883
70884 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
70885
70886         * lib/idcache.c: Include <stddef.h>, for offsetof.
70887         (struct userid.name): Change from char * to a flexible array member.
70888         All uses changed.
70889         * modules/idcache (Depends-on): Add flexmember.
70890
70891         * MODULES.html.sh (Core language properties): New module flexmember.
70892         * modules/flexmember, m4/flexmember.m4: New files.
70893
70894         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
70895         inline functions that are identical with the old xnmalloc_inline,
70896         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
70897         that we can avoid some unnecessary integer multiplications and
70898         divisions in the common case where the element size is known at
70899         compile time.
70900         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
70901         needed.
70902         (xnboundedmalloc): Remove.
70903         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
70904         arguments, for consistency with rest of this header.
70905         (xcharalloc): Rewrite using XNMALLOC.
70906         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
70907         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
70908         versions have been moved to lib/xalloc.h and renamed to be the
70909         non-*_inline versions.
70910         (xmalloc, xrealloc): Implement without reference to the xnmalloc
70911         and xnrealloc functions, since those functions are now inline and
70912         now call us.
70913         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
70914         renaming described above.
70915         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
70916         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
70917         captures the dependency in AC_C_INLINE.
70918
70919         New module canonicalize-lgpl, proposed by Charles Wilson in
70920         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
70921         with a few small changes afterwards.
70922         * MODULES.html.sh (File system functions): New module
70923         canonicalize-lgpl.
70924         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
70925         and canonicalize_file_name.
70926         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
70927         * modules/canonicalize-lgpl: New files.
70928
70929 2006-11-05  Bruno Haible  <bruno@clisp.org>
70930
70931         * gnulib-tool (func_import, func_create_testdir): Create directories
70932         also for files in subdirectories of lib/.
70933
70934 2006-11-05  Bruno Haible  <bruno@clisp.org>
70935
70936         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
70937         ANSI C compliant.
70938
70939 2006-11-03  Bruno Haible  <bruno@clisp.org>
70940
70941         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
70942         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
70943         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
70944         (xnboundedmalloc): New inline function.
70945         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
70946         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
70947         xmalloc.
70948         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
70949         xmalloc.
70950         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
70951         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
70952         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
70953         xmalloc.
70954         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
70955         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
70956         xmalloc.
70957         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
70958         gl_tree_add_after): Use XMALLOC instead of xmalloc.
70959         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
70960         xmalloc.
70961         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
70962         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
70963         gl_tree_add_after): Use XMALLOC instead of xmalloc.
70964         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
70965         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
70966         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
70967         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
70968
70969 2006-11-03  Bruno Haible  <bruno@clisp.org>
70970
70971         * lib/c-ctype.h [C++]: Define functions without name mangling.
70972         * lib/fwriteerror.h [C++]: Likewise.
70973         * lib/gcd.h [C++]: Likewise.
70974         * lib/linebreak.h [C++]: Likewise.
70975
70976 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
70977
70978         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
70979         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
70980         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
70981         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
70982         Check for functions and headers just once.
70983         Check for declaration of canonicalize_file_name.
70984         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
70985
70986 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
70987
70988         * gnulib-tool (func_import): Fix typo in actioncmd.
70989
70990 2006-11-02  Bruno Haible  <bruno@clisp.org>
70991
70992         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
70993         newline sequence in the Makefile.am snippet as a space, like "make"
70994         does.
70995         Reported by Roger Persson <perrog@gmail.com>.
70996
70997 2006-11-01  Bruno Haible  <bruno@clisp.org>
70998
70999         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
71000         already declared in <string.h>.
71001         * lib/strcase.h (strncasecmp): Don't declare it if yes.
71002
71003 2006-11-01  Bruno Haible  <bruno@clisp.org>
71004
71005         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
71006         * lib/strcase.h: Include <string.h>.
71007         (strcasecmp): Define to rpl_strcasecmp here.
71008
71009 2006-11-01  Bruno Haible  <bruno@clisp.org>
71010
71011         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
71012
71013 2006-11-01  Eric Blake  <ebb9@byu.net>
71014
71015         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
71016
71017         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
71018
71019 2006-10-29  Bruno Haible  <bruno@clisp.org>
71020
71021         Make it compile in C++ mode.
71022         * lib/full-write.c (full_rw): Add a cast.
71023
71024 2006-11-01  Bruno Haible  <bruno@clisp.org>
71025
71026         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
71027         be POSIX compliant.
71028         Reported by Roger Persson <perrog@gmail.com>.
71029
71030 2006-11-01  Eric Blake  <ebb9@byu.net>
71031
71032         * lib/getopt_.h: Fix comments.
71033
71034 2006-10-31  Eric Blake  <ebb9@byu.net>
71035
71036         * modules/tmpdir (Depends-on): Add sys_stat.
71037         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
71038         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
71039         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
71040         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
71041         tempname.
71042
71043 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
71044
71045         Avoid some C++ diagnostics reported by Bruno Haible.
71046         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
71047         xmalloc.
71048         (quotearg_alloc): Use xcharalloc rather than xmalloc.
71049         (struct slotvec): Move to top level.
71050         (quotearg_n_options): Rewrite to avoid xmalloc.
71051         * lib/xalloc.h (xcharalloc): New function.
71052         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
71053         [defined __cplusplus]: Add function template that provides result
71054         type propagation.  This part of the change is from Bruno Haible.
71055
71056 2006-10-29  Bruno Haible  <bruno@clisp.org>
71057
71058         Make it compile in C++ mode.
71059         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
71060         * lib/strnlen1.c (strnlen1): Cast memchr result.
71061         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
71062         * lib/clean-temp.c (string_equals, string_hash): Add casts.
71063         (create_temp_dir): Rename local variable 'template'.
71064         (compile_csharp_using_sscli): Add cast.
71065         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
71066         * lib/findprog.c (find_in_path): Likewise.
71067         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
71068         * lib/wait-process.c (register_slave_subprocess): Likewise.
71069
71070 2006-10-22  Bruno Haible  <bruno@clisp.org>
71071
71072         * modules/tsearch: New file.
71073         * lib/tsearch.h: New file.
71074         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
71075         * m4/tsearch.m4: New file.
71076         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
71077
71078 2006-10-29  Eric Blake  <ebb9@byu.net>
71079
71080         * lib/arcfour.c: Assume config.h.
71081         * lib/arctwo.c: Likewise.
71082         * lib/base64.c: Likewise.
71083         * lib/check-version.c: Likewise.
71084         * lib/crc.c: Likewise.
71085         * lib/des.c: Likewise.
71086         * lib/gc-gnulib.c: Likewise.
71087         * lib/gc-libgcrypt.c: Likewise.
71088         * lib/gc-pbkdf2-sha1.c: Likewise.
71089         * lib/getaddrinfo.c: Likewise.
71090         * lib/getdelim.c: Likewise.
71091         * lib/getline.c: Likewise.
71092         * lib/hmac-md5.c: Likewise.
71093         * lib/hmac-sha1.c: Likewise.
71094         * lib/iconvme.c: Likewise.
71095         * lib/md2.c: Likewise.
71096         * lib/md4.c: Likewise.
71097         * lib/memxor.c: Likewise.
71098         * lib/read-file.c: Likewise.
71099         * lib/readline.c: Likewise.
71100         * lib/rijndael-alg-fst.c: Likewise.
71101         * lib/rijndael-api-fst.c: Likewise.
71102         * lib/xgetdomainname.c: Likewise.
71103
71104 2006-10-28  Eric Blake  <ebb9@byu.net>
71105
71106         * lib/xstrndup.c: Assume config.h.
71107
71108 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
71109
71110         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
71111         stat-macros.h is now for our own macros, whereas stat_h is for
71112         macros in the <sys/stat.h> name space.
71113         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
71114         (STAT_MACROS_H): Remove.
71115         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
71116         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
71117         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
71118         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
71119         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
71120         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
71121         Move these macros to ...
71122         * lib/stat_.h: here.  Don't include stat-macros.h.
71123         * lib/canonicalize.c: Don't include stat-macros.h.
71124         * lib/chown.c: Likewise.
71125         * lib/euidaccess.c: Likewise.
71126         * lib/file-type.c: Likewise.
71127         * lib/filemode.c: Likewise.
71128         * lib/glob.c: Likewise.
71129         * lib/isapipe.c: Likewise.
71130         * lib/lchown.c: Likewise.
71131         * lib/lstat.c: Likewise.
71132         * lib/mkdir-p.c: Likewise.
71133         * lib/rmdir.c: Likewise.
71134         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
71135         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
71136         unless mkdir isn't declared, to speed up 'configure'.
71137         Always create sys/stat.h, since it's unlikely any real sys/stat.h
71138         would define all the S_* symbols.
71139         * modules/canonicalize (Depends-on):
71140         Depend on sys_stat, not stat-macros.
71141         * modules/chown: Likewise.
71142         * modules/euidaccess: Likewise.
71143         * modules/filemode: Likewise.
71144         * modules/file-type: Likewise.
71145         * modules/glob: Likewise.
71146         * modules/isapipe: Likewise.
71147         * modules/lchown: Likewise.
71148         * modules/lstat: Likewise.
71149         * modules/mkancesdirs: Likewise.
71150         * modules/rmdir: Likewise.
71151         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
71152         * modules/modechange: Likewise.
71153         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
71154         (configure.ac): Remove gl_STAT_MACROS.
71155         * modules/sys_stat (Depends-on): Remove stat-macros.
71156
71157 2006-10-27  Bruno Haible  <bruno@clisp.org>
71158
71159         * m4/signed.m4: Remove file.
71160         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
71161         invocation.
71162         * modules/vasnprintf (Files): Remove m4/signed.m4.
71163
71164 2006-10-27  Bruno Haible  <bruno@clisp.org>
71165
71166         Update to GNU gettext 0.16.
71167         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
71168         m4/inttypes-h.m4, m4/signed.m4.
71169         * m4/gettext.m4: Update to GNU gettext 0.16.
71170         * m4/intl.m4: New file, from GNU gettext.
71171         * m4/intldir.m4: New file, from GNU gettext.
71172         * config/srclist.txt: Update
71173
71174 2006-10-27  Eric Blake  <ebb9@byu.net>
71175
71176         * MODULES.html.sh: Document tempname.
71177         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
71178         dependencies.
71179         (Files): Move lib/tempname.c...
71180         * modules/tempname: ...to this new module.
71181         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
71182         (gl_PREREQ_TEMPNAME): Move...
71183         * m4/tempname.m4: ...to this new file.
71184         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
71185         * modules/sys_stat (Depends-on): Add stat-macros.
71186         * lib/stat_.h (includes): Pick up stat macros.
71187         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
71188         if stat macros are broken.
71189         * lib/tempname.c (includes): No need to include "stat-macros.h".
71190         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
71191         (direxists, __path_search) [!_LIBC]: Don't compile these in
71192         gnulib; the tmpdir module covers that.
71193         * lib/tempname.h: New file.
71194
71195 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
71196
71197         * COPYING: Explain how gnulib-tool converts licence headers.
71198         Almost all wording by Eric Blake.
71199
71200 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
71201
71202         * lib/mbchar.h (is_basic_table): Make read-only.
71203         * lib/mbchar.c (is_basic_table): Likewise.
71204         Reported by John Darrington.
71205
71206 2006-10-25  Bruno Haible  <bruno@clisp.org>
71207
71208         * lib/progname.h (set_program_name): Undefine before defining.
71209
71210 2006-10-25  Bruno Haible  <bruno@clisp.org>
71211
71212         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
71213         false for non-gcc C++ compilers.
71214         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
71215
71216 2006-10-24  Bruno Haible  <bruno@clisp.org>
71217
71218         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
71219         iconv implementations like Irix iconv.
71220
71221 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71222
71223         * modules/vararrays: New file.
71224         * m4/vararrays.m4: New file, taken from diffutils.
71225         * MODULES.html.sh: New module vararrays.
71226
71227 2006-10-24  Karl Berry  <karl@gnu.org>
71228
71229         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
71230         Don't call GNU Unix.
71231
71232 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71233
71234         * users.txt: Add Libtool.
71235
71236         Sync from Libtool:
71237
71238         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71239
71240         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
71241         to gnulib's policy of including config.h unconditionally.
71242
71243 2006-10-24  Bruno Haible  <bruno@clisp.org>
71244
71245         * modules/wcwidth (Files): Add m4/wint_t.m4.
71246         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
71247         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
71248
71249 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71250
71251         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
71252         to pacify GCC with some -W flags enabled.  Problem reported by
71253         Bruno Haible.
71254
71255 2006-10-24  Jim Meyering  <jim@meyering.net>
71256
71257         * MODULES.html.sh: Remove uinttostr.  It's not a module.
71258         Reported by Karl Berry.
71259
71260 2006-10-23  Bruno Haible  <bruno@clisp.org>
71261
71262         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
71263
71264 2006-10-24  Bruno Haible  <bruno@clisp.org>
71265
71266         * lib/gl_list.h: Use C comment style, not C++ comment style.
71267
71268 2006-10-23  Eric Blake  <ebb9@byu.net>
71269
71270         * lib/getaddrinfo.c (includes): Add missing include.
71271
71272 2006-10-23  Bruno Haible  <bruno@clisp.org>
71273             Paul Eggert  <eggert@cs.ucla.edu>
71274
71275         Ability to rename obstack_free.
71276         * lib/obstack.h (__obstack_free): New macro. Declare instead of
71277         obstack_free.
71278         (obstack_free): Invoke the __obstack_free macro.
71279         * lib/obstack.c (obstack_free): Use __obstack_free macro.
71280
71281 2006-10-23  Bruno Haible  <bruno@clisp.org>
71282             Paul Eggert  <eggert@cs.ucla.edu>
71283
71284         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
71285         __argc, __argv from the declaration. (They are defined as macros on
71286         mingw.)
71287
71288 2006-10-22  Bruno Haible  <bruno@clisp.org>
71289
71290         * doc/gnulib-intro.texi: New file.
71291         * doc/gnulib.texi: Include it.
71292
71293 2006-10-21  Bruno Haible  <bruno@clisp.org>
71294
71295         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
71296         "Introduction", "Miscellanous Notes", "Particular Modules".
71297
71298 2006-10-21  Bruno Haible  <bruno@clisp.org>
71299
71300         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71301         Change mostlyclean-local rule to avoid sh syntax error from bash
71302         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
71303
71304 2006-10-23  Jim Meyering  <jim@meyering.net>
71305
71306         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
71307         in place of snprintf.
71308
71309         * modules/inttostr (Files): Add lib/uinttostr.c.
71310         * lib/uinttostr.c (inttostr): New file/function.
71311         * lib/inttostr.h (uinttostr): Declare.
71312         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
71313         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
71314         Add uinttostr.
71315         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
71316
71317 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
71318
71319         * lib/canonicalize.c (ELOOP): Define if not already defined.
71320         Problem reported by Bruno Haible in
71321         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
71322
71323 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
71324
71325         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
71326         Problem reported by Perry Smith and Ville Laurikari.
71327
71328         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
71329         uses.
71330
71331 2006-10-19  Bruno Haible  <bruno@clisp.org>
71332
71333         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
71334         for mingw.
71335
71336 2006-10-19  Bruno Haible  <bruno@clisp.org>
71337
71338         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
71339         Needed for mingw.
71340
71341 2006-10-19  Bruno Haible  <bruno@clisp.org>
71342
71343         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
71344
71345 2006-10-19  Bruno Haible  <bruno@clisp.org>
71346
71347         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
71348         it.
71349
71350 2006-10-19  Bruno Haible  <bruno@clisp.org>
71351
71352         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
71353         invocation.
71354
71355 2006-10-19  Bruno Haible  <bruno@clisp.org>
71356
71357         * gnulib-tool (func_create_testdir): Don't include ftruncate and
71358         mountlist by default.
71359
71360 2006-10-16  Bruno Haible  <bruno@clisp.org>
71361
71362         * lib/c-strstr.c: Include c-strstr.h.
71363
71364 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71365
71366         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
71367         in a slash.
71368
71369 2006-10-18  Bruno Haible  <bruno@clisp.org>
71370
71371         * lib/lock.h [C++]: Wrap definitions in extern "C".
71372
71373 2006-10-18  Bruno Haible  <bruno@clisp.org>
71374
71375         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
71376         gl_LIBOBJS list.
71377
71378 2006-10-18  Bruno Haible  <bruno@clisp.org>
71379
71380         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
71381
71382 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
71383
71384         * lib/xstrtol.h: Include gettext.h.
71385         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
71386         Problem reported by Eric Blake.
71387         * modules/xstrtol (Depends-on): Add gettext-h.
71388
71389 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
71390
71391         * lib/strftime.c (advance): New macro.
71392         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
71393         incomplete type, so you can't add 0 to it.  Problem and patch
71394         reported by Eelco Dolstra for dietlibc.
71395
71396 2006-10-18  Jim Meyering  <jim@meyering.net>
71397
71398         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
71399         type for a local, and rename it: s/up/user_proc/.
71400
71401 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
71402
71403         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
71404         READ_UTMP_USER_PROCESS.
71405         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
71406
71407 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
71408
71409         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
71410         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
71411
71412 2006-10-17  Eric Blake  <ebb9@byu.net>
71413
71414         * lib/sigprocmask.c (sigprocmask): Fix typo.
71415
71416         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
71417
71418         * modules/clean-temp (Makefile.am): Don't add to make output...
71419         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
71420         config.h.
71421
71422 2006-10-17  Bruno Haible  <bruno@clisp.org>
71423
71424         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
71425         differently if DEFAULT_TEXT_DOMAIN is set.
71426
71427 2006-10-16  Bruno Haible  <bruno@clisp.org>
71428
71429         * lib/clean-temp.c: Include fwriteerror.h.
71430
71431 2006-10-16  Bruno Haible  <bruno@clisp.org>
71432
71433         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
71434
71435 2006-10-16  Bruno Haible  <bruno@clisp.org>
71436
71437         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
71438         * lib/sigprocmask.h: Include <sys/types.h>.
71439         (sigset_t): Use the system's definition if present.
71440
71441 2006-10-17  Eric Blake  <ebb9@byu.net>
71442
71443         * lib/xvasprintf.c (includes): Assume config.h.
71444         * lib/xasprintf.c (includes): Likewise.
71445
71446 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
71447
71448         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
71449         at least as wide as intmax_t.
71450
71451 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
71452
71453         (Imported from Automake.)
71454         * build-aux/gnupload: Update to version 1.1 of directive file.
71455
71456 2006-10-16  Eric Blake  <ebb9@byu.net>
71457
71458         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
71459         match Automake 1.10a.
71460
71461 2006-10-14  Bruno Haible  <bruno@clisp.org>
71462
71463         * modules/sigprocmask: New file.
71464         * lib/sigprocmask.h: New file.
71465         * lib/sigprocmask.c: New file.
71466         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
71467         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
71468         request sigprocmask.o.
71469         (gl_PREREQ_SIGPROCMASK): New macro.
71470         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
71471         (Depends-on): Add sigprocmask.
71472         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
71473         gt_SIGNALBLOCKING. Test for 'raise' only once.
71474         * lib/fatal-signal.c: Include sigprocmask.h.
71475         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
71476         unblock_fatal_signals): Define always.
71477         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71478         sigprocmask.
71479
71480 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
71481
71482         Sync from Automake.
71483         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
71484         which incorrectly sets the mode of an existing destination
71485         directory.  In some cases the unpatched install-sh could do the
71486         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
71487         system.  We hope this is rare in practice, but it's clearly worth
71488         fixing.  Problem reported by Alex Unleashed in
71489         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
71490         Also, don't bother to check for -m bugs unless we're using -m;
71491         suggested by Stepan Kasal.
71492
71493 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71494
71495         Sync from Automake.
71496         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
71497         `-c' flag, so they appear at the same position as in %FASTDEP%
71498         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
71499         which ignores unknown options only after the first non-option.
71500         Bug report against M4 by Nelson H. F. Beebe.
71501
71502 2006-10-13  Jim Meyering  <jim@meyering.net>
71503
71504         Fix a bug in yesterday's change.
71505         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
71506         p->fts_statp->st_dev would be used uninitialized.
71507         Ensures that we always call fts_stat on the very first entry.
71508         Miklos Szeredi reported that find -xdev stopped working.
71509
71510 2006-10-12  Bruno Haible  <bruno@clisp.org>
71511
71512         * gnulib-tool (func_get_automake_snippet): Append an automatically
71513         computed EXTRA_DIST augmentation.
71514         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
71515         * modules/alloca-opt (Makefile.am): Likewise.
71516         * modules/allocsa (Makefile.am): Likewise.
71517         * modules/arcfour (Makefile.am): Likewise.
71518         * modules/arctwo (Makefile.am): Likewise.
71519         * modules/argmatch (Makefile.am): Likewise.
71520         * modules/argz (Makefile.am): Likewise.
71521         * modules/atexit (Makefile.am): Likewise.
71522         * modules/backupfile (Makefile.am): Likewise.
71523         * modules/byteswap (Makefile.am): Likewise.
71524         * modules/c-strtod (Makefile.am): Likewise.
71525         * modules/c-strtold (Makefile.am): Likewise.
71526         * modules/calloc (Makefile.am): Likewise.
71527         * modules/canon-host (Makefile.am): Likewise.
71528         * modules/canonicalize (Makefile.am): Likewise.
71529         * modules/chdir-long (Makefile.am): Likewise.
71530         * modules/chdir-safer (Makefile.am): Likewise.
71531         * modules/check-version (Makefile.am): Likewise.
71532         * modules/chown (Makefile.am): Likewise.
71533         * modules/cloexec (Makefile.am): Likewise.
71534         * modules/close-stream (Makefile.am): Likewise.
71535         * modules/closeout (Makefile.am): Likewise.
71536         * modules/crc (Makefile.am): Likewise.
71537         * modules/csharpexec (Makefile.am): Likewise.
71538         * modules/cycle-check (Makefile.am): Likewise.
71539         * modules/des (Makefile.am): Likewise.
71540         * modules/dev-ino (Makefile.am): Likewise.
71541         * modules/dirfd (Makefile.am): Likewise.
71542         * modules/dirname (Makefile.am): Likewise.
71543         * modules/dup2 (Makefile.am): Likewise.
71544         * modules/eealloc (Makefile.am): Likewise.
71545         * modules/error (Makefile.am): Likewise.
71546         * modules/euidaccess (Makefile.am): Likewise.
71547         * modules/exclude (Makefile.am): Likewise.
71548         * modules/exitfail (Makefile.am): Likewise.
71549         * modules/fcntl-safer (Makefile.am): Likewise.
71550         * modules/fcntl (Makefile.am): Likewise.
71551         * modules/file-type (Makefile.am): Likewise.
71552         * modules/fileblocks (Makefile.am): Likewise.
71553         * modules/filemode (Makefile.am): Likewise.
71554         * modules/filenamecat (Makefile.am): Likewise.
71555         * modules/fnmatch (Makefile.am): Likewise.
71556         * modules/fopen-safer (Makefile.am): Likewise.
71557         * modules/fpending (Makefile.am): Likewise.
71558         * modules/fprintftime (Makefile.am): Likewise.
71559         * modules/free (Makefile.am): Likewise.
71560         * modules/fsusage (Makefile.am): Likewise.
71561         * modules/ftruncate (Makefile.am): Likewise.
71562         * modules/fts (Makefile.am): Likewise.
71563         * modules/gc-arcfour (Makefile.am): Likewise.
71564         * modules/gc-des (Makefile.am): Likewise.
71565         * modules/gc-hmac-md5 (Makefile.am): Likewise.
71566         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
71567         * modules/gc-md4 (Makefile.am): Likewise.
71568         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
71569         * modules/gc-sha1 (Makefile.am): Likewise.
71570         * modules/gc (Makefile.am): Likewise.
71571         * modules/getaddrinfo (Makefile.am): Likewise.
71572         * modules/getcwd (Makefile.am): Likewise.
71573         * modules/getdelim (Makefile.am): Likewise.
71574         * modules/getdomainname (Makefile.am): Likewise.
71575         * modules/getgroups (Makefile.am): Likewise.
71576         * modules/gethostname (Makefile.am): Likewise.
71577         * modules/gethrxtime (Makefile.am): Likewise.
71578         * modules/getline (Makefile.am): Likewise.
71579         * modules/getloadavg (Makefile.am): Likewise.
71580         * modules/getlogin_r (Makefile.am): Likewise.
71581         * modules/getndelim2 (Makefile.am): Likewise.
71582         * modules/getopt (Makefile.am): Likewise.
71583         * modules/getpagesize (Makefile.am): Likewise.
71584         * modules/getpass-gnu (Makefile.am): Likewise.
71585         * modules/getpass (Makefile.am): Likewise.
71586         * modules/getsubopt (Makefile.am): Likewise.
71587         * modules/gettime (Makefile.am): Likewise.
71588         * modules/gettimeofday (Makefile.am): Likewise.
71589         * modules/getugroups (Makefile.am): Likewise.
71590         * modules/getusershell (Makefile.am): Likewise.
71591         * modules/glob (Makefile.am): Likewise.
71592         * modules/group-member (Makefile.am): Likewise.
71593         * modules/hard-locale (Makefile.am): Likewise.
71594         * modules/hash (Makefile.am): Likewise.
71595         * modules/hmac-md5 (Makefile.am): Likewise.
71596         * modules/hmac-sha1 (Makefile.am): Likewise.
71597         * modules/human (Makefile.am): Likewise.
71598         * modules/idcache (Makefile.am): Likewise.
71599         * modules/imaxabs (Makefile.am): Likewise.
71600         * modules/imaxdiv (Makefile.am): Likewise.
71601         * modules/inet_ntop (Makefile.am): Likewise.
71602         * modules/inet_pton (Makefile.am): Likewise.
71603         * modules/intprops (Makefile.am): Likewise.
71604         * modules/inttostr (Makefile.am): Likewise.
71605         * modules/inttypes (Makefile.am): Likewise.
71606         * modules/isapipe (Makefile.am): Likewise.
71607         * modules/javaversion (Makefile.am): Likewise.
71608         * modules/lchmod (Makefile.am): Likewise.
71609         * modules/lchown (Makefile.am): Likewise.
71610         * modules/localcharset (Makefile.am): Likewise.
71611         * modules/long-options (Makefile.am): Likewise.
71612         * modules/lstat (Makefile.am): Likewise.
71613         * modules/malloc (Makefile.am): Likewise.
71614         * modules/mathl (Makefile.am): Likewise.
71615         * modules/mbchar (Makefile.am): Likewise.
71616         * modules/md2 (Makefile.am): Likewise.
71617         * modules/md4 (Makefile.am): Likewise.
71618         * modules/md5 (Makefile.am): Likewise.
71619         * modules/memcasecmp (Makefile.am): Likewise.
71620         * modules/memchr (Makefile.am): Likewise.
71621         * modules/memcmp (Makefile.am): Likewise.
71622         * modules/memcoll (Makefile.am): Likewise.
71623         * modules/memcpy (Makefile.am): Likewise.
71624         * modules/memmem (Makefile.am): Likewise.
71625         * modules/memmove (Makefile.am): Likewise.
71626         * modules/mempcpy (Makefile.am): Likewise.
71627         * modules/memrchr (Makefile.am): Likewise.
71628         * modules/memset (Makefile.am): Likewise.
71629         * modules/memxor (Makefile.am): Likewise.
71630         * modules/mkancesdirs (Makefile.am): Likewise.
71631         * modules/mkdir-p (Makefile.am): Likewise.
71632         * modules/mkdir (Makefile.am): Likewise.
71633         * modules/mkdtemp (Makefile.am): Likewise.
71634         * modules/mkstemp (Makefile.am): Likewise.
71635         * modules/mktime (Makefile.am): Likewise.
71636         * modules/modechange (Makefile.am): Likewise.
71637         * modules/mountlist (Makefile.am): Likewise.
71638         * modules/nanosleep (Makefile.am): Likewise.
71639         * modules/obstack (Makefile.am): Likewise.
71640         * modules/openat (Makefile.am): Likewise.
71641         * modules/pagealign_alloc (Makefile.am): Likewise.
71642         * modules/pathmax (Makefile.am): Likewise.
71643         * modules/physmem (Makefile.am): Likewise.
71644         * modules/poll (Makefile.am): Likewise.
71645         * modules/posixtm (Makefile.am): Likewise.
71646         * modules/posixver (Makefile.am): Likewise.
71647         * modules/putenv (Makefile.am): Likewise.
71648         * modules/quote (Makefile.am): Likewise.
71649         * modules/quotearg (Makefile.am): Likewise.
71650         * modules/raise (Makefile.am): Likewise.
71651         * modules/read-file (Makefile.am): Likewise.
71652         * modules/readline (Makefile.am): Likewise.
71653         * modules/readlink (Makefile.am): Likewise.
71654         * modules/readtokens (Makefile.am): Likewise.
71655         * modules/readutmp (Makefile.am): Likewise.
71656         * modules/realloc (Makefile.am): Likewise.
71657         * modules/regex (Makefile.am): Likewise.
71658         * modules/rename-dest-slash (Makefile.am): Likewise.
71659         * modules/rename (Makefile.am): Likewise.
71660         * modules/rijndael (Makefile.am): Likewise.
71661         * modules/rmdir (Makefile.am): Likewise.
71662         * modules/rpmatch (Makefile.am): Likewise.
71663         * modules/safe-read (Makefile.am): Likewise.
71664         * modules/safe-write (Makefile.am): Likewise.
71665         * modules/same-inode (Makefile.am): Likewise.
71666         * modules/same (Makefile.am): Likewise.
71667         * modules/save-cwd (Makefile.am): Likewise.
71668         * modules/savedir (Makefile.am): Likewise.
71669         * modules/setenv (Makefile.am): Likewise.
71670         * modules/settime (Makefile.am): Likewise.
71671         * modules/sha1 (Makefile.am): Likewise.
71672         * modules/sig2str (Makefile.am): Likewise.
71673         * modules/snprintf (Makefile.am): Likewise.
71674         * modules/stat-macros (Makefile.am): Likewise.
71675         * modules/stat-time (Makefile.am): Likewise.
71676         * modules/stdbool (Makefile.am): Likewise.
71677         * modules/stdint (Makefile.am): Likewise.
71678         * modules/stdlib-safer (Makefile.am): Likewise.
71679         * modules/stpcpy (Makefile.am): Likewise.
71680         * modules/stpncpy (Makefile.am): Likewise.
71681         * modules/strcase (Makefile.am): Likewise.
71682         * modules/strcasestr (Makefile.am): Likewise.
71683         * modules/strchrnul (Makefile.am): Likewise.
71684         * modules/strcspn (Makefile.am): Likewise.
71685         * modules/strdup (Makefile.am): Likewise.
71686         * modules/strerror (Makefile.am): Likewise.
71687         * modules/strftime (Makefile.am): Likewise.
71688         * modules/strndup (Makefile.am): Likewise.
71689         * modules/strnlen (Makefile.am): Likewise.
71690         * modules/strpbrk (Makefile.am): Likewise.
71691         * modules/strsep (Makefile.am): Likewise.
71692         * modules/strstr (Makefile.am): Likewise.
71693         * modules/strtod (Makefile.am): Likewise.
71694         * modules/strtoimax (Makefile.am): Likewise.
71695         * modules/strtok_r (Makefile.am): Likewise.
71696         * modules/strtol (Makefile.am): Likewise.
71697         * modules/strtoll (Makefile.am): Likewise.
71698         * modules/strtoul (Makefile.am): Likewise.
71699         * modules/strtoull (Makefile.am): Likewise.
71700         * modules/strtoumax (Makefile.am): Likewise.
71701         * modules/strverscmp (Makefile.am): Likewise.
71702         * modules/sys_socket (Makefile.am): Likewise.
71703         * modules/sys_stat (Makefile.am): Likewise.
71704         * modules/sysexits (Makefile.am): Likewise.
71705         * modules/time_r (Makefile.am): Likewise.
71706         * modules/timegm (Makefile.am): Likewise.
71707         * modules/timespec (Makefile.am): Likewise.
71708         * modules/tmpfile-safer (Makefile.am): Likewise.
71709         * modules/trim (Makefile.am): Likewise.
71710         * modules/unistd-safer (Makefile.am): Likewise.
71711         * modules/unlinkdir (Makefile.am): Likewise.
71712         * modules/unlocked-io (Makefile.am): Likewise.
71713         * modules/userspec (Makefile.am): Likewise.
71714         * modules/utime (Makefile.am): Likewise.
71715         * modules/utimecmp (Makefile.am): Likewise.
71716         * modules/utimens (Makefile.am): Likewise.
71717         * modules/vasnprintf (Makefile.am): Likewise.
71718         * modules/vasprintf (Makefile.am): Likewise.
71719         * modules/vsnprintf (Makefile.am): Likewise.
71720         * modules/xalloc (Makefile.am): Likewise.
71721         * modules/xgetcwd (Makefile.am): Likewise.
71722         * modules/xnanosleep (Makefile.am): Likewise.
71723         * modules/xreadlink (Makefile.am): Likewise.
71724         * modules/xstrtod (Makefile.am): Likewise.
71725         * modules/xstrtol (Makefile.am): Likewise.
71726         * modules/xstrtold (Makefile.am): Likewise.
71727         * modules/yesno (Makefile.am): Likewise.
71728         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
71729
71730 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
71731
71732         * modules/error (Makefile.am): Distribute files through
71733         EXTRA_DIST, not lib_SOURCES.
71734
71735 2006-10-12  Eric Blake  <ebb9@byu.net>
71736
71737         * modules/error (Makefile.am): Distribute files in /lib.
71738         * modules/obstack (Makefile.am): Likewise.
71739
71740 2006-10-12  Bruno Haible  <bruno@clisp.org>
71741
71742         * modules/acl (Makefile.am): Distribute all files in lib/ through
71743         EXTRA_DIST.
71744         * modules/arcfour (Makefile.am): Likewise.
71745         * modules/arctwo (Makefile.am): Likewise.
71746         * modules/argmatch (Makefile.am): Likewise.
71747         * modules/argz (Makefile.am): Likewise.
71748         * modules/atexit (Makefile.am): Likewise.
71749         * modules/backupfile (Makefile.am): Likewise.
71750         * modules/c-strtod (Makefile.am): Likewise.
71751         * modules/c-strtold (Makefile.am): Likewise.
71752         * modules/calloc (Makefile.am): Likewise.
71753         * modules/canon-host (Makefile.am): Likewise.
71754         * modules/canonicalize (Makefile.am): Likewise.
71755         * modules/chdir-long (Makefile.am): Likewise.
71756         * modules/chdir-safer (Makefile.am): Likewise.
71757         * modules/check-version (Makefile.am): Likewise.
71758         * modules/chown (Makefile.am): Likewise.
71759         * modules/cloexec (Makefile.am): Likewise.
71760         * modules/close-stream (Makefile.am): Likewise.
71761         * modules/closeout (Makefile.am): Likewise.
71762         * modules/crc (Makefile.am): Likewise.
71763         * modules/cycle-check (Makefile.am): Likewise.
71764         * modules/des (Makefile.am): Likewise.
71765         * modules/dirfd (Makefile.am): Likewise.
71766         * modules/dirname (Makefile.am): Likewise.
71767         * modules/dup2 (Makefile.am): Likewise.
71768         * modules/euidaccess (Makefile.am): Likewise.
71769         * modules/exclude (Makefile.am): Likewise.
71770         * modules/exitfail (Makefile.am): Likewise.
71771         * modules/fcntl-safer (Makefile.am): Likewise.
71772         * modules/file-type (Makefile.am): Likewise.
71773         * modules/fileblocks (Makefile.am): Likewise.
71774         * modules/filemode (Makefile.am): Likewise.
71775         * modules/filenamecat (Makefile.am): Likewise.
71776         * modules/fnmatch (Makefile.am): Likewise.
71777         * modules/fopen-safer (Makefile.am): Likewise.
71778         * modules/fpending (Makefile.am): Likewise.
71779         * modules/fprintftime (Makefile.am): Likewise.
71780         * modules/free (Makefile.am): Likewise.
71781         * modules/fsusage (Makefile.am): Likewise.
71782         * modules/ftruncate (Makefile.am): Likewise.
71783         * modules/fts (Makefile.am): Likewise.
71784         * modules/gc (Makefile.am): Likewise.
71785         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
71786         * modules/getaddrinfo (Makefile.am): Likewise.
71787         * modules/getcwd (Makefile.am): Likewise.
71788         * modules/getdelim (Makefile.am): Likewise.
71789         * modules/getdomainname (Makefile.am): Likewise.
71790         * modules/getgroups (Makefile.am): Likewise.
71791         * modules/gethostname (Makefile.am): Likewise.
71792         * modules/gethrxtime (Makefile.am): Likewise.
71793         * modules/getline (Makefile.am): Likewise.
71794         * modules/getloadavg (Makefile.am): Likewise.
71795         * modules/getlogin_r (Makefile.am): Likewise.
71796         * modules/getopt (Makefile.am): Likewise.
71797         * modules/getpass (Makefile.am): Likewise.
71798         * modules/getpass-gnu (Makefile.am): Likewise.
71799         * modules/getsubopt (Makefile.am): Likewise.
71800         * modules/gettime (Makefile.am): Likewise.
71801         * modules/gettimeofday (Makefile.am): Likewise.
71802         * modules/getugroups (Makefile.am): Likewise.
71803         * modules/getusershell (Makefile.am): Likewise.
71804         * modules/glob (Makefile.am): Likewise.
71805         * modules/group-member (Makefile.am): Likewise.
71806         * modules/hard-locale (Makefile.am): Likewise.
71807         * modules/hash (Makefile.am): Likewise.
71808         * modules/hmac-md5 (Makefile.am): Likewise.
71809         * modules/hmac-sha1 (Makefile.am): Likewise.
71810         * modules/human (Makefile.am): Likewise.
71811         * modules/idcache (Makefile.am): Likewise.
71812         * modules/imaxabs (Makefile.am): Likewise.
71813         * modules/imaxdiv (Makefile.am): Likewise.
71814         * modules/inet_ntop (Makefile.am): Likewise.
71815         * modules/inet_pton (Makefile.am): Likewise.
71816         * modules/inttostr (Makefile.am): Likewise.
71817         * modules/isapipe (Makefile.am): Likewise.
71818         * modules/lchown (Makefile.am): Likewise.
71819         * modules/long-options (Makefile.am): Likewise.
71820         * modules/lstat (Makefile.am): Likewise.
71821         * modules/malloc (Makefile.am): Likewise.
71822         * modules/mathl (Makefile.am): Likewise.
71823         * modules/mbchar (Makefile.am): Likewise.
71824         * modules/md2 (Makefile.am): Likewise.
71825         * modules/md4 (Makefile.am): Likewise.
71826         * modules/md5 (Makefile.am): Likewise.
71827         * modules/memcasecmp (Makefile.am): Likewise.
71828         * modules/memchr (Makefile.am): Likewise.
71829         * modules/memcmp (Makefile.am): Likewise.
71830         * modules/memcoll (Makefile.am): Likewise.
71831         * modules/memcpy (Makefile.am): Likewise.
71832         * modules/memmem (Makefile.am): Likewise.
71833         * modules/memmove (Makefile.am): Likewise.
71834         * modules/mempcpy (Makefile.am): Likewise.
71835         * modules/memrchr (Makefile.am): Likewise.
71836         * modules/memset (Makefile.am): Likewise.
71837         * modules/memxor (Makefile.am): Likewise.
71838         * modules/mkancesdirs (Makefile.am): Likewise.
71839         * modules/mkdir (Makefile.am): Likewise.
71840         * modules/mkdir-p (Makefile.am): Likewise.
71841         * modules/mkdtemp (Makefile.am): Likewise.
71842         * modules/mkstemp (Makefile.am): Likewise.
71843         * modules/mktime (Makefile.am): Likewise.
71844         * modules/modechange (Makefile.am): Likewise.
71845         * modules/mountlist (Makefile.am): Likewise.
71846         * modules/nanosleep (Makefile.am): Likewise.
71847         * modules/openat (Makefile.am): Likewise.
71848         * modules/pagealign_alloc (Makefile.am): Likewise.
71849         * modules/physmem (Makefile.am): Likewise.
71850         * modules/poll (Makefile.am): Likewise.
71851         * modules/posixtm (Makefile.am): Likewise.
71852         * modules/posixver (Makefile.am): Likewise.
71853         * modules/putenv (Makefile.am): Likewise.
71854         * modules/quote (Makefile.am): Likewise.
71855         * modules/quotearg (Makefile.am): Likewise.
71856         * modules/raise (Makefile.am): Likewise.
71857         * modules/read-file (Makefile.am): Likewise.
71858         * modules/readline (Makefile.am): Likewise.
71859         * modules/readlink (Makefile.am): Likewise.
71860         * modules/readtokens (Makefile.am): Likewise.
71861         * modules/readutmp (Makefile.am): Likewise.
71862         * modules/realloc (Makefile.am): Likewise.
71863         * modules/regex (Makefile.am): Likewise.
71864         * modules/rename (Makefile.am): Likewise.
71865         * modules/rename-dest-slash (Makefile.am): Likewise.
71866         * modules/rijndael (Makefile.am): Likewise.
71867         * modules/rmdir (Makefile.am): Likewise.
71868         * modules/rpmatch (Makefile.am): Likewise.
71869         * modules/safe-read (Makefile.am): Likewise.
71870         * modules/safe-write (Makefile.am): Likewise.
71871         * modules/same (Makefile.am): Likewise.
71872         * modules/save-cwd (Makefile.am): Likewise.
71873         * modules/savedir (Makefile.am): Likewise.
71874         * modules/setenv (Makefile.am): Likewise.
71875         * modules/settime (Makefile.am): Likewise.
71876         * modules/sha1 (Makefile.am): Likewise.
71877         * modules/sig2str (Makefile.am): Likewise.
71878         * modules/snprintf (Makefile.am): Likewise.
71879         * modules/stdlib-safer (Makefile.am): Likewise.
71880         * modules/stpcpy (Makefile.am): Likewise.
71881         * modules/stpncpy (Makefile.am): Likewise.
71882         * modules/strcase (Makefile.am): Likewise.
71883         * modules/strcasestr (Makefile.am): Likewise.
71884         * modules/strchrnul (Makefile.am): Likewise.
71885         * modules/strcspn (Makefile.am): Likewise.
71886         * modules/strdup (Makefile.am): Likewise.
71887         * modules/strerror (Makefile.am): Likewise.
71888         * modules/strftime (Makefile.am): Likewise.
71889         * modules/strndup (Makefile.am): Likewise.
71890         * modules/strnlen (Makefile.am): Likewise.
71891         * modules/strpbrk (Makefile.am): Likewise.
71892         * modules/strsep (Makefile.am): Likewise.
71893         * modules/strstr (Makefile.am): Likewise.
71894         * modules/strtod (Makefile.am): Likewise.
71895         * modules/strtoimax (Makefile.am): Likewise.
71896         * modules/strtok_r (Makefile.am): Likewise.
71897         * modules/strtol (Makefile.am): Likewise.
71898         * modules/strtoll (Makefile.am): Likewise.
71899         * modules/strtoul (Makefile.am): Likewise.
71900         * modules/strtoull (Makefile.am): Likewise.
71901         * modules/strtoumax (Makefile.am): Likewise.
71902         * modules/strverscmp (Makefile.am): Likewise.
71903         * modules/time_r (Makefile.am): Likewise.
71904         * modules/timegm (Makefile.am): Likewise.
71905         * modules/tmpfile-safer (Makefile.am): Likewise.
71906         * modules/unistd-safer (Makefile.am): Likewise.
71907         * modules/unlinkdir (Makefile.am): Likewise.
71908         * modules/userspec (Makefile.am): Likewise.
71909         * modules/utime (Makefile.am): Likewise.
71910         * modules/utimecmp (Makefile.am): Likewise.
71911         * modules/utimens (Makefile.am): Likewise.
71912         * modules/vasnprintf (Makefile.am): Likewise.
71913         * modules/vasprintf (Makefile.am): Likewise.
71914         * modules/vsnprintf (Makefile.am): Likewise.
71915         * modules/xalloc (Makefile.am): Likewise.
71916         * modules/xgetcwd (Makefile.am): Likewise.
71917         * modules/xnanosleep (Makefile.am): Likewise.
71918         * modules/xreadlink (Makefile.am): Likewise.
71919         * modules/xstrtod (Makefile.am): Likewise.
71920         * modules/xstrtol (Makefile.am): Likewise.
71921         * modules/xstrtold (Makefile.am): Likewise.
71922         * modules/yesno (Makefile.am): Likewise.
71923
71924 2006-10-12  Jim Meyering  <jim@meyering.net>
71925
71926         * m4/getloadavg.m4: Revert the change below.
71927
71928         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
71929         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
71930         fail with a symlink, which is what coreutils' ./bootstrap now
71931         creates by default.
71932
71933 2006-10-12  Bruno Haible  <bruno@clisp.org>
71934
71935         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
71936         mingw.
71937         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
71938         MSVC and mingw explicitly.
71939
71940 2006-10-11  Simon Josefsson  <jas@extundo.com>
71941             Bruno Haible  <bruno@clisp.org>
71942
71943         Add support for multiple gnulib-tool invocations in the scope of a
71944         single configure.ac file.
71945         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
71946         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
71947         with the same contents as the _LIBADD variable.
71948         (func_emit_initmacro_start, func_emit_initmacro_end,
71949         func_emit_initmacro_done): New functions.
71950         (func_import, func_create_testdir): Invoke them. Allow the identifiers
71951         gl_LIBOBJS and gl_LTLIBOBJS.
71952
71953 2006-10-11  Bruno Haible  <bruno@clisp.org>
71954
71955         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
71956         (func_create_testdir): Don't create po/Makefile.am, don't invoke
71957         autoreconf. Instead, invoke autopoint explicitly but move back the
71958         *.m4 files from gnulib.
71959
71960 2006-10-11  Bruno Haible  <bruno@clisp.org>
71961
71962         * gnulib-tool (func_usage): Make module names after --create-testdir
71963         optional.
71964         (func_create_testdir): If no module was specified, use nearly all
71965         modules.
71966
71967 2006-10-12  Jim Meyering  <jim@meyering.net>
71968
71969         Big performance improvement for fts-based tools that use FTS_NOSTAT.
71970         Avoid spurious inode-mismatch problems on non-POSIX file systems.
71971         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
71972         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
71973         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
71974         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
71975         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
71976         (fts_set_stat_required): New function.
71977         (fts_open): Defer the calls to fts_stat, if possible or requested.
71978         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
71979         into fts_stat itself.
71980         (fts_read): Perform any required (deferred) fts_stat call.
71981         (fts_build): Likewise, for the directory we're about to open and read.
71982         In the readdir loop, carefully decide whether each entry will require
71983         an eventual call to fts_stat, using dirent.d_type info if available.
71984         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
71985         a command line argument into this function.  Update all callers.
71986         Map a return value of FTS_DOT to FTS_D for a command line argument.
71987         * modules/fts (Depends-on): Add d-type.  Alphabetize.
71988         Thanks to Miklos Szeredi for his tenacity and for the initial
71989         bug report about "find" failing on a FUSE-based file system.
71990
71991         * lib/fts.c (fts_open): Use consistent indentation.
71992
71993 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
71994
71995         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
71996         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
71997         reported by Jim Meyering.  All uses of cache variables renamed
71998         to match Autoconf's.
71999         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
72000         the other one.
72001
72002         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
72003         Fix misspelling in diagnostic.
72004
72005 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
72006
72007         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
72008         defined.  Problem reported by Matthew Woehlke.
72009
72010         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
72011         Add support for Tandem NonStop R series.
72012         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
72013         Use new macro.
72014
72015         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
72016         (has_trailing_slash): Omit size arg; all callers changed.
72017         Omit 'inline', since it doesn't help performance and we'd
72018         need to configure it.
72019         Don't count //, ///, etc. as having a trailing slash.
72020         As a side effect, this removes a C99ism reported by Matthew Woehlke.
72021         (rpl_rename_dest_slash): On failure, use rename's errno rather
72022         than (in some cases) an incorrect or junk errno.
72023         Simplify code by removing need to compute length; this does
72024         cause it to make two passes instead of one over the file name,
72025         but it's worth it.
72026
72027         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
72028         change, since Autoconf's version may no longer be appropriate now
72029         that we are using CVS Autoconf's version.  Add support for Tandem.
72030
72031 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
72032             Bruno Haible  <bruno@clisp.org>
72033
72034         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
72035         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
72036         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
72037         gl_AC_TYPE_LONG_LONG.
72038
72039         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
72040         instead of HAVE_LONG_LONG.
72041         * lib/printf-args.c (printf_fetchargs): Likewise.
72042         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
72043         * lib/vasnprintf.c (VASNPRINTF): Likewise.
72044         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
72045         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
72046         gl_AC_TYPE_LONG_LONG.
72047
72048 2006-10-11  Bruno Haible  <bruno@clisp.org>
72049
72050         * m4/longlong.m4: Add comments.
72051         * m4/ulonglong.m4: Likewise.
72052
72053 2006-10-10  Bruno Haible  <bruno@clisp.org>
72054
72055         Make it possible to #define stpcpy, strdup to aliases.
72056         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
72057         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
72058
72059 2006-10-10  Bruno Haible  <bruno@clisp.org>
72060
72061         Make it possible to #define gcd to an alias.
72062         * lib/gcd.c: Include config.h.
72063
72064 2006-10-10  Bruno Haible  <bruno@clisp.org>
72065
72066         Make it possible to #define c_isascii to an alias.
72067         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
72068         defined. Undefine the macros before defining them, to avoid gcc
72069         warnings.
72070         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
72071         define NO_C_CTYPE_MACROS early.
72072
72073 2006-10-10  Bruno Haible  <bruno@clisp.org>
72074
72075         Make it possible to #define set_program_name to an alias.
72076         * lib/progname.c: Don't undefine set_program_name; instead, undefine
72077         ENABLE_RELOCATABLE early.
72078
72079 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
72080
72081         Port to Tandem NSK OSS, which has 64-bit signed int but at most
72082         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
72083         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
72084         More generally, don't assume that 64-bit signed int is available
72085         if unsigned int is, and vice versa.
72086         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
72087         unsigned symbols, not on their signed counterparts.
72088         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
72089         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
72090         (UINT64_C, UINTMAX_C):
72091         Likewise.
72092         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
72093         unsigned counterparts.
72094         (Have_long_long, Unsigned): New macros.
72095         (Int): Renamed from INT.
72096         (strtoimax): Use the new macros.
72097         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
72098         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
72099         * modules/inttypes (inttypes.h): Substitute
72100         HAVE_UNSIGNED_LONG_LONG_INT.
72101         * modules/stdint (stdint.h): Likewise.
72102         (Files): Add m4/ulonglong.m4.
72103
72104 2006-10-10  Bruno Haible  <bruno@clisp.org>
72105
72106         Fix a gcc -Wshadow warning.
72107         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
72108         to 'bucket'.
72109         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
72110         gl_linked_indexof_from_to): Likewise.
72111         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
72112         Likewise.
72113         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
72114         Likewise.
72115         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
72116         Reported by Eric Blake.
72117
72118 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
72119
72120         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
72121         for NetBSD.  Problem reported by Bruno Haible.
72122
72123 2006-10-09  Jim Meyering  <jim@meyering.net>
72124
72125         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
72126         Patch from Bruno Haible.
72127
72128 2006-10-09  Jim Meyering  <jim@meyering.net>
72129
72130         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
72131         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
72132         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
72133
72134 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
72135
72136         Don't include <config.h> twice; this doesn't work in some cases,
72137         e.g., when config.h has "#define intmax_t long long int" and
72138         we include <config.h>, <inttypes.h>, <config.h> in that order.
72139         Problem reported by Matthew Woehlke in:
72140         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
72141         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
72142         * lib/fts-cycle.c: Don't include config.h.
72143         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
72144         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
72145         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
72146         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
72147         inttypes.h.
72148         * lib/xstrtoumax.c: Likewise.
72149         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
72150         __strtol and the like, so that this module is more like its siblings.
72151         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
72152         Remove; no longer needed now that we assume gnulib inttypes.h.
72153
72154 2006-10-08  Bruno Haible  <bruno@clisp.org>
72155
72156         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
72157         option.
72158
72159 2006-10-07  Jim Meyering  <jim@meyering.net>
72160
72161         * modules/inttypes (inttypes.h): Revert what seems to have been
72162         an inadvertent part of today's change: use "|", not "/" in the
72163         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
72164
72165 2006-10-07  Bruno Haible  <bruno@clisp.org>
72166
72167         * modules/sublist: New file.
72168
72169 2006-10-07  Bruno Haible  <bruno@clisp.org>
72170
72171         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
72172         * modules/argz (argz.h): Likewise.
72173         * modules/arpa_inet (arpa/inet.h): Likewise.
72174         * modules/byteswap (byteswap.h): Likewise.
72175         * modules/configmake (configmake.h): Likewise.
72176         * modules/fcntl (fcntl.h): Likewise.
72177         * modules/fnmatch (fnmatch.h): Likewise.
72178         * modules/getopt (getopt.h): Likewise.
72179         * modules/glob (glob.h): Likewise.
72180         * modules/inttypes (inttypes.h): Likewise.
72181         * modules/netinet_in (netinet/in.h): Likewise.
72182         * modules/poll (poll.h): Likewise.
72183         * modules/stdbool (stdbool.h): Likewise.
72184         * modules/stdint (stdint.h): Likewise.
72185         * modules/sys_select (sys/select.h): Likewise.
72186         * modules/sys_socket (sys/socket.h): Likewise.
72187         * modules/sys_stat (sys/stat.h): Likewise.
72188         * modules/sysexits (sysexits.h): Likewise.
72189         * modules/unistd (unistd.h): Likewise.
72190         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72191         Add a "DO NOT EDIT" comment to the generated file.
72192         (func_import): Likewise for gnulib-comp.m4.
72193
72194 2006-10-07  Bruno Haible  <bruno@clisp.org>
72195
72196         * lib/gl_sublist.h: New file.
72197         * lib/gl_sublist.c: New file.
72198
72199 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
72200
72201         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
72202         name (relative to the original working directory) and the file
72203         name component (relative to the temporary working directory).  All
72204         callers changed.
72205         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
72206         * lib/mkdir-p.c (make_dir_parents): Likewise.
72207         * lib/mkdir-p.h (make_dir_parents): Likewise.
72208
72209 2006-10-06  Eric Blake  <ebb9@byu.net>
72210
72211         Define several macros for use by the clean-temp module.
72212         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
72213         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
72214         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
72215
72216         * lib/clean-temp.h (close_stream_temp): New declaration.
72217         * lib/clean-temp.c (includes): Pull in headers according to what
72218         other modules are in use.
72219         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
72220
72221 2006-10-06  Bruno Haible  <bruno@clisp.org>
72222
72223         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
72224         instead of fopen, fwriteerror.
72225
72226 2006-10-06  Bruno Haible  <bruno@clisp.org>
72227
72228         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
72229         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
72230         int.
72231         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
72232         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
72233         Return an error indicator.
72234         Suggested by Eric Blake.
72235
72236 2006-10-06  Bruno Haible  <bruno@clisp.org>
72237
72238         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
72239         Reported by Eric Blake.
72240
72241 2006-10-06  Bruno Haible  <bruno@clisp.org>
72242
72243         * modules/closeout (Description): Mention stderr too.
72244
72245 2006-10-06  Bruno Haible  <bruno@clisp.org>
72246         and Paul Eggert  <eggert@cs.ucla.edu>
72247
72248         * lib/closeout.c (close_stdout): Also close stderr.
72249         * lib/closeout.h: Update comment.
72250
72251 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
72252
72253         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
72254         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
72255         * lib/dirchownmod.c: Include lchown.h.
72256         * lib/lchown.c: Don't include files that lchown.h now includes.
72257         Don't declare chown, since lchown.h now does that.
72258         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
72259         (lchown): Define to rpl_chown if lchown is declared but
72260         does not exist.  Declare using a prototype if lchown is not
72261         declared.  Add a copyright notice.
72262         * lib/mkstemp.h: Include <unistd.h>.
72263         * lib/openat.c: Include lchown.h.
72264
72265         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
72266         we now test for that separately.
72267         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
72268         rather than O_NOFOLLOW, when testing whether it's possible to
72269         avoid a race condition reliably.
72270         * lib/savewd.c (savewd_chdir): Likewise.
72271
72272         Remove macros that are no longer needed now that stdint.h is
72273         reliable.
72274         * lib/fsusage.c (UINTMAX_MAX): Remove.
72275         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
72276         * lib/utimecmp.c (SIZE_MAX): Remove.
72277
72278         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
72279
72280         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
72281         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
72282         O_NOATIME works.
72283
72284 2006-10-05  Bruno Haible  <bruno@clisp.org>
72285
72286         * lib/gl_list.h (gl_sortedlist_search_from_to,
72287         gl_sortedlist_indexof_from_to): New declarations.
72288         (gl_list_implementation): New fields sortedlist_search_from_to,
72289         sortedlist_indexof_from_to.
72290         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
72291         inline functions.
72292         * lib/gl_list.c (gl_sortedlist_search_from_to,
72293         gl_sortedlist_indexof_from_to): New functions.
72294         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
72295         function.
72296         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
72297         (gl_array_sortedlist_search_from_to): New function.
72298         (gl_array_list_implementation): Update.
72299         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
72300         function.
72301         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
72302         (gl_carray_sortedlist_search_from_to): New function.
72303         (gl_carray_list_implementation): Update.
72304         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
72305         gl_linked_sortedlist_indexof_from_to): New functions.
72306         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
72307         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
72308         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
72309         gl_tree_sortedlist_indexof_from_to): New functions.
72310         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
72311         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
72312         Update.
72313         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
72314         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
72315         Update.
72316
72317 2006-10-05  Bruno Haible  <bruno@clisp.org>
72318
72319         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
72320         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
72321         (struct gl_list_implementation): Add fields search_from_to,
72322         indexof_from_to. Remove fields search, indexof.
72323         (gl_list_search): Use the search_from_to method.
72324         (gl_list_search_from, gl_list_search_from_to): New functions.
72325         (gl_list_indexof): Use the indexof_from_to method.
72326         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
72327         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
72328         (gl_list_search_from, gl_list_search_from_to): New functions.
72329         (gl_list_indexof): Use the indexof_from_to method.
72330         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
72331         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
72332         gl_array_indexof. Add start_index, end_index arguments.
72333         (gl_array_search_from_to): Renamed from gl_array_search. Add
72334         start_index, end_index arguments.
72335         (gl_array_remove, gl_array_list_implementation): Update.
72336         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
72337         gl_carray_indexof. Add start_index, end_index arguments.
72338         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
72339         start_index, end_index arguments.
72340         (gl_carray_remove, gl_carray_list_implementation): Update.
72341         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
72342         gl_linked_search. Add start_index, end_index arguments.
72343         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
72344         start_index, end_index arguments.
72345         (gl_linked_remove): Update.
72346         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
72347         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
72348         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
72349         field to 'size_t'.
72350         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
72351         gl_tree_search. Add start_index, end_index arguments.
72352         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
72353         start_index, end_index arguments.
72354         (gl_tree_remove): Update.
72355         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
72356         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
72357         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
72358         function.
72359         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
72360         gl_tree_search. Add start_index, end_index arguments.
72361         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
72362         start_index, end_index arguments.
72363         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
72364         Update.
72365         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
72366
72367 2006-10-05  Bruno Haible  <bruno@clisp.org>
72368
72369         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
72370
72371         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
72372         fwriteerror_temp): New declarations.
72373         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
72374         (descriptors): New variable.
72375         (cleanup): First, close the descriptors.
72376         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
72377         fclose_temp, fwriteerror_temp): New functions.
72378
72379 2006-10-04  Jim Meyering  <jim@meyering.net>
72380
72381         * lib/fts.c (fts_open): Tiny comment change.
72382
72383 2006-10-04  Bruno Haible  <bruno@clisp.org>
72384
72385         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
72386         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
72387         gl_LOCK_BODY.
72388         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
72389         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
72390         gl_LOCK_EARLY_BODY.
72391         (gl_LOCK): Require gl_LOCK_BODY.
72392
72393 2006-10-04  Bruno Haible  <bruno@clisp.org>
72394
72395         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
72396         (gl_oset_search_atleast): New declaration.
72397         (struct gl_oset_implementation): Add field 'search_atleast'.
72398         (gl_oset_search_atleast): New inline function.
72399         * lib/gl_oset.c (gl_oset_search_atleast): New function.
72400         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
72401         (gl_array_oset_implementation): Update.
72402         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
72403         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
72404         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
72405
72406 2006-10-04  Bruno Haible  <bruno@clisp.org>
72407
72408         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
72409
72410 2006-10-03  Bruno Haible  <bruno@clisp.org>
72411
72412         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
72413         from gl_avltreehash_list_implementation.
72414
72415 2006-10-03  Bruno Haible  <bruno@clisp.org>
72416
72417         * lib/gl_oset.c (gl_oset_add): Fix return type.
72418
72419 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
72420
72421         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
72422
72423 2006-10-02  Eric Blake  <ebb9@byu.net>
72424
72425         * modules/strnlen (Depends-on): Add extensions.
72426
72427 2006-10-02  Eric Blake  <ebb9@byu.net>
72428
72429         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
72430         definition in 2.60+.
72431
72432 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
72433
72434         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
72435         checks.
72436
72437 2006-10-02  Bruno Haible  <bruno@clisp.org>
72438
72439         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
72440         to the AUTOMAKE_OPTIONS.
72441         Reported by Jim Meyering.
72442
72443 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
72444
72445         Work around bug in Solaris 10 /proc file system:
72446         /proc/self/fd/NNN/.. isn't the parent directory of
72447         the directory whose file descriptor is NNN.  This needs to
72448         be worked around at run time, not compile time, since a
72449         program might be built on Solaris 8, where things work, and
72450         run on Solaris 10.
72451         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
72452         to use the following interface instead:
72453         (OPENAT_BUFFER_SIZE): New macro.
72454         (openat_proc_name): New function.
72455         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
72456         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
72457         Likewise.
72458         * lib/openat-proc.c: New file.
72459         * modules/openat (Files): Add lib/openat-proc.c.
72460         (Depends-on): Add same-inode, stdbool.
72461         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
72462
72463 2006-09-29  Bruno Haible  <bruno@clisp.org>
72464
72465         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
72466         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
72467         argument. Set stdout_closed before testing for ferror, not after.
72468         (fwriteerror, fwriteerror_no_ebadf): New functions.
72469
72470 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72471
72472         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
72473
72474 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
72475
72476         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
72477         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
72478
72479 2006-09-28  Jim Meyering  <jim@meyering.net>
72480
72481         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
72482         Include <unistd.h>.
72483
72484 2006-09-28  Bruno Haible  <bruno@clisp.org>
72485
72486         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
72487         * modules/linkedhash-list (Depends-on): Likewise.
72488         * modules/rbtreehash-list (Depends-on): Likewise.
72489
72490 2006-09-28  Bruno Haible  <bruno@clisp.org>
72491
72492         * lib/strndup.h: Simplify the redefinition of strndup.
72493         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
72494         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
72495
72496 2006-09-28  Bruno Haible  <bruno@clisp.org>
72497
72498         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
72499         * lib/gl_linkedhash_list.c: Likewise.
72500         * lib/gl_rbtreehash_list.c: Likewise.
72501
72502 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
72503
72504         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
72505         getaddrinfo.
72506
72507         * lib/__fpending.h: Don't include <stdio_ext.h> unless
72508         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
72509         it causes <stdio_ext.h> to cause a compile-time error.
72510         Problem reported by Nelson H. F. Beebe.
72511         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
72512         of HAVE_DECL___PENDING.
72513
72514         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
72515         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
72516         declaration.
72517
72518 2006-09-27  Jim Meyering  <jim@meyering.net>
72519
72520         This file could end up with a definition for a function
72521         named __strndup, rather than rpl_strndup on a system with
72522         incomplete weak_alias support.
72523         * lib/strndup.c (strndup): Rename from __strndup.
72524         Remove #defines that used to map __strndup to strndup.
72525         Don't use K&R prototypes.
72526         Remove LIBC-related code, since this file is not sync'd with glibc.
72527         * lib/strndup.h: Revamp, accordingly.
72528         * m4/strndup.m4: Modernize.
72529
72530 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
72531
72532         * modules/savewd (Depends-on): Add 'raise'.
72533         * lib/savewd.c: Include <signal.h>, for 'raise'.
72534
72535 2006-09-26  Jim Meyering  <jim@meyering.net>
72536
72537         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
72538         when we detect Darwin 8.7.0's acl_get_file bug.
72539         Rearrange to perform the new (below) run-test while $LIBS
72540         contains any acl-related library.  Set USE_ACL at the end.
72541         (gl_ACL_GET_FILE): New function.
72542
72543 2006-09-26  Eric Blake  <ebb9@byu.net>
72544
72545         * lib/verror.c: Include <config.h> unconditionally.
72546
72547 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
72548
72549         * modules/clock-time (Maintainer): Add self.
72550         * modules/getlogin_r (Depends-on): Add extensions.
72551
72552 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72553
72554         * modules/clock-time: New module.
72555         * modules/nanosleep (Depends-on): Add clock-time.
72556         * modules/gethrxtime (Depends-on): Likewise.
72557         * modules/gettime (Depends-on): Likewise.
72558         * modules/settime (Depends-on): Likewise.
72559
72560         * modules/fts-lgpl: Depend on openat.
72561         * modules/mkancesdirs: Depend on savewd.
72562         * modules/mkdir-p: Likewise.
72563
72564 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72565
72566         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
72567
72568         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
72569         `gl_have_arbitrary_file_name_length_limit' to
72570         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
72571         actually works between configure runs.
72572
72573 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72574             Bruno Haible  <bruno@clisp.org>
72575
72576         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
72577
72578 2006-09-25  Jim Meyering  <jim@meyering.net>
72579
72580         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
72581         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
72582
72583 2006-09-25  Eric Blake  <ebb9@byu.net>
72584
72585         * gnulib-tool (func_import, func_create_testdir): Fix typos in
72586         exec's in 2006-09-18 patch when shuffling fds.
72587
72588 2006-09-25  Bruno Haible  <bruno@clisp.org>
72589
72590         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
72591         Reported by Jim Meyering.
72592
72593 2006-09-24  Jim Meyering  <jim@meyering.net>
72594
72595         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
72596         compare a pointer against a literal "0".  That caused failures with
72597         at least HP-UX's hpcc.
72598
72599 2006-09-22  Simon Josefsson  <jas@extundo.com>
72600
72601         * modules/gc-sha1:
72602         * modules/gc-md4:
72603         * modules/gc-hmac-sha1:
72604         * modules/gc-hmac-md5:
72605         * modules/gc-des:
72606         * modules/gc-arcfour: Distribute more files.
72607
72608 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72609
72610         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
72611         (gl_linked_iterator_from_to): Initialize struct completely.
72612         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
72613         (gl_tree_iterator_from_to): Likewise
72614         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
72615         * lib/gl_array_list.c [lint] (gl_array_iterator)
72616         (gl_array_iterator_from_to): Likewise.
72617         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
72618         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
72619         (gl_carray_iterator_from_to): Likewise.
72620
72621         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
72622         * lib/md4.c (md4_process_block): Remove unused variable.
72623         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
72624         parentheses for clarity.
72625
72626 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72627
72628         * modules/bison-i18n (Depends-on): Add gettext.
72629
72630 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72631
72632         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
72633         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
72634         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
72635         also add missing comma that caused broken test.
72636         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
72637         stdlib.h, for `abort'.
72638         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
72639         variables.
72640         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
72641         include unistd.h if present, for `rmdir'.
72642         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
72643         variables.
72644         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
72645         in the process include standard headers for prototypes.
72646         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
72647         gets declared on GNU/Linux.
72648         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
72649         unistd.h, for `rmdir'.
72650         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
72651
72652         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
72653         always true.
72654         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
72655
72656         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
72657
72658 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72659
72660         * gnulib-tool (func_version): Create output all at once.  This
72661         may help avoid triggering unnecessary SIGPIPEs, and at any
72662         rate it doesn't hurt.
72663
72664 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72665             Bruno Haible  <bruno@clisp.org>
72666
72667         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
72668         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
72669         * m4/signed.m4 (bh_C_SIGNED): Likewise.
72670
72671         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
72672         (gl_FUNC_VASPRINTF): Invoke it.
72673
72674 2006-09-22  Bruno Haible  <bruno@clisp.org>
72675
72676         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
72677         getloadavg.c as first argument.
72678
72679 2006-09-22  Bruno Haible  <bruno@clisp.org>
72680
72681         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
72682         at the beginning of the gl_INIT macro.
72683         * modules/getloadavg (configure.ac): Pass $gl_source_base to
72684         gl_GETLOADAVG.
72685
72686 2006-09-22  Bruno Haible  <bruno@clisp.org>
72687
72688         * gnulib-tool (func_create_megatestdir): Don't include the config-h
72689         module.
72690         Suggested by Ralf Wildenhues.
72691
72692 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
72693
72694         Import this patch from libc:
72695
72696         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
72697
72698         * lib/regex_internal.c (re_string_reconstruct): Handle
72699         offset < pstr->valid_raw_len && pstr->offsets_needed case.
72700         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
72701         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
72702         re_string_context_at.
72703
72704         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
72705         now requires it.
72706         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
72707         gl_REGEX now does it for us.
72708         (gl_REGEX): Add test taken from
72709         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
72710
72711         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
72712         Check that large offsets work.  Modernize Autoconf usages.
72713         Prefer "yes" to mean a good thing rather than a bad.
72714         Don't put "#define mkstemp" in config.h, as this might interfere
72715         with standard system headers that "#define mkstemp mkstemp64".
72716
72717         * modules/mkstemp (Depends-on): Add extensions, so that
72718         mkstemp is visible on some platforms.
72719         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
72720         (Include): Change to "mkstemp.h" from <stdlib.h>.
72721         (Files): Add mkstemp.h.
72722
72723         * lib/mkstemp.h: New file, since some standard headers
72724         #define mkstemp.
72725         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
72726         Include "mkstemp.h".
72727         Make the _LIBC code resemble glibc original more,
72728         e.g., use K&R style.
72729         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
72730         (mkstemp): Remove, since mkstemp.h does this for us.
72731         * lib/stdlib--.h: Include mkstemp.h.
72732
72733         Import this patch from libc:
72734
72735         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
72736
72737         * lib/tempname.c (__gen_tempname): Change attempts_min
72738         into a macro.  Use preprocessor to decide how to initialize
72739         attempts [Coverity CID 67].
72740
72741 2006-09-20  Bruno Haible  <bruno@clisp.org>
72742
72743         * lib/mkdtemp.c: Import from libc.
72744         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
72745                 * sysdeps/posix/tempname.c (__gen_tempname): Change
72746                 attempts_min into a macro.  Use preprocessor to decide how to
72747                 initialize attempts [Coverity CID 67].
72748         2001-11-27  Paul Eggert  <eggert@twinsun.com>
72749                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
72750                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
72751
72752 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72753
72754         * gnulib-tool (func_exit): New function, to allow to pass the
72755         exit status portably through the trap.  Use everywhere.
72756         (--help, --version): Signal a write error.
72757         (trap): catch SIGPIPE, for write errors.
72758         Exit at the end of the trap, with the correct exit status.
72759
72760 2006-09-19  Karl Berry  <karl@gnu.org>
72761
72762         * doc/gnulib.texi: note about the license texinfo files.
72763
72764 2006-09-19  Eric Blake  <ebb9@byu.net>
72765
72766         * gnulib-tool: Avoid space-tab.
72767
72768 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
72769
72770         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
72771         that prevented coreutils 6.1 from building.  Problem reported
72772         by Petter Reinholdtsen.
72773
72774 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
72775
72776         * gnulib-tool (avoidlist): Fix typo that broke options like
72777         --avoid=lock that are used by coreutils bootstrap.
72778
72779 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
72780
72781         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
72782         more systematically.
72783
72784 2006-09-18  Jim Meyering  <jim@meyering.net>
72785
72786         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
72787
72788 2006-09-18  Bruno Haible  <bruno@clisp.org>
72789
72790         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
72791
72792 2006-09-18  Bruno Haible  <bruno@clisp.org>
72793
72794         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
72795         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
72796         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
72797         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
72798         * m4/gettext.m4: Require autoconf >= 2.52.
72799         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
72800         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
72801         of gl_cv_header_inttypes_h.
72802
72803 2006-09-18  Bruno Haible  <bruno@clisp.org>
72804
72805         * lib/javaversion.c: Include configmake.h.
72806
72807 2006-09-18  Bruno Haible  <bruno@clisp.org>
72808
72809         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
72810         avoid that the while loops be executed in a subshell.
72811
72812 2006-09-18  Bruno Haible  <bruno@clisp.org>
72813
72814         * MODULES.html.sh (func_module): Break long lines.
72815         Suggested by Bruce Korb <bkorb@gnu.org>.
72816
72817 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72818
72819         Speed up by a factor of 1.12.
72820         * gnulib-tool (nl): New variable.
72821         (func_import): Rewrite include directive extraction to only read each
72822         directive once.
72823
72824 2006-09-17  Bruno Haible  <bruno@clisp.org>
72825
72826         * modules/javaversion (Makefile.am): Remove DEFS setting.
72827         (Depends-on): Add configmake, for PKGDATADIR definition.
72828
72829 2006-09-17  Bruno Haible  <bruno@clisp.org>
72830
72831         * gnulib-tool (func_create_testdir): Rewrite all files at once.
72832
72833 2006-09-17  Bruno Haible  <bruno@clisp.org>
72834
72835         * gnulib-tool (func_append): New function, stolen from libtool.m4.
72836         (func_modules_transitive_closure, func_modules_add_dummy,
72837         func_modules_to_filelist, func_import, func_create_testdir,
72838         func_create_megatestdir, ...): Use it wherever possible.
72839         Suggested by Ralf Wildenhues.
72840
72841 2006-09-16  Karl Berry  <karl@gnu.org>
72842
72843         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
72844         to avoid sectioning errors.
72845         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
72846         [ifinfo]: blank line after @center-ed titles.
72847         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
72848         Spell FSF address consistently with others.
72849         (These changes approved by rms.)
72850
72851 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72852
72853         Speed up by a factor of 1.61.
72854         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
72855         already checked module names again.
72856
72857 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72858
72859         Speed up by a factor of 1.13.
72860         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
72861         for new_files, and the input to func_add_or_update.
72862
72863 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72864
72865         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
72866         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
72867
72868 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
72869
72870         * modules/mkancesdirs (Depends-on): Add fcntl.
72871         * modules/savewd: New file.
72872         * MODULES.html.sh (File system functions): Add savewd.
72873
72874         * modules/configmake (Makefile.am): Add support for the
72875         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
72876
72877 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
72878
72879         * m4/savewd.m4: New file.
72880
72881 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
72882
72883         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
72884         (dirchownmod): New arg FD.  All callers changed.
72885         Use FD rather than opening the directory ourself, as opening is
72886         now the caller's responsibility.
72887         * lib/dirchownmod.h: Likewise.
72888         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
72889         hosts that require <sys/types.h> before <sys/stat.h>.  Include
72890         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
72891         (test_dir): Remove.
72892         (mkancesdirs): Return length of prefix of FILE that has already
72893         been made, or -2 if there is a child doing the work.  Redo
72894         algorithm so that it is O(N) rather than O(N**2).  Optimize away
72895         ".", and treat ".." specially since it might stray back into
72896         already-created areas.  Use a subprocess if necessary.  New arg
72897         WD; all users changed.  MAKE_DIR function should now return 1
72898         if it creates a directory that is not readable.  Return -2 if
72899         a child process is spun off.
72900         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
72901         Adjust signature to match code.
72902         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
72903         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
72904         all users changed.
72905         * lib/savewd.c, lib/savewd.h: New files.
72906
72907 2006-09-15  Jim Meyering  <jim@meyering.net>
72908
72909         * modules/rename-dest-slash: New module.
72910         * MODULES.html.sh (posix_compat): Add it here.
72911
72912         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
72913
72914 2006-09-15  Jim Meyering  <jim@meyering.net>
72915
72916         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
72917         file.
72918
72919         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
72920
72921 2006-09-15  Jim Meyering  <jim@meyering.net>
72922
72923         * lib/rename-dest-slash.c (has_trailing_slash): Use
72924         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
72925         (rpl_rename_dest_slash): Perform the cheaper trailing slash
72926         test before testing whether SRC is a directory.
72927         Suggestions from Bruno Haible.
72928
72929         Avoid a warning about an unused variable.
72930         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
72931         into the #ifdef block where it's used.
72932
72933         * lib/rename-dest-slash.c: New file.
72934
72935 2006-09-14  Bruno Haible  <bruno@clisp.org>
72936
72937         * lib/allocsa.c: Include <config.h> unconditionally.
72938         * lib/asnprintf.c: Likewise.
72939         * lib/asprintf.c: Likewise.
72940         * lib/c-strcasecmp.c: Likewise.
72941         * lib/c-strcasestr.c: Likewise.
72942         * lib/c-strncasecmp.c: Likewise.
72943         * lib/c-strstr.c: Likewise.
72944         * lib/classpath.c: Likewise.
72945         * lib/clean-temp.c: Likewise.
72946         * lib/concatpath.c: Likewise.
72947         * lib/copy-file.c: Likewise.
72948         * lib/csharpcomp.c: Likewise.
72949         * lib/csharpexec.c: Likewise.
72950         * lib/execute.c: Likewise.
72951         * lib/fatal-signal.c: Likewise.
72952         * lib/findprog.c: Likewise.
72953         * lib/fwriteerror.c: Likewise.
72954         * lib/gl_array_list.c: Likewise.
72955         * lib/gl_array_oset.c: Likewise.
72956         * lib/gl_avltree_list.c: Likewise.
72957         * lib/gl_avltree_oset.c: Likewise.
72958         * lib/gl_avltreehash_list.c: Likewise.
72959         * lib/gl_carray_list.c: Likewise.
72960         * lib/gl_linked_list.c: Likewise.
72961         * lib/gl_linkedhash_list.c: Likewise.
72962         * lib/gl_list.c: Likewise.
72963         * lib/gl_oset.c: Likewise.
72964         * lib/gl_rbtree_list.c: Likewise.
72965         * lib/gl_rbtree_oset.c: Likewise.
72966         * lib/gl_rbtreehash_list.c: Likewise.
72967         * lib/imaxabs.c: Likewise.
72968         * lib/imaxdiv.c: Likewise.
72969         * lib/javacomp.c: Likewise.
72970         * lib/javaexec.c: Likewise.
72971         * lib/javaversion.c: Likewise.
72972         * lib/linebreak.c: Likewise.
72973         * lib/localcharset.c: Likewise.
72974         * lib/lock.c: Likewise.
72975         * lib/mbchar.c: Likewise.
72976         * lib/mbswidth.c: Likewise.
72977         * lib/mkdtemp.c: Likewise.
72978         * lib/pipe.c: Likewise.
72979         * lib/printf-args.c: Likewise.
72980         * lib/printf-parse.c: Likewise.
72981         * lib/progname.c: Likewise.
72982         * lib/progreloc.c: Likewise.
72983         * lib/readlink.c: Likewise.
72984         * lib/sh-quote.c: Likewise.
72985         * lib/stpcpy.c: Likewise.
72986         * lib/stpncpy.c: Likewise.
72987         * lib/strcasecmp.c: Likewise.
72988         * lib/strcasestr.c: Likewise.
72989         * lib/strcspn.c: Likewise.
72990         * lib/striconv.c: Likewise.
72991         * lib/strncasecmp.c: Likewise.
72992         * lib/strnlen1.c: Likewise.
72993         * lib/strstr.c: Likewise.
72994         * lib/strtok_r.c: Likewise.
72995         * lib/tls.c: Likewise.
72996         * lib/tmpdir.c: Likewise.
72997         * lib/unicodeio.c: Likewise.
72998         * lib/unsetenv.c: Likewise.
72999         * lib/vasnprintf.c: Likewise.
73000         * lib/vasprintf.c: Likewise.
73001         * lib/wait-process.c: Likewise.
73002         * lib/xallocsa.c: Likewise.
73003         * lib/xsetenv.c: Likewise.
73004         * lib/xstriconv.c: Likewise.
73005
73006 2006-09-13  Simon Josefsson  <jas@extundo.com>
73007
73008         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
73009         that internally, suggested by Ralf Wildenhues
73010         <Ralf.Wildenhues@gmx.de>.
73011
73012 2006-09-13  Simon Josefsson  <jas@extundo.com>
73013
73014         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
73015         @LIBOBJS@.
73016         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73017
73018 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
73019
73020         * lib/_fpending.c: Include <config.h> unconditionally, since we no
73021         longer worry about uses that don't define HAVE_CONFIG_H.
73022         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
73023         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
73024         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
73025         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
73026         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
73027         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
73028         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
73029         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
73030         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
73031         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
73032         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
73033         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
73034         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
73035         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
73036         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
73037         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
73038         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
73039         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
73040         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
73041         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
73042         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
73043         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
73044         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
73045         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
73046         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
73047         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
73048         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
73049         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
73050         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
73051         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
73052         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
73053         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
73054         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
73055         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
73056         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
73057         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
73058         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
73059         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
73060         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
73061         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
73062         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
73063         Likewise.
73064
73065 2006-09-13  Eric Blake  <ebb9@byu.net>
73066
73067         * lib/getopt.c: Fix typo in last commit.
73068
73069 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
73070
73071         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
73072         dgettext.
73073
73074 2006-09-12  Jim Meyering  <jim@meyering.net>
73075
73076         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
73077         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
73078         Reported by Nelson H. F. Beebe.
73079
73080 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73081
73082         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
73083         program_invocation_name and program_invocation_short_name are
73084         initialized.
73085         * lib/argp-namefrob.h: Move declarations of program_invocation_name
73086         and program_invocation_short_name to argp.h, so they are visible
73087         to user programs.
73088         * lib/argp.h: Likewise
73089
73090 2006-09-10  Bruno Haible  <bruno@clisp.org>
73091
73092         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
73093         m4/inttypes_h.m4, m4/uintmax_t.m4.
73094
73095 2006-09-10  Bruno Haible  <bruno@clisp.org>
73096
73097         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
73098         gl_AC_TYPE_UINTMAX_T.
73099
73100 2006-09-10  Bruno Haible  <bruno@clisp.org>
73101
73102         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
73103
73104 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73105
73106         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
73107         convention.  Text proposed by Bruno Haible.
73108         (struct argp_option): Document the use of N_() wrappers.
73109
73110         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
73111         '\v', and translate the two parts separately, instead of feeding
73112         the whole string to gettext.  This allows to exclude
73113         '\v' from the strings visible to the translator by writing doc
73114         strings as N_("..") "\v" N_("..").
73115
73116 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
73117
73118         * config/srclist.txt: Undo latest change; the bug was fixed.
73119
73120 2006-09-09  Bruno Haible  <bruno@clisp.org>
73121
73122         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
73123         assignments if building a library without libtool.
73124         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
73125         in func_emit_lib_Makefile_am.
73126         (func_import): When building a static library libfoo.a, arrange to
73127         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
73128         (func_create_testdir): Likewise.
73129         * modules/gc (configure.ac, Makefile.am): If building statically,
73130         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
73131         * modules/iconvme (configure.ac, Makefile.am): Likewise.
73132         * modules/striconv (configure.ac, Makefile.am): Likewise.
73133         Based on a suggestion by Ralf Wildenhues.
73134
73135 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73136
73137         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
73138         Check for unistd.h too, since Autoconf doesn't assume POSIX.
73139         Also:
73140
73141         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73142         Add year_2050_test to catch glibc bug 2821
73143         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
73144
73145         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
73146         Prefer #ifdef to #if.
73147
73148         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
73149         Return from 'main' instead of calling 'exit'.
73150
73151 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73152
73153         * lib/mktime.c (guess_time_tm): Fix bug where mktime
73154         returned the maximum time_t value rather than (time_t) -1.
73155         Problem originally reported by William Bardwell
73156         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
73157
73158         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
73159         Moved to here ...
73160         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
73161         ... from here.
73162
73163 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73164
73165         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
73166         2821 is fixed.
73167
73168 2006-09-08  Jim Meyering  <jim@meyering.net>
73169
73170         Don't make generated files read-only.  That would bother too many
73171         people.  However, do retain the ability to work when targets are
73172         read-only: remove the destination and temporary files before writing
73173         them (when generated via sed or echo), or by using the -f option for
73174         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
73175         * modules/alloca-opt, modules/argz, modules/arpa_inet:
73176         * modules/byteswap, modules/configmake, modules/fcntl:
73177         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
73178         * modules/localcharset, modules/netinet_in, modules/poll:
73179         * modules/stdbool, modules/stdint, modules/sys_select:
73180         * modules/sys_socket, modules/sys_stat, modules/sysexits:
73181
73182 2006-09-08  Jim Meyering  <jim@meyering.net>
73183
73184         Avoid new build failure on FreeBSD 6.0.
73185         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
73186         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
73187         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
73188
73189 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73190
73191         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
73192
73193 2006-09-07  Jim Meyering  <jim@meyering.net>
73194
73195         Fix global typo in last change: use chmod u-w, not chmod u-x.
73196         Spotted by Paul Eggert and Bruce Korb.
73197         * modules/alloca-opt, modules/argz, modules/arpa_inet:
73198         * modules/byteswap, modules/configmake, modules/fcntl:
73199         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
73200         * modules/localcharset, modules/netinet_in, modules/poll:
73201         * modules/stdbool, modules/stdint, modules/sys_select:
73202         * modules/sys_socket, modules/sys_stat, modules/sysexits:
73203
73204 2006-09-06  Jim Meyering  <jim@meyering.net>
73205
73206         Make generated files be read-only.
73207         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
73208         Ensure that each generated file is now read-only.
73209         * modules/argz: Likewise.
73210         * modules/arpa_inet: Likewise.
73211         * modules/byteswap: Likewise.
73212         * modules/configmake: Likewise.
73213         * modules/fcntl: Likewise.
73214         * modules/fnmatch: Likewise.
73215         * modules/getopt: Likewise.
73216         * modules/glob: Likewise.
73217         * modules/inttypes: Likewise.
73218         * modules/netinet_in: Likewise.
73219         * modules/poll: Likewise.
73220         * modules/stdbool: Likewise.
73221         * modules/stdint: Likewise.
73222         * modules/sys_select: Likewise.
73223         * modules/sys_socket: Likewise.
73224         * modules/sys_stat: Likewise.
73225         * modules/sysexits: Likewise.
73226         * modules/localcharset: Same as above, but continue using temporary
73227         file named "t-$@" (why different?) rather than the "$@-t" used
73228         everywhere else.
73229
73230         * modules/sysexits (Makefile.am): Replace literal occurrences
73231         of "sysexit.h" more readable, and more consistent, "$@".
73232
73233 2006-09-06  Bruno Haible  <bruno@clisp.org>
73234
73235         * modules/striconv: New file.
73236         * modules/xstriconv: New file.
73237         * MODULES.html.sh (Internationalization functions): Add striconv,
73238         xstriconv.
73239
73240 2006-09-06  Bruno Haible  <bruno@clisp.org>
73241
73242         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
73243         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
73244         not using libtool correctly.
73245
73246 2006-09-06  Bruno Haible  <bruno@clisp.org>
73247
73248         * lib/striconv.h: New file.
73249         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
73250         iconvstring.c.
73251         * lib/xstriconv.h: New file.
73252         * lib/xstriconv.c: New file.
73253
73254 2006-09-06  Bruno Haible  <bruno@clisp.org>
73255
73256         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
73257         lib_..._LDFLAGS.
73258
73259 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73260
73261         * lib/argz_.h: Sync from Libtool.
73262
73263         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
73264                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
73265
73266         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
73267
73268 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
73269
73270         * modules/trim: New file.
73271
73272 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
73273
73274         * lib/trim.h: New file.
73275         * lib/trim.c: New file.
73276
73277 2006-09-05  Bruno Haible  <bruno@clisp.org>
73278
73279         * MODULES.html.sh (String handling): Add trim.
73280
73281 2006-09-04  Karl Berry  <karl@gnu.org>
73282
73283         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
73284         until next release.
73285
73286 2006-09-03  Bruno Haible  <bruno@clisp.org>
73287
73288         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
73289         correctly.
73290
73291 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73292
73293         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
73294         not gl_GETLOADAVG.  Omit unneeded semicolons.
73295         Problems reported by Ralf Wildenhues in
73296         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
73297         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
73298         at the end, which is the usual gnulib style.
73299
73300         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
73301         of doing all the work ourselves.
73302         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
73303         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
73304
73305 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73306
73307         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
73308         Problem reported by Ralf Wildenhues in
73309         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
73310
73311         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
73312         HAVE_STRUCT_STATFS_F_FSTYPENAME.
73313
73314 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73315
73316         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
73317         yesterday's patch by changing test -n to test -z.
73318
73319 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73320
73321         * modules/getloadavg (Files): Add m4/getloadavg.m4.
73322         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
73323         the former is now obsolescent.
73324
73325         * modules/chdir-long (Depends-on): Add fcntl.
73326
73327 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73328
73329         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
73330         obsolescent, and programs should use gnulib instead.
73331         * m4/getloadavg.m4: New file, with contents taken from Autoconf
73332         but with prefixes changed.
73333
73334 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73335
73336         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
73337         or stdbool.h, because they might not exist while configuring.
73338
73339         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
73340         Don't include unistd.h or limits.h; not needed, since chdir-long.h
73341         does that for us.
73342         (O_DIRECTORY): Remove.
73343
73344 2006-08-31  Eric Blake  <ebb9@byu.net>
73345
73346         * gnulib-tool: Don't let emacs change spaces to TAB.
73347
73348 2006-08-31  Bruno Haible  <bruno@clisp.org>
73349
73350         * gnulib-tool: When calling func_import more than once, do it in a
73351         subshell.
73352         Reported by Eric Blake <ebb9@byu.net>.
73353
73354 2006-08-31  Bruno Haible  <bruno@clisp.org>
73355
73356         * gnulib-tool (nl): Remove variable.
73357         (sed_transform_lib_file): Use more robust test for config-h module.
73358         (func_import): Fix typo in 2006-08-25 patch.
73359
73360 2006-08-31  Bruno Haible  <bruno@clisp.org>
73361
73362         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
73363         specified, augment Makefile.am variables instead of assigning them.
73364
73365 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73366
73367         Work around a bug in both the Linux and SunOS 64-bit kernels:
73368         nanosleep mishandles sleeps for longer than 2**31 seconds.
73369         Problem reported by Frank v Waveren in
73370         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
73371         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
73372         Check for nanosleep bug.
73373         (LIB_NANOSLEEP): Append clock_gettime library if needed.
73374
73375 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73376
73377         Work around a bug in both the Linux and SunOS 64-bit kernels:
73378         nanosleep mishandles sleeps for longer than 2**31 seconds.
73379         Problem reported by Frank v Waveren in
73380         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
73381         * lib/nanosleep.c (BILLION): New constant.
73382         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
73383         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
73384         implementation.
73385
73386 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73387
73388         * modules/nanosleep (Depends-on): Add gettime.
73389
73390 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73391         and Simon Josefsson  <jas@extundo.com>
73392         and Oskar Liljeblad  <oskar@osk.mine.nu>
73393
73394         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
73395         * gnulib-tool (func_import): New license type 'unmodifiable license
73396         text'.
73397         * modules/fdl: Use it.  Longer description.
73398         * module/gpl, module/lgpl: New files.
73399
73400 2006-08-30  Jim Meyering  <jim@meyering.net>
73401
73402         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
73403         shadowing the parameter.
73404
73405 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73406
73407         Sync from Libtool:
73408
73409         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73410
73411         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
73412         sharing with gnulib.  Report by Eric Blake.
73413
73414 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73415
73416         * modules/isapipe: New file.
73417         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
73418
73419 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73420
73421         * modules/configmake (Makefile.am): Add a comment, and omit
73422         the CONFIGMAKE_ prefix from generated macro names.  Suggested
73423         by Bruno Haible.
73424
73425 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73426
73427         * m4/isapipe.m4: New file.
73428
73429 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73430
73431         * lib/isapipe.c, lib/isapipe.h: New files.
73432
73433 2006-08-29  Jim Meyering  <jim@meyering.net>
73434
73435         * modules/configmake (Makefile.am): Make configmake.h depend on
73436         Makefile.  Otherwise, a stale configmake.h could hang around.
73437
73438 2006-08-29  Eric Blake  <ebb9@byu.net>
73439
73440         * lib/error.c (error_at_line, print_errno_message): Match libc, after
73441         resolution of upstream bug 3044.
73442
73443 2006-08-29  Bruno Haible  <bruno@clisp.org>
73444
73445         * modules/localcharset (Depends-on): Add configmake.
73446         (Makefile.am): Remove setting of LIBDIR through DEFS.
73447
73448 2006-08-29  Bruno Haible  <bruno@clisp.org>
73449
73450         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
73451         defined.
73452
73453 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73454
73455         * modules/fcntl: New file.
73456         * modules/chdir-safer (Depends-on): Add fcntl.
73457         * modules/fts: Likewise.
73458         * modules/mkdir-p: Likewise.
73459
73460         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
73461         This undoes the most recent change, since we're now addressing the
73462         problem in a different way.
73463
73464         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
73465         into output, since the output might be called Makefile.am even
73466         if $makefile_name is something different.
73467         (func_import): Use $makefile_am rather than
73468         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
73469         empty.
73470
73471         * modules/inttypes (Files): Add m4/inttypes-h.m4.
73472
73473 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73474
73475         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
73476         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
73477         recent change to stdint.m4, since we're now addressing the problem in a
73478         different way.
73479
73480 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73481
73482         * m4/fcntl_h.m4: New file.
73483
73484 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73485
73486         * lib/fcntl_.h: New file.
73487         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
73488         the fcntl module.
73489         * lib/dirchownmod.c: Likewise.
73490         * lib/fts.c: Likewise.
73491
73492         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
73493         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
73494         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
73495         just before including <inttypes.h>, to avoid circular inclusion.
73496
73497 2006-08-28  Jim Meyering  <jim@meyering.net>
73498
73499         * doc/visibility.texi: Actually read and correct the grammar of the
73500         sentence affected by yesterday's change.
73501
73502 2006-08-28  Eric Blake  <ebb9@byu.net>
73503
73504         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
73505         needs wrapper.
73506
73507 2006-08-28  Eric Blake  <ebb9@byu.net>
73508
73509         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
73510
73511 2006-08-28  Eric Blake  <ebb9@byu.net>
73512
73513         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
73514
73515 2006-08-28  Bruno Haible  <bruno@clisp.org>
73516
73517         * modules/c-strstr: New file, from GNU gettext.
73518         * MODULES.html.sh (String handling): Add c-strstr.
73519
73520 2006-08-28  Bruno Haible  <bruno@clisp.org>
73521
73522         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
73523         macros.
73524         Reported by Eric Blake.
73525
73526 2006-08-28  Bruno Haible  <bruno@clisp.org>
73527
73528         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
73529         (VASNPRINTF): Return a string of length > INT_MAX without failing.
73530         * lib/vasprintf.c: Include errno.h, limits.h.
73531         (EOVERFLOW): New fallback definition.
73532         (vasprintf): Test here whether the string length is > INT_MAX.
73533         * lib/vsnprintf.c: Include errno.h, limits.h.
73534         (EOVERFLOW): New fallback definition.
73535         (vsnprintf): Fix bug when generated string was too long for the buffer.
73536         Test here whether the string length is > INT_MAX.
73537
73538 2006-08-28  Bruno Haible  <bruno@clisp.org>
73539
73540         * lib/inttypes_.h (SCNX*): Remove definitions.
73541         Reported by Eric Blake.
73542
73543 2006-08-28  Bruno Haible  <bruno@clisp.org>
73544
73545         * lib/c-strstr.h: New file, from GNU gettext.
73546         * lib/c-strstr.c: New file, from GNU gettext.
73547
73548 2006-08-28  Bruno Haible  <bruno@clisp.org>
73549
73550         * gnulib-tool: Reorder some statements.
73551
73552 2006-08-28  Bruno Haible  <bruno@clisp.org>
73553
73554         * gnulib-tool: New option --makefile-name.
73555         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
73556         $makefile_name.
73557         (func_import): Write $makefile_name to the cache file, and read it from
73558         there unless explicitly specified. Use $makefile_name as file name
73559         instead of Makefile.am. Adjust the recommendations accordingly.
73560
73561 2006-08-28  Bruno Haible  <bruno@clisp.org>
73562
73563         * gnulib-tool (func_verify_module): Check against misapplying patch.
73564
73565 2006-08-28  Bruno Haible  <bruno@clisp.org>
73566
73567         * gnulib-tool (func_relativize, func_relconcat): New functions.
73568         Give an error if --local-dir is given with --update.
73569         Remove trailing slashes from $local_gnulib_dir.
73570         (func_import): Store the relativized $local_gnulib_dir in
73571         gnulib-cache.m4, and read it from there if not specified explicitly.
73572
73573 2006-08-28  Bruno Haible  <bruno@clisp.org>
73574
73575         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
73576         is the current directory. Respect also $local_gnulib_dir.
73577
73578 2006-08-28  Bruno Haible  <bruno@clisp.org>
73579             Simon Josefsson  <jas@extundo.com>
73580
73581         BeOS portability.
73582         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
73583
73584 2006-08-27  Jim Meyering  <jim@meyering.net>
73585
73586         * doc/visibility.texi: Remove duplicate word: "pointer".
73587
73588 2006-08-26  Bruno Haible  <bruno@clisp.org>
73589
73590         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
73591         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
73592         (Makefile.am): Create inttypes.h from inttypes_.h.
73593         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
73594
73595         * modules/imaxabs: New file.
73596
73597         * modules/imaxdiv: New file.
73598
73599 2006-08-26  Bruno Haible  <bruno@clisp.org>
73600
73601         * m4/inttypes.m4: New file.
73602         * m4/_inttypes_h.m4: Remove file.
73603         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
73604         PRI_MACROS_BROKEN.
73605         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
73606
73607         * m4/imaxabs.m4: New file.
73608
73609         * m4/imaxdiv.m4: New file.
73610
73611 2006-08-26  Bruno Haible  <bruno@clisp.org>
73612
73613         * lib/inttypes_.h: New file.
73614         * lib/inttypes.h: Remove file.
73615         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
73616
73617         * lib/imaxabs.c: New file.
73618
73619         * lib/imaxdiv.c: New file.
73620
73621 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
73622
73623         New config-h module, so that "make" output needn't be cluttered
73624         by -DHAVE_CONFIG_H.
73625         * MODULES.html.sh (Support for building libraries and executables):
73626         Add config-h.
73627         * modules/config-h: New file.
73628         * gnulib-tool (nl, sed_transform_lib_file): New vars.
73629         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
73630         the config-h module is used.
73631
73632         New configmake module, so that "make" output needn't be cluttered
73633         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
73634         * MODULES.html.sh (Support for building libraries and executables):
73635         Add configmake.
73636         * modules/configmake: New file.
73637
73638 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
73639
73640         * m4/config-h.m4: New file.
73641
73642 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
73643
73644         * config/srclist.txt: Add elisp-comp.
73645
73646 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
73647
73648         * MODULES.html.sh (Support for building libraries and executables):
73649         Add elisp-comp.
73650         * build-aux/elisp-comp: New file.
73651         * modules/elisp-comp: New file.
73652
73653 2006-08-24  Bruno Haible  <bruno@clisp.org>
73654
73655         * gnulib-tool (func_create_testdir): Use non-default values of
73656         sourcebase and m4base.
73657
73658 2006-08-24  Bruno Haible  <bruno@clisp.org>
73659
73660         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
73661         HTML structure.
73662
73663 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
73664
73665         * modules/openat (Depends-on): Add lchown.
73666
73667 2006-08-23  Bruno Haible  <bruno@clisp.org>
73668
73669         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
73670         of gl_LOCK_EARLY instead of gl_LOCK.
73671
73672 2006-08-23  Bruno Haible  <bruno@clisp.org>
73673
73674         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
73675         on OSF/1 to no.
73676         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
73677
73678 2006-08-23  Bruno Haible  <bruno@clisp.org>
73679
73680         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
73681         as unusable.
73682
73683         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
73684         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
73685         (gl_LOCK): New macro.
73686
73687 2006-08-22  Simon Josefsson  <jas@extundo.com>
73688
73689         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
73690         to md5 module.
73691
73692 2006-08-22  Simon Josefsson  <jas@extundo.com>
73693
73694         * MODULES.html.sh: Add "Support for maintaining and release
73695         projects".
73696
73697         * build-aux/gnupload: New file, from coreutils.
73698
73699 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
73700
73701         Avoid the need for AC_LIBSOURCES in m4 macros.
73702         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
73703         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
73704         * modules/check-version (EXTRA_DIST): Add check-version.h.
73705         * modules/crc (EXTRA_DIST): Add crc.h.
73706         * modules/des (EXTRA_DIST): Add des.h.
73707         * modules/gc (EXTRA_DIST): Add gc.h.
73708         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
73709         * modules/getline (EXTRA_DIST): Add getline.h.
73710         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
73711         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
73712         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
73713         * modules/md2 (EXTRA_DIST): Add md2.h.
73714         * modules/md4 (EXTRA_DIST): Add md4.h.
73715         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
73716         * modules/read-file (EXTRA_DIST): Add read-file.h.
73717         * modules/readline (EXTRA_DIST): Add readline.h.
73718         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
73719         rijndael-api-fst.h.
73720
73721 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
73722
73723         * m4/rijndael.m4 (gl_ARCFOUR):
73724         * m4/arctwo.m4 (gl_ARCTWO):
73725         * m4/check-version.m4 (gl_CHECK_VERSION):
73726         * m4/crc.m4 (gl_CRC):
73727         * m4/des.m4 (gl_DES):
73728         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
73729         * m4/gc.m4 (gl_GC):
73730         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
73731         * m4/getline.m4 (gl_FUNC_GETLINE):
73732         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
73733         * m4/hmac-md5.m4 (gl_HMAC_MD5):
73734         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
73735         * m4/md2.m4 (gl_MD2):
73736         * m4/md4.m4 (gl_MD4):
73737         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
73738         * m4/read-file.m4 (gl_FUNC_READ_FILE):
73739         * m4/readline.m4 (gl_FUNC_READLINE):
73740         * m4/rijndael.m4 (gl_RIJNDAEL):
73741         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
73742         to get the necessary .h files and whatnot.
73743
73744 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
73745
73746         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
73747         gnulib rather than the other way around.
73748         * config/srclistvars.sh (COREUTILS): Remove.
73749
73750 2006-08-22  Jim Meyering  <jim@meyering.net>
73751
73752         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
73753
73754         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
73755
73756 2006-08-22  Eric Blake  <ebb9@byu.net>
73757
73758         * modules/regexprops-generic: New file.
73759         * MODULES.html.sh (Support for building documentation): List it.
73760
73761 2006-08-22  Eric Blake  <ebb9@byu.net>
73762
73763         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
73764         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
73765         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
73766         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
73767
73768 2006-08-22  Bruno Haible  <bruno@clisp.org>
73769
73770         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
73771         and lib_LTLIBRARIES like the other lib_* variables.
73772
73773 2006-08-22  Bruno Haible  <bruno@clisp.org>
73774
73775         * build-aux/x-to-1.in: New file, from GNU gettext.
73776
73777 2006-08-22  Bruno Haible  <bruno@clisp.org>
73778
73779         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
73780         <utmpx.h> exists.
73781
73782 2006-08-22  Bruno Haible  <bruno@clisp.org>
73783
73784         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
73785         <utmpx.h> exists.
73786
73787 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
73788
73789         BeOS portability.
73790         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
73791         exist.
73792         Problem reported by Bruno Haible.
73793
73794 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
73795
73796         Avoid the need for AC_LIBSOURCES in m4 macros.
73797         * modules/acl (EXTRA_DIST): Add acl.h.
73798         * modules/argmatch (Files): Add m4/argmatch.m4.
73799         (configure.ac): Add gl_ARGMATCH.
73800         (EXTRA_DIST): Renamed from lib_SOURCES, for
73801         consistency with the other modules.  Remove argmatch.c.
73802         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
73803         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
73804         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
73805         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
73806         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
73807         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
73808         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
73809         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
73810         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
73811         * modules/closeout (EXTRA_DIST): Add closeout.h.
73812         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
73813         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
73814         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
73815         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
73816         dirname.h; remove basename.c and stripslash.c.
73817         * modules/exclude (EXTRA_DIST): Add exclude.h.
73818         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
73819         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
73820         * modules/file-type (EXTRA_DIST): Add file-type.h.
73821         * modules/filemode (EXTRA_DIST): Add filemode.h.
73822         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
73823         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
73824         * modules/fpending (EXTRA_DIST): Add __fpending.h.
73825         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
73826         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
73827         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
73828         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
73829         * modules/getdate (EXTRA_DIST): Add getdate.c.
73830         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
73831         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
73832         * modules/getpass (EXTRA_DIST): Add getpass.h.
73833         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
73834         * modules/group-member (EXTRA_DIST): Add group-member.h.
73835         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
73836         * modules/hash (EXTRA_DIST): Add hash.h.
73837         * modules/human (EXTRA_DIST): Add human.h.
73838         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
73839         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
73840         * modules/lchown (EXTRA_DIST): Add lchown.h.
73841         * modules/long-options (EXTRA_DIST): Add long-options.h.
73842         * modules/lstat (EXTRA_DIST): Add lstat.h.
73843         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
73844         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
73845         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
73846         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
73847         * modules/memxor (EXTRA_DIST): Add memxor.h.
73848         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
73849         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
73850         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
73851         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
73852         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
73853         * modules/physmem (EXTRA_DIST): Add physmem.h.
73854         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
73855         * modules/posixver (EXTRA_DIST): Add posixver.h.
73856         * modules/quote (EXTRA_DIST): Add quote.h.
73857         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
73858         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
73859         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
73860         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
73861         regex_internal.h regexec.c.
73862         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
73863         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
73864         * modules/same (EXTRA_DIST): Add same.h.
73865         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
73866         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
73867         * modules/savedir (EXTRA_DIST): Add savedir.h.
73868         * modules/sha1 (EXTRA_DIST): Add sha1.h.
73869         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
73870         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
73871         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
73872         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
73873         * modules/strdup (EXTRA_DIST): Add strdup.h.
73874         * modules/strftime (EXTRA_DIST): Add strftime.h.
73875         * modules/strndup (EXTRA_DIST): Add strndup.h.
73876         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
73877         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
73878         * modules/time_r (EXTRA_DIST): Add time_r.h.
73879         * modules/timespec (EXTRA_DIST): Add timespec.h.
73880         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
73881         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
73882         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
73883         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
73884         * modules/userspec (EXTRA_DIST): Add userspec.h.
73885         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
73886         * modules/utimens (EXTRA_DIST): Add utimens.h.
73887         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
73888         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
73889         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
73890         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
73891         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
73892         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
73893         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
73894         * modules/yesno (EXTRA_DIST): Add yesno.h.
73895
73896 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
73897
73898         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
73899
73900         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
73901         * m4/dev-ino.m4, same-inode.m4: Remove.
73902
73903         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
73904         * m4/acl.m4 (AC_FUNC_ACL):
73905         * m4/backupfile.m4 (gl_BACKUPFILE):
73906         * m4/c-strtod.m4 (gl_C99_STRTOLD):
73907         * m4/canon-host.m4 (gl_CANON_HOST):
73908         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
73909         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
73910         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
73911         * m4/cloexec.m4 (gl_CLOEXEC):
73912         * m4/close-stream.m4 (gl_CLOSE_STREAM):
73913         * m4/closeout.m4 (gl_CLOSEOUT):
73914         * m4/dirfd.m4 (gl_FUNC_DIRFD):
73915         * m4/dirname.m4 (gl_DIRNAME):
73916         * m4/exclude.m4 (gl_EXCLUDE):
73917         * m4/exitfail.m4 (gl_EXITFAIL):
73918         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
73919         * m4/file-type.m4 (gl_FILE_TYPE):
73920         * m4/filemode.m4 (gl_FILEMODE):
73921         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
73922         * m4/fpending.m4 (gl_FUNC_FPENDING):
73923         * m4/fprintftime.m4 (gl_FPRINTFTIME):
73924         * m4/fts.m4 (gl_FUNC_FTS):
73925         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
73926         * m4/getdate.m4 (gl_GETDATE):
73927         * m4/gethrxtime.m4 (gl_GETHRXTIME):
73928         * m4/getpagesize.m4 (gl_GETPAGESIZE):
73929         * m4/getpass.m4 (gl_FUNC_GETPASS):
73930         * m4/gettime.m4 (gl_GETTIME):
73931         * m4/getugroups.m4 (gl_GETUGROUPS):
73932         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
73933         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
73934         * m4/hard-locale.m4 (gl_HARD_LOCALE):
73935         * m4/hash.m4 (gl_HASH):
73936         * m4/idcache.m4 (gl_IDCACHE):
73937         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
73938         * m4/lchown.m4 (gl_FUNC_LCHOWN):
73939         * m4/long-options.m4 (gl_LONG_OPTIONS):
73940         * m4/lstat.m4 (gl_FUNC_LSTAT):
73941         * m4/md5.m4 (gl_MD5):
73942         * m4/memcasecmp.m4 (gl_MEMCASECMP):
73943         * m4/memcoll.m4 (gl_MEMCOLL):
73944         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
73945         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
73946         * m4/memxor.m4 (gl_MEMXOR):
73947         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
73948         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
73949         * m4/modechange.m4 (gl_MODECHANGE):
73950         * m4/mountlist.m4 (gl_MOUNTLIST):
73951         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
73952         * m4/openat.m4 (gl_FUNC_OPENAT):
73953         * m4/pathmax.m4 (gl_PATHMAX):
73954         * m4/physmem.m4 (gl_PHYSMEM):
73955         * m4/posixtm.m4 (gl_POSIXTM):
73956         * m4/posixver.m4 (gl_POSIXVER):
73957         * m4/quote.m4 (gl_QUOTE):
73958         * m4/quotearg.m4 (gl_QUOTEARG):
73959         * m4/readtokens.m4 (gl_READTOKENS):
73960         * m4/readutmp.m4 (gl_READUTMP):
73961         * m4/regex.m4 (gl_REGEX):
73962         * m4/safe-read.m4 (gl_SAFE_READ):
73963         * m4/safe-write.m4 (gl_SAFE_WRITE):
73964         * m4/same.m4 (gl_SAME):
73965         * m4/save-cwd.m4 (gl_SAVE_CWD):
73966         * m4/savedir.m4 (gl_SAVEDIR):
73967         * m4/settime.m4 (gl_SETTIME):
73968         * m4/sha1.m4 (gl_SHA1):
73969         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
73970         * m4/stat-macros.m4 (gl_STAT_MACROS):
73971         * m4/stat-time.m4 (gl_STAT_TIME):
73972         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
73973         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
73974         * m4/strdup.m4 (gl_FUNC_STRDUP):
73975         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
73976         * m4/strndup.m4 (gl_FUNC_STRNDUP):
73977         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
73978         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
73979         * m4/time_r.m4 (gl_TIME_R):
73980         * m4/timespec.m4 (gl_TIMESPEC):
73981         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
73982         * m4/unlinkdir.m4 (gl_UNLINKDIR):
73983         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
73984         * m4/userspec.m4 (gl_USERSPEC):
73985         * m4/utimecmp.m4 (gl_UTIMECMP):
73986         * m4/utimens.m4 (gl_UTIMENS):
73987         * m4/xalloc.m4 (gl_XALLOC):
73988         * m4/xgetcwd.m4 (gl_XGETCWD):
73989         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
73990         * m4/xreadlink.m4 (gl_XREADLINK):
73991         * m4/xstrtod.m4 (gl_XSTRTOD):
73992         * m4/yesno.m4 (gl_YESNO):
73993         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
73994         to get the necessary .h files and whatnot.
73995
73996 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
73997             Bruno Haible  <bruno@clisp.org>
73998
73999         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
74000         /bin/sh understanding of '!' conditional negation.
74001
74002 2006-08-21  Jim Meyering  <jim@meyering.net>
74003
74004         * modules/openat (Depends-on): Really alphabetize.
74005
74006         * modules/acl (Depends-on): Add error and quote.
74007
74008         * check-module (find_included_lib_files): Add at-func.c to the
74009         ok-to-include-more-than-once white list.
74010
74011         * modules/openat (Depends-on): Add lstat.  Alphabetize.
74012
74013 2006-08-21  Bruno Haible  <bruno@clisp.org>
74014
74015         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74016         Emit a pkgdata_DATA variable only if some snippets add contents to it.
74017         Reported by Martin Lambers <marlam@marlam.de>.
74018
74019 2006-08-21  Bruno Haible  <bruno@clisp.org>
74020
74021         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
74022         specify an installation location, don't emit a noinst_LIBRARIES or
74023         noinst_LTLIBRARIES assignment.
74024
74025 2006-08-21  Bruno Haible  <bruno@clisp.org>
74026
74027         BeOS portability.
74028         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
74029         BeOS has mbrtowc() but no <wctype.h>.
74030
74031 2006-08-21  Bruno Haible  <bruno@clisp.org>
74032
74033         BeOS portability.
74034         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
74035         exist.
74036
74037 2006-08-21  Bruno Haible  <bruno@clisp.org>
74038
74039         BeOS portability.
74040         * lib/mbchar.h: Include <wctype.h> only if it exists.
74041
74042 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74043
74044         Remove files that are no longer needed by their respective modules.
74045         * m4/obstack.m4: Remove.
74046         * m4/strerror_r.m4: Remove.
74047         * m4/uint32_t.m4: Remove.
74048         * m4/uintptr_t.m4: Remove.
74049         * m4/ullong_max.m4: Remove.
74050         * m4/xstrtoimax.m4: Remove.
74051         * m4/xstrtoumax.m4: Remove.
74052
74053         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
74054         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
74055         dependencies now capture this.
74056
74057         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
74058         Do not use AC_LIBSOURCES, since gnulib modules now do this.
74059         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
74060         * m4/human.m4 (gl_HUMAN): Likewise.
74061         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
74062         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
74063
74064         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
74065
74066         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
74067         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
74068         stdint.
74069         * m4/human.m4 (gl_HUMAN): Likewise.
74070         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
74071         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
74072         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
74073         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
74074         * m4/xstrtol (gl_XSTRTOL): Likewise.
74075
74076         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
74077         AC_TYPE_LONG_LONG_INT.
74078         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
74079         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
74080         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
74081         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
74082
74083         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
74084         on stdbool.
74085
74086         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
74087         (gl_PREREQ_XSTRTOUL): Remove.
74088
74089         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
74090
74091         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
74092         mode.
74093
74094 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74095
74096         Add and change modules to make it easier for coreutils to use
74097         gnulib-tool.
74098         * modules/backupfile (Files): Remove m4/d-ino.m4.
74099         (Depends-on): Add d-ino.
74100         * modules/cycle-check (Depends-on): Add stdint.
74101         (lib_SOURCES): Add cycle-check.h.
74102         * modules/d-ino: New module.
74103         * modules/d-type: New module.
74104         * modules/error (Files): Remove m4/strerror_r.m4.
74105         * modules/filemode (Files): Add m4/st_dm_mode.m4.
74106         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
74107         m4/inttypes_h.m4, m4/uintmax_t.m4.
74108         (Depends-on): Add stdint.
74109         (lib_SOURCES): Add fsusage.h.
74110         * modules/getcwd (Files): Remove d-ino.m4.
74111         (Depends-on): Add d-ino.
74112         * modules/getndelim2 (Depends-on): Add stdint.
74113         * modules/glob (Files): Remove m4/d-type.m4.
74114         (Depends-on): Add d-type.
74115         * modules/host-os: New module.
74116         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
74117         m4/inttypes_h.m4, m4/uintmax_t.m4.
74118         * Depends-on: Add stdint.
74119         (lib_SOURCES): Add human.h.
74120         * modules/inttostr (Files): Remove m4/intmax_t.m4,
74121         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
74122         m4/uintmax_t.m4, m4/ulonglong.m4.
74123         (Depends-on): Add stdint.
74124         (EXTRA_DIST): Add inttostr.h.
74125         * modules/lchmod: New module.
74126         * modules/link-follow: New module.
74127         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
74128         (Depends-on): Add lchmod.
74129         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
74130         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
74131         (Depends-on): Add stdint.
74132         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
74133         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
74134         (Depends-on): Add stdint.
74135         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
74136         * modules/perl: New module.
74137         * modules/regex (Depends-on): Add stdint.
74138         * modules/rmdir-errno: New module.
74139         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
74140         m4/intmax_t.m4.
74141         (Depends-on): Add stdint.
74142         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
74143         m4/uintmax_t.m4.
74144         (Depends-on): Add stdint.
74145         * modules/unlink-busy: New module.
74146         * modules/utimecmp (Depends-on): Add stdint.
74147         * modules/uptime: New module.
74148         * modules/winsz-ioctl: New module.
74149         * modules/winsz-termios: New module.
74150         * modules/xnanosleep (Depends-on): Add nanosleep.
74151         * modules/ullong_max: Remove.
74152         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
74153         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
74154         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
74155         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
74156         (Depends-on): Add inttypes.
74157         (lib_SOURCES): Add xstrtol.h.
74158         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
74159         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
74160         * MODULES.html.sh: Move 'assert' into the assert section.
74161         Move 'dummy' into the linking section.
74162         Remove ullong_max.
74163         Add section for compatibility checks for POSIX:2001 functions,
74164         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
74165         winsz-ioctl, and winsz-termios into it.
74166         Add lchmod.
74167         Add top-level Misc section and put host-os, perl, and uptime
74168         into it.
74169
74170 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74171
74172         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
74173         now assume the stdint module.  Do not include inttypes.h.
74174         * lib/fsusage.h: Likewise.
74175         * lib/getndelim2.c: Likewise.
74176         * lib/human.h: Likewise.
74177         * lib/inttostr.h: Likewise.
74178         * lib/obstack.c: Likewise.
74179         * lib/regex_internal.h: Likewise.
74180         * lib/tempname.c: Likewise.
74181         * lib/utimecmp.c: Likewise.
74182         * lib/xstrtol.h: Likewise.
74183
74184         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
74185
74186         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
74187         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
74188         * lib/xtime.h: Likewise.
74189
74190 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74191
74192         * modules/openat (Files): Add lib/fchmodat.c.
74193         Fixes problem reported by Jay Youngman.
74194
74195 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74196
74197         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
74198         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
74199
74200 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
74201             Bruno Haible  <bruno@clisp.org>
74202
74203         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
74204         and is a script that invokes bison. Tighten the code. Add comments.
74205
74206 2006-08-18  Jim Meyering  <jim@meyering.net>
74207
74208         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
74209         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
74210         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
74211         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
74212
74213 2006-08-18  Bruno Haible  <bruno@clisp.org>
74214
74215         * modules/bison-i18n: New file.
74216         * MODULES.html.sh (Internationalization functions): Add it.
74217
74218 2006-08-18  Bruno Haible  <bruno@clisp.org>
74219
74220         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
74221         sys/statvfs.h. When getmntinfo was found, check its declaration and
74222         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
74223
74224 2006-08-18  Bruno Haible  <bruno@clisp.org>
74225
74226         * m4/bison-i18n.m4: New file, from bison.
74227
74228 2006-08-18  Bruno Haible  <bruno@clisp.org>
74229
74230         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
74231         (ME_DUMMY): Treat "kernfs" as a dummy.
74232         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
74233
74234 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74235
74236         Update from coreutils.
74237
74238         2006-08-15  Jim Meyering  <jim@meyering.net>
74239
74240         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
74241
74242         2006-01-17  Jim Meyering  <jim@meyering.net>
74243
74244         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
74245
74246         2006-01-11  Jim Meyering  <jim@meyering.net>
74247
74248         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
74249         Check for the lchmod function.
74250
74251 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74252
74253         Update from coreutils.
74254
74255         * lib/__fpending.h: Add copyright notice.
74256         * lib/fprintftime.h: Likewise.
74257         * lib/savedir.c: Use (C) in copyright notice.
74258         * lib/savedir.h: Likewise.
74259
74260         2006-08-15  Jim Meyering  <jim@meyering.net>
74261
74262         * lib/at-func.c: New file, with the logic of all emulated at-functions.
74263         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
74264         in support of the EXPECTED_ERRNO macro.
74265         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
74266         definitions.  Instead, define the appropriate symbols and include
74267         "at-func.c".
74268         * lib/mkdirat.c (mkdirat): Likewise.
74269         * lib/fchmodat.c (fchmodat): Likewise.
74270         (ENOSYS): Remove definition.
74271         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
74272         it.  Don't include "unistd--.h" -- it wasn't ever used.
74273
74274         2006-01-17  Jim Meyering  <jim@meyering.net>
74275
74276         Rewrite fts.c not to change the current working directory,
74277         by using openat, fstatat, fdopendir, etc..
74278
74279         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
74280         (HAVE_OPENAT_SUPPORT): Define.
74281         [_LIBC] (fchdir): Don't undef or define; no longer used.
74282         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
74283         Now, this `function' always succeeds, and consumes its file descriptor
74284         parameter -- so callers must not close such FDs.  Update callers.
74285         (diropen_fd, opendirat, cwd_advance_fd): New functions.
74286         (diropen): Add parameter, SP.  Adjust all callers.
74287         Implement using diropen_fd, rather than open.
74288         (fts_open): Initialize new member, fts_cwd_fd.
74289         Remove fts_rft-setting code.
74290         (fts_close): Close fts_cwd_fd, if necessary.
74291         (__opendir2): Define in terms of opendir or opendirat,
74292         depending on whether the FST_NOCHDIR flag is set.
74293         (fts_build): Since fts_safe_changedir consumes its FD, and since
74294         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
74295         and close the dup'd file descriptor upon failure.
74296         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
74297         (fts_safe_changedir): Tweak semantics to reflect that this function
74298         now calls cwd_advance_fd and hence consumes its FD argument.
74299         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
74300         [struct FTS] (fts_rft): Remove now-unused member.
74301         [struct FTS] (fts_cycle.state): Improve comment.
74302
74303         * lib/openat.c (openat_needs_fchdir): New function.
74304         * lib/openat.h (openat_needs_fchdir): Declare it.
74305
74306 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
74307
74308         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
74309         Problem and fix reported by Pádraig Brady in
74310         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
74311
74312 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74313
74314         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
74315
74316 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74317
74318         * lib/memcoll.c (memcoll): Optimize for the common case where the
74319         arguments are bytewise equal.
74320
74321 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74322
74323         * doc/regexprops-generic.texi: Add a copyright notice.
74324
74325 2006-08-15  Bruno Haible  <bruno@clisp.org>
74326
74327         * modules/tmpdir (License): Change to LGPL.
74328
74329 2006-08-15  Bruno Haible  <bruno@clisp.org>
74330
74331         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
74332         module.
74333
74334 2006-08-14  Simon Josefsson  <jas@extundo.com>
74335
74336         * config/srclist.txt: Add gnupload.
74337
74338 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74339
74340         Change copyright notice from LGPL 2 to GPL 2, since that's the
74341         standard form used in the gnulib repository.
74342         * tests/test-lock.c: Likewise.
74343         * tests/test-stdint.c: Likewise.
74344         * tests/test-tls.c: Likewise.
74345
74346         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
74347         prelude-manager.  User shorter URLs for GNU projects, without '?'.
74348         Add copyright notice.
74349
74350         * check-module: Add copyright notice.  Output a copyright
74351         notice if "--version" is specified.
74352         * modules/COPYING: New file.
74353         * tests/test-getaddrinfo.c: Add copyright notice.
74354         * tests/test-verify.c: Likewise.
74355
74356 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74357
74358         Change copyright notice from LGPL 2 to GPL 2, since that's the
74359         standard form used in the gnulib repository.
74360         * lib/lock.c: LGPL -> GPL.
74361         * lib/lock.h: Likewise.
74362         * lib/strnlen1.c: Likewise.
74363         * lib/strnlen1.h: Likewise.
74364         * lib/tls.c: Likewise.
74365         * lib/tls.h: Likewise.
74366         * lib/tmpdir.c: Likewise.
74367
74368         * lib/TODO: Remove; this belongs only in coreutils.
74369
74370 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74371
74372         Add copyright notices to long-enough files that lack them, since
74373         otherwise the files aren't clearly free.  Use the same notice that
74374         getdate.texi already uses.
74375         * doc/alloca-opt.texi: Add copyright notice.
74376         * doc/alloca.texi: Likewise.
74377         * doc/ctime.texi: Likewise.
74378         * doc/functions.texi: Likewise.
74379         * doc/gcd.texi: Likewise.
74380         * doc/gnulib-tool.texi: Likewise.
74381         * doc/inet_ntoa.texi: Likewise.
74382         * doc/visibility.texi: Likewise.
74383
74384         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
74385         * doc/quote.texi: Add copyright notice.
74386
74387         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
74388         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
74389         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
74390         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
74391         is now obsolete, and give a pointer to the Sun list.
74392         Add copyright notice.
74393
74394 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74395
74396         * config/srclistvars.sh: Add copyright notice.
74397
74398 2006-08-14  Eric Blake  <ebb9@byu.net>
74399
74400         Import the following change from libc:
74401
74402         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
74403
74404         Upstream bug 2997.
74405         * lib/misc/error.c: Add space between program name and message if file
74406         name is missing.
74407
74408 2006-08-12  Karl Berry  <karl@gnu.org>
74409
74410         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
74411         remove, these originate in gnulib now.
74412
74413 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74414
74415         * doc/Makefile (standards.info standards.html standards.dvi):
74416         Also depend on make-stds.texi.
74417
74418 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74419
74420         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
74421         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
74422
74423         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
74424         in wchar_t.  Problem reported by Eric Blake.
74425
74426         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
74427         LEN is smaller than SIZE.  Suggested by Bruno Haible.
74428         Also, help the compiler to keep LEN in a register.
74429
74430 2006-08-11  Eric Blake  <ebb9@byu.net>
74431
74432         * users.txt: Sort.  Add tar.
74433
74434 2006-08-11  Bruno Haible  <bruno@clisp.org>
74435
74436         * users.txt: New file.
74437
74438 2006-08-11  Bruno Haible  <bruno@clisp.org>
74439
74440         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
74441         before <wchar.h>. Needed for OSF/1 and BSD/OS.
74442
74443 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
74444
74445         * modules/snprintf (Depends-on): Remove minmax.
74446         (Maintainer): Add self and Bruno.
74447
74448 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
74449
74450         * lib/.cppi-disable: Add snprintf.h, socket_.h.
74451         * lib/snprintf.c: Include <errno.h> and <limits.h>.
74452         (EOVERFLOW): Define if the system does not.
74453         Do not include "minmax.h"; it wasn't used.
74454         (snprintf): Don't assume size_t promotes to an unsigned type.
74455         Fix bug when generated string was too long for the buffer: the
74456         buffer's contents are supposed to be the initial prefix of the
74457         output.  Don't assume vasnprintf returns EOVERFLOW if the size
74458         exceeds INT_MAX; do the check ourselves.
74459
74460         Import the following changes from libc:
74461
74462         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
74463
74464         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
74465         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
74466         set wc to the byte which couldn't be converted.
74467         (re_string_reconstruct): Don't clear valid_raw_len before calling
74468         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
74469         tip_context using re_string_context_at.
74470
74471         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
74472
74473         * lib/posix/regex.h: g++ still cannot handled [restrict].
74474
74475         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
74476
74477         * lib/posix/regex.h: Remove special handling for VMS.
74478
74479 2006-08-10  Jim Meyering  <jim@meyering.net>
74480
74481         * modules/same-inode: New module.
74482         * modules/dev-ino: New module.
74483         * modules/cycle-check: Depend on these modules, rather than simply
74484         including their .h files.
74485         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
74486         required via m4/cycle-check.m4.
74487         * modules/same: Depend on new same-inode module, rather than
74488         including same-inode.h.
74489         * modules/chdir-safer: New file.
74490
74491         * modules/chown (Depends-on): Add stat-macros.
74492
74493 2006-08-10  Jim Meyering  <jim@meyering.net>
74494
74495         * m4/cycle-check.m4: New file.
74496         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
74497         * m4/dev-ino.m4, m4/same-inode.m4: New files.
74498
74499 2006-08-10  Eric Blake  <ebb9@byu.net>
74500
74501         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
74502         in from original proposal.
74503
74504 2006-08-10  Eric Blake  <ebb9@byu.net>
74505         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
74506
74507         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
74508         namespace.
74509
74510 2006-08-10  Bruno Haible  <bruno@clisp.org>
74511
74512         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
74513         as well.
74514
74515 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74516
74517         Sync from coreutils.
74518
74519         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
74520
74521         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
74522         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
74523
74524 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74525
74526         * modules/restrict: Remove; no longer needed now that we assume
74527         Autoconf 2.59 or later.
74528         * MODULES.html.sh: Remove 'restrict'.
74529         * modules/argp (Depends-on): Remove 'restrict'.
74530         * modules/base64 (Depends-on): Likewise.
74531         * modules/gc (Depends-on): Likewise.
74532         * modules/getaddrinfo (Depends-on): Likewise.
74533         * modules/glob (Depends-on): Likewise.
74534         * modules/inet_ntop (Depends-on): Likewise.
74535         * modules/inet_pton (Depends-on): Likewise.
74536         * modules/memxor (Depends-on): Likewise.
74537         * modules/regex (Depends-on): Likewise.
74538         * modules/strtok_r (Depends-on): Likewise.
74539         * modules/time_r (Depends-on): Likewise.
74540
74541 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74542
74543         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
74544         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
74545         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
74546         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
74547         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
74548         * m4/memxor.m4 (gl_MEMXOR): Likewise.
74549         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
74550         gl_C_RESTRICT replaced by AC_C_RESTRICT.
74551
74552         Merge from coreutils.
74553         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
74554         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
74555         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
74556         * m4/time_r.m4 (gl_TIME_R): Likewise.
74557
74558 2006-08-09  Karl Berry  <karl@gnu.org>
74559
74560         * config/srclist.txt: no more gettext-tools, per Bruno.
74561
74562 2006-08-08  Eric Blake  <ebb9@byu.net>
74563
74564         * modules/verror: New module.
74565         * MODULES.html.sh: Document it.
74566
74567 2006-08-08  Eric Blake  <ebb9@byu.net>
74568
74569         * lib/verror.h, lib/verror.c: New files.
74570
74571 2006-08-08  Eric Blake  <ebb9@byu.net>
74572
74573         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
74574         verror_at_line output complies with GNU Coding Standards even when
74575         file is NULL.
74576
74577 2006-08-07  Bruno Haible  <bruno@clisp.org>
74578
74579         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
74580         versions of AIX.
74581         Reported by Ralf Wildenhues.
74582
74583 2006-08-07  Bruno Haible  <bruno@clisp.org>
74584
74585         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
74586         in an AC_DEFUN. Needed so that the autoconf snippets can use
74587         AC_REQUIRE.
74588
74589 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74590
74591         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74592         Initialize pkgdata_DATA.
74593         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
74594         overriding it.
74595
74596 2006-08-06  Eric Blake  <ebb9@byu.net>
74597
74598         * lib/error.h: Fold in some upstream changes from glibc.
74599         * lib/error.c: Likewise.
74600
74601 2006-08-04  Bruno Haible  <bruno@clisp.org>
74602
74603         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74604         Make the mostlyclean-local rule depend on mostlyclean-generic.
74605         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
74606
74607 2006-07-31  Bruno Haible  <bruno@clisp.org>
74608
74609         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
74610         <stdlib.h>, <string.h>.
74611
74612 2006-07-30  Bruno Haible  <bruno@clisp.org>
74613
74614         * modules/readlink (License): Change to LGPL.
74615
74616 2006-07-30  Bruno Haible  <bruno@clisp.org>
74617
74618         * modules/javaversion (Makefile.am): Distribute javaversion.java and
74619         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
74620         set PKGDATADIR to point to it.
74621
74622 2006-07-30  Bruno Haible  <bruno@clisp.org>
74623
74624         * modules/csharpexec (configure.ac): Comment out macro invocation.
74625         * modules/javaexec (configure.ac): Likewise.
74626         * modules/javacomp-script (configure.ac): Likewise.
74627
74628         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
74629
74630 2006-07-30  Bruno Haible  <bruno@clisp.org>
74631
74632         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
74633         linked-list.
74634
74635 2006-07-30  Bruno Haible  <bruno@clisp.org>
74636
74637         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
74638
74639 2006-07-30  Bruno Haible  <bruno@clisp.org>
74640
74641         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74642         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
74643         get removed.
74644
74645 2006-07-29  Bruno Haible  <bruno@clisp.org>
74646
74647         Make it possible for gnulib-tool to work with locally modified or
74648         augmented gnulib repositories.
74649         * gnulib-tool (func_usage): Document --local-dir option.
74650         (local_gnulib_dir): New variable.
74651         Handle --local-dir option.
74652         (func_lookup_file): New function.
74653         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
74654         (func_get_description, func_get_filelist, func_get_description,
74655         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
74656         func_get_automake_snippet, func_get_include_directive,
74657         func_get_license, func_get_maintainer): Use func_lookup_file.
74658         (func_import, func_create_testdir): Use func_lookup_file.
74659
74660 2006-07-29  Bruno Haible  <bruno@clisp.org>
74661
74662         * modules/setenv (Depends-on): Add unistd.
74663
74664 2006-07-29  Bruno Haible  <bruno@clisp.org>
74665
74666         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
74667
74668 2006-07-29  Bruno Haible  <bruno@clisp.org>
74669
74670         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
74671
74672 2006-07-29  Bruno Haible  <bruno@clisp.org>
74673
74674         * gnulib-tool (import, update): If there is no Makefile.am, look at
74675         aclocal.m4, instead of bailing out.
74676
74677 2006-07-29  Bruno Haible  <bruno@clisp.org>
74678
74679         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
74680         Categorize the options by when they are useful.
74681
74682 2006-07-29  Bruno Haible  <bruno@clisp.org>
74683
74684         * gnulib-tool (func_usage): Document option --no-libtool.
74685         Handle option --no-libtool.
74686         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
74687         for changed semantics of $libtool variable.
74688         (func_import): Likewise. If libtool is not used, show this through
74689         an option --no-libtool.
74690         (func_create_testdir): Update.
74691
74692 2006-07-29  Bruno Haible  <bruno@clisp.org>
74693
74694         * gnulib-tool (func_import): Extend error message about missing
74695         --doc-base.
74696
74697 2006-07-29  Bruno Haible  <bruno@clisp.org>
74698
74699         * gnulib-tool (func_import): Don't create the $docbase directory if
74700         there is no file to store there.
74701
74702 2006-07-29  Bruno Haible  <bruno@clisp.org>
74703
74704         * gnulib-tool (autoconf_minversion): If a --dir option is given and
74705         relevant, look for configure.ac there, not in the current directory.
74706         Also use a simple search for AC_PREREQ, not "autoconf --trace".
74707
74708 2006-07-29  Bruno Haible  <bruno@clisp.org>
74709
74710         * gnulib-tool (SORT): New variable.
74711         (func_usage): Undocument --assume-autoconf option.
74712         Remove --assume-autoconf option handling.
74713         (autoconf_minversion): Determine from the contents of configure.ac.
74714         (func_import): Remove autoconf_minversion handling.
74715         Suggested by Eric Blake.
74716
74717 2006-07-29  Bruno Haible  <bruno@clisp.org>
74718
74719         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
74720
74721 2006-07-29  Bruno Haible  <bruno@clisp.org>
74722
74723         * config/srclist.txt (*setenv.[ch]): Remove rules.
74724
74725 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74726
74727         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
74728
74729 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74730
74731         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
74732         arpa/inet.h.
74733
74734 2006-07-28  Simon Josefsson  <jas@extundo.com>
74735
74736         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
74737         * modules/inet_pton (Depends-on): Likewise.
74738
74739 2006-07-28  Simon Josefsson  <jas@extundo.com>
74740
74741         * m4/netinet_in_h.m4: New file.
74742
74743 2006-07-28  Simon Josefsson  <jas@extundo.com>
74744
74745         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
74746         #include's.
74747
74748 2006-07-28  Simon Josefsson  <jas@extundo.com>
74749
74750         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
74751         #include's.
74752
74753 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
74754
74755         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
74756         setgid on directories only if they set these bits.
74757         * lib/modechange.h: Remove obsolete comment about masks.
74758
74759 2006-07-28  Eric Blake  <ebb9@byu.net>
74760
74761         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
74762         macro expansion.
74763
74764 2006-07-28  Bruno Haible  <bruno@clisp.org>
74765
74766         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
74767
74768 2006-07-28  Bruno Haible  <bruno@clisp.org>
74769
74770         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
74771
74772 2006-07-28  Bruno Haible  <bruno@clisp.org>
74773
74774         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
74775         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
74776         Define fallbacks.
74777         Avoids link error on FreeBSD 4.x.
74778         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
74779
74780         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
74781         encoding.
74782         * lib/mbswidth.c (iswcntrl): Likewise.
74783
74784 2006-07-27  Bruno Haible  <bruno@clisp.org>
74785
74786         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
74787         test.
74788
74789 2006-07-27  Bruno Haible  <bruno@clisp.org>
74790
74791         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
74792         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
74793         defined.
74794
74795 2006-07-26  Eric Blake  <ebb9@byu.net>
74796
74797         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
74798
74799 2006-07-26  Eric Blake  <ebb9@byu.net>
74800
74801         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
74802         like mingw that lack mkstemp.
74803         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
74804         avoid compilation warning on mingw.
74805
74806 2006-07-26  Bruno Haible  <bruno@clisp.org>
74807
74808         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
74809         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
74810         INT_FAST*_MIN, INTPTR_MIN.
74811
74812 2006-07-25  Bruno Haible  <bruno@clisp.org>
74813
74814         * modules/version-etc (Depends-on): Add stdarg.
74815
74816 2006-07-25  Bruno Haible  <bruno@clisp.org>
74817
74818         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
74819         complex commands.
74820
74821 2006-07-25  Bruno Haible  <bruno@clisp.org>
74822
74823         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
74824         defined in <stdarg.h> or config.h.
74825
74826 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
74827
74828         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
74829         (gl_STDIO_SAFER): Remove.
74830
74831 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
74832
74833         * MODULES.html.sh (File stream based Input/Output):
74834         Add fopen-safer, tmpfile-safer; remove stdio-safer.
74835         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
74836         * modules/fopen-safer, modules/tmpfile-safer: New files.
74837         * modules/stdio-safer: Remove.
74838
74839 2006-07-24  Bruno Haible  <bruno@clisp.org>
74840
74841         * modules/tmpdir: New file.
74842         * MODULES.html.sh (File system functions): Add it.
74843
74844 2006-07-24  Bruno Haible  <bruno@clisp.org>
74845
74846         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
74847         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
74848
74849 2006-07-24  Bruno Haible  <bruno@clisp.org>
74850
74851         * modules/clean-temp: New file.
74852
74853 2006-07-24  Bruno Haible  <bruno@clisp.org>
74854
74855         * m4/tmpdir.m4: New file, from GNU gettext.
74856
74857 2006-07-24  Bruno Haible  <bruno@clisp.org>
74858
74859         * lib/tmpdir.h: New file, from GNU gettext.
74860         * lib/tmpdir.c: New file, from GNU gettext.
74861
74862 2006-07-24  Bruno Haible  <bruno@clisp.org>
74863
74864         * lib/clean-temp.h: New file, from GNU gettext.
74865         * lib/clean-temp.c: New file, from GNU gettext.
74866
74867 2006-07-23  Eric Blake  <ebb9@byu.net>
74868
74869         * modules/stdio-safer (Files): Add tmpfile-safer.c.
74870         (Depends-on): Add binary-io.
74871
74872 2006-07-23  Eric Blake  <ebb9@byu.net>
74873
74874         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
74875
74876 2006-07-23  Eric Blake  <ebb9@byu.net>
74877
74878         * lib/tmpfile-safer.c: New file.
74879         * lib/stdio-safer.h (fopen_safer): Add prototype.
74880         * lib/stdio--.h (tmpfile): Make safer.
74881
74882 2006-07-23  Bruno Haible  <bruno@clisp.org>
74883
74884         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
74885         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
74886         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
74887         gl_linked_remove_at): Use it.
74888
74889 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74890         and Simon Josefsson <jas@extundo.com>
74891
74892         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
74893
74894         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
74895
74896 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
74897
74898         * modules/close-stream: New file.
74899         * modules/closeout (Description): Make it clear that it exits
74900         with a diagnostic on error.
74901         (Depends-on): Add close-stream.  Remove fpending, stdbool.
74902         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
74903
74904 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
74905
74906         * m4/close-stream.m4: New file.
74907
74908 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
74909
74910         * lib/close-stream.c, lib/close-stream.h: New files.
74911
74912 2006-07-22  Bruno Haible  <bruno@clisp.org>
74913
74914         Merge from GNU gettext 0.15.
74915
74916         2006-05-01  Bruno Haible  <bruno@clisp.org>
74917
74918                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
74919
74920         2006-07-22  Bruno Haible  <bruno@clisp.org>
74921
74922                 * modules/javaversion: New file.
74923                 * MODULES.html.sh (Java): Add javaversion.
74924
74925         2006-03-12  Bruno Haible  <bruno@clisp.org>
74926
74927                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
74928
74929         2005-12-04  Bruno Haible  <bruno@clisp.org>
74930
74931                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
74932                 (untested).
74933
74934         2006-06-21  Bruno Haible  <bruno@clisp.org>
74935
74936                 Avoid warnings from recent versions of mcs.
74937                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
74938                 -o, -L, -r any more. Use options documented since mcs-1.0
74939                 instead. Similarly for -g.
74940
74941         2005-12-04  Bruno Haible  <bruno@clisp.org>
74942
74943                 * build-aux/csharpcomp.sh.in: Suffix for resources is
74944                 .resources, not .resource.
74945
74946         2005-07-09  Bruno Haible  <bruno@clisp.org>
74947
74948                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
74949                 add a .dll suffix.
74950                 Reported by Mark Junker <mjscod@gmx.de>.
74951
74952         2006-07-22  Bruno Haible  <bruno@clisp.org>
74953
74954                 * modules/gettext: Upgrade to gettext-0.15.
74955                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
74956                 m4/visibility.m4.
74957                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
74958
74959 2006-07-22  Bruno Haible  <bruno@clisp.org>
74960
74961         Merge from GNU gettext 0.15.
74962
74963         2006-03-25  Bruno Haible  <bruno@clisp.org>
74964
74965                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
74966
74967         2006-07-21  Bruno Haible  <bruno@clisp.org>
74968
74969                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
74970                 "1.1".
74971
74972         2006-05-09  Bruno Haible  <bruno@clisp.org>
74973
74974                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
74975                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
74976                 for the conftestver execution.
74977
74978         2006-05-01  Bruno Haible  <bruno@clisp.org>
74979
74980                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
74981                 optional target-version argument. Verify that the compiler
74982                 groks source of the specified source-version, or add -source
74983                 option as necessary. Verify that the compiler produces
74984                 bytecode in the specified target-version, or add -target and
74985                 -source options as necessary. Make the result of the test
74986                 available as variable CONF_JAVAC. Also log error output in
74987                 config.log.
74988
74989         2006-03-11  Bruno Haible  <bruno@clisp.org>
74990
74991                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
74992
74993         2006-05-09  Bruno Haible  <bruno@clisp.org>
74994
74995                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
74996                 CLASSPATH_SEPARATOR to a semicolon.
74997
74998         2006-03-12  Bruno Haible  <bruno@clisp.org>
74999
75000                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
75001                 available as variable CONF_JAVA, for subsequent autoconf
75002                 tests. Also log error output in config.log.
75003
75004         2006-07-19  Bruno Haible  <bruno@clisp.org>
75005
75006                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
75007                 that getline works on glibc2 systems. Needed to avoid trouble
75008                 in relocatable.c.
75009                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
75010
75011         2005-12-04  Bruno Haible  <bruno@clisp.org>
75012
75013                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
75014                 launcher (untested).
75015
75016         2005-12-04  Bruno Haible  <bruno@clisp.org>
75017
75018                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
75019
75020         2006-07-22  Bruno Haible  <bruno@clisp.org>
75021
75022                 * gettext.m4: Update from GNU gettext-0.15.
75023                 * nls.m4: Likewise.
75024                 * po.m4: Likewise.
75025                 * inttypes-pri.m4: Likewise.
75026                 * inttypes-h.m4: Renamed from inttypes.m4.
75027                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
75028
75029 2006-07-22  Bruno Haible  <bruno@clisp.org>
75030
75031         Merge from GNU gettext 0.15.
75032
75033         2005-07-05  Bruno Haible  <bruno@clisp.org>
75034
75035                 * printf-args.c (printf_fetchargs): Work around broken
75036                 definition of wint_t on mingw.
75037
75038         2005-02-12  Bruno Haible  <bruno@clisp.org>
75039
75040                 * xallocsa.h: Add extern "C" for C++.
75041
75042         2006-05-17  Bruno Haible  <bruno@clisp.org>
75043
75044                 Cygwin portability.
75045                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
75046
75047         2006-04-30  Bruno Haible  <bruno@clisp.org>
75048
75049                 * progreloc.c: Include <mach-o/dyld.h> if available.
75050                 (find_executable): Use _NSGetExecutablePath when possible.
75051
75052         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
75053
75054                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
75055                 function.
75056
75057         2005-12-29  Bruno Haible  <bruno@clisp.org>
75058
75059                 * progreloc.c (set_program_name_and_installdir): Fix
75060                 compilation error.
75061
75062         2005-12-04  Bruno Haible  <bruno@clisp.org>
75063
75064                 Cygwin portability.
75065                 * progreloc.c: Include <windows.h> also on Cygwin.
75066                 (find_executable): Add support for Cygwin.
75067                 (set_program_name_and_installdir): Handle also platforms with
75068                 nonempty EXEEXT.
75069
75070         2006-07-11  Bruno Haible  <bruno@clisp.org>
75071
75072                 * javacomp.c: Fix a comment.
75073                 Reported by Jim Meyering.
75074
75075         2006-04-30  Bruno Haible  <bruno@clisp.org>
75076
75077                 * javacomp.h (compile_java_class): Add source_version,
75078                 target_version arguments.
75079                 * javacomp.c: Rewritten to choose only a compiler that
75080                 respects the specified source_version and target_version.
75081
75082         2006-06-27  Bruno Haible  <bruno@clisp.org>
75083
75084                 Assume correct S_ISDIR macro.
75085                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
75086
75087         2006-07-22  Bruno Haible  <bruno@clisp.org>
75088
75089                 * javaversion.h: New file, from GNU gettext.
75090                 * javaversion.c: New file, from GNU gettext.
75091                 * javaversion.java: New file, from GNU gettext.
75092                 * javaversion.class: New file, from GNU gettext.
75093
75094         2006-05-17  Bruno Haible  <bruno@clisp.org>
75095
75096                 Cygwin portability.
75097                 * javaexec.c (execute_java_class): Test for jview program
75098                 also on Cygwin.
75099
75100         2006-04-09  Bruno Haible  <bruno@clisp.org>
75101
75102                 * fatal-signal.c: Don't include string.h.
75103                 (at_fatal_signal): Use a copying loop instead of memcpy.
75104
75105         2005-12-04  Bruno Haible  <bruno@clisp.org>
75106
75107                 * csharpexec.c: Add support for 'clix' launcher (untested).
75108                 (execute_csharp_using_sscli): New function.
75109                 (execute_csharp_program): Call it.
75110
75111         2006-06-21  Bruno Haible  <bruno@clisp.org>
75112
75113                 Avoid warnings from recent versions of mcs.
75114                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
75115                 -o, -L, -r any more. Use options documented since mcs-1.0
75116                 instead. Similarly for -g.
75117
75118         2005-07-09  Bruno Haible  <bruno@clisp.org>
75119
75120                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
75121                 add a .dll suffix.
75122                 Reported by Mark Junker <mjscod@gmx.de>.
75123
75124         2006-06-17  Bruno Haible  <bruno@clisp.org>
75125
75126                 * config.charset: Update for NetBSD 3.0.
75127
75128         2006-05-17  Bruno Haible  <bruno@clisp.org>
75129
75130                 Cygwin portability.
75131                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
75132
75133         2006-05-16  Bruno Haible  <bruno@clisp.org>
75134
75135                 * localcharset.c [CYGWIN]: Include <windows.h>.
75136                 (get_charset_aliases): For Cygwin, return the same CPxxx
75137                 aliases list as under WIN32.
75138                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
75139                 the environment variables. Fall back to GetACP().
75140
75141         2006-04-05  Bruno Haible  <bruno@clisp.org>
75142
75143                 * config.charset: Update Juan Manuel Guerrero's address.
75144
75145         2005-02-12  Bruno Haible  <bruno@clisp.org>
75146
75147                 * allocsa.h: Add extern "C" for C++.
75148
75149         2005-02-10  Bruno Haible  <bruno@clisp.org>
75150
75151                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
75152                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
75153
75154         2006-07-22  Bruno Haible  <bruno@clisp.org>
75155
75156                 * gettext.h: Update to GNU gettext-0.15.
75157
75158 2006-07-22  Bruno Haible  <bruno@clisp.org>
75159
75160         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
75161         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
75162         lib-prefix.m4, longdouble.m4, ssize_t.m4.
75163
75164 2006-07-21  Eric Blake  <ebb9@byu.net>
75165
75166         * modules/stdlib-safer: New file.
75167         * MODULES.html.sh (File stream based Input/Output): Add
75168         stdlib-safer.
75169
75170 2006-07-21  Eric Blake  <ebb9@byu.net>
75171
75172         * lib/stdlib-safer.h: New file from coreutils, required by
75173         stdlib--.h.
75174
75175 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
75176
75177         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
75178
75179 2006-07-20  Bruno Haible  <bruno@clisp.org>
75180
75181         * gnulib-tool: Recognize new option --assume-autoconf.
75182         (autoconf_minversion): New variable.
75183         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
75184
75185 2006-07-20  Bruno Haible  <bruno@clisp.org>
75186
75187         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
75188
75189 2006-07-19  Derek R. Price  <derek@ximbiot.com>
75190
75191         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
75192         Reindent and repaginate.
75193
75194 2006-07-19  Derek Price  <derek@ximbiot.com>
75195
75196         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
75197         Correct grammar.
75198
75199 2006-07-17  Bruno Haible  <bruno@clisp.org>
75200
75201         * modules/list: New file.
75202         * modules/array-list: New file.
75203         * modules/carray-list, modules/carray-list-tests: New files.
75204         * modules/linked-list, modules/linked-list-tests: New files.
75205         * modules/avltree-list, modules/avltree-list-tests: New files.
75206         * modules/rbtree-list, modules/rbtree-list-tests: New files.
75207         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
75208         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
75209         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
75210         * modules/oset: New file.
75211         * modules/array-oset: New file.
75212         * modules/avltree-oset, modules/avltree-oset-tests: New files.
75213         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
75214         * tests/test-carray_list.c: New file.
75215         * tests/test-linked_list.c: New file.
75216         * tests/test-avltree_list.c: New file.
75217         * tests/test-rbtree_list.c: New file.
75218         * tests/test-linkedhash_list.c: New file.
75219         * tests/test-avltreehash_list.c: New file.
75220         * tests/test-rbtreehash_list.c: New file.
75221         * tests/test-avltree_oset.c: New file.
75222         * tests/test-rbtree_oset.c: New file.
75223         * MODULES.html.sh (Container data structures): New section.
75224
75225 2006-07-17  Bruno Haible  <bruno@clisp.org>
75226
75227         * m4/gl_list.m4: New file.
75228
75229 2006-07-17  Bruno Haible  <bruno@clisp.org>
75230
75231         * lib/gl_list.h: New file.
75232         * lib/gl_list.c: New file.
75233         * lib/gl_array_list.h: New file.
75234         * lib/gl_array_list.c: New file.
75235         * lib/gl_carray_list.h: New file.
75236         * lib/gl_carray_list.c: New file.
75237         * lib/gl_linked_list.h: New file.
75238         * lib/gl_linked_list.c: New file.
75239         * lib/gl_anylinked_list1.h: New file.
75240         * lib/gl_anylinked_list2.h: New file.
75241         * lib/gl_avltree_list.h: New file.
75242         * lib/gl_avltree_list.c: New file.
75243         * lib/gl_anyavltree_list1.h: New file.
75244         * lib/gl_anyavltree_list2.h: New file.
75245         * lib/gl_rbtree_list.h: New file.
75246         * lib/gl_rbtree_list.c: New file.
75247         * lib/gl_anyrbtree_list1.h: New file.
75248         * lib/gl_anyrbtree_list2.h: New file.
75249         * lib/gl_anytree_list1.h: New file.
75250         * lib/gl_anytree_list2.h: New file.
75251         * lib/gl_linkedhash_list.h: New file.
75252         * lib/gl_linkedhash_list.c: New file.
75253         * lib/gl_anyhash_list1.h: New file.
75254         * lib/gl_anyhash_list2.h: New file.
75255         * lib/gl_avltreehash_list.h: New file.
75256         * lib/gl_avltreehash_list.c: New file.
75257         * lib/gl_rbtreehash_list.h: New file.
75258         * lib/gl_rbtreehash_list.c: New file.
75259         * lib/gl_anytreehash_list1.h: New file.
75260         * lib/gl_anytreehash_list2.h: New file.
75261
75262         * lib/gl_oset.h: New file.
75263         * lib/gl_oset.c: New file.
75264         * lib/gl_array_oset.h: New file.
75265         * lib/gl_array_oset.c: New file.
75266         * lib/gl_avltree_oset.h: New file.
75267         * lib/gl_avltree_oset.c: New file.
75268         * lib/gl_rbtree_oset.h: New file.
75269         * lib/gl_rbtree_oset.c: New file.
75270         * lib/gl_anytree_oset.h: New file.
75271
75272 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75273
75274         * m4/mkancesdirs.m4: New file.
75275         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
75276         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
75277         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
75278         it.
75279
75280 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75281
75282         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
75283         * lib/mkancesdirs.h: New files.
75284         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
75285         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
75286         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
75287         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
75288         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
75289         callers changed.  Revamp internals significantly, by not
75290         attempting to create directories that are temporarily more
75291         permissive than the final results.  Do not attempt to use
75292         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
75293         This removes some race conditions, fixes some bugs, and simplifies
75294         things.  Use new dirchownmod function to do owner and mode changes.
75295         * lib/mkdir-p.h: Likewise.
75296         * lib/modechange.c (octal_to_mode): New function.
75297         (struct mode_change): New member mentioned.
75298         (make_node_op_equals): New arg mentioned.  All callers changed.
75299         (mode_compile): Keep track of which mode bits the user has explicitly
75300         mentioned.
75301         (mode_adjust): New arg DIR, so that we implement the X op correctly.
75302         New arg PMODE_BITS, to keep track of which mode bits the user
75303         mentioned; it treats S_ISUID and S_ISGID speciall.
75304         All callers changed.
75305         * lib/modechange.h: Likewise.
75306
75307 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75308
75309         * MODULES.html.sh: Add mkancestors.
75310         * modules/mkancesdirs: New module.
75311         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
75312         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
75313         The chdir-safer and afs files are now orphans; I'll remove them
75314         unless someone speaks up.
75315         Add lib/dirchownmod.c, lib/dirchownmod.h.
75316         (Depends-on): Remove alloca, chown, save-cwd, dirname.
75317         Add lchown, mkancesdirs.
75318         (Maintainer): Add self.
75319
75320 2006-07-15  Karl Berry  <karl@gnu.org>
75321
75322         * gnulib-tool: help message wording/arrangement.
75323
75324 2006-07-14  Simon Josefsson  <jas@extundo.com>
75325
75326         * doc/gnulib.texi (Libtool and Windows): New section.
75327
75328 2006-07-12  Simon Josefsson  <jas@extundo.com>
75329
75330         * modules/gendocs (License): Fix license, approved by Karl.
75331
75332 2006-07-12  Eric Blake  <ebb9@byu.net>
75333
75334         * MODULES.html.sh: Add gendocs.
75335
75336 2006-07-11  Eric Blake  <ebb9@byu.net>
75337
75338         * modules/fdl: New module, to install doc/fdl.texi.
75339         * MODULES.html.sh: Add new section for documentation modules.
75340         * gnulib-tool: Avoid space-tab.
75341         (--doc-base): New option, to manage files from doc.
75342
75343 2006-07-11  Eric Blake  <ebb9@byu.net>
75344
75345         * m4/absolute-header.m4: Fix comments to match recent change.
75346
75347 2006-07-11  Eric Blake  <ebb9@byu.net>
75348
75349         * gnulib-tool: List --doc-base before --tests-base.
75350
75351 2006-07-11  Derek R. Price  <derek@ximbiot.com>
75352
75353         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
75354
75355 2006-07-11  Bruno Haible  <bruno@clisp.org>
75356
75357         * README: Mention where to put documentation.
75358
75359 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75360
75361         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
75362
75363 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
75364
75365         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
75366         to stdint.m4.
75367
75368 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
75369
75370         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
75371         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
75372         "no/such/file/stdint.h" when there is no such file, so that
75373         the resulting C code can be parsed by dodgy compilers.
75374         Problems reported by Bob Proulx.
75375
75376 2006-07-10  Derek R. Price  <derek@ximbiot.com>
75377
75378         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
75379         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
75380         macros into the GNU _D_EXACT_NAMLEN.
75381         * lib/savedir.c:  Likewise.
75382         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
75383
75384 2006-07-10  Derek R. Price  <derek@ximbiot.com>
75385         and Paul Eggert  <eggert@cs.ucla.edu>
75386
75387         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
75388         * m4/savedir.m4:
75389         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
75390         macros into the GNU _D_EXACT_NAMLEN.
75391
75392 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75393
75394         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
75395         around the absolute name, to work around a problem with the HP-UX
75396         11.23 native C compiler, reported by Bob Proulx.
75397
75398 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75399
75400         * doc/maintain.texi, make-stds.texi: Sync from
75401         <http://savannah.gnu.org/projects/gnustandards>.
75402
75403 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75404
75405         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
75406
75407 2006-07-09  Jim Meyering  <jim@meyering.net>
75408
75409         * m4/glob.m4: Remove a doubled word in a comment.
75410
75411 2006-07-09  Jim Meyering  <jim@meyering.net>
75412
75413         * lib/argp-pv.c: Remove a doubled word in a comment.
75414         * lib/check-version.c (check_version): Likewise.
75415         * lib/javacomp.c (compile_java_class): Likewise.
75416
75417 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
75418
75419         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
75420         for the benefit of people using Autoconf 2.60.  If you want to
75421         support older Autoconf versions you can copy m4/onceonly_2_57.m4
75422         (or m4/onceonly.m4, if pre-2.57) manually.
75423
75424 2006-07-08  Jim Meyering  <jim@meyering.net>
75425
75426         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
75427         comment.
75428         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
75429         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
75430         comment.
75431
75432 2006-07-08  Jim Meyering  <jim@meyering.net>
75433
75434         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
75435
75436 2006-07-07  Simon Josefsson  <jas@extundo.com>
75437
75438         * tests/test-crc.c: Change expected crc value, the test vector
75439         were probably computed using the old broken crc.c?
75440
75441 2006-07-06  Simon Josefsson  <jas@extundo.com>
75442
75443         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
75444         now the canonical place for the M4 file).
75445
75446         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
75447         from the sys_socket dependency now.
75448
75449         * modules/inet_pton (Files): Ditto.
75450
75451         * modules/inet_ntop (Files): Ditto.
75452
75453 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75454
75455         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
75456         not gl_PREREQ_GETUSERSHELL.
75457
75458 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75459
75460         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
75461         with only one argument, for Autoconf 2.60.
75462         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
75463         expand to nothing, so add a shell command to avoid syntax error.
75464         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
75465
75466 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75467
75468         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
75469
75470 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75471
75472         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
75473         no longer needed.  Check for isblank decl.
75474         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
75475         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
75476         of existence.
75477
75478 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75479
75480         * lib/getloadavg.c: Use __VMS, not VMS.
75481         * lib/getopt.c: Likewise.
75482         * lib/getpagesize.h: Likewise.
75483         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
75484         and probably does not work.
75485
75486 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75487
75488         * lib/.cppi-disable: Add wcwidth.
75489         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
75490         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
75491         (ISGRAPH): Remove.  All uses changed to isgraph.
75492         (FOLD) [!defined _LIBC]: Remove special case.
75493         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
75494         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
75495         HAVE_ISBLANK.
75496         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
75497         case.
75498
75499 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
75500
75501         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
75502         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
75503         brackets.  Other minor changes to suppress some compiler
75504         warnings.
75505
75506 2006-07-06  Derek R. Price  <derek@ximbiot.com>
75507         and Paul Eggert  <eggert@cs.ucla.edu>
75508
75509         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
75510         of invoking obsolescent AC_HEADER_DIRENT macro.
75511         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
75512         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
75513         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
75514         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
75515         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
75516         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
75517         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
75518         * m4/readdir.m4: Remove; no longer needed.
75519
75520 2006-07-06  Derek R. Price  <derek@ximbiot.com>
75521         and Paul Eggert  <eggert@cs.ucla.edu>
75522
75523         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
75524         Don't worry about this obsolete case any more.
75525         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
75526         directories.
75527         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
75528         worry about this obsolete case any more.
75529         * lib/fts.c: Likewise.
75530         * lib/getcwd.c: Likewise.
75531         * lib/glob.h: Likewise.
75532         * lib/savedir.c: Likewise.
75533
75534 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
75535
75536         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
75537         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
75538         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
75539         needed.
75540         All uses removed.
75541         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
75542         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
75543         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
75544         needed.
75545         * m4/getdate.m4 (gl_GETDATE): Likewise.
75546         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
75547         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
75548         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
75549         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
75550         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
75551         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
75552         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
75553         needed.
75554
75555 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
75556
75557         * lib/memcasecmp.c: Include <limits.h>.
75558         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
75559         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
75560         Don't assume isdigit succeeds only on '0' through '9'.
75561
75562 2006-07-05  Eric Blake  <ebb9@byu.net>
75563
75564         * modules/getaddrinfo (Depends-on): Add snprintf.
75565
75566 2006-07-05  Eric Blake  <ebb9@byu.net>
75567
75568         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
75569         to avoid 'header present but could not be compiled' on cygwin.
75570
75571 2006-07-05  Eric Blake  <ebb9@byu.net>
75572
75573         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
75574         missing from netdb.h.
75575         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
75576
75577 2006-07-05  Derek R. Price  <derek@ximbiot.com>
75578
75579         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
75580         no longer needed.
75581         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
75582         * m4/getdate.m4 (gl_GETDATE): Likewise.
75583         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
75584         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
75585         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
75586         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
75587         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
75588
75589 2006-07-05  Derek R. Price  <derek@ximbiot.com>
75590
75591         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
75592         All uses of is_space replaced by isspace.
75593         * lib/exit.h: Don't talk about STDC_HEADERS.
75594         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
75595         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
75596         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
75597         replaced by isprint etc.
75598         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
75599         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
75600         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
75601         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
75602         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
75603         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
75604
75605 2006-07-05  Bruno Haible  <bruno@clisp.org>
75606
75607         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
75608         the function exists, before testing against AIX.
75609         Reported by Martin Lambers <marlam@marlam.de>.
75610
75611 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
75612
75613         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
75614         From Mark D. Baushke.
75615
75616 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
75617
75618         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
75619         to the absolute name, not just one, to bypass Sun C 5.8's
75620         "warning: #include of /usr/include/... may be non-portable".
75621
75622 2006-07-04  Eric Blake  <ebb9@byu.net>
75623
75624         * modules/dirname-tests: New test module.
75625         * tests/test-dirname.c: New file, replacing dirname.c
75626         TEST_DIRNAME section that was recently deleted.
75627
75628 2006-07-04  Bruno Haible  <bruno@clisp.org>
75629
75630         Assume ANSI C header files and <ctype.h> functions.
75631         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
75632         (mbsnwidth): Use isprint, iscntrl instead.
75633
75634 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75635
75636         Merge from coreutils.
75637         * MODULES.html.sh: Add xstrtold.
75638         * modules/xstrtold: New file.
75639         * modules/cycle-check (Files): Add lib/same-inode.h.
75640         * modules/dirname (Files): Add m4/double-slash-root.m4.
75641         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
75642         * modules/mkdir-p (Files): Add lib/same-inode.h.
75643         * modules/same (Files): Add lib/same-inode.h.
75644
75645 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75646
75647         * m4/absolute-header.m4: Renamed from full-header-path.m4.
75648         This is to keep the terminology clean; POSIX talks about
75649         "absolute pathnames", not "full pathnames", but the GNU
75650         Coding Standards say to use "path" for something else;
75651         so use "absolute" to keep both sides happy.
75652         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
75653         Set gl_absolute_header, not gl_full_header_path.
75654         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
75655         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
75656         All uses changed.
75657
75658         Merge from coreutils.
75659
75660         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
75661
75662         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
75663         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
75664         want to require the building of c-strtod.o.
75665         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
75666         needs -lm directly.
75667         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
75668
75669         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
75670
75671         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
75672         --as-needed option if available.  Problem reported by Albert Chin in
75673         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
75674         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
75675         cc merely issues a bunch of annoying warnings for --as-needed
75676         (this problem was reported by Bob Proulx).  Also, try linking with
75677         -lm to detect a bug in binutils 2.16 (this problem was reported
75678         by Ralf Wildenhues).
75679
75680         2006-06-18  Jim Meyering  <jim@meyering.net>
75681
75682         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
75683         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
75684         macro.
75685         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
75686         also check for glibc-2.4's abort-inducing bug.
75687
75688         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
75689         Low-probability clean-up should be to use rmdir to get rid of
75690         the just-created directory, not unlink.
75691
75692         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
75693         configure fail, and request a bug report to inform us about it.
75694         Add a comment that, barring reports to the contrary, in 2007 we'll
75695         assume ftruncate is universally available.
75696
75697         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
75698
75699         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
75700
75701         2006-03-12  Jim Meyering  <jim@meyering.net>
75702
75703         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
75704         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
75705         * m4/same.m4 (gl_SAME): Likewise.
75706         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
75707
75708         2006-03-11  Eric Blake  <ebb9@byu.net>
75709
75710         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
75711         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
75712         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
75713         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
75714
75715 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75716
75717         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
75718         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
75719         reported by Mark D. Baushke, one in
75720         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
75721
75722         Merge from coreutils.
75723
75724         * lib/.cppi-disable: Add stdint_.h.
75725         * lib/.cvsignore: Add stdint.h.
75726
75727         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
75728
75729         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
75730         both double and long double versions.
75731         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
75732         * lib/xstrtold.c: New file.
75733         * lib/xstrtod.h (xstrtold): New decl.
75734
75735         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
75736
75737         * lib/filemode.c (setst): Remove.
75738         (strmode): Rewrite to avoid setst.  This makes the code shorter,
75739         (arguably) clearer, and the generated code is a bit smaller on my
75740         Debian GNU/Linux stable x86 host.
75741
75742         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
75743
75744         * lib/filemode.c: Include "filemode.h" first, to test the interface.
75745         Assume that filemode.h includes sys/types.h and sys/stat.h.
75746         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
75747         (ftypelet): Reorder to put common cases first, for efficiency.
75748         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
75749         to do 'M'.
75750         (strmode): Renamed from mode_string, and now stores 12 bytes instead
75751         of 10, for compatibility with FreeBSD.  All callers changed.
75752         (filemodestring): Now stores 12 bytes instead of 10, and sets file
75753         types that can't be deduced solely from st_mode.  First arg is now a
75754         const pointer.
75755         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
75756         (strmode): Renamed from mode_string.
75757         (filemodestring): New decl.
75758         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
75759         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
75760         needed.
75761         (S_ISPORT, S_ISWHT): New macros, if not already defined.
75762
75763         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
75764
75765         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
75766         fsusage.h now does that.  Include fsusage.h first, to test interface.
75767         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
75768         at most one method (the old code could have generated decls that
75769         didn't conform to C89, not that this was ever exercised).
75770         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
75771
75772         2006-03-19  Jim Meyering  <jim@meyering.net>
75773
75774         Work even in a chroot where d_ino values for entries in "/"
75775         don't match the stat.st_ino values for the same names.
75776         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
75777         number, iterate through all entries again, using lstat instead.
75778         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
75779         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
75780
75781         * lib/getcwd.c (__getcwd): Clarify a comment.
75782         Use memcpy in place of a call to strcpy.
75783
75784         2006-03-12  Jim Meyering  <jim@meyering.net>
75785
75786         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
75787         matches that of the current directory (which we're about to chdir ".."
75788         out of), then save the dev-ino of the parent, instead.
75789
75790         * lib/same-inode.h (SAME_INODE): New file/macro.
75791         * lib/chdir-safer.c (SAME_INODE): Remove definition.
75792         Include "same-inode.h", instead.
75793         * lib/same.c: Likewise.
75794         * lib/cycle-check.h: Include "same-inode.h".
75795         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
75796         * lib/cycle-check.c (SAME_INODE): Remove definition.
75797         * lib/root-dev-ino.h: Include "same-inode.h".
75798
75799         2006-03-11  Eric Blake  <ebb9@byu.net>
75800
75801         * lib/same.c (same_name): s/base_name/last_component/
75802         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
75803         * lib/filenamecat.c (file_name_concat): Likewise.
75804
75805         2006-03-11  Eric Blake  <ebb9@byu.net>,
75806                     Paul Eggert  <eggert@cs.ucla.edu>
75807
75808         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
75809         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
75810         drive prefix.
75811         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
75812         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
75813         (last_component): New method.
75814         * lib/dirname.c (dir_len): Determine when drive letters need a
75815         subsequent slash.  Preserve // when it is special.
75816         (dir_name): Don't append dot when drive letter is absolute.
75817         [TEST_DIRNAME]: Move into a full-blown gnulib test.
75818         * lib/basename.c (base_name): New semantics - malloc the result.
75819         Preserve // when it is special.  Preserve relative files that look
75820         like drive letters.
75821         (base_len): Preserve // when it is special.
75822         (last_component): New method, similar to old base_name semantics.
75823         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
75824         base_name.  Strip redundant slashes from ///.
75825
75826 2006-07-03  Jim Meyering  <jim@meyering.net>
75827
75828         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
75829         macro is used before the first cycle_check call.
75830
75831 2006-07-03  Eric Blake  <ebb9@byu.net>
75832
75833         * modules/dirname (Depends-on): Add xstrndup.
75834
75835 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
75836
75837         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
75838         test cases, so that config.log is a bit easier to follow.
75839
75840 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
75841
75842         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
75843         both are 64 bits, since this seems to be the tradition, and this
75844         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
75845         we ever run into a host that prefers long long to long in this
75846         case, we'll need another configure-time test.  Problem reported by
75847         Jim Meyering.
75848
75849 2006-07-02  Eric Blake  <ebb9@byu.net>
75850
75851         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
75852
75853 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
75854
75855         * modules/inttypes (Depends-on): No longer depends on stdint.
75856         * modules/stdint (Description): Say more about assumptions.
75857         Say that the fast types might differ.  Say macros are used.
75858         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
75859         (Makefile.am): Revise list of substituted symbols to match
75860         new stdint.m4.
75861         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
75862         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
75863         * tests/test-stdint.c (verify_same_types)
75864         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
75865         the code conforms to C99/C89.
75866         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
75867         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
75868
75869 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
75870
75871         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
75872         but fix a bug, by requiring at least 64 bits.
75873         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
75874         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
75875         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
75876         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
75877
75878         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
75879         changes.  Make 2.59 a prerequisite.  Check and substitute for
75880         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
75881         inttypes.h.  Do not use special include files; just use the
75882         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
75883         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
75884         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
75885         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
75886         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
75887         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
75888         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
75889         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
75890         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
75891         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
75892         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
75893         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
75894         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
75895         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
75896         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
75897         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
75898         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
75899         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
75900         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
75901         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
75902         WINT_MAX.  Check for C99 conformance more strictly, by detecting
75903         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
75904         not check for things that C99 does not require, e.g., int8_t.  If
75905         a test isn't needed unless <stdint.h> isn't working, and is
75906         unlikely to be needed for any other reason, then don't do it
75907         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
75908         size_t, since we assume C89 freestanding at least.  Do not check
75909         for sig_atomic_t, wchar_t, or wint_t, since the code now does
75910         the right thing even if the types are not defined.  Instead use:
75911         (gl_STDINT_TYPE_PROPERTIES): New macro.
75912         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
75913         testing whether <sys/types.h> clashes, as Autoconf does this for
75914         us now.  All uses removed.
75915         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
75916         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
75917         (gl_CHECK_TYPE_SAME):
75918         Remove; no longer needed.
75919         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
75920         exists, since we'll return 0 anyway in that case.
75921         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
75922
75923 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
75924
75925         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
75926         possible collision with system files.
75927         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
75928         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
75929         WCHAR_MIN and WCHAR_MAX in this case.
75930         (<stddef.h>): Do not include; no longer needed.
75931         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
75932         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
75933         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
75934         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
75935         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
75936         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
75937         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
75938         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
75939         !defined(__c99))]: Include in this case too, since it's harmless
75940         now.
75941         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
75942         dangerous to do so.
75943         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
75944         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
75945         (_STDINT_MIN, _STDINT_MAX): New macros.
75946         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
75947         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
75948         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
75949         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
75950         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
75951         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
75952         macros, not typedefs; this simplifies things quite a bit.
75953         Use long int for all types narrower than int64_t.
75954         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
75955         Define in terms of long long int or int64_t or long int,
75956         not int64_t or int32_t.  This saves some compile-time testing.
75957         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
75958         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
75959         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
75960         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
75961         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
75962         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
75963         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
75964         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
75965         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
75966         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
75967         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
75968         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
75969         undef any previous version and define our own version, for
75970         simplicity and consistency with the new macros for types.
75971         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
75972         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
75973         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
75974         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
75975         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
75976         @WINT_T_SUFFIX@ to keep things simple here.
75977         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
75978         Simplify by assuming typical 8/16/32/64 host, since we're
75979         already doing that elsewhere anyway.
75980         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
75981         and assume long long int is 64 bits if available.  This
75982         speeds up 'configure'.
75983
75984 2006-07-01  Eric Blake  <ebb9@byu.net>
75985
75986         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
75987         Reported by Andreas Buening.
75988
75989 2006-07-01  Eric Blake  <ebb9@byu.net>
75990
75991         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
75992
75993 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
75994
75995         * lib/getaddrinfo.c: fixed typo
75996
75997 2006-06-29  Jim Meyering  <jim@meyering.net>
75998
75999         * modules/strftime (Maintainer): Add my name, since with the
76000         FPRINTFTIME changes strftime.c has forked from glibc.
76001
76002 2006-06-29  Eric Blake  <ebb9@byu.net>
76003
76004         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
76005
76006 2006-06-29  Eric Blake  <ebb9@byu.net>
76007
76008         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
76009
76010 2006-06-29  Eric Blake  <ebb9@byu.net>
76011
76012         * lib/stat_.h: New file.
76013
76014 2006-06-29  Eric Blake  <ebb9@byu.net>
76015
76016         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
76017         unused static function.
76018
76019 2006-06-29  Eric Blake  <ebb9@byu.net>
76020
76021         * doc/functions.texi (Function Portability): Document missing lstat
76022         on mingw.
76023
76024 2006-06-29  Eric Blake  <ebb9@byu.net>
76025
76026         * MODULES.html.sh: Add sys_stat.
76027         * modules/sys_stat: New module.
76028         * modules/mkstemp (Depends-on): Add sys_stat.
76029
76030 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76031
76032         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
76033
76034 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76035
76036         * m4/c-bs-a.m4: Removed.
76037
76038 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76039
76040         * lib/strftime.c: Assume strftime() exists.
76041
76042 2006-06-29  Derek Price  <derek@ximbiot.com>
76043
76044         * modules/c-bs-a: Removed - \a is C89.
76045         * MODULES.html.sh: Remove c-bs-a.
76046
76047 2006-06-29  Bruno Haible  <bruno@clisp.org>
76048
76049         * modules/wcwidth (License): Change to LGPL.
76050
76051 2006-06-28  Simon Josefsson  <jas@extundo.com>
76052
76053         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
76054         on _WIN32.
76055
76056         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
76057         getnameinfo.
76058
76059 2006-06-28  Simon Josefsson  <jas@extundo.com>
76060
76061         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
76062
76063 2006-06-28  Simon Josefsson  <jas@extundo.com>
76064
76065         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
76066         functions there.  It will succeed on Windows XP, but on Windows
76067         2000 and (presumably) earlier, it will fail, and use the internal
76068         re-implementation.
76069         (use_win32_p): New function.
76070         (getaddrinfo): Use strtoul on servname, to support numeric ports.
76071         Support AI_NUMERICSERV to disable getservbyname.
76072         (getnameinfo): New function, only supports
76073         NI_NUMERICHOST|NI_NUMERICSERV for now.
76074
76075         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
76076         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
76077         getnameinfo.
76078
76079 2006-06-28  Eric Blake  <ebb9@byu.net>
76080
76081         * modules/wcwidth: New file.
76082         * modules/mbchar (Depends-on): Add wcwidth.
76083         * modules/mbswidth (Depends-on): Add wcwidth.
76084         * MODULES.html.sh: Add wcwidth.
76085
76086 2006-06-28  Eric Blake  <ebb9@byu.net>
76087
76088         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
76089         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
76090
76091 2006-06-28  Eric Blake  <ebb9@byu.net>
76092
76093         * lib/xvasprintf.h: Fix comments.
76094
76095 2006-06-28  Eric Blake  <ebb9@byu.net>
76096
76097         * lib/mbchar.h (wcwidth): Include wcwidth.h.
76098         * lib/mbswidth.c (wcwidth): Move from here...
76099         * lib/wcwidth.h: ...to this new file.
76100
76101 2006-06-28  Derek R. Price  <derek@ximbiot.com>
76102
76103         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
76104
76105         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
76106         it's obsolete.
76107         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
76108
76109 2006-06-28  Derek R. Price  <derek@ximbiot.com>
76110
76111         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
76112         Autoconf 2.60 says this stuff was obsolete.
76113
76114 2006-06-28  Bruno Haible  <bruno@clisp.org>
76115
76116         * modules/wcwidth (Files): Add m4/wchar_t.m4.
76117
76118 2006-06-28  Bruno Haible  <bruno@clisp.org>
76119
76120         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
76121         gt_TYPE_WCHAR_T.
76122
76123 2006-06-28  Bruno Haible  <bruno@clisp.org>
76124
76125         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
76126         declaration for wcwidth.
76127         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
76128
76129 2006-06-28  Bruno Haible  <bruno@clisp.org>
76130
76131         * lib/mkdtemp.c [MINGW]: Include <io.h>.
76132         (mkdir): Define using _mkdir.
76133
76134 2006-06-28  Bruno Haible  <bruno@clisp.org>
76135
76136         * lib/getaddrinfo.h: Fix POSIX URL.
76137         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
76138         _WIN32.
76139         (use_win32_p): Make static.
76140         (getaddrinfo): Reject service name if it is empty or does not consist
76141         solely of decimal digits, or if its value is > 65535.
76142         (getnameinfo): Remove useless casts.
76143
76144 2006-06-27  Simon Josefsson  <jas@extundo.com>
76145
76146         * modules/sys_select: New file, suggested by Bruno Haible, Paul
76147         Eggert and Martin Lambers.
76148
76149 2006-06-27  Simon Josefsson  <jas@extundo.com>
76150
76151         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
76152         Eggert and Martin Lambers.
76153
76154 2006-06-27  Bruno Haible  <bruno@clisp.org>
76155
76156         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
76157         result to 0, not to empty.
76158         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
76159
76160 2006-06-27  Bruno Haible  <bruno@clisp.org>
76161
76162         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
76163
76164 2006-06-26  Simon Josefsson  <jas@extundo.com>
76165
76166         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
76167         present.
76168
76169 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
76170
76171         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
76172         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
76173         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
76174
76175 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
76176
76177         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
76178
76179 2006-06-26  Bruno Haible  <bruno@clisp.org>
76180
76181         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
76182
76183 2006-06-26  Bruno Haible  <bruno@clisp.org>
76184
76185         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
76186
76187 2006-06-26  Bruno Haible  <bruno@clisp.org>
76188
76189         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
76190         SGI C compiler in pre-C99 mode.
76191         Suggested by Mark D. Baushke and Larry Jones.
76192
76193 2006-06-26  Bruno Haible  <bruno@clisp.org>
76194
76195         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
76196         WCHAR_MAX.
76197         Reported by Mark D. Baushke and Larry Jones.
76198
76199 2006-06-26  Bruno Haible  <bruno@clisp.org>
76200
76201         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
76202         in pre-C99 mode.
76203         Suggested by Mark D. Baushke and Larry Jones.
76204
76205 2006-06-23  Simon Josefsson  <jas@extundo.com>
76206             Bruno Haible  <bruno@clisp.org>
76207
76208         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
76209         Emit mostlyclean-local rule.
76210         (func_emit_tests_Makefile_am): Likewise.
76211         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
76212
76213 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
76214
76215         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
76216
76217 2006-06-23  Bruno Haible  <bruno@clisp.org>
76218
76219         * tests/test-stdint.c: Update to match ISO C 99 Technical
76220         Corrigendum 1.
76221
76222 2006-06-23  Bruno Haible  <bruno@clisp.org>
76223
76224         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
76225
76226 2006-06-23  Bruno Haible  <bruno@clisp.org>
76227
76228         * lib/stdint_.h: Treat IRIX like OpenBSD.
76229
76230 2006-06-23  Bruno Haible  <bruno@clisp.org>
76231
76232         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
76233         ISO C 99 Technical Corrigendum 1.
76234
76235 2006-06-22  Simon Josefsson  <jas@extundo.com>
76236
76237         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
76238         MinGW.
76239
76240 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76241
76242         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
76243         needed.  Some compiler complained about some of them.  Problem reported
76244         by Larry Jones in
76245         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
76246
76247 2006-06-21  Simon Josefsson  <jas@extundo.com>
76248
76249         * tests/test-getaddrinfo.c: New file.
76250
76251         * modules/getaddrinfo-tests: New file.
76252
76253         * MODULES.html.sh: Add inet_pton.
76254
76255         * modules/inet_pton: New file.
76256
76257 2006-06-21  Simon Josefsson  <jas@extundo.com>
76258
76259         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
76260         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
76261         of using the (limited) gnulib implementation on Windows XP.
76262
76263         * m4/inet_pton.m4: New file.
76264
76265 2006-06-21  Simon Josefsson  <jas@extundo.com>
76266
76267         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
76268         variable.
76269
76270         * lib/socket_.h: Don't define WINVER.
76271
76272         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
76273         slightly modified to work in gnulib.
76274
76275 2006-06-21  Simon Josefsson  <jas@extundo.com>
76276
76277         * doc/gnulib.texi (Windows sockets): Add.
76278
76279 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
76280
76281         * lib/read-file.c (fread_file): Start with buffer allocation of
76282         0 bytes rather than 1 byte; this simplifies the code.
76283         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
76284         code to free buffer and save/restore errno.
76285         (internal_read_file): Remove unused local.
76286
76287 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
76288
76289         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
76290         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
76291         Problem reported by Denis Excoffier in
76292         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
76293
76294 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76295
76296         * modules/sys_socket, modules/socklen: Include sys/types since
76297         FreeBSD 4.x's sys/socket.h needs it.
76298
76299 2006-06-19  Simon Josefsson  <jas@extundo.com>
76300
76301         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
76302
76303 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
76304
76305         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
76306
76307 2006-06-19  Bruno Haible  <bruno@clisp.org>
76308
76309         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
76310         and FULL_PATH_INTTYPES_H in angle brackets.
76311         Reported by Mark D. Baushke <mdb@gnu.org>.
76312
76313 2006-06-17  Eric Blake  <ebb9@byu.net>
76314
76315         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
76316         errno.
76317
76318 2006-06-17  Bruno Haible  <bruno@clisp.org>
76319
76320         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
76321         <sys/inttypes.h>.
76322
76323 2006-06-17  Bruno Haible  <bruno@clisp.org>
76324
76325         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
76326         whether errno is declared. Assume <errno.h> declares errno.
76327
76328 2006-06-17  Bruno Haible  <bruno@clisp.org>
76329
76330         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
76331
76332 2006-06-17  Bruno Haible  <bruno@clisp.org>
76333
76334         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
76335         problem on Solaris 2.5.1.
76336
76337 2006-06-16  Eric Blake  <ebb9@byu.net>
76338
76339         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
76340         * lib/unicodeio.c [!defined errno]: Likewise.
76341         * lib/strtol.c [!defined errno]: Likewise.
76342         * lib/strtod.c [!defined errno]: Likewise.
76343
76344 2006-06-15  Eric Blake  <ebb9@byu.net>
76345
76346         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
76347
76348 2006-06-15  Eric Blake  <ebb9@byu.net>
76349
76350         * config/srclist.txt (ssize_t.m4): Lose sync.
76351
76352 2006-06-15  Bruno Haible  <bruno@clisp.org>
76353
76354         * modules/stdint (Files): Include m4/full-header-path.m4,
76355         m4/size_max.m4, m4/wchar_t.m4.
76356         (Makefile.am): Many more substitutions.
76357         * modules/stdint-tests: New file.
76358         * tests/test-stdint.c: New file.
76359
76360 2006-06-15  Bruno Haible  <bruno@clisp.org>
76361
76362         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
76363         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
76364         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
76365         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
76366         gl_CHECK_TYPE_SAME): New macros.
76367
76368 2006-06-15  Bruno Haible  <bruno@clisp.org>
76369
76370         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
76371
76372 2006-06-15  Bruno Haible  <bruno@clisp.org>
76373
76374         * lib/stdint_.h: Rewritten to be fully auto-configured.
76375         Fixes bug on HP-UX/IA64.
76376
76377 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
76378
76379         * lib/getdate.y (__attribute__): Don't define if already defined.
76380         Problem reported by Larry Jones.
76381         * lib/utimens.c (__attribute__): Likewise.
76382
76383 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
76384
76385         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
76386         reported by Andreas Schwab.
76387
76388 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76389             Bruno Haible  <bruno@clisp.org>
76390
76391         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
76392         check for the declaration of strnlen and a run test that exposes the
76393         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
76394         rpl_strndup.
76395
76396 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76397             Bruno Haible  <bruno@clisp.org>
76398
76399         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
76400
76401 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76402
76403         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
76404         compile test, for Tru64 4.0D.
76405
76406 2006-05-28  Karl Berry  <karl@gnu.org>
76407
76408         * config/srclist.txt (printf-args.c): lose sync.
76409
76410 2006-05-26  Martin Lambers  <marlam@marlam.de>
76411
76412         * lib/getpass.c: Updates the test for the native W32 API, and adds
76413         missing includes, thus fixing compilation warnings.
76414
76415 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
76416
76417         * lib/exclude.c (exclude_fnmatch): New function.
76418         (excluded_file_name): Call exclude_fnmatch.
76419         * lib/exclude.h (excluded_file_name): New prototype
76420
76421 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
76422
76423         * lib/tempname.c (small_open, large_open): New macros.
76424         (__open, __open64) [!_LIBC]: Remove.
76425         (__gen_tempname): Use small_open and large_open instead of __open
76426         and __open64.  This fixes a portability bug on HP-UX 11.11i
76427         reported by Simon Wing-Tang in
76428         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
76429
76430 2006-05-24  Bruno Haible  <bruno@clisp.org>
76431
76432         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
76433         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
76434         Reported by Thorsten Maerz <torte@netztorte.de> via
76435         Aaron Stone <aaron@serendipity.cx>.
76436
76437 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76438
76439         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
76440         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
76441         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
76442         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
76443         not really conditional on the cache.
76444         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
76445
76446 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76447
76448         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
76449         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
76450         (my_usleep): Don't mishandle maximum value.
76451
76452 2006-05-19  Jim Meyering  <jim@meyering.net>
76453
76454         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
76455
76456 2006-05-17  Bruno Haible  <bruno@clisp.org>
76457
76458         Cygwin portability.
76459         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
76460
76461 2006-05-17  Bruno Haible  <bruno@clisp.org>
76462
76463         * lib/stdint_.h: Fix recognition of Cygwin.
76464
76465 2006-05-15  Bruno Haible  <bruno@clisp.org>
76466
76467         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
76468         on libtool patch by Ralf Wildenhues.
76469
76470 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76471
76472         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
76473         test for C99 conformance; (bool) 0.5 is an integer constant
76474         expression, but (bool) -0.5 is not.  Problem reported by Fedor
76475         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
76476
76477 2006-05-11  Simon Josefsson  <jas@extundo.com>
76478
76479         * m4/xvasprintf.m4: Fix obvious typo.
76480
76481 2006-05-11  Jim Meyering  <jim@meyering.net>
76482
76483         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
76484         James Lemley.
76485
76486 2006-05-10  Simon Josefsson  <jas@extundo.com>
76487
76488         * lib/md4.c: Typo fix, update copyright years.
76489         (K1, K2): Don't use L because it turn computations into 64-bit on
76490         64-bit platforms.
76491
76492 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
76493
76494         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
76495         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
76496         unwanted sign propagation, e.g., on hosts with 64-bit int.
76497         There still are some problems with reeelly weird theoretical hosts
76498         (e.g., 33-bit int) but it's not worth worrying about now.
76499         * lib/sha1.c (rol): Likewise.
76500         (K1, K2, K3, K4): Remove unnecessary L suffix.
76501
76502 2006-05-10  Bruno Haible  <bruno@clisp.org>
76503
76504         * lib/des.c: Cast to avoid warnings.
76505
76506 2006-05-09  Bruno Haible  <bruno@clisp.org>
76507
76508         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
76509         (Depends-on): Depend also on xsize, stdarg.
76510         (configure.ac): Add gl_XVASPRINTF.
76511
76512 2006-05-09  Bruno Haible  <bruno@clisp.org>
76513
76514         * m4/xvasprintf.m4: New file.
76515
76516 2006-05-09  Bruno Haible  <bruno@clisp.org>
76517
76518         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
76519         (EOVERFLOW): Define fallback value.
76520         (xstrcat): New function.
76521         (xvasprintf): Recognize the special case of a string concatenation.
76522
76523 2006-05-08  Eric Blake  <ebb9@byu.net>
76524
76525         * gnulib-tool (func_version): Base copyright year on CVS date.
76526         (func_emit_copyright_notice): New function.
76527         (func_emit_lib_Makefile_am): Use it.
76528         (func_emit_tests_Makefile_am): Likewise.
76529         (func_import): Likewise.
76530
76531 2006-05-08  Bruno Haible  <bruno@clisp.org>
76532
76533         * modules/stdarg: New file.
76534         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
76535
76536 2006-05-08  Bruno Haible  <bruno@clisp.org>
76537
76538         * m4/stdarg.m4: New file, from GNU gettext.
76539
76540 2006-05-08  Bruno Haible  <bruno@clisp.org>
76541
76542         * config/srclist.txt (build-aux/config.rpath): different from latest
76543         release.
76544
76545 2006-05-08  Bruno Haible  <bruno@clisp.org>
76546
76547         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
76548
76549 2006-05-05  Jim Meyering  <jim@meyering.net>
76550
76551         * m4/warning.m4: New file, derived from bison's file by the same name.
76552
76553 2006-05-03  Bruno Haible  <bruno@clisp.org>
76554
76555         * lib/stdint_.h: Shorter URL.
76556         * lib/inttypes.h: Likewise.
76557
76558 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
76559
76560         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
76561
76562 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
76563
76564         * lib/verify.h: Document the internals better.  Most of this change
76565         was written by Bruno Haible.
76566
76567 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
76568
76569         * doc/verify.texi: New file, partly based on a proposal by
76570         Bruno Haible.
76571
76572 2006-05-02  Bruno Haible  <bruno@clisp.org>
76573
76574         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
76575         test from here...
76576         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
76577
76578 2006-04-29  Bruno Haible  <bruno@clisp.org>
76579
76580         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
76581         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
76582
76583 2006-04-29  Bruno Haible  <bruno@clisp.org>
76584
76585         * gnulib-tool: Make --update option actually work.
76586
76587 2006-04-29  Bruno Haible  <bruno@clisp.org>
76588
76589         * doc/gcd.texi: New file.
76590         * doc/gnulib.texi: Include it.
76591
76592 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
76593
76594         * lib/getdate.y (get_date): When adding relative date, start with the
76595         initial time, not with the result of the first mktime call.
76596
76597 2006-04-25  Bruno Haible  <bruno@clisp.org>
76598
76599         * gnulib-tool (func_import): Output the include directives in three
76600         blocks, sorted separately.
76601         Reported by Ben Pfaff <blp@cs.stanford.edu>.
76602
76603 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
76604
76605         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
76606         to define main with arguments, for C++.  Reported by Eric Blake.
76607         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
76608         Prefer 'int main ()' to 'int main (void)', for C++.
76609         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
76610         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
76611         for 'main', for C99 and C++.
76612
76613 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
76614
76615         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
76616         Don't assume that exit status -1 is valid.
76617         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
76618         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
76619         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
76620         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
76621         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
76622         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
76623         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
76624         functions can be used without declaring them, or that you can
76625         exit with status -1.
76626         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
76627
76628 2006-04-24  Karl Berry  <karl@gnu.org>
76629
76630         * config/srclist.txt (longdouble.m4): sync lost.
76631
76632 2006-04-24  Eric Blake  <ebb9@byu.net>
76633
76634         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
76635
76636 2006-04-24  Bruno Haible  <bruno@clisp.org>
76637
76638         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
76639         poll() implementation in AIX.
76640         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76641
76642 2006-04-24  Bruno Haible  <bruno@clisp.org>
76643
76644         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
76645         assigned exactly once.
76646
76647 2006-04-23  Claudio Fontana  <claudio@gnu.org>
76648             Bruno Haible  <bruno@clisp.org>
76649
76650         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
76651         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
76652         for AM_CPPFLAGS.
76653
76654 2006-04-23  Bruno Haible  <bruno@clisp.org>
76655
76656         * modules/copy-file: Depend on unistd.
76657         * modules/execute: Likewise.
76658         * modules/fatal-signal: Likewise.
76659         * modules/findprog: Likewise.
76660         * modules/mkdtemp : Likewise.
76661         * modules/pipe: Likewise.
76662         * modules/wait-process: Likewise.
76663
76664 2006-04-23  Bruno Haible  <bruno@clisp.org>
76665
76666         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
76667         condition was already detected.
76668         Reported by Ben Pfaff <blp@cs.stanford.edu>.
76669
76670 2006-04-23  Bruno Haible  <bruno@clisp.org>
76671
76672         * lib/copy-file.c: Include <unistd.h> unconditionally.
76673         * lib/execute.c: Likewise.
76674         * lib/fatal-signal.c: Likewise.
76675         * lib/findprog.c: Likewise.
76676         * lib/mkdtemp.c: Likewise.
76677         * lib/pipe.h: Likewise.
76678         * lib/pipe.c: Likewise.
76679         * lib/wait-process.h: Likewise.
76680
76681 2006-04-23  Bruno Haible  <bruno@clisp.org>
76682
76683         * gnulib-tool (func_usage): Fix --import description. Document
76684         --update.
76685         (func_import): Create temporary file in a temporary directory, if
76686         --dry-run is specified. Silence errors from 'grep' when there are no
76687         m4 files in $m4dir.
76688         (func_create_testdir): Silence errors from 'grep' when there are no
76689         m4 files in $m4dir.
76690         Reported by Karl Berry <karl@freefriends.org>.
76691
76692 2006-04-20  Bruno Haible  <bruno@clisp.org>
76693
76694         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
76695         one argument, so that the code will be portable to Autoconf 2.60.
76696         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
76697         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
76698         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
76699
76700 2006-04-19  Derek Price  <derek@ximbiot.com>
76701             Eric Blake  <ebb9@byu.net>
76702
76703         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
76704         rather than "/full/path.h".  Update comment to match.  Shorten &
76705         generalize m4_translit call via AS_TR_CPP.
76706
76707 2006-04-19  Derek Price  <derek@ximbiot.com>
76708             Eric Blake  <ebb9@byu.net>
76709
76710         * lib/inttypes.h: Correct grammar in comment.
76711
76712 2006-04-18  Derek Price  <derek@ximbiot.com>
76713             Paul Eggert  <eggert@cs.ucla.edu>
76714
76715         * modules/inttypes: New file.
76716         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
76717
76718 2006-04-18  Derek Price  <derek@ximbiot.com>
76719             Paul Eggert  <eggert@cs.ucla.edu>
76720
76721         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
76722         New files.
76723
76724 2006-04-18  Derek Price  <derek@ximbiot.com>
76725             Paul Eggert  <eggert@cs.ucla.edu>
76726
76727         * lib/inttypes.h: New file.
76728         * lib/strtoimax.c: Assume <inttypes.h>.
76729
76730 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
76731
76732         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
76733         isn't mounted.  Problem reported by Kir Kolyshkin.
76734
76735 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
76736
76737         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
76738         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
76739         Derek R. Price.
76740         * lib/regex.h (RE_DUP_MAX): Update comment to match current
76741         implementation.
76742
76743 2006-04-12  Eric Blake  <ebb9@byu.net>
76744
76745         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
76746         is now done automatically by the corresponding Autoconf macro.
76747
76748 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
76749
76750         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
76751         time_r.h.
76752
76753 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
76754
76755         Merge regex changes from libc, removing some of our
76756         POSIX-conformance changes that were rejected and redoing them in a
76757         less-intrusive way.
76758
76759         * lib/regcomp.c (re_compile_internal, init_dfa):
76760         Length arg is now size_t, not Idx.  All uses changed.
76761         (peek_token): Forward decl now says internal_function.
76762         (__re_error_msgid, __re_error_msgid_idx):
76763         Now static rather than extern with attribute_hidden.
76764         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
76765         For some reason libc prefers K&R style defns for external functions.
76766         (regerror) [!defined _LIBC]: Likewise.
76767         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
76768         (seek_collating_symbol_entry, lookup_collation_sequence_value):
76769         (build_range_exp, build_collating_symbol):
76770         Use K&R-style defn.
76771         (re_compile_fastmap): Use '\0' to memset, not 0.
76772         (utf8_sb_map): Make the calculations more obvious.
76773         (init_dfa, parse_bracket_exp, build_charclass_op):
76774         Call calloc and cast result, as glibc does.
76775         (init_word_char, fetch_token, peek_token, peek_token_bracket):
76776         (build_range_exp, build_collating_symbol):
76777         Now internal functions.
76778
76779         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
76780
76781         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
76782         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
76783         Don't depend on VMS; depend on __VMS instead, for POSIX
76784         namespace cleanness.
76785         (regoff_t): Define to ssize_t, not long int.
76786
76787         Remove the REG_ macros named below.  Instead, make the old names
76788         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
76789         __USE_GNU_REGEX.
76790         (REG_BACKSLASH_ESCAPE_IN_LISTS):
76791         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
76792         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
76793         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
76794         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
76795         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
76796         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
76797         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
76798         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
76799         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
76800         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
76801         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
76802         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
76803         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
76804         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
76805         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
76806         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
76807         (REG_NREGS):
76808         Remove.  All uses replaced by the old RE_* names.
76809         (RE_BACKSLASH_ESCAPE_IN_LISTS):
76810         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
76811         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
76812         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
76813         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
76814         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
76815         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
76816         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
76817         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
76818         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
76819         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
76820         Don't bother having these macros be independent of each others'
76821         values, since they no longer exist in the POSIX name space.
76822
76823         Rename the following member names back to their old names,
76824         unless !__USE_GNU_REGEX.  All uses changed back.
76825         (buffer): Renamed from re_buffer.
76826         (allocated): Renamed from re_allocated.
76827         (used): Renamed from re_used.
76828         (syntax): Renamed from re_syntax.
76829         (fastmap): Renamed from re_fastmap.
76830         (translate): Renamed from re_translate.
76831         (can_be_null): Renamed from re_can_be_null.
76832         (regs_allocated): Renamed from re_regs_allocated.
76833         (fastmap_accurate): Renamed from re_fastmap_accurate.
76834         (no_sub): Renamed from re_no_sub.
76835         (not_bol): Renamed from re_not_bol.
76836         (not_eol): Renamed from re_not_eol.
76837         (newline_anchor): Renamed from re_newline_anchor.
76838         (num_regs): Renamed from rm_num_regs.
76839         (start): Renamed from rm_start.
76840         (end): Renamed from rm_end.
76841
76842         (free_state): Move up a bit.
76843
76844         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
76845         #define to be empty.
76846         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
76847         when that is what is intended.
76848         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
76849         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
76850         (MAX): New macro.
76851         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
76852         All uses changed back to re_malloc, etc.  It's now the caller's
76853         responsibility to check for overflow; all callers changed.
76854         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
76855         (re_x2nrealloc): Remove.
76856         (free_state): Remove decl.
76857
76858         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
76859         (re_set_registers, re_exec):
76860         Use K&R-style defn.
76861
76862         2006-01-31  Roland McGrath  <roland@redhat.com>
76863
76864         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
76865         Reported by Mike Frysinger <vapier@gentoo.org>.
76866
76867         2006-01-15  Andreas Jaeger  <aj@suse.de>
76868
76869         [BZ #1950]
76870         * lib/regex_internal.c (re_string_reconstruct): Adjust for
76871         build_wcs_upper_buffer change.
76872         (build_wcs_upper_buffer): Change return type.
76873
76874         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
76875
76876         * lib/regex_internal.h: Include <stdint.h> if available.
76877
76878         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
76879
76880         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
76881
76882         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
76883
76884         * lib/regcomp.c: Adjust for changed secondary hash function.
76885
76886         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
76887
76888         * lib/regex.h: Pretty printing.
76889         Clean up namespace a bit.
76890
76891         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
76892
76893         * lib/regexec.c (update_cur_sifted_state, check_arrival,
76894         check_arrival_add_next_nodes): Avoid using uninitialized variable.
76895
76896         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
76897                     Ulrich Drepper  <drepper@redhat.com>
76898
76899         [BZ #1302]
76900         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
76901         changed.
76902         (bitset_word_t): Renamed from bitset_word.  All uses changed.
76903
76904         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
76905
76906         [BZ #281]
76907         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
76908         * lib/regcomp.c: Remove unnecessary uses of
76909         unsigned RE_TRANSLATE_TYPE.
76910         * lib/regex_internal.h: Likewise.
76911         * lib/regex_internal.c: Likewise.
76912         * lib/regexec.c: Likewise.
76913         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
76914
76915         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
76916
76917         * lib/regexec.c (find_recover_state): Remove unnecessary
76918         initialization.
76919         (transit_state_bkref): Make DFA a const pointer.
76920         (get_subexp): Likewise.
76921         (check_arrival): Likewise.
76922         (update_cur_sifted_state): Likewise.
76923         (re_search_internal): Likewise.
76924         (prune_impossible_nodes): Likewise.
76925         (acquire_init_state_context): Likewise.
76926         (proceed_next_node): Likewise.
76927         (set_regs): Likewise.
76928         (free_fail_stack_return): Likewise.
76929         (check_arrival_expand_ecl): Mark DFA parameter as const.
76930         (check_arrival_expand_ecl_sub): Likewise.
76931         (check_subexp_limits): Likewise.
76932         (sub_epsilon_src_nodes):  Likewise.
76933         (add_epsilon_src_nodes):  Likewise.
76934         (merge_state_array): Likewise.
76935         (update_regs): Likewise.
76936         (build_trtable): Likewise.
76937         (sift_states_backward): Mark MCTX parameter as const.
76938         (build_sifted_states): Likewise.
76939         (update_cur_sifted_state): Likewise.
76940         (sift_states_mkref): Likewise.
76941         (check_arrival_expand_ecl): Mark eclosure as const.
76942         (check_dst_limits_calc_pos_1): Likewise.
76943         * lib/regex_internal.h (re_match_context_t): Make dfa a const
76944         pointer.
76945
76946         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
76947
76948         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
76949         (transit_state_sb): Likewise.
76950         (transit_state_mb): Likewise.
76951         (sift_states_iter_mb): Likewise.
76952         (check_arrival_add_next_nodes): Likewise.
76953         (check_node_accept_bytes): Change first parameter to pointer-to-const.
76954         [_LIBC] (re_search_2_stub): Use mempcpy.
76955
76956         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
76957         mbrtowc for very simple UTF-8 case.
76958
76959         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
76960         a pointer-to-const.
76961         (re_acquire_state_context): Likewise.
76962         * lib/regex_internal.h: Adjust prototypes.
76963
76964         * lib/regex.c: Prevent using C++ compilers.
76965
76966         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
76967         (re_acquire_state_context): Likewise.
76968
76969 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
76970
76971         * modules/regex (Depends-on): Add ssize_t.
76972
76973 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
76974
76975         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
76976         translation table.
76977
76978 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
76979
76980         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
76981
76982 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
76983             Bruno Haible  <bruno@clisp.org>
76984
76985         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
76986         <sys/types.h> and <inttypes.h>.
76987
76988 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76989
76990         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
76991         `__error_t_defined', so argp.h will not typedef the former.
76992
76993 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
76994
76995         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
76996         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
76997         glibc names.  Even if glibc is changed to conform to POSIX, the
76998         traditional names will be available anyway, since regex depends on
76999         the extensions module.  Also, fix a longstanding typo in the
77000         implementation of Spencer ERE test #75 from grep 2.3.  Problems
77001         reported by Emanuele Giaquinta.  Also, change sense of cached
77002         variable, so that the message makes sense.
77003
77004 2006-03-24  Simon Josefsson  <jas@extundo.com>
77005
77006         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
77007         including some doc fixes.
77008         (base64_encode_alloc): Fix +1 bug on allocation failures.
77009
77010 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77011
77012         * lib/base64.c (base64_encode): Do not read past end of array with
77013         unsanitized input on systems with CHAR_BIT > 8.
77014
77015 2006-03-24  Eric Blake  <ebb9@byu.net>
77016
77017         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
77018
77019 2006-03-22  Karl Berry  <karl@gnu.org>
77020
77021         * config/srclist.txt (*setenv.[ch]): get from coreutils.
77022         * config/srclistvars.sh (COREUTILS): new var.
77023
77024 2006-03-17  Jim Meyering  <jim@meyering.net>
77025
77026         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
77027         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
77028
77029 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
77030
77031         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
77032         no longer needs it.  Instead, check that regoff_t is as least
77033         as wide as ptrdiff_t.
77034
77035         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
77036         so that our regex.h stays compatible with the installed regex.
77037         This is helpful for installers who configure --without-included-regex.
77038         Problem reported by Emanuele Giaquinta.
77039
77040 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
77041
77042         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
77043         Typedef to long int, not to off_, as POSIX will likely change
77044         in that direction.
77045
77046 2006-03-15  Eric Blake  <ebb9@byu.net>
77047
77048         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
77049
77050 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
77051
77052         * lib/argp-help.c (validate_uparams): Fix typo
77053         * lib/argp-parse.c (argp_default_options): Consistently begin help
77054         messages with a lowercase letter.
77055
77056 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
77057
77058         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
77059         overrun buffers and shouldn't be used (much as gets shouldn't be
77060         used).
77061         * lib/time_r.c (asctime_r, ctime_r): Likewise.
77062
77063 2006-03-08  Simon Josefsson  <jas@extundo.com>
77064
77065         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
77066         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77067
77068 2006-03-08  Simon Josefsson  <jas@extundo.com>
77069
77070         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
77071         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77072
77073 2006-03-08  Simon Josefsson  <jas@extundo.com>
77074
77075         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
77076         signal that configure disabled the device.
77077
77078 2006-03-08  Simon Josefsson  <jas@extundo.com>
77079
77080         * build-aux/maint.mk: Fix refresh-po, to handle no translated
77081         languages.
77082
77083 2006-03-07  Simon Josefsson  <jas@extundo.com>
77084
77085         * modules/getopt (Depends-on): Add unistd.
77086
77087         * modules/unistd: New file.
77088
77089 2006-03-07  Simon Josefsson  <jas@extundo.com>
77090
77091         * modules/gc-random: New file.
77092
77093 2006-03-07  Simon Josefsson  <jas@extundo.com>
77094
77095         * m4/unistd_h.m4: New file.
77096
77097 2006-03-07  Simon Josefsson  <jas@extundo.com>
77098
77099         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
77100         test to be side-effect free by storing the result in the cache
77101         variable gl_cv_lib_readline, and moving the assignment of
77102         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
77103         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77104
77105 2006-03-07  Simon Josefsson  <jas@extundo.com>
77106
77107         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
77108         error on missing devices (the functions will return an error).
77109
77110         * m4/gc.m4: Move random stuff to gc-random.m4
77111
77112 2006-03-07  Simon Josefsson  <jas@extundo.com>
77113
77114         * lib/unistd_.h: New file.
77115
77116 2006-03-07  Simon Josefsson  <jas@extundo.com>
77117
77118         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
77119
77120 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77121
77122         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
77123         Problem reported by Juan Manuel Guerrero.
77124
77125 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77126
77127         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
77128         the unistd module.
77129         * lib/getlogin_r.c: Likewise.
77130         * lib/getlogin_r.h: Likewise.
77131         * lib/glob.c: Likewise.
77132         * lib/pagealign_alloc.c: Likewise.
77133         * lib/unistd_.h: Remove; no longer needed.
77134
77135 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77136
77137         * MODULES.html.sh (Support for systems lacking POSIX:2001):
77138         Add unistd.
77139         * modules/c-stack (Depends-on): Add unistd.
77140         * modules/getlogin_r: Likewise.
77141         * modules/glob: Likewise.
77142         * modules/pagealign_alloc: Likewise.
77143         * modules/unistd (Files): Remove lib/unistd_.h.
77144         (EXTRA_DIST): Remove.
77145         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
77146         need unistd_.h.
77147         (MOSTLYCLEANFILES): Remove unistd.h-t.
77148
77149 2006-03-03  Simon Josefsson  <jas@extundo.com>
77150
77151         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
77152
77153 2006-03-03  Simon Josefsson  <jas@extundo.com>
77154
77155         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
77156         libidn and bison.
77157
77158 2006-03-03  Simon Josefsson  <jas@extundo.com>
77159
77160         * build-aux/maint.mk: Add indent target.
77161
77162 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
77163
77164         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
77165         our replacement poll.h in any case, to avoid a differing
77166         declaration from a system header.  Seen on AIX.
77167
77168 2006-03-01  Simon Josefsson  <jas@extundo.com>
77169
77170         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
77171         <kasal@ucw.cz>.
77172
77173 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77174
77175         * modules/gettime (Depends-on): Add extensions module.
77176         * modules/nanosleep (Depends-on): Likewise.
77177         * modules/settime (Depends-on): Likewise.
77178
77179 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77180
77181         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
77182         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
77183         pedantically.
77184         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77185         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
77186
77187         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
77188         not "==".  Reported by Ralf Wildenhues.
77189
77190 2006-03-01  Karl Berry  <karl@gnu.org>
77191
77192         * doc/Copyright/request-*: new files, synced from gnuorg.
77193
77194 2006-03-01  Karl Berry  <karl@gnu.org>
77195
77196         * config/srclist.txt (Copyright/*): new entries.
77197
77198 2006-02-28  Simon Josefsson  <jas@extundo.com>
77199
77200         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
77201
77202 2006-02-27  Simon Josefsson  <jas@extundo.com>
77203
77204         * lib/base64.h: Indent #define's.  From Jim Meyering
77205         <jim@meyering.net>.
77206
77207 2006-02-27  Jim Meyering  <jim@meyering.net>
77208
77209         Revert the change of 2006-02-24, so these files can continue
77210         to be sync'd from gettext.
77211         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
77212         of `config.h'.
77213
77214 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
77215
77216         * modules/intprops: New file.
77217         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
77218         Add intprops.
77219         * modules/getloadavg (Files): Remove lib/intprops.h.
77220         (Depends-on): Add intprops.
77221         * modules/human: Likewise.
77222         * modules/inttostr: Likewise.
77223         * modules/openat: Likewise.
77224         * modules/sig2str: Likewise.
77225         * modules/userspec: Likewise.
77226         * modules/utimecmp: Likewise.
77227         * modules/xnanosleep: Likewise.
77228         * modules/xstrtol: Likewise.
77229
77230 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
77231
77232         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
77233         * modules/lock-tests (TESTS): Use $(EXEEXT).
77234         * modules/tls-tests: Likewise.
77235         * modules/argp-tests: Likewise.
77236         (check_PROGRAMS): New var, replacing...
77237         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
77238
77239 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77240
77241         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
77242         `config.h'.
77243
77244 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
77245
77246         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
77247
77248 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77249
77250         Sync from coreutils.
77251         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
77252         gl_CHDIR_SAFER.
77253
77254 2006-02-22  Jim Meyering  <jim@meyering.net>
77255
77256         Sync from coreutils.
77257         * m4/chdir-safer.m4: New file.
77258
77259 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
77260
77261         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
77262         AT_FDCWD exceeds INT_MAX.
77263         * lib/openat.h (AT_FDCWD): Likewise.
77264
77265 2006-02-17  Eric Blake  <address@hidden>
77266
77267         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
77268
77269 2006-02-16  Simon Josefsson  <jas@extundo.com>
77270
77271         * modules/getaddrinfo (Depends-on): Add sys_socket.
77272
77273 2006-02-15  Simon Josefsson  <jas@extundo.com>
77274
77275         * build-aux/maint.mk: Add dsyntax-check rule.
77276
77277 2006-02-15  Eric Blake  <ebb9@byu.net>
77278
77279         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
77280         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
77281         'present but cannot compile' warnings on cygwin.
77282         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
77283         use ws2tcpip.h if sys/socket.h works.
77284         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
77285         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
77286
77287 2006-02-14  Simon Josefsson  <jas@extundo.com>
77288
77289         * modules/maintainer-makefile (Files): Rename.
77290
77291         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
77292         and (the local) Makefile.cfg to maint-cfg.mk.
77293
77294         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
77295         to the latter.
77296
77297         * modules/maintainer-makefile: New module.
77298
77299         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
77300         severaly stripped to make it possible to build it up from scratch
77301         with reliable tests.
77302
77303         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
77304         fixes to permit overriding the default actions when configure and
77305         makefile are not available.
77306
77307 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
77308
77309         Sync from coreutils.
77310         * modules/lstat (Depends-on): Don't depend on xalloc.
77311         (License): Change from GPL to LGPL, since this is now simply a
77312         replacement for a libc function.
77313
77314 2006-02-14  Jim Meyering  <jim@meyering.net>
77315
77316         Sync from coreutils.
77317
77318         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
77319         failure on deficient systems, and simplify gnulib lgpl dependencies.
77320         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
77321         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
77322
77323         * lib/xalloc-die.c: Remove unused definition of N_.
77324
77325 2006-02-14  Jim Meyering  <jim@meyering.net>
77326
77327         Sync from coreutils.
77328         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
77329         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
77330         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
77331         double-quote uses of that variable, to accommodate the rare case in
77332         which getmntent is available in none of the libraries checked.  This
77333         happens at least on FreeBSD 5.0.
77334
77335 2006-02-13  Simon Josefsson  <jas@extundo.com>
77336
77337         * gnulib-tool (Usage): Fix --import, from
77338         karl@freefriends.org (Karl Berry).
77339
77340 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
77341
77342         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
77343
77344 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
77345
77346         * lib/argp-namefrob.h: Restore changes accidentally lost during the
77347         "autoupdate" on 2005-12-12.
77348
77349 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
77350
77351         * modules/closeout (Depends-on): Remove atexit.
77352
77353 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
77354
77355         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
77356         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
77357
77358 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
77359
77360         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
77361         __EXTENSIONS__ if this causes compilation to fail.  Problem
77362         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
77363         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
77364
77365 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
77366
77367         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
77368         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
77369         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
77370         All uses changed.
77371
77372 2006-01-26  Simon Josefsson  <jas@extundo.com>
77373
77374         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
77375         prototype is visible on mingw32.
77376
77377         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
77378         for mingw32.
77379
77380         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
77381         mingw32).
77382
77383 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
77384
77385         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
77386         attempt to open for write; this always fails, at least on POSIX
77387         hosts.  This reinstates the 2006-01-09 change, which was
77388         inadvertently removed.
77389
77390 2006-01-26  Bruno Haible  <bruno@clisp.org>
77391
77392         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
77393         Reported by Paul Eggert.
77394
77395 2006-01-26  Bruno Haible  <bruno@clisp.org>
77396             Paul Eggert  <eggert@cs.ucla.edu>
77397
77398         * lib/stdbool_.h (_Bool)
77399         [(! (defined __cplusplus || defined __BEOS__)
77400           && !defined __GNUC__
77401           && !(defined __HP_cc || defined __xlc__
77402                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
77403                || defined __sgi))]:
77404         #define to signed char in these cases too; this simplifies
77405         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
77406         etc., separately) and makes it more conservative.
77407
77408 2006-01-25  Simon Josefsson  <jas@extundo.com>
77409
77410         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
77411         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
77412         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
77413
77414 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
77415
77416         * lib/argp-namefrob.h: Bugfix. Remove stray #
77417
77418 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
77419
77420         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
77421         so that we test the test.
77422         Check for yet another HP-UX cc bug involving *bool |= bool.
77423
77424 2006-01-25  Karl Berry  <karl@gnu.org>
77425
77426         * config/srclist.txt (vasnprintf.c): sync lost.
77427
77428 2006-01-25  Jim Meyering  <jim@meyering.net>
77429
77430         Sync from the stable (b5) branch of coreutils:
77431
77432         * lib/fts.c (fts_children): Don't let close() clobber errno from
77433         failed fchdir().
77434
77435         * lib/fts.c (fts_stat): When following a symlink-to-directory,
77436         don't necessarily interpret stat-fails+lstat-succeeds as indicating
77437         a dangling symlink.  That can also happen at least for ELOOP.
77438         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
77439         FYI, this bug predates the inclusion of fts.c in coreutils.
77440
77441         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
77442         in their own block, so pre-c99 compilers don't object.
77443
77444         Avoid the double-free (first in fts_read, second in fts_close) that
77445         would occur when an `active' directory is made inaccessible (e.g.,
77446         via chmod a-x) during a traversal.
77447         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
77448         before returning.  Reproduce this failure by
77449         mkdir -p a/b; cd a; chmod a-x . b
77450         Reported by Stavros Passas.
77451
77452 2006-01-25  Jim Meyering  <jim@meyering.net>
77453
77454         * lib/fileblocks.c: Remove more useless parentheses.
77455         * lib/readutmp.h: Likewise.
77456
77457 2006-01-25  Bruno Haible  <bruno@clisp.org>
77458
77459         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
77460         warnings.
77461         Reported by Paul Eggert.
77462
77463 2006-01-25  Bruno Haible  <bruno@clisp.org>
77464
77465         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
77466         rid of a trap command. For Solaris sh.
77467         Reported by Mark D. Baushke <mdb@gnu.org>.
77468
77469 2006-01-24  Simon Josefsson  <jas@extundo.com>
77470
77471         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
77472         Bruno.
77473
77474 2006-01-24  Karl Berry  <karl@gnu.org>
77475
77476         * config/srclist.txt (argp-namefrob.h): sync lost.
77477
77478 2006-01-24  Jim Meyering  <jim@meyering.net>
77479
77480         * modules/openat (Files): Add lib/intprops.h.
77481         From Mark D. Baushke.
77482
77483 2006-01-24  Jim Meyering  <jim@meyering.net>
77484
77485         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
77486         Reported by Mark D. Baushke.
77487
77488 2006-01-24  Jim Meyering  <jim@meyering.net>
77489
77490         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
77491
77492 2006-01-24  Bruno Haible  <bruno@clisp.org>
77493
77494         * modules/strnlen (Maintainer): Change from glibc to all.
77495
77496 2006-01-24  Bruno Haible  <bruno@clisp.org>
77497
77498         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
77499         Patch by Paul Eggert.
77500
77501 2006-01-24  Bruno Haible  <bruno@clisp.org>
77502
77503         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
77504         already has it.
77505         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
77506         2005-11-26.
77507
77508         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
77509         'signed char' to avoid problems with the built-in _Bool type.
77510         Reported by Paul Eggert on 2005-11-26.
77511
77512 2006-01-24  Bruno Haible  <bruno@clisp.org>
77513
77514         * gnulib-tool (func_import): Avoid constructing complicated sed
77515         expressions inside backquote.
77516         Report and solution by Mark D. Baushke <mdb@gnu.org>.
77517
77518 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
77519
77520         These changes imported from libc.
77521         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
77522         test and two separate function calls.
77523         * lib/strndup.c (__strndup): Add libc_hidden_def.
77524
77525 2006-01-23  Simon Josefsson  <jas@extundo.com>
77526
77527         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
77528         Remove the test_*_SOURCES variable: automake infers it by default.
77529         * modules/tls-tests: Likewise.
77530
77531 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77532
77533         Work around porting bugs reported by Dieter in
77534         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
77535         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
77536         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
77537         Include "getopt.h" first, to check interface.
77538         (getenv): Declare only if defined HAVE_DECL_GETENV &&
77539         !HAVE_DECL_GETENV.
77540         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
77541         (__strndup): Revert to K&R-style function dfns, the glibc style.
77542         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
77543         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
77544         Include strnlen.h first, to get prototype properly.
77545         (strnlen): Renamed from __strnlen.
77546         Remove weak alias.
77547
77548 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77549
77550         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
77551
77552 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77553
77554         * config/srclist.txt: Adjust to reflect glibc reorganization.
77555         This affects only comments.
77556
77557 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77558
77559          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
77560          Reported by Bruce Korb <bkorb@gnu.org>.
77561
77562 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
77563
77564         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
77565         to pacify gcc -Wswitch-default.
77566
77567 2006-01-22  Bruno Haible  <bruno@clisp.org>
77568
77569         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
77570         temporary buffer for sprintf, take into account the precision also
77571         for 'd', 'i', 'u', 'o', 'x', 'X'.
77572
77573 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
77574
77575         * modules/argp-tests: New module
77576         * tests/test-argp.c: New file
77577         * tests/test-argp-2.sh: New file
77578
77579 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
77580
77581         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
77582         (__argp_base_name): Removed
77583         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
77584         typo.
77585         (__argp_base_name): Provide macro definition or extern declaration
77586         depending on the configuration
77587
77588 2006-01-20  Simon Josefsson  <jas@extundo.com>
77589
77590         * modules/inet_ntop (Depends-on): Depend on sys_socket.
77591
77592 2006-01-20  Simon Josefsson  <jas@extundo.com>
77593
77594         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
77595
77596 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77597
77598         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
77599         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
77600         Suggested by Bruno Haible.
77601
77602 2006-01-20  Karl Berry  <karl@gnu.org>
77603
77604         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
77605         until changes propagate, I guess.
77606
77607 2006-01-19  Simon Josefsson  <jas@extundo.com>
77608
77609         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
77610
77611 2006-01-19  Simon Josefsson  <jas@extundo.com>
77612
77613         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
77614
77615 2006-01-19  Simon Josefsson  <jas@extundo.com>
77616
77617         * gnulib-tool: Set check_PROGRAMS.
77618
77619         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
77620         modules/des-tests, modules/gc-arcfour-tests,
77621         modules/gc-arctwo-tests, modules/gc-des-tests,
77622         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
77623         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
77624         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
77625         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
77626         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
77627         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
77628         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
77629         test_*_SOURCES.
77630
77631 2006-01-18  Simon Josefsson  <jas@extundo.com>
77632
77633         * modules/socklen (Depends-on): Depend on sys_socket.
77634
77635 2006-01-18  Simon Josefsson  <jas@extundo.com>
77636
77637         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
77638         modules/des-tests, modules/gc-arcfour-tests,
77639         modules/gc-arctwo-tests, modules/gc-des-tests,
77640         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
77641         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
77642         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
77643         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
77644         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
77645         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
77646         $(EXEEXT) to automake TESTS variable, for mingw32.
77647
77648 2006-01-17  Simon Josefsson  <jas@extundo.com>
77649
77650         * modules/socklen (Include): Need sys/socket.h.
77651
77652 2006-01-17  Bruno Haible  <bruno@clisp.org>
77653
77654         * modules/ssize_t (Include): Add <sys/types.h>.
77655
77656 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
77657
77658         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
77659         it's not portable and it doesn't work with cross-compiles.
77660         Problem reported by Bruno Haible.  Fix missing-$ typo in
77661         'test "gl_cv_ignore_unused_libraries" ...' that prevented
77662         -zignore from being used with Sun's C compiler.
77663
77664 2006-01-12  Simon Josefsson  <jas@extundo.com>
77665
77666         * lib/base64.c: Fix warning, reported by Bruno Haible
77667         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
77668
77669 2006-01-12  Bruno Haible  <bruno@clisp.org>
77670
77671         * modules/ldd: New file.
77672         * build-aux/ldd.sh.in: New file.
77673         * MODULES.html.sh (Support for building libraries and executables): Add
77674         ldd.
77675
77676 2006-01-12  Bruno Haible  <bruno@clisp.org>
77677
77678         * m4/ldd.m4: New file.
77679
77680 2006-01-12  Bruno Haible  <bruno@clisp.org>
77681
77682         * gnulib-tool (func_import, func_create_testdir): Don't go into an
77683         endless loop while replacing $auxdir with build-aux.
77684
77685 2006-01-11  Simon Josefsson  <jas@extundo.com>
77686
77687         * lib/stdint_.h (SIZE_MAX): Add missing (.
77688
77689 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
77690
77691         Sync from coreutils.
77692         * lib/md5.c: Fix commentary typos.
77693         (alignof, UNALIGNED_P): No need for a GCC-specific version.
77694         * lib/md5.h (__attribute__): Remove; unused.
77695         * lib/sha1.c: Fix commentary to match md5 better.
77696         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
77697         so that we don't need to worry about alignment.  All uses changed.
77698         This merges the 2005-10-28 md5 change into sha1.
77699
77700 2006-01-11  Jim Meyering  <jim@meyering.net>
77701
77702         Sync from coreutils.
77703         * lib/md5.c (OP): Fix spacing.
77704
77705 2006-01-11  Bruno Haible  <bruno@clisp.org>
77706
77707         Ensure automatic ordering between gl_LOCK and gl_ARGP.
77708         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
77709         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
77710
77711 2006-01-11  Bruno Haible  <bruno@clisp.org>
77712
77713         Ensure automatic ordering between gl_LOCK and gl_ARGP.
77714         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
77715         the "early" section as well.
77716
77717 2006-01-11  Bruno Haible  <bruno@clisp.org>
77718
77719         Avoid "ar: no archive members specified" error on MacOS X.
77720         * gnulib-tool (func_modules_add_dummy): New function.
77721         (func_import, func_create_testdir): Invoke it.
77722
77723 2006-01-11  Bruno Haible  <bruno@clisp.org>
77724
77725         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
77726         with $auxdir in AC_CONFIG_FILES statements.
77727
77728 2006-01-11  Bruno Haible  <bruno@clisp.org>
77729
77730         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77731         Initialize also noinst_HEADERS to empty.
77732
77733 2006-01-11  Bruno Haible  <bruno@clisp.org>
77734
77735         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
77736         variables.
77737         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
77738         autoreconf.
77739
77740 2006-01-11  Bruno Haible  <bruno@clisp.org>
77741
77742         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
77743         overridable by the user.
77744         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77745
77746 2006-01-10  Simon Josefsson  <jas@extundo.com>
77747
77748         * modules/sys_socket: New file.
77749
77750 2006-01-10  Simon Josefsson  <jas@extundo.com>
77751
77752         * m4/sys_socket_h.m4: New file.
77753
77754 2006-01-10  Simon Josefsson  <jas@extundo.com>
77755
77756         * lib/socket_.h: New file.
77757
77758 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
77759
77760         * modules/readutmp (Maintainer): Add myself.
77761
77762 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
77763
77764         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
77765         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
77766         People who are still concerned with buggy memcmp implementations
77767         can invoke gl_FUNC_MEMCMP themselves.
77768
77769 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
77770
77771         * lib/regex_internal.h (BITSET_WORD_BITS):
77772         Work around a bug in 64-bit PGC (before version 6.1-2), where the
77773         preprocessor mishandles large unsigned values as if they were signed.
77774         Problem reported by Claudio Fontana in
77775         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
77776
77777 2006-01-10  Jim Meyering  <jim@meyering.net>
77778
77779         Avoid the double-free (first in fts_read, second in fts_close) that
77780         would occur when an `active' directory is made inaccessible (e.g.,
77781         via chmod a-x) during a traversal.
77782         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
77783         before returning.  Reproduce this failure by
77784         mkdir -p a/b; cd a; chmod a-x . b
77785         Reported by Stavros Passas.
77786
77787         Sync from coreutils.
77788         * lib/sha1.c: Tweak grammar in a comment.
77789
77790 2006-01-10  Jim Meyering  <jim@meyering.net>
77791
77792         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
77793         Patch by Joerg Sonnenberger.
77794
77795 2006-01-10  Bruno Haible  <bruno@clisp.org>
77796
77797         * modules/readutmp: Depend on module free.
77798         * modules/strtok_r: Depend on module restrict.
77799
77800 2006-01-10  Bruno Haible  <bruno@clisp.org>
77801
77802         * modules/gettext (configure.ac): Add an invocation of
77803         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
77804
77805 2006-01-10  Bruno Haible  <bruno@clisp.org>
77806
77807         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
77808         Reported by Werner Lemberg <wl@gnu.org>.
77809
77810 2006-01-10  Bruno Haible  <bruno@clisp.org>
77811
77812         * lib/localcharset.c: Update from GNU gettext.
77813
77814 2006-01-10  Bruno Haible  <bruno@clisp.org>
77815
77816         * lib/argp.h (__const): Remove macro. Use const instead.
77817         * lib/argp-fmtstream.h (__const): Likewise.
77818         * lib/glob_.h (__const): Remove macro.
77819         * lib/glob-libc.h: Use const instead of __const.
77820
77821 2006-01-10  Bruno Haible  <bruno@clisp.org>
77822
77823         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
77824         variable.
77825         Needed to avoid an automake error regarding the 'gettext' module.
77826
77827 2006-01-09  Simon Josefsson  <jas@extundo.com>
77828
77829         * modules/inet_ntop (Depends-on): Add restrict.
77830
77831 2006-01-09  Simon Josefsson  <jas@extundo.com>
77832
77833         * modules/gc-rijndael-tests (License): Put under LGPL.
77834
77835         * modules/gc-des-tests (License): Likewise.
77836
77837         * modules/gc-arcfour-tests (License): Likewise.
77838
77839         * modules/gc-arctwo-tests (License): Likewise.
77840
77841         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
77842
77843         * modules/gc-hmac-sha1-tests (Files): Likewise.
77844
77845         * modules/gc-hmac-md5-tests (License): Likewise.
77846
77847         * modules/gc-sha1-tests (License): Likewise.
77848
77849         * modules/gc-md5-tests (License): Likewise.
77850
77851         * modules/gc-md4-tests (License): Likewise.
77852
77853         * modules/gc-md2-tests (License): Likewise.
77854
77855         * modules/gc-tests (License): Likewise.
77856
77857         * modules/des-tests (License): Likewise.
77858
77859         * modules/md4-tests (License): Likewise.
77860
77861         * modules/md2-tests (License): Likewise.
77862
77863 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
77864
77865         Sync from coreutils:
77866
77867         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
77868         * modules/lib-ignore: New file.
77869         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
77870         chdir-safer.m4, lchmod.m4.
77871         * modules/openat: Add mkdirat.c, openat-priv.h.
77872
77873 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
77874
77875         Sync from coreutils.
77876         * m4/lib-ignore.m4: New file.
77877         * m4/lchmod.m4: New file.
77878
77879 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
77880
77881         Sync from coreutils.
77882         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
77883         for write access: POSIX says that must fail.
77884         * lib/fts.c (diropen): Likewise.
77885         * lib/save-cwd.c (save_cwd): Likewise.
77886         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
77887         well, for minor improvements on hosts that lack O_DIRECTORY.
77888         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
77889         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
77890         Fall back on chown if open failed with EACCES.
77891
77892         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
77893         Report an error at compile-time if only a 1-second nominal clock
77894         resolution is found.
77895
77896         * lib/lchmod.h: New file.
77897         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
77898         (make_dir_parents): Use lchown rather than chown, and
77899         lchmod rather than chmod.
77900
77901         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
77902         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
77903         "proc" reported by n0dalus.
77904
77905         * lib/mountlist.c: Include <limits.h>.
77906         (dev_from_mount_options)
77907         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
77908         New function.  It no longer assumes "dev=" has the System V meaning
77909         on Linux (since it doesn't).  It also parses "dev=" more carefully.
77910         (read_file_system_list)
77911         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
77912         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
77913         dev= in that case.
77914
77915         * lib/posixtm.h (PDS_PRE_2000): New macro.
77916         * lib/posixtm.c (year): Arg is now syntax_bits rather than
77917         allow_century.  All usages changed.  Reject dates outside the range
77918         1969-1999 if PDS_PRE_2000 is used.
77919
77920 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
77921
77922         Sync from coreutils.
77923         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
77924         (Time of day items): Mention the possibility of leap seconds.
77925         Problem reported by Dr. David Alan Gilbert.
77926
77927 2006-01-09  Jim Meyering  <jim@meyering.net>
77928
77929         Sync from coreutils.
77930
77931         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
77932
77933         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
77934
77935         * lib/modechange.c (mode_compile): Reject an invalid mode string
77936         that starts with an octal digit.  From Andreas Gruenbacher.
77937
77938         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
77939         and dup to open_safer and dup_safer, respectively.
77940         (openat_permissive): Fix typo in comment.
77941
77942         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
77943         "gettext.h"; either no longer needed or are guaranteed by openat.h.
77944         (_): Remove; no longer needed.
77945         (openat): Renamed from rpl_openat; no need for rpl_openat
77946         since openat.h renames openat for us.
77947         Replace most of the body with a call to openat_permissive,
77948         to avoid duplicate code.
77949         Port to (probably hypothetical) environments were mode_t is
77950         wider than int.
77951         (openat_permissive): Require mode arg, so that we can check
77952         types better.  Put it just after flags.  Change cwd failure
77953         indicator from pointer-to-bool to pointer-to-errno-value.
77954         All callers changed.
77955         Invoke openat_save_fail and/or openat_restore_fail if
77956         cwd_errno is null, so that openat can call us.
77957         (openat_permissive, fdopendir, fstatat, unlinkat):
77958         Simplify errno handling to avoid some duplicate code,
77959         as it's OK to set errno on success.
77960         * lib/openat.h: Revamp code so that function macros depend on
77961         __OPENAT_PREFIX only, not also on AT_FDCWD.
77962         (openat_ro): Remove.  Caller changed to use openat_permissive.
77963         (openat_permissive): Now a macro, if not a function.
77964         (openat_restore_fail, openat_save_fail): Now always functions,
77965         since mkdirat needs them even if __OPENAT_PREFIX is defined.
77966
77967         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
77968         and openat.c.
77969         * lib/mkdirat.c: Include openat-priv.h.
77970         Remove definitions of macros defined therein.
77971         * lib/openat.c: Likewise.
77972
77973         * lib/mkdirat.c (mkdirat): New file and function.
77974         * lib/openat.h (mkdirat): Declare.
77975
77976         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
77977
77978         * lib/openat.h (openat_permissive): Declare.
77979         (openat_ro): Define.
77980
77981         * lib/openat.c (EXPECTED_ERRNO): New macro.
77982         (openat_permissive): New function -- used in remove.c rewrite.
77983         (all functions): Set errno just before returning, only if there
77984         was an actual failure.
77985         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
77986
77987         Emulate openat-family functions using Linux's procfs, if possible.
77988         Idea and some code based on Ulrich Drepper's glibc changes.
77989
77990         * lib/openat.c: (BUILD_PROC_NAME): New macro.
77991         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
77992         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
77993         before falling back on save_cwd and restore_cwd.
77994         (fdopendir, fstatat, unlinkat): Likewise.
77995
77996         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
77997         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
77998
77999         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
78000         as second argument to va_arg.  Otherwise, some versions of gcc
78001         warn that `if this code is reached, the program will abort'.
78002
78003 2006-01-09  Jim Meyering  <jim@meyering.net>
78004
78005         Sync from coreutils.
78006         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
78007         Require openat-priv.h.
78008
78009 2006-01-09  Bruno Haible  <bruno@clisp.org>
78010
78011         * modules/strnlen (Include): Use strnlen.h.
78012
78013 2006-01-09  Bruno Haible  <bruno@clisp.org>
78014
78015         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
78016
78017 2006-01-09  Bruno Haible  <bruno@clisp.org>
78018
78019         * lib/sysexit_.h (EX_OK): New macro.
78020         Suggested by Martin Lambers <marlam@marlam.de>.
78021
78022 2006-01-09  Bruno Haible  <bruno@clisp.org>
78023
78024         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
78025         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
78026
78027 2006-01-09  Bruno Haible  <bruno@clisp.org>
78028
78029         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
78030         numbers.
78031
78032 2006-01-09  Bruno Haible  <bruno@clisp.org>
78033
78034         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
78035         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
78036         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
78037         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
78038
78039 2006-01-09  Bruno Haible  <bruno@clisp.org>
78040
78041         * build-aux/javacomp.sh.in: New file, moved from lib/.
78042         * modules/javacomp-script (Files): Update.
78043         (configure.ac): Add AC_CONFIG_FILES invocation.
78044         (EXTRA_DIST): Remove variable.
78045
78046         * build-aux/javaexec.sh.in: New file, moved from lib/.
78047         * modules/javaexec (Files): Update.
78048         (configure.ac): Add AC_CONFIG_FILES invocation.
78049         (EXTRA_DIST): Remove javaexec.sh.in.
78050
78051         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
78052         * modules/csharpcomp-script (Files): Update.
78053         (configure.ac): Add AC_CONFIG_FILES invocation.
78054         (EXTRA_DIST): Remove variable.
78055
78056         * build-aux/csharpexec.sh.in: New file, moved from lib/.
78057         * modules/csharpexec (Files): Update.
78058         (configure.ac): Add AC_CONFIG_FILES invocation.
78059         (EXTRA_DIST): Remove csharpexec.sh.in.
78060
78061 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
78062
78063         Sync from coreutils.
78064
78065         Add POSIX ACL support
78066         * lib/acl.h (copy_acl, set_acl): Add declarations.
78067         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
78068         systems other than Linux.
78069         (chmod_or_fchmod): New function: use fchmod when possible,
78070         and chmod otherwise.
78071         (file_has_acl): Add a POSIX ACL implementation, with a
78072         Linux-specific subcase.
78073         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
78074         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
78075         acls are unsupported.
78076         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
78077         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
78078         are unsupported.
78079
78080 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
78081
78082         Sync from coreutils.
78083         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
78084
78085 2006-01-07  Bruno Haible  <bruno@clisp.org>
78086
78087         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
78088         gl_EARLY.
78089
78090 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78091
78092         * lib/strftime.c (tzname): Don't declare if it is already #defined.
78093         Problem reported for Mingw by Mark Junker.
78094
78095 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78096
78097         * README: Gnulib normally doesn't generate a tarball.
78098
78099 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
78100
78101         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
78102         long int, not int, for nanosecond counts, so that people who are
78103         used to POSIX struct timespec won't be surprised.  Reported by Jim
78104         Meyering.
78105
78106 2005-12-28  Bruno Haible  <bruno@clisp.org>
78107
78108         * build-aux/config.rpath: Update from GNU gettext.
78109
78110 2005-12-16  Jim Meyering  <jim@meyering.net>
78111
78112         * modules/fprintftime: New module.
78113         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
78114
78115 2005-12-16  Jim Meyering  <jim@meyering.net>
78116
78117         * m4/fprintftime.m4: New file.
78118
78119 2005-12-16  Jim Meyering  <jim@meyering.net>
78120
78121         * lib/fprintftime.c, lib/fprintftime.h: New files.
78122
78123 2005-12-15  Simon Josefsson  <jas@extundo.com>
78124
78125         * modules/socklen (configure.ac): Fix M4 macro name, to align with
78126         new m4/socklen.m4.
78127
78128 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
78129
78130         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
78131         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
78132
78133 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
78134
78135         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
78136         * lib/argp-help.c (fill_in_uparams): Check if the constructed
78137         struct uparams is valid. Fall back to the default values if it is
78138         not.
78139
78140 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78141
78142         * modules/argp (Files): Add argp-pin.c
78143         (Depends-on): dirname
78144         (lib_SOURCES): Add argp-pin.c
78145
78146 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78147
78148         * m4/argp.m4:  Check if program_invocation_name and
78149         program_invocation_short_name are declared and define appropriate
78150         macros if they are not.
78151
78152 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78153
78154         * lib/argp-help.c (__argp_base_name): New function
78155         (__argp_short_program_name): Rewrite using __argp_base_name
78156         * lib/argp-namefrob.h: Define program_invocation_name and
78157         program_invocation_short_name if requested
78158         (__argp_base_name): Add prototype
78159         * lib/argp-parse.c (argp_def): Use gettext wrappers
78160         (argp_default_parser): Use __argp_base_name
78161         * lib/argp-pin.c: New file. Defines program_invocation_name and
78162         program_invocation_short_name on systems that lack them.
78163
78164 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78165
78166         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
78167         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
78168         porting problem reported by Georg Schwarz in
78169         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
78170
78171 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78172
78173         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
78174         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
78175         porting problem reported by Georg Schwarz in
78176         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
78177
78178 2005-12-05  Bruno Haible  <bruno@clisp.org>
78179
78180         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
78181         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
78182         Reported by Mark Junker <mjscod@gmx.de>.
78183
78184 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
78185
78186         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
78187         Use implementation from Albert Chin, with some
78188         comments/corrections by Stepan Kasal and myself.
78189
78190 2005-12-02  Bruno Haible  <bruno@clisp.org>
78191
78192         * gnulib-tool (func_import): Accept GPLed build tool modules when
78193         --lgpl is given.
78194         * modules/csharpcomp-script: New file.
78195         * modules/csharpcomp: Depend on it.
78196         * modules/javacomp-script: New file.
78197         * modules/javacomp: Depend on it.
78198         Suggested by Simon Josefsson.
78199
78200 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
78201
78202         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
78203         statement, to work around an HP-UX 10.20 compiler bug reported by
78204         Peter O'Gorman.
78205
78206 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
78207
78208         * modules/savedir (Depends-on): Add openat.
78209
78210 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
78211
78212         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
78213         (uintmax_t) [defined uintmax_t]: Do not declare.
78214         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
78215         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
78216         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
78217         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
78218         sake of portability to weird hosts that C allows (though we don't
78219         know of any practical examples).
78220
78221         * lib/savedir.h (fdsavedir): New decl.
78222         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
78223         contains most of the former guts of savedir.
78224         (savedir): Use savedirstream.
78225         Include "openat.h".
78226
78227 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78228
78229         * modules/obstack (Files): Add m4/ulonglong.m4.
78230         Problem reported by Davide Angelocola.
78231
78232 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
78233
78234         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
78235         coreutils no longer futzes with rounding modes.
78236
78237 2005-11-14  Jim Meyering  <jim@meyering.net>
78238
78239         * lib/mkstemp-safer.c: Include <config.h>, required for possible
78240         replacement of mkstemp.
78241
78242 2005-11-10  Simon Josefsson  <jas@extundo.com>
78243
78244         * lib/readline.c: Remove EOL.
78245
78246 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78247
78248         * modules/gethrxtime (Depends-on): Add gettime.
78249
78250 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78251
78252         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
78253         or gettimeofday; no longer needed.
78254
78255 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78256
78257         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
78258         time business.
78259         (gethrxtime) [! (HAVE_NANOUPTIME
78260         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
78261         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
78262         our own approximation.
78263
78264 2005-11-08  Eric Blake  <ebb9@byu.net>
78265
78266         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
78267
78268 2005-11-08  Eric Blake  <ebb9@byu.net>
78269
78270         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
78271
78272 2005-11-04  Bruno Haible  <bruno@clisp.org>
78273
78274         * gnulib-tool: Implement --update mode.
78275
78276 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
78277
78278         Fix porting problem reported by Theodoros V. Kalamatianos.
78279         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
78280         Don't assume that futimes failing means we must fail.
78281
78282 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
78283
78284         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
78285         variables to suggest the intended function of the PATH_MAX check.
78286
78287 2005-10-30  Kean Johnston  <jkj@sco.com>
78288
78289         Trivial changes to support SCO systems.
78290         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
78291         as PATH_MAX.
78292         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
78293         where __ptr is null when no I/O is pending.
78294
78295 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78296
78297         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
78298         leave errno alone.  Problem reported by Dmitry V. Levin.
78299
78300 2005-10-28  Simon Josefsson  <jas@extundo.com>
78301
78302         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
78303         Test more.
78304
78305         * tests/test-gc-md2.c, tests/test-md2.c: New files.
78306
78307         * modules/md2, modules/md2-tests: New files.
78308
78309 2005-10-28  Simon Josefsson  <jas@extundo.com>
78310
78311         * m4/inet_ntop.m4: More tests.
78312
78313         * m4/gc-md2.m4, md2.m4: New file.
78314
78315 2005-10-28  Simon Josefsson  <jas@extundo.com>
78316
78317         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
78318         "restrict" keywords, as per POSIX.  Protect the function
78319         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
78320         Don't use K&R prototypes.  Check the sprintf return values.
78321         Re-define EAFNOSUPPORT if not present.  Indent.
78322
78323         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
78324         suggested by Bruno Haible <bruno@clisp.org>.
78325
78326         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
78327
78328         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
78329
78330         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
78331         libgcrypt).
78332
78333         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
78334
78335         * lib/md2.h, lib/md2.c: New files.
78336
78337 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
78338
78339         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
78340         errno alone.  Problem reported by Frederic Jolliton.
78341
78342 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
78343
78344         * modules/verify (License): Change from GPL to LGPL.  This is a
78345         tiny module and there are apparently near-equivalents that are
78346         under the BSD license.
78347
78348 2005-10-24  Simon Josefsson  <jas@extundo.com>
78349
78350         * modules/sha1: Relicense to LGPL.
78351
78352 2005-10-24  Simon Josefsson  <jas@extundo.com>
78353
78354         * lib/md4.h: Shrink buffer size, now that we changed the type.
78355
78356 2005-10-23  Simon Josefsson  <jas@extundo.com>
78357
78358         * gnulib-tool (func_import): Fix --tests-base.
78359
78360 2005-10-22  Simon Josefsson  <jas@extundo.com>
78361
78362         * modules/arcfour (Depends-on): Need stdint.
78363
78364 2005-10-22  Simon Josefsson  <jas@extundo.com>
78365
78366         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
78367         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
78368
78369 2005-10-22  Simon Josefsson  <jas@extundo.com>
78370
78371         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
78372         suggested by Bruno Haible <bruno@clisp.org>.
78373
78374 2005-10-22  Simon Josefsson  <jas@extundo.com>
78375
78376         * lib/crc.h: Include stddef.h, for size_t.
78377
78378 2005-10-22  Simon Josefsson  <jas@extundo.com>
78379
78380         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
78381         arcfour_context struct (simplify test vector testing in GNU
78382         Shishi).
78383
78384 2005-10-21  Simon Josefsson  <jas@extundo.com>
78385
78386         * modules/des, modules/des-tests: New files.
78387
78388         * modules/gc-des, modules/gc-des-tests: New files.
78389
78390         * tests/test-des.c, tests/test-gc-des.c: New file.
78391
78392 2005-10-21  Simon Josefsson  <jas@extundo.com>
78393
78394         * modules/arctwo, modules/arctwo-tests: New files.
78395
78396         * tests/test-arctwo.c: New file.
78397
78398         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
78399
78400         * tests/test-gc-arctwo.c: New file.
78401
78402 2005-10-21  Simon Josefsson  <jas@extundo.com>
78403
78404         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
78405         Bruno Haible <bruno@clisp.org>.
78406
78407         * m4/gc-des.m4: New file.
78408
78409 2005-10-21  Simon Josefsson  <jas@extundo.com>
78410
78411         * m4/arctwo.m4: New file.
78412
78413         * m4/gc-arctwo.m4: New file.
78414
78415 2005-10-21  Simon Josefsson  <jas@extundo.com>
78416
78417         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
78418         block.
78419
78420 2005-10-21  Simon Josefsson  <jas@extundo.com>
78421
78422         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
78423         <bruno@clisp.org>.
78424
78425         * lib/hmac-sha1.c (hmac_sha1): Likewise.
78426
78427         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
78428         Bruno Haible <bruno@clisp.org>.
78429
78430         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
78431         <bruno@clisp.org>.
78432
78433 2005-10-21  Simon Josefsson  <jas@extundo.com>
78434
78435         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
78436
78437 2005-10-21  Simon Josefsson  <jas@extundo.com>
78438
78439         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
78440
78441 2005-10-21  Simon Josefsson  <jas@extundo.com>
78442
78443         * lib/des.h, lib/des.c: New files.
78444
78445         * lib/gc-gnulib.c: Support DES.c
78446
78447 2005-10-21  Simon Josefsson  <jas@extundo.com>
78448
78449         * lib/arctwo.h, lib/arctwo.c: New files.
78450
78451         * lib/gc-gnulib.c: Support ARCTWO.
78452
78453 2005-10-21  Simon Josefsson  <jas@extundo.com>
78454
78455         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
78456         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78457
78458 2005-10-21  Simon Josefsson  <jas@extundo.com>
78459
78460         * gnulib-tool (func_import, func_create_testdir): Define automake
78461         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
78462         Makefile.am snippet),
78463         suggested by Bruno Haible <bruno@clisp.org>.
78464
78465         * modules/gc (Makefile.am): Use it.
78466
78467 2005-10-21  Bruno Haible  <bruno@clisp.org>
78468
78469         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
78470         patch.
78471
78472 2005-10-19  Simon Josefsson  <jas@extundo.com>
78473
78474         * tests/test-gc-rijndael.c: New file.
78475
78476         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
78477
78478 2005-10-19  Simon Josefsson  <jas@extundo.com>
78479
78480         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
78481         interface too.
78482
78483 2005-10-19  Simon Josefsson  <jas@extundo.com>
78484
78485         * tests/test-gc-arcfour.c: New file.
78486
78487         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
78488
78489 2005-10-19  Simon Josefsson  <jas@extundo.com>
78490
78491         * modules/gc-md4, modules/gc-md4-tests: New file.
78492
78493         * tests/test-gc-md4.c: New file.
78494
78495 2005-10-19  Simon Josefsson  <jas@extundo.com>
78496
78497         * m4/gc-md4.m4: New file.
78498
78499 2005-10-19  Simon Josefsson  <jas@extundo.com>
78500
78501         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
78502         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
78503         <kasal@ucw.cz>.
78504
78505 2005-10-19  Simon Josefsson  <jas@extundo.com>
78506
78507         * m4/gc-arcfour.m4: New file.
78508
78509         * m4/gc-rijndael.m4: New file.
78510
78511 2005-10-19  Simon Josefsson  <jas@extundo.com>
78512
78513         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
78514
78515 2005-10-19  Simon Josefsson  <jas@extundo.com>
78516
78517         * lib/gc-gnulib.c: Support ARCFOUR.
78518
78519 2005-10-19  Simon Josefsson  <jas@extundo.com>
78520
78521         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
78522         support.
78523
78524         * lib/gc.h: Add ECB enum type.
78525
78526         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
78527
78528 2005-10-18  Simon Josefsson  <jas@extundo.com>
78529
78530         * tests/test-md5.c: New file.
78531
78532         * modules/md5-tests: New file.
78533
78534 2005-10-18  Simon Josefsson  <jas@extundo.com>
78535
78536         * tests/test-md4.c: New file.
78537
78538         * modules/md4, modules/md4-tests: New files.
78539
78540 2005-10-18  Simon Josefsson  <jas@extundo.com>
78541
78542         * m4/md4.m4: New file.
78543
78544 2005-10-18  Simon Josefsson  <jas@extundo.com>
78545
78546         * lib/md4.h, lib/md4.c: New files, based on md5.?.
78547
78548 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
78549
78550         * gnulib-tool (func_create_testdir): Omit the second check whether
78551         BUILT_SOURCES in nonempty.
78552
78553 2005-10-17  Simon Josefsson  <jas@extundo.com>
78554
78555         * tests/test-rijndael.c: New file.
78556
78557 2005-10-17  Simon Josefsson  <jas@extundo.com>
78558
78559         * modules/sha1: Depend on stdint instead of md5.
78560
78561         * modules/md5: Depend on stdint, remove uint32_t.
78562
78563 2005-10-17  Simon Josefsson  <jas@extundo.com>
78564
78565         * modules/gc-sha1-tests: New file.
78566
78567         * tests/test-gc-sha1.c: New file.
78568
78569 2005-10-17  Simon Josefsson  <jas@extundo.com>
78570
78571         * m4/md5.m4: Remove call to uint32_t.m4.
78572
78573 2005-10-17  Simon Josefsson  <jas@extundo.com>
78574
78575         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
78576
78577         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
78578         md5.h.
78579
78580         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
78581
78582         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
78583
78584 2005-10-17  Simon Josefsson  <jas@extundo.com>
78585
78586         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
78587
78588 2005-10-17  Simon Josefsson  <jas@extundo.com>
78589
78590         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
78591
78592 2005-10-17  Simon Josefsson  <jas@extundo.com>
78593
78594         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
78595
78596         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
78597
78598 2005-10-17  Bruno Haible  <bruno@clisp.org>
78599
78600         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
78601         that it can also be used in a test.
78602
78603 2005-10-16  Bruno Haible  <bruno@clisp.org>
78604
78605         * gnulib-tool (func_emit_tests_Makefile_am): Also define
78606         TESTS_ENVIRONMENT, so that individual tests can augment it.
78607
78608         * gnulib-tool (func_create_testdir): Use an intermediate target for
78609         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
78610         macros, like $(ALLOCA_H), which cannot be passed through the command
78611         line.
78612
78613 2005-10-15  Simon Josefsson  <jas@extundo.com>
78614
78615         * modules/rijndael-tests: New file.
78616
78617         * modules/rijndael: New file.
78618
78619 2005-10-15  Simon Josefsson  <jas@extundo.com>
78620
78621         * m4/rijndael.m4: New file.
78622
78623 2005-10-15  Simon Josefsson  <jas@extundo.com>
78624
78625         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
78626
78627         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
78628
78629 2005-10-14  Simon Josefsson  <jas@extundo.com>
78630
78631         * tests/test-arcfour.c: New file.
78632
78633         * modules/arcfour, modules/arcfour-tests: New files.
78634
78635 2005-10-14  Simon Josefsson  <jas@extundo.com>
78636
78637         * m4/arcfour.m4: New file.
78638
78639 2005-10-14  Simon Josefsson  <jas@extundo.com>
78640
78641         * lib/arcfour.h, lib/arcfour.c: New files.
78642
78643 2005-10-14  Roland McGrath  <roland@redhat.com>
78644
78645         Import from libc.  [BZ #1331]
78646         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
78647         macro argument.
78648         Reported by Matej Vela <vela@debian.org>.
78649
78650 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
78651
78652         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
78653         include <wchar.h>; no longer needed.
78654
78655 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
78656
78657         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
78658
78659 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
78660         and  Ulrich Drepper  <drepper@redhat.com>
78661
78662         Import from libc.
78663         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
78664         instead of inline stream orientation test and two separate
78665         function calls.  Pay no attention to USE_IN_LIBIO.
78666
78667 2005-10-13  Simon Josefsson  <jas@extundo.com>
78668
78669         * modules/gc-hmac-md5-tests: New file.
78670
78671         * tests/test-gc-hmac-sha1.c: New file.
78672
78673         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
78674
78675         * modules/gc-hmac-md5-tests: New file.
78676
78677         * tests/test-gc-md5.c: New file.
78678
78679         * modules/gc-md5-tests: New file.
78680
78681 2005-10-13  Simon Josefsson  <jas@extundo.com>
78682
78683         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
78684         Move memory allocation outside of loop.
78685
78686 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
78687
78688         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
78689         intermediate directory is in a read-only file system.  Problem
78690         reported by Eric Blake.
78691
78692 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
78693
78694         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
78695
78696 2005-10-12  Simon Josefsson  <jas@extundo.com>
78697
78698         * tests/test-hmac-sha1.c: New file.
78699
78700         * modules/hmac-sha1-tests: New file.
78701
78702         * modules/hmac-sha1: New file.
78703
78704 2005-10-12  Simon Josefsson  <jas@extundo.com>
78705
78706         * modules/gc-sha1: New file.
78707
78708 2005-10-12  Simon Josefsson  <jas@extundo.com>
78709
78710         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
78711
78712         * tests/test-gc-pbkdf2-sha1.c: New file.
78713
78714 2005-10-12  Simon Josefsson  <jas@extundo.com>
78715
78716         * modules/gc-md5, modules/gc-hmac-md5: New files.
78717
78718         * modules/gc (Files): Remove md5, memxor and hmac files.
78719
78720 2005-10-12  Simon Josefsson  <jas@extundo.com>
78721
78722         * m4/gc-pbkdf2-sha1.m4: New file.
78723
78724         * m4/gc-hmac-sha1.m4: New file.
78725
78726         * m4/gc-sha1: New file.
78727
78728         * m4/hmac-sha1.m4: New file.
78729
78730 2005-10-12  Simon Josefsson  <jas@extundo.com>
78731
78732         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
78733
78734         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
78735
78736 2005-10-12  Simon Josefsson  <jas@extundo.com>
78737
78738         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
78739         suggested by Bruno Haible <bruno@clisp.org>.
78740
78741 2005-10-12  Simon Josefsson  <jas@extundo.com>
78742
78743         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
78744
78745 2005-10-12  Simon Josefsson  <jas@extundo.com>
78746
78747         * lib/gc-pbkdf2-sha1.c: New file.
78748
78749         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
78750
78751 2005-10-12  Simon Josefsson  <jas@extundo.com>
78752
78753         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
78754
78755         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
78756
78757 2005-10-12  Simon Josefsson  <jas@extundo.com>
78758
78759         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
78760         GC_USE_HMAC_MD5, respectively.
78761
78762         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
78763         (gc_md5): Fix typo.
78764
78765         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
78766
78767         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
78768
78769         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
78770
78771 2005-10-12  Bruno Haible  <bruno@clisp.org>
78772
78773         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
78774         Reported by Stepan Kasal <kasal@ucw.cz>.
78775
78776 2005-10-11  Simon Josefsson  <jas@extundo.com>
78777
78778         * tests/test-crc.c: New file.
78779
78780         * modules/crc, modules/crc-tests: New files.
78781
78782 2005-10-11  Simon Josefsson  <jas@extundo.com>
78783
78784         * m4/crc.m4: New file.
78785
78786 2005-10-11  Simon Josefsson  <jas@extundo.com>
78787
78788         * lib/gc.h: Add gc_hash and gc_hash_buffer.
78789
78790         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
78791
78792         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
78793
78794 2005-10-11  Simon Josefsson  <jas@extundo.com>
78795
78796         * lib/crc.h, lib/crc.c: New files.
78797
78798         * lib/gc.h (gc_hash_buffer): Add doc.
78799
78800 2005-10-11  Bruno Haible  <bruno@clisp.org>
78801
78802         * modules/c-strcasestr: New file.
78803         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
78804
78805 2005-10-11  Bruno Haible  <bruno@clisp.org>
78806
78807         * modules/c-strcase: New file.
78808         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
78809
78810 2005-10-11  Bruno Haible  <bruno@clisp.org>
78811
78812         * lib/strcasecmp.c: Include limits.h.
78813         (strcasecmp): Avoid integer overflow on exotic platforms.
78814         * lib/strncasecmp.c: Include limits.h.
78815         (strncasecmp): Avoid integer overflow on exotic platforms.
78816         Reported by Paul Eggert.
78817
78818 2005-10-11  Bruno Haible  <bruno@clisp.org>
78819
78820         * lib/c-strcasestr.h: New file, from GNU gettext.
78821         * lib/c-strcasestr.c: New file, from GNU gettext.
78822
78823 2005-10-11  Bruno Haible  <bruno@clisp.org>
78824
78825         * lib/c-strcase.h: New file, from GNU gettext.
78826         * lib/c-strcasecmp.c: New file, from GNU gettext.
78827         * lib/c-strncasecmp.c: New file, from GNU gettext.
78828
78829 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
78830
78831         * modules/mempcpy (License): GPL -> LGPL.
78832         * modules/strchrnul (License): Likewise.
78833         * modules/sysexits (License): Likewise.
78834
78835 2005-10-08  Simon Josefsson  <jas@extundo.com>
78836
78837         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
78838
78839 2005-10-07  Simon Josefsson  <jas@extundo.com>
78840
78841         * m4/memxor.m4: Remove gl_C_RESTRICT call.
78842
78843 2005-10-06  Simon Josefsson  <jas@extundo.com>
78844
78845         * tests/test-hmac-md5.c: New file.
78846
78847         * modules/hmac-md5-tests: New file.
78848
78849         * modules/hmac-md5: New file.
78850
78851 2005-10-06  Simon Josefsson  <jas@extundo.com>
78852
78853         * m4/hmac-md5.m4: New file.
78854
78855         * m4/memxor.m4: Require gl_C_RESTRICT.
78856
78857 2005-10-06  Simon Josefsson  <jas@extundo.com>
78858
78859         * lib/memxor.c (memxor): Avoid casts and warnings.
78860
78861 2005-10-06  Simon Josefsson  <jas@extundo.com>
78862
78863         * lib/hmac-md5.c: New file.
78864
78865         * lib/hmac.h: New file.
78866
78867 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
78868
78869         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
78870         promotes to int, not unsigned int, to catch the AIX 5.3
78871         compiler bug.
78872
78873 2005-10-05  Simon Josefsson  <jas@extundo.com>
78874
78875         * modules/memxor: New file.
78876
78877         * modules/iconv (Files): Move config.rpath to havelib, it is used
78878         there.
78879
78880         * modules/havelib (Files): Add config.rpath.
78881
78882 2005-10-05  Simon Josefsson  <jas@extundo.com>
78883
78884         * m4/memxor.m4: New file.
78885
78886 2005-10-05  Simon Josefsson  <jas@extundo.com>
78887
78888         * lib/memxor.c (memxor): Fix compiler error.
78889
78890         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
78891         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
78892
78893         * lib/memxor.h, lib/memxor.c: New files.
78894
78895         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
78896         we assume all systems have it, suggested by Jim Meyering
78897         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
78898         any systems lack sys/socket.h; mingw32 is known to lack it, but we
78899         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
78900         same reasons.
78901
78902 2005-10-05  Simon Josefsson  <jas@extundo.com>
78903
78904         * config/srclist.txt: Add glibc bug 1423 for md5.h.
78905
78906 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
78907
78908         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
78909         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
78910         needed, since the source code now assumes these .h files.
78911
78912 2005-10-05  Derek Price  <derek@ximbiot.com>
78913
78914         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
78915
78916 2005-10-05  Bruno Haible  <bruno@clisp.org>
78917
78918         * modules/stdint (License): Change to LGPL.
78919
78920 2005-10-04  Simon Josefsson  <jas@extundo.com>
78921
78922         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
78923         D. Baushke" <mdb@gnu.org>.
78924
78925 2005-10-04  Bruno Haible  <bruno@clisp.org>
78926
78927         * lib/verify.h (verify_true): Provide alternative definition for C++.
78928
78929 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
78930
78931         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
78932         (SSIZE_MAX): New macro, if not already defined.
78933         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
78934         than 2 GiB.
78935
78936 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
78937
78938         Sync from coreutils.
78939         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
78940         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
78941         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
78942         ULLONG_MAX doesn't work with 2.7.2.1.
78943
78944 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
78945
78946         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
78947         From Ben Pfaff.
78948
78949         * modules/exclude (Depends-on): Depend on verify.
78950         * modules/strtoimax (Depends-on): Likewise.
78951         * modules/utimecmp (Depends-on): Likewise.
78952
78953 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
78954
78955         * lib/exclude.c: Include verify.h.
78956         (verify): Remove.  All callers changed to use verify.h's version.
78957         * lib/strtoimax.c: Likewise.
78958         * lib/utimecmp.c: Likewis.e
78959
78960         Sync from coreutils.
78961         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
78962         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
78963         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
78964         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
78965         bother returning ENOSYS if settimeofday or stime fails; just let
78966         them return whatever errno they want to return.
78967         * lib/utimens.c: Include unistd.h, for dup2.
78968         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
78969         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
78970
78971 2005-10-02  Jim Meyering  <jim@meyering.net>
78972
78973         Sync from coreutils.
78974         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
78975         from glibc-2.2.5 that fails for read-only files.
78976
78977 2005-10-02  Jim Meyering  <jim@meyering.net>
78978
78979         Sync from coreutils.
78980         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
78981         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
78982         `#if HAVE_CONFIG_H'.
78983         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
78984         Remove AT_FDCWD test.
78985         Do not consume the fd unless successful.
78986         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
78987         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
78988         block, so that we don't even try to compile it if settimeofday is
78989         available.  This works around a compilation failure on OSF1 V5.1,
78990         due to stime requiring a `long int*' while tv_sec is `int'.
78991
78992 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
78993
78994         Sync from coreutils.
78995         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
78996         against `yes', rather than just testing for nonempty.
78997
78998 2005-10-01  Simon Josefsson  <jas@extundo.com>
78999
79000         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
79001         and Darwin.
79002
79003         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
79004         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
79005         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
79006         freeaddrinfo and gai_strerror are declared by the POSIX headers.
79007         Check if struct addrinfo is declared.
79008
79009 2005-10-01  Simon Josefsson  <jas@extundo.com>
79010
79011         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
79012         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
79013         AI_* and EAI_* definitions.  Protect function declarations.
79014
79015 2005-10-01  Jim Meyering  <jim@meyering.net>
79016
79017         Sync from coreutils.
79018
79019         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
79020         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
79021         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
79022         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
79023         in the inet and nsl libraries.  Required on Solaris 5.7.
79024
79025 2005-10-01  Jim Meyering  <jim@meyering.net>
79026
79027         Sync from coreutils.
79028         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
79029         in the inet and nsl libraries.  Required on Solaris 5.7.
79030
79031 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
79032
79033         * lib/getdelim.c (getdelim): Remove unused variables.
79034
79035 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
79036
79037         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
79038         so that the code works even with ancient cpp.  Portability problem
79039         with GCC 2.7.2.1 reported by Thomas M.Ott.
79040
79041 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
79042
79043         * modules/regex (Depends-on): Add strcase.
79044
79045         * modules/gethostname (Licence): Change from GPL to LGPL, since
79046         gethostname.c is a trivial implementation of a standard library
79047         function.
79048         * modules/poll (License): Change from GPL to LGPL, since it's
79049         derived from LGPL code.
79050
79051 2005-09-27  Jim Meyering  <jim@meyering.net>
79052
79053         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
79054         HAVE_CONFIG_H.
79055
79056         * lib/intprops.h (signed_type_or_expr__): Define.
79057         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
79058         for unsigned types.
79059
79060 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
79061
79062         * lib/verify.h (verify_expr): Remove, replacing with:
79063         (verify_true): New macro that returns true instead of void.
79064         (verify_type__): Remove.
79065         (verify): Use verify_true rather than verify_type__.
79066
79067 2005-09-26  Bruno Haible  <bruno@clisp.org>
79068
79069         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
79070         is necessary.
79071         (lib_SOURCES): Remove mbchar.c.
79072         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
79073         (Files): Add m4/mbrtowc.m4.
79074         * modules/mbiter: Likewise.
79075         * modules/mbuiter: Likewise.
79076
79077 2005-09-26  Bruno Haible  <bruno@clisp.org>
79078
79079         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
79080         compile mbchar.c if they are not both present.
79081         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
79082         * m4/mbiter.m4 (gl_MBITER): Likewise.
79083         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
79084         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
79085         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
79086
79087 2005-09-25  Jim Meyering  <jim@meyering.net>
79088
79089         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
79090         also uses socklen_t.
79091
79092 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
79093
79094         * lib/utimens.c (ENOSYS): Define if not already defined.
79095         (futimens): Support having a null PATH if the file descriptor
79096         is nonnegative.
79097
79098         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
79099         Remove.
79100         (__attribute): Define to empty unless GCC 3.1 or later.
79101         This works around a core dump on OpenBSD 3.4, which has GCC
79102         2.95.3, which dumps core when given __attribute__(()).  It also
79103         simplifies other tests, since we really don't want to bother with
79104         worrying about which ancient version of GCC supported what.
79105         Original problem reported by Yoann Vandoorselaere, with part of
79106         the fix suggested by Derek Price.
79107
79108 2005-09-24  Jim Meyering  <jim@meyering.net>
79109
79110         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
79111         so we can once again use a positive bitfield width of 1 -- now we
79112         don't have to explain why we were using a bitfield width of 2.
79113
79114 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
79115
79116         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
79117         and similarly for the other external symbols.  Problem reported
79118         by James Gallager.
79119
79120         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
79121         bug reported by Jim Meyering.
79122
79123         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
79124         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
79125         not needed, since socklen is a prerequisite module.
79126
79127 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
79128
79129         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
79130         Problem reported by Eric Blake.
79131         (getaddrinfo): Initialize se so that it's not garbage.
79132         Redo internal storage allocation so that it doesn't make unportable
79133         assumptions about alignment.
79134         Fix a memory leak.
79135
79136         * lib/utimens.c (futimens): Use futimesat if available.
79137         Prefer it to futimes since it doesn't have the futimes bug.
79138
79139         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
79140         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
79141         Instead, declare a function that returns a pointer to an array,
79142         and use verify_type__ to declare the size of the array.
79143         Problem and germ of a solution reported by Bruno Haible.
79144         (verify_type__): Use 2, not 1, for bitfield size, to avoid
79145         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
79146
79147 2005-09-23  Jim Meyering  <jim@meyering.net>
79148
79149         Sync from coreutils.
79150         Correct build failure (socklen_t not defined) on at least
79151         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
79152         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
79153
79154 2005-09-23  Jim Meyering  <jim@meyering.net>
79155
79156         * modules/getaddrinfo (Depends-on): Add socklen.
79157
79158 2005-09-23  Bruno Haible  <bruno@clisp.org>
79159
79160         * tests/test-verify.c: New file.
79161
79162 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79163
79164         Sync from coreutils.
79165
79166         * modules/argmatch (Depends-on): Add verify.
79167         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
79168         unistd-safer.
79169         * modules/save-cwd (Depends-on): Likewise.
79170
79171         * modules/openat (Files): Add lib/openat-die.c.
79172         (Depends-on): Remove error, exitfail.
79173         Add dirname.
79174
79175         * modules/verify: New file.
79176         * MODULES.html.sh (Diagnostics <assert.h>): New section,
79177         with "verify" module.
79178
79179 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79180
79181         Sync from coreutils.
79182
79183         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
79184         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
79185         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
79186         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
79187         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
79188         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
79189         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
79190         Don't bother checking for string.h, stdlib.h, unistd.h.
79191         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
79192         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
79193         module's job.
79194         * m4/jm-macros.m4 (gl_MACROS): Likewise.
79195         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
79196
79197         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
79198         (gl_GETDATE): Use it.
79199
79200         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
79201
79202 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79203
79204         Sync from coreutils.
79205
79206         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
79207         stat-time.h.
79208         * lib/argmatch.h: Include verify.h
79209         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
79210         (ARGMATCH_ASSERT): Remove; unused.
79211         * lib/canonicalize.c: Assume STDC_HEADERS.
79212         * lib/exclude.c: Include "strcase.h".
79213         * lib/regex_internal.h [!defined _LIBC]: Likewise.
79214         * lib/getusershell.c: Include stdio--.h rather than stdio.h
79215         and stdio-safer.h.
79216         (getusershell): Call fopen, not fopen_safer.
79217         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
79218         Do not include unistd-safer.h.
79219         (save_cwd): Don't call fd_safer; no longer needed
79220         now that we include fcntl--.h.
79221
79222         * lib/getdate.y (relative_time): New type.
79223         (RELATIVE_TIME_0): New constant.
79224         (parser_control): Use relative_time instead of doing it ourselves.
79225         (%union): Add new relative_time rel member.
79226         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
79227         Now typeless.
79228         (relunit, relunit_snumber): Now of type rel.
79229         (zone, rel, relunit, get_date): Adjust to above changes.
79230
79231         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
79232         Do not include unistd-safer.h.
79233         (getloadavg): Don't call fd_safer; no longer needed
79234         now that we include fcntl--.h.
79235
79236         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
79237         (make_dir_parents): Treat ENOSYS like EEXIST.
79238
79239         Improve quality of diagnostics on restore_cwd failure.
79240         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
79241         (make_dir_parents): Last arg is now int * (for errno), not bool *.
79242         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
79243         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
79244         each time through the loop.  Do not diagnose restore_cwd failure;
79245         that is the caller's job (and perhaps the caller does not care).
79246
79247         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
79248         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
79249         If the file already exists but is not a directory, don't bother
79250         to try to make its parents.
79251         Close potential file descriptor leak if we can't chdir("/") (!).
79252         Don't always return true if chdir($PWD) fails; return true only
79253         if the requested action was done successfully (except for the
79254         chdir($PWD)).
79255         Don't log final directory unless we actually made it.
79256         Refactor to avoid duplicate code to fix up permissions.
79257         Don't attempt to fix up parent permissions if chdir($PWD) fails.
79258
79259         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
79260         to make it a bit faster and (I hope) clearer.
79261         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
79262         Fix bug in formats like %2N.
79263
79264         * lib/verify.h: New file.
79265
79266 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79267
79268         Sync from coreutils.
79269         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
79270
79271 2005-09-22  Jim Meyering  <jim@meyering.net>
79272
79273         Sync from coreutils.
79274
79275         * m4/lstat.m4 (gl_FUNC_LSTAT):
79276         Use AC_LIBSOURCES to require lstat.c and lstat.h.
79277         Remove obsolete comment.
79278         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
79279         * m4/xstrtod.m4: Likewise.
79280
79281         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
79282
79283 2005-09-22  Jim Meyering  <jim@meyering.net>
79284
79285         Sync from coreutils.
79286
79287         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
79288
79289         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
79290         the .tm_year member, since otherwise gcc-4.0 would now warn about
79291         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
79292
79293         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
79294         order to avoid an unsuppressible warning from gcc on 64-bit systems.
79295
79296         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
79297         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
79298         when run in a time zone for which daylight savings time is in effect
79299         for the starting date.
79300
79301         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
79302         stop us from restricting permissions of just-created absolute-named
79303         directories.
79304         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
79305         to restore initial working directory.
79306         * lib/mkdir-p.c (make_dir_parents): New parameter:
79307         different_working_dir, to tell caller if/when we change the working
79308         directory and are unable to return to the initial one.
79309         * lib/mkdir-p.h (make_dir_parents): Update prototype.
79310         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
79311         `return false'.  This fixes a bug introduced on 2004-07-30.
79312
79313         * lib/openat.c (fdopendir): Be sure to close the supplied
79314         file descriptor before returning.  This makes our replacement
79315         implementation a little closer to Solaris's, where fdopendir
79316         ties the file descriptor to the returned DIR* pointer.
79317         * lib/openat.c (unlinkat): New function.
79318         * lib/openat.h (unlinkat): Add prototype.
79319         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
79320         (openat_restore_fail): Rename from openat_restore_die.
79321         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
79322
79323         Provide an alternative to exiting immediately upon save_cwd or
79324         restore_cwd failure.  Now, an application can arrange e.g.,
79325         to perform a longjump in that case.
79326         * lib/openat.c: Include dirname.h.
79327         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
79328         (rpl_openat, fdopendir, fstatat): Call openat_save_die
79329         and openat_restore_die rather than calling error directly.
79330         Don't include "error.h" or "exitfail.h"; they're no longer needed.
79331
79332         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
79333         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
79334         define.
79335
79336         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
79337         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
79338                             int utc, int nanoseconds);
79339         Background:
79340         date should not have to allocate a megabyte of virtual memory to
79341         handle a format argument like +%1048575T.  When implemented with
79342         strftime, it must allocate such a buffer, use strftime to fill it
79343         in, print it, then free it.
79344         With fprintftime, it simply prints everything and exits.
79345         With no need for memory allocation, that's one fewer way to fail.
79346         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
79347         optional field width, not before, so we accept %9:z, not %:9z.
79348         (my_strftime): Be sure to use L_('x') for literals.
79349
79350         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
79351         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
79352         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
79353         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
79354         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
79355         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
79356         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
79357         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
79358         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
79359         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
79360         * lib/xgethostname.c, lib/xreadlink.c:
79361         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
79362
79363         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
79364         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
79365         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
79366         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
79367         and don't include <sys/file.h>).
79368
79369 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
79370
79371         Sync from coreutils.
79372
79373         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
79374         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
79375         [!LDAV_DONE]: Avoid unused variable warning.
79376
79377 2005-09-21  Bruno Haible  <bruno@clisp.org>
79378
79379         * lib/unicodeio.h (unicode_to_mb): New declaration.
79380
79381 2005-09-20  Derek Price  <derek@ximbiot.com>
79382
79383         * lib/getaddrinfo.c: Don't include <netdb.h> included from
79384         getaddrinfo.h.
79385
79386 2005-09-20  Bruno Haible  <bruno@clisp.org>
79387
79388         * gnulib-tool: Remove trailing slashes from the values specified for
79389         --source-base, --m4-base, --tests-base, --aux-dir.
79390         Suggested by Simon Josefsson <jas@extundo.com>.
79391
79392 2005-09-20  Bruno Haible  <bruno@clisp.org>
79393
79394         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
79395         func_modules_to_filelist, func_import, func_create_testdir): Make all
79396         sorting results locale-independent, so that gnulib-cache.m4 doesn't
79397         change when gnulib-tool is invoked in a different locale.
79398
79399 2005-09-19  Simon Josefsson  <jas@extundo.com>
79400
79401         * m4/socklen.m4: Fix typo.
79402
79403 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79404
79405         Use a consistent style for including <config.h>.
79406         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
79407         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
79408         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
79409         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
79410         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
79411         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
79412         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
79413         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
79414         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
79415         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
79416         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
79417         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
79418         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
79419         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
79420         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
79421         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
79422         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
79423         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
79424         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
79425         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
79426         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
79427         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
79428         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
79429         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
79430         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
79431         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
79432         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
79433         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
79434         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
79435         lib/xstrtoumax.c, lib/yesno.c:
79436         Standardize inclusion of config.h.
79437         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
79438         lib/inttostr.h:  Removed inclusion of config.h from header files.
79439         * lib/inttostr.c:  Adjusted in-tree users.
79440         * lib/timespec.h: Remove superfluous warning to include config.h.
79441         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
79442         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
79443         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
79444         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
79445         config.h with HAVE_CONFIG_H.
79446
79447 2005-09-19  Jim Meyering  <jim@meyering.net>
79448
79449         * modules/pathmax (License): Change to LGPL.
79450
79451 2005-09-19  Derek Price  <derek@ximbiot.com>
79452
79453         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
79454
79455 2005-09-19  Bruno Haible  <bruno@clisp.org>
79456
79457         * gnulib-tool (import): Provide default for --tests-base.
79458
79459 2005-09-19  Bruno Haible  <bruno@clisp.org>
79460
79461         * doc/quote.texi: New file, extracted from gnulib.texi.
79462         * doc/ctime.texi: New file, extracted from gnulib.texi.
79463         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
79464         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
79465         * doc/gnulib.texi: Include them.
79466
79467 2005-09-18  Bruno Haible  <bruno@clisp.org>
79468
79469         Portability fix.
79470         * gnulib-tool (func_readlink): New function.
79471         (func_ln_if_changed): Use it.
79472
79473 2005-09-18  Bruno Haible  <bruno@clisp.org>
79474
79475         * gnulib-tool: Support --with-tests also with --import.
79476         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
79477         (func_import): Use variables $testsbase and $inctests. Emit a
79478         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
79479         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
79480         SUBDIRS += $testsdir.
79481         (func_create_testdir): Update.
79482
79483 2005-09-18  Bruno Haible  <bruno@clisp.org>
79484
79485         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
79486         instead of $dry_run.
79487         (func_cp_if_changed, func_mv_if_changed): Remove functions.
79488         (func_ln_if_changed): Don't handle dry-run here.
79489         (func_import): In dry-run mode, detect more precisely which actions
79490         would be performed, and don't use "...ing" verbs.
79491
79492 2005-09-18  Bruno Haible  <bruno@clisp.org>
79493
79494         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
79495         (func_import): Use join on two temporary files instead of three nested
79496         loops, in order to determine which files are new or old.
79497
79498 2005-09-18  Bruno Haible  <bruno@clisp.org>
79499
79500         * gnulib-tool (func_import): Comment out code that spits out the
79501         new files with --dry-run.
79502
79503 2005-09-18  Bruno Haible  <bruno@clisp.org>
79504
79505         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
79506
79507 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
79508
79509         * lib/stat-time.h: New file.
79510         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
79511         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
79512         in a different way.
79513         (timespec_cmp): New function.
79514         * lib/utimecmp.c: Include stat-time.h.
79515         (SYSCALL_RESOLUTION): Depend on whether various struct stat
79516         members exist, not on the obsolescent ST_MTIM_NSEC.
79517         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
79518
79519 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
79520
79521         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
79522
79523 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
79524
79525         * MODULES.html.sh (File system functions): Add stat-time.
79526         * modules/stat-time: New file.
79527         * modules/timespec (Files): Remove m4/st_mtim.m4; this
79528         is now done in a different way, by the stat-time module.
79529         * modules/utimecmp (Depends-on): Add stat-time.
79530
79531 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
79532
79533         * m4/st_mtim.m4: Remove.  Superseded by...
79534         * m4/stat-time.m4: New file.
79535         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
79536         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
79537
79538 2005-09-15  Derek Price  <derek@ximbiot.com>
79539
79540         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
79541
79542 2005-09-15  Derek Price  <derek@ximbiot.com>
79543
79544         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
79545         * lib/regex_internal.c: Ditto, using this...
79546         (__GNUC_PREREQ): ...new macro.
79547         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
79548         using...
79549         (__GNUC_PREREQ): ...this new macro.
79550
79551         * lib/strstr.h: Include string.h. Define strstr as a macro here.
79552
79553 2005-09-15  Derek Price  <derek@ximbiot.com>
79554             Paul Eggert  <eggert@cs.ucla.edu>
79555
79556         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
79557         changes, consolidating in...
79558         * lib/regex_internal.h: ...this file.
79559
79560 2005-09-13  Jim Meyering  <jim@meyering.net>
79561
79562         * lib/canon-host.c: Filter through gnu indent and reword comments
79563         slightly.
79564         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
79565
79566 2005-09-13  Derek Price  <derek@ximbiot.com>
79567
79568         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
79569         failure.
79570         Reported by Jim Meyering  <jim@meyering.net>.
79571
79572 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
79573
79574         * lib/base64.c: Typo.
79575         (base64_encode): Put b64str in initialized data section.
79576
79577 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
79578
79579         Merge glibc and coreutils changes into gnulib, plus a few
79580         extra fixes.
79581         * lib/md5.c: Use #error rather than a string.
79582         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
79583         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
79584         (__attribute__): Define to empty for non recent-GCC.
79585         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
79586         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
79587         Renamed from their non-__ counterparts, with new macros replacing
79588         them if not _LIBC.  Add __THROW attribute.
79589         (rol): Remove.
79590         (struct md5_ctx): Align buffer if using GCC.
79591         * lib/sha1.h (struct sha1_ctx): Likewise.
79592         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
79593         The old name was backwards.
79594         (NOTSWAP): Remove; not used.
79595         (rol): New macro, moved here from md5.h.
79596         (sha1_process_block): Remove a FIXME that doesn't make sense.
79597
79598 2005-09-12  Derek Price  <derek@ximbiot.com>
79599
79600         Return usable errors from canon-host.
79601         * lib/canon-host.h: New file.
79602         * lib/canon-host.c (canon_host): Wrap...
79603         (canon_host_r): ...this new function, which now relies exclusively on
79604         getaddrinfo.
79605         (ch_strerror): New function.
79606         (last_cherror): New global.
79607         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
79608         interface.
79609         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
79610         void *.
79611         (freeaddrinfo): Free ai->ai_canonname when set.
79612
79613 2005-09-12  Derek Price  <derek@ximbiot.com>
79614
79615         Make canon-host require getaddrinfo.
79616         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
79617         AC_LIBSOURCE canon-host.h.  Call...
79618         (gl_PREREQ_CANON_HOST): ...this new function, which requires
79619         gl_GETADDRINFO.
79620         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
79621
79622 2005-09-12  Derek Price  <derek@ximbiot.com>
79623
79624         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
79625         LGPL.
79626         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
79627
79628 2005-09-12  Derek Price  <derek@ximbiot.com>
79629
79630         * lib/gai_strerror.c: Include config.h when available.  Include
79631         getaddrinfo.h before other headers to test interface.
79632         Reported by Larry Jones <lawrence.jones@ugs.com>.
79633
79634 2005-09-12  Derek Price  <derek@ximbiot.com>
79635             Paul Eggert  <eggert@cs.ucla.edu>
79636
79637         * modules/glob (Files): Add glob-libc.h.
79638
79639 2005-09-12  Derek Price  <derek@ximbiot.com>
79640             Paul Eggert  <eggert@cs.ucla.edu>
79641
79642         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
79643         glob_.h, glob-libc.h.
79644         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
79645
79646 2005-09-12  Derek Price  <derek@ximbiot.com>
79647             Paul Eggert  <eggert@cs.ucla.edu>
79648
79649         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
79650         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
79651         protecting things that should be done only in gnulib contexts.
79652         * lib/glob_.h: New file, containing only the glob things needed for
79653         gnulib.
79654         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
79655         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
79656         (glob, globfree, glob_pattern_p): Now defined simply in terms of
79657         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
79658         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
79659         and to respect the namespace rules better.
79660
79661 2005-09-08  Simon Josefsson  <jas@extundo.com>
79662
79663         * modules/socklen: New file.
79664
79665 2005-09-08  Simon Josefsson  <jas@extundo.com>
79666
79667         * m4/socklen.m4: New file.
79668
79669 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79670
79671         * modules/utimens (Files): Add m4/utimbuf.m4, since
79672         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
79673         Reported by Sergey Poznyakoff.
79674
79675 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79676
79677         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
79678         definitions, since that's the preferred style in glibc.
79679         Fix a minor spacing issue, and update copyright notice to match
79680         glibc's.
79681
79682 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79683
79684         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
79685
79686 2005-09-06  Simon Josefsson  <jas@extundo.com>
79687
79688         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
79689         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
79690
79691 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
79692
79693         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
79694         warning.
79695
79696 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
79697
79698         * config/srclist.txt: Add glibc bug 1302.
79699
79700 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
79701
79702         Change bitset word type from unsigned int to unsigned long int,
79703         as this has better performance on typical 64-bit hosts.
79704         Port bitset code to hosts with unusual word sizes.
79705         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
79706         (build_collating_symbol):
79707         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
79708         argument is a bitset.  This is merely a style issue, but it makes
79709         it clearer that an entire array is expected.
79710         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
79711         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
79712         Port to the case where bitset_word is not the same as unsigned int.
79713         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
79714         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
79715         Likewise.
79716         * lib/regexec.c (check_dst_limits_calc_pos_1,
79717         check_subexp_matching_top):
79718         (build_trtable, group_nodes_into_DFAstates):
79719         Likewise.
79720         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
79721         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
79722         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
79723         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
79724         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
79725         * lib/regcomp.c (optimize_subexps, lower_subexp):
79726         Work even if bitset_word has holes in its bitwise representation.
79727         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
79728         * lib/regexec.c (check_dst_limits_calc_pos_1,
79729         check_subexp_matching_top):
79730         Likewise.
79731         * lib/regex_internal.c (re_string_reconstruct):
79732         Don't assume UCHAR_MAX == 255.
79733         * lib/regex_internal.h (bitset_set_all): Likewise.
79734         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
79735         All uses changed.
79736         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
79737         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
79738         All uses changed.
79739         (BITSET_WORD_MAX): New macro.
79740         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
79741         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
79742         (bitset_empty, bitset_copy):
79743         Prefer sizeof (bitset) to multiplying it out ourselves.
79744         (bitset_not_merge): Remove; unused.
79745         (bitset_contain): Return bool, not unsigned int with one bit on.
79746         All callers changed.
79747         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
79748         alignment than re_node_set; do this by defining a new internal
79749         type struct dests_alloc and using it to allocate memory.
79750
79751 2005-09-05  Bruno Haible  <bruno@clisp.org>
79752
79753         * gnulib-tool (func_import): Fix comparison in handling of symbolic
79754         links.
79755
79756 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
79757
79758         * modules/size_max (Makefile.am): Add size_max.h
79759
79760 2005-09-04  Derek Price  <derek@ximbiot.com>
79761
79762         * gnulib-tool (func_import): Fix reversed $symbolic logic.
79763
79764 2005-09-03  Simon Josefsson  <jas@extundo.com>
79765
79766         * gnulib-tool: Fix typo.
79767
79768 2005-09-03  Simon Josefsson  <jas@extundo.com>
79769
79770         * config/srclist.txt: Add glibc bug 1293.
79771
79772 2005-09-03  Derek Price  <derek@ximbiot.com>
79773
79774         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
79775         From Larry Jones <lawrence.jones@ugs.com>.
79776
79777 2005-09-02  Simon Josefsson  <jas@extundo.com>
79778
79779         * modules/socklen: New file.
79780
79781 2005-09-02  Simon Josefsson  <jas@extundo.com>
79782
79783         * modules/havelib: New module.
79784
79785         * modules/gettext, modules/iconv, modules/lock, modules/readline:
79786         Use havelib.
79787
79788 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
79789
79790         Check for arithmetic overflow when calculating sizes, to prevent
79791         some buffer-overflow issues.  These patches are conservative, in the
79792         sense that when I couldn't determine whether an overflow was possible,
79793         I inserted a run-time check.
79794         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
79795         macros.
79796         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
79797         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
79798         (re_xnrealloc, re_x2nrealloc): New inline functions.
79799         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
79800         parse_bracket_exp):
79801         (build_equiv_class, build_charclass): Check for arithmetic overflow
79802         in size expression calculations.
79803         * lib/regex_internal.c (re_string_realloc_buffers):
79804         (build_wcs_upper_buffer, re_node_set_add_intersect):
79805         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
79806         (re_dfa_add_node, register_state): Likewise.
79807         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
79808         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
79809         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
79810         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
79811
79812 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
79813
79814         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
79815         m4/ulonglong.m4.  Problem reported by Martin Lambers.
79816
79817 2005-09-02  Bruno Haible  <bruno@clisp.org>
79818
79819         Support for lib vs. lib64 distinction on biarch platforms.
79820         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
79821         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
79822         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
79823
79824 2005-09-02  Bruno Haible  <bruno@clisp.org>
79825
79826         * gnulib-tool (import): In the other first-use case, provide defaults
79827         as well.
79828
79829 2005-09-02  Bruno Haible  <bruno@clisp.org>
79830
79831         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
79832         patches not yet found in the latest gettext release.
79833
79834 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79835
79836         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
79837         to avoid a collision with bits/local_lim.h in glibc.
79838         All uses changed.  Problem reported by Dmitry V. Levin in
79839         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
79840
79841         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
79842         bugs in int versus size_t comparisons.
79843         (re_string_context_at): Fix bug where the code assumed that
79844         Idx is signed.
79845
79846         Use bool where appropriate.
79847         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
79848         All callers changed.
79849         (calc_eclosure_iter): Likewise, for ROOT arg.
79850         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
79851         (build_charclass_op): Likewise, for NON_MATCH arg.
79852         * lib/regex_internal.c (re_string_allocate, re_string_construct):
79853         (re_string_construct_common): Likewise, for ICASE arg.
79854         * lib/regexec.c (re_search_2_stub, re_search_stub):
79855         Likewise, for RET_LEN arg.
79856         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
79857         (set_regs): Likewise, for FL_BACKTRACK arg.
79858         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
79859         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
79860         (calc_eclosure_iter, parse_bracket_exp):
79861         Use bool for internal variables that are booleans.
79862         * lib/regexec.c (re_search_internal, check_matching,
79863         proceed_next_node):
79864         (set_regs, build_sifted_states, sift_states_bkref):
79865         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
79866         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
79867         (find_collation_sequence_value):
79868         Likewise.
79869         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
79870         (re_node_set_compare):
79871         Return bool, not int. All callers changed.
79872         * lib/regexec.c (check_halt_node_context, check_dst_limits):
79873         (build_trtable, check_node_accept): Likewise.
79874         * lib/regex_internal.h: Include stdbool.h.
79875
79876         Fix bugs uncovered when converting to bool.
79877         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
79878         failure instead of charging ahead blindly.
79879         * lib/regex_internal.c (register_state): Likewise.
79880         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
79881         for freeing internal storage.
79882         (group_nodes_into_DFA_states): Use unsigned int, not int, for
79883         bitset pieces used as boolean, to avoid undefined behavior
79884         on hosts that do int overflow checking.
79885
79886 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79887
79888         * config/srclist.txt: Add glibc bugs 1285-1287.
79889
79890 2005-09-01  Jim Meyering  <jim@meyering.net>
79891
79892         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
79893         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
79894         Require gl_STAT_MACROS, too.
79895
79896 2005-09-01  Bruno Haible  <bruno@clisp.org>
79897
79898         * gnulib-tool (import): In the first-use case, provide defaults.
79899
79900 2005-09-01  Bruno Haible  <bruno@clisp.org>
79901
79902         * gnulib-tool (func_import): Remove the .tmp files.
79903
79904 2005-09-01  Bruno Haible  <bruno@clisp.org>
79905
79906         * gnulib-tool (func_import): Fix handling of symbolic links.
79907
79908 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79909
79910         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
79911         old glibc regex code mishandles strings longer than 2**31 bytes.
79912         This patch fixes this when the regex code is used in gnulib
79913         (i.e., outside glibc).
79914
79915         This patch should not affect the use of the regex code inside
79916         glibc.  No doubt this problem also needs to be handled for glibc
79917         as well, but the result will be an incompatible change to the
79918         glibc ABI, and the old ABI will have to be supported too.  That
79919         can be the the subject for another patch.
79920
79921         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
79922         governing whether the rest of this patch is active.  By default,
79923         the macro is disabled and the patch has no effect.
79924         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
79925         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
79926         (struct re_pattern_buffer, re_search, re_search_2, re_match):
79927         (re_match_2, re_set_registers): Use the new types.
79928         * lib/regex_internal.h (Idx, re_hashval_t): New types.
79929         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
79930         New macros.
79931         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
79932         (re_string_context_at, bin_tree_t, re_dfastate_t):
79933         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
79934         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
79935         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
79936         (re_string_char_size_at, re_string_wchar_at):
79937         (re_string_elem_size_at):
79938         Use the new types and macros to port to 64-bit hosts.
79939         Use unsigned types for internal values, so that the code
79940         mostly works even for arrays larger than SSIZE_MAX.
79941         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
79942         (search_duplicated_node, calc_eclosure_iter, fetch_number):
79943         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
79944         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
79945         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
79946         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
79947         (calc_inveclosure, parse_dup_op, build_range_exp):
79948         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
79949         (fetch_number, create_token_tree, mark_opt_subexp):
79950         Likewise.
79951         * lib/regex_internal.c (re_string_construct_common,
79952         create_ci_newstate):
79953         (create_cd_newstate, re_string_allocate, re_string_construct):
79954         (re_string_realloc_buffers, build_wcs_upper_buffer):
79955         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
79956         (re_string_reconstruct, re_string_peek_byte_case):
79957         (re_string_fetch_byte_case, re_string_context_at):
79958         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
79959         (re_node_set_init_copy, re_node_set_add_intersect):
79960         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
79961         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
79962         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
79963         (re_acquire_state, re_acquire_state_context, register_state):
79964         Likewise.
79965         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
79966         search_cur_bkref_entry):
79967         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
79968         (re_search_internal, re_search_2_stub, re_search_stub)
79969         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
79970         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
79971         (update_cur_sifted_state, check_dst_limits):
79972         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
79973         (check_subexp_limits, sift_states_bkref, merge_state_array):
79974         (check_subexp_matching_top, get_subexp, get_subexp_sub):
79975         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
79976         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
79977         (expand_bkref_cache, check_node_accept_bytes):
79978         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
79979         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
79980         (acquire_init_state_context, check_halt_node_context):
79981         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
79982         (sift_states_backward, clean_state_log_if_needed):
79983         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
79984         (find_recover_state, transit_state_sb, transit_state_mb):
79985         (transit_state_bkref, build_trtable, match_ctx_clean):
79986         Likewise.
79987         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
79988         to work around an assumption that REG_MISSING is negative.
79989
79990         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
79991         (seek_collating_symbol_entry) [defined _LIBC]:
79992         (lookup_collation_sequence_value) [defined _LIBC]:
79993         (build_range_exp, build_collating_symbol) [defined _LIBC]:
79994         Use prototypes rather than old-style function definitions.
79995         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
79996         (transit_state_sb) [0]:
79997         (find_collation_sequence_value) [defined _LIBC]: Likewise.
79998
79999         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
80000         rm_eo.
80001
80002         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
80003         (optimize_subexps, lower_subexp):
80004         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
80005         since the signed shift might overflow.  Use 1u<<31 instead.
80006         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
80007         Likewise.
80008         * lib/regexec.c (check_dst_limits_calc_pos_1,
80009         check_subexp_matching_top): Likewise.
80010
80011         * lib/regcomp.c (optimize_subexps, lower_subexp):
80012         Use CHAR_BIT rather than 8, for clarity.
80013         * lib/regexec.c (check_dst_limits_calc_pos_1):
80014         (check_subexp_matching_top): Likewise.
80015         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
80016         have to worry about portability issues when shifting it left.
80017         Remove no-longer-needed test for table_size > 0.
80018         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
80019         in a word, as the resulting behavior is undefined.
80020         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
80021         in one case, a <= should have been an <, and in another case the
80022         whole test was missing.
80023         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
80024         the standard name CHAR_BIT.
80025         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
80026         this is not true on one's complement and signed-magnitude hosts.
80027
80028         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
80029         next_last_offset.
80030         (struct re_dfa_t): Remove unused member states_alloc.
80031         * lib/regcomp.c (init_dfa): Don't initialize unused members.
80032
80033 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80034
80035         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
80036         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
80037         and large-file glibc and in 32-bit large-file Solaris.
80038
80039 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80040
80041         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
80042         lengths fit in regoff_t; this isn't true if regoff_t is the same
80043         width as size_t.
80044         * lib/regex.c (re_search_internal): 5th arg is LAST_START
80045         (= START + RANGE) instead of RANGE.  This avoids overflow
80046         problems when regoff_t is the same width as size_t.
80047         All callers changed.
80048         (re_search_2_stub): Check for overflow when adding the
80049         sizes of the two strings.
80050         (re_search_stub): Check for overflow when adding START
80051         to RANGE; if it occurs, substitute the extreme value.
80052
80053 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80054
80055         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
80056
80057 2005-08-31  Jim Meyering  <jim@meyering.net>
80058
80059         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
80060         a pointer-to-const.
80061         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
80062         (register_state): Likewise.
80063         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
80064         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
80065         (group_nodes_into_DFAstates): Likewise.
80066
80067 2005-08-31  Jim Meyering  <jim@meyering.net>
80068
80069         * check-module: Add a FIXME comment.
80070
80071 2005-08-31  Eric Blake  <ebb9@byu.net>
80072
80073         * modules/unistd-safer (Files): Add unistd--.h.
80074         * modules/stdio-safer (Files): Add stdio--.h.
80075
80076 2005-08-31  Derek Price  <derek@ximbiot.com>
80077
80078         * lib/getdelim.c (getdelim): Return EOF on EOF.
80079         Reported by Larry Jones <lawrence.jones@ugs.com>.
80080
80081 2005-08-31  Bruno Haible  <bruno@clisp.org>
80082
80083         Avoid unnecessary diffs in the generated lib/Makefile.am.
80084         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
80085         the generated files.
80086         (func_import): Don't set cmd.
80087
80088 2005-08-31  Bruno Haible  <bruno@clisp.org>
80089
80090         * lib/strstr.c: Include <stddef.h>, for NULL.
80091         * lib/strcasestr.c: Likewise.
80092         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
80093
80094 2005-08-31  Bruno Haible  <bruno@clisp.org>
80095
80096         * gnulib-tool: New option --macro-prefix.
80097         (func_import): Use macro_prefix.
80098         (import): Handle option --macro-prefix.
80099
80100 2005-08-31  Bruno Haible  <bruno@clisp.org>
80101
80102         * gnulib-tool (import): Rename most ac_* variables to cached_*.
80103         Also use new variables cached_lgpl, cached_libtool.
80104
80105 2005-08-31  Bruno Haible  <bruno@clisp.org>
80106
80107         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
80108         always instantiating them.
80109
80110 2005-08-31  Bruno Haible  <bruno@clisp.org>
80111
80112         * gnulib-tool (func_import): Read the previous cached settings
80113         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
80114         earlier added by gnulib but are now dropped. Warn when a gnulib file
80115         overwrites a non-gnulib file.
80116
80117 2005-08-31  Bruno Haible  <bruno@clisp.org>
80118
80119         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
80120         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
80121         projects that don't keep autogenerated files in CVS. Put into
80122         actioncmd only the specified modules, not the transitive closure.
80123
80124 2005-08-31  Bruno Haible  <bruno@clisp.org>
80125
80126         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
80127         Create directories that shall be filled.
80128         (import): Don't look for gl_* macros in configure.ac. Recurse across
80129         all directories containing a gnulib-cache.m4 files, if meaningful.
80130
80131 2005-08-31  Bruno Haible  <bruno@clisp.org>
80132
80133         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
80134         (import): Set seen_libtool when we see gl_LIBTOOL.
80135
80136 2005-08-31  Bruno Haible  <bruno@clisp.org>
80137
80138         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
80139         declaration macro definitions from generated gnulib.m4.
80140
80141 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
80142
80143         * lib/iconvme.h: Add prototype for iconv_alloc.
80144
80145 2005-08-29  Simon Josefsson  <jas@extundo.com>
80146
80147         * lib/iconvme.c: Fix errno.
80148
80149 2005-08-29  Bruno Haible  <bruno@clisp.org>
80150
80151         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
80152         that it works when the directory contains spaces.
80153
80154 2005-08-29  Bruno Haible  <bruno@clisp.org>
80155
80156         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
80157
80158 2005-08-29  Bruno Haible  <bruno@clisp.org>
80159
80160         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
80161         Emit more advice.
80162
80163 2005-08-29  Bruno Haible  <bruno@clisp.org>
80164         and Stepan Kasal  <kasal@ucw.cz>
80165
80166         * check-module: If more parameters are given, check each of them
80167         separately; add more exceptions, as noted by Jim Meyering.
80168         (check_module): New procedure.
80169         (%exempt_header): Now contains all exceptions.
80170
80171 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
80172
80173         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
80174
80175 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
80176
80177         * lib/iconvme.c: Split iconv_string into iconv_alloc.
80178
80179 2005-08-28  Bruno Haible  <bruno@clisp.org>
80180
80181         * m4/gnulib-tool.m4: New file.
80182
80183 2005-08-27  Jim Meyering  <jim@meyering.net>
80184
80185         * modules/unistd-safer (Files): Add pipe-safer.c.
80186         * modules/fcntl-safer (Files): Add creat-safer.c.
80187
80188 2005-08-27  Jim Meyering  <jim@meyering.net>
80189
80190         * m4/stdlib-safer.m4: New file.  From coreutils.
80191         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
80192         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
80193         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
80194         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
80195         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
80196
80197 2005-08-27  Jim Meyering  <jim@meyering.net>
80198
80199         * lib/fopen-safer.c: Merge minor changes from coreutils.
80200         * lib/dup-safer.c: Likewise.
80201         * lib/fd-safer.c: Likewise.
80202
80203         Merge from coreutils.
80204         * lib/stdio--.h: New file.
80205         * lib/stdlib--.h: New file.
80206         * lib/mkstemp-safer.c: New file.
80207
80208         GNU tar needs these.
80209         * lib/pipe-safer.c: New file.
80210         * lib/creat-safer.c: New file.
80211         * lib/fcntl--.h (creat): Define to creat_safer.
80212         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
80213         * lib/unistd--.h (pipe): Define to pipe_safer.
80214         * lib/unistd-safer.h: Declare pipe_safer.
80215
80216 2005-08-26  Simon Josefsson  <jas@extundo.com>
80217
80218         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
80219         Haible <bruno@clisp.org>.
80220
80221 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
80222
80223         * lib/regex_internal.h: Remove all references to
80224         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
80225         or better.
80226         (bitset_not, bitset_merge, bitset_not_merge):
80227         (bitset_mask, re_string_allocate, re_string_construct):
80228         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
80229         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
80230         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
80231         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
80232         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
80233         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
80234         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
80235         (re_acquire_state_context):
80236         Remove unnecessary forward decls.
80237         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
80238         Put __attribute at function definition,
80239         now that the function decl has been removed.
80240         * lib/regex_internal.c (re_string_peek_byte_case):
80241         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
80242         Likewise.
80243
80244 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
80245
80246         * m4/regex.m4: Add AC_PREREQ(2.50).
80247         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
80248
80249 2005-08-25  Simon Josefsson  <jas@extundo.com>
80250
80251         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
80252         __fsetlocking.
80253
80254 2005-08-25  Simon Josefsson  <jas@extundo.com>
80255
80256         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
80257         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
80258         GLIBC specific code.
80259
80260 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80261
80262         Make regex safe for g++.  This fixes one real bug (an "err"
80263         that should have been "*err").  g++ problem reported by
80264         Sam Steingold.
80265         * lib/regex_internal.h (re_calloc): New macro, consistent with
80266         re_malloc etc.  All callers of calloc changed to use re_calloc.
80267         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
80268         not int.  All callers changed.
80269         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
80270         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
80271         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
80272         (find_recover_state): Change "err" to "*err"; this fixes what
80273         appears to be a real bug.
80274         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
80275         versus int.
80276
80277 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80278
80279         * modules/regex (Depends-on): Add malloc, since the code
80280         assumes that !malloc(0) means failure.
80281
80282 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80283
80284         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
80285
80286         alloca modernization/simplification for regex.
80287         * lib/regex.c: Remove portability cruft for alloca.  This no longer
80288         needs to be at the start of the file, and can be moved into
80289         regex_internal.h and simplified.
80290         * lib/regex_internal.h: Include <alloca.h>.
80291         (__libc_use_alloca) [!defined _LIBC]: New macro.
80292         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
80293         now works outside glibc.
80294
80295 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80296
80297         * config/srclist.txt: Add glibc bugs 1241, 1245.
80298
80299 2005-08-25  Jim Meyering  <jim@meyering.net>
80300
80301         * lib/open-safer.c: Include <config.h>.
80302         Otherwise, we'd lose LARGEFILE support in any file using
80303         e.g. "fcntl--.h"
80304
80305 2005-08-25  Bruno Haible  <bruno@clisp.org>
80306
80307         * m4/minmax.m4: Require autoconf 2.52.
80308         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
80309         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
80310         alternatives of translit over the alphabet.
80311         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
80312
80313 2005-08-24  Simon Josefsson  <jas@extundo.com>
80314
80315         * tests/test-getpass.c: New file.
80316
80317 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80318
80319         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
80320         for GNU regex features.
80321
80322 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80323
80324         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
80325         * lib/regex.h (regerror): Likewise.
80326
80327         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
80328         requires this.  (The code never needed it.)
80329
80330         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
80331         All uses of recently-renamed identifiers changed to use the new,
80332         POSIX-compliant names.  The code will build and run just fine
80333         without these changes, but it's better to eat our own dog food
80334         and use the standard-conforming names.
80335
80336         * lib/regex.h: Fix a multitude of POSIX name space violations.
80337         These changes have an effect only for programs that define
80338         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
80339         do not change anything for programs compiled in the normal way.
80340         Also, there is no effect on the ABI.
80341
80342         (_REGEX_SOURCE): New macro.
80343         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
80344         defined and _GNU_SOURCE is not; this fixes a name space violation.
80345
80346         Rename the following macros to obey POSIX requirements.
80347         The old names are still visible as macros if _REGEX_SOURCE is defined.
80348         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
80349         RE_BACKSLASH_ESCAPE_IN_LISTS.
80350         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
80351         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
80352         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
80353         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
80354         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
80355         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
80356         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
80357         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
80358         (REG_INTERVALS): renamed from RE_INTERVALS.
80359         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
80360         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
80361         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
80362         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
80363         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
80364         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
80365         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
80366         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
80367         RE_UNMATCHED_RIGHT_PAREN_ORD.
80368         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
80369         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
80370         (REG_DEBUG): renamed from RE_DEBUG.
80371         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
80372         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
80373         unusual, since we can't clash with the POSIX REG_ICASE.
80374         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
80375         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
80376         (REG_NO_SUB): renamed from RE_NO_SUB.
80377         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
80378         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
80379         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
80380         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
80381         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
80382         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
80383         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
80384         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
80385         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
80386         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
80387         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
80388         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
80389         RE_SYNTAX_POSIX_MINIMAL_BASIC.
80390         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
80391         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
80392         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
80393         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
80394         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
80395         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
80396         (REG_FIXED): Renamed from REGS_FIXED.
80397         (REG_NREGS): Renamed from RE_NREGS.
80398
80399         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
80400         of other REG_* macros, since POSIX says the user is allowed to
80401         #undef these macros selectively.
80402
80403         (reg_errcode_t): Update comment stating what other tables need
80404         to be consistent.
80405
80406         Rename the following enum values to obey POSIX requirements.
80407         The old names are still visible as macros.
80408         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
80409         is not defined, since GNU is supposed to be a superset of POSIX as
80410         much as possible, and since we want reg_errcode_t to be a signed
80411         type for implementation consistency.
80412         (_REG_NOERROR): Renamed from REG_NOERROR.
80413         (_REG_NOMATCH): Renamed from REG_NOMATCH.
80414         (_REG_BADPAT): Renamed from REG_BADPAT.
80415         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
80416         (_REG_ECTYPE): Renamed from REG_ECTYPE.
80417         (_REG_EESCAPE): Renamed from REG_EESCAPE.
80418         (_REG_ESUBREG): Renamed from REG_ESUBREG.
80419         (_REG_EBRACK): Renamed from REG_EBRACK.
80420         (_REG_EPAREN): Renamed from REG_EPAREN.
80421         (_REG_EBRACE): Renamed from REG_EBRACE.
80422         (_REG_BADBR): Renamed from REG_BADBR.
80423         (_REG_ERANGE): Renamed from REG_ERANGE.
80424         (_REG_ESPACE): Renamed from REG_ESPACE.
80425         (_REG_BADRPT): Renamed from REG_BADRPT.
80426         (_REG_EEND): Renamed from REG_EEND.
80427         (_REG_ESIZE): Renamed from REG_ESIZE.
80428         (_REG_ERPAREN): Renamed from REG_ERPAREN.
80429         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
80430         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
80431         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
80432         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
80433
80434         (_REG_RE_NAME, _REG_RM_NAME): New macros.
80435         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
80436         changed.  But support the old name if the new one is not defined
80437         and if _REGEX_SOURCE.
80438
80439         Change the following member names in struct re_pattern_buffer.
80440         The old names are still supported if !_REGEX_SOURCE.
80441         The new names are always supported, regardless of _REGEX_SOURCE.
80442         (re_buffer): Renamed from buffer.
80443         (re_allocated): Renamed from allocated.
80444         (re_used): Renamed from used.
80445         (re_syntax): Renamed from syntax.
80446         (re_fastmap): Renamed from fastmap.
80447         (re_translate): Renamed from translate.
80448         (re_can_be_null): Renamed from can_be_null.
80449         (re_regs_allocated): Renamed from regs_allocated.
80450         (re_fastmap_accurate): Renamed from fastmap_accurate.
80451         (re_no_sub): Renamed from no_sub.
80452         (re_not_bol): Renamed from not_bol.
80453         (re_not_eol): Renamed from not_eol.
80454         (re_newline_anchor): Renamed from newline_anchor.
80455
80456         Change the following member names in struct re_registers.
80457         The old names are still supported if !_REGEX_SOURCE.
80458         The new names are always supported, regardless of _REGEX_SOURCE.
80459         (rm_num_regs): Renamed from num_regs.
80460         (rm_start): Renamed from start.
80461         (rm_end): Renamed from end.
80462
80463         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
80464         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
80465         Prepend __ to parameter names.
80466
80467         Undo yesterday's changes.
80468
80469 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80470
80471         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
80472         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
80473         lib/regex.c.
80474
80475 2005-08-24  Jim Meyering  <jim@meyering.net>
80476
80477         Sync from coreutils.
80478         * m4/fcntl-safer.m4: New file.
80479
80480         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
80481         and object files for this module.
80482
80483 2005-08-24  Jim Meyering  <jim@meyering.net>
80484
80485         Sync from coreutils.
80486         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
80487
80488 2005-08-24  Jim Meyering  <jim@meyering.net>
80489
80490         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
80491         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
80492
80493 2005-08-24  Jim Meyering  <jim@meyering.net>
80494
80495         * modules/fcntl-safer: New module.
80496         * modules/fts (Depends-on): Add fcntl-safer.
80497         * MODULES.html.sh (File descriptor based Input/Output):
80498         Add fcntl-safer.
80499
80500 2005-08-24  Bruno Haible  <bruno@clisp.org>
80501
80502         Support for unit test modules.
80503         * modules/README: Mention tests modules.
80504         * modules/TEMPLATE-TESTS: New file.
80505         * gnulib-tool: New options --extract-tests-module, --with-tests and
80506         --tests-base (unused for the moment).
80507         (testsbase, inctests): New variables.
80508         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
80509         (func_verify_module): Exclude TEMPLATE-TESTS.
80510         (func_verify_nontests_module, func_verify_tests_module): New functions.
80511         (func_get_dependencies): Add implicit dependency for tests modules.
80512         (func_get_tests_module): New function.
80513         (func_modules_transitive_closure): When --with-tests was specified,
80514         include the unit tests as well, unless explicitly avoided.
80515         (func_emit_lib_Makefile_am): Ignore the tests modules here.
80516         (func_emit_tests_Makefile_am): New function.
80517         (func_create_testdir): When --with-tests was specified, emit a
80518         tests/ directory.
80519         * MODULES.html.sh (Future developments): Update.
80520
80521 2005-08-24  Bruno Haible  <bruno@clisp.org>
80522
80523         * modules/tls-tests: New file.
80524         * tests/test-tls.c: New file, from GNU gettext.
80525
80526 2005-08-24  Bruno Haible  <bruno@clisp.org>
80527
80528         * modules/lock-tests: New file.
80529         * tests/test-lock.c: New file, from GNU gettext.
80530
80531 2005-08-24  Bruno Haible  <bruno@clisp.org>
80532
80533         * lib/lock.h: Add multiple inclusion guard.
80534         * lib/tls.h: Add multiple inclusion guard.
80535
80536 2005-08-24  Bruno Haible  <bruno@clisp.org>
80537
80538         * gnulib-tool: Add support for the --aux-dir option to
80539         --create-testdir, --create-megatestdir, --test, --megatest.
80540         (func_create_testdir, func_create_megatestdir): Optionally emit a
80541         AC_CONFIG_AUX_DIR directive.
80542         (create-testdir, create-megatestdir, test, megatest): Provide a
80543         default value for $auxdir.
80544
80545 2005-08-24  Bruno Haible  <bruno@clisp.org>
80546
80547         * gnulib-tool (import): Use compound statement instead of subshell
80548         where possible.
80549
80550 2005-08-24  Bruno Haible  <bruno@clisp.org>
80551
80552         * gnulib-tool (import): Change --aux-dir default to "build-aux".
80553
80554 2005-08-24  Bruno Haible  <bruno@clisp.org>
80555
80556         * gnulib-tool (func_version): Update.
80557
80558 2005-08-24  Bruno Haible  <bruno@clisp.org>
80559
80560         * gnulib-tool (func_import, func_create_testdir,
80561         func_create_megatestdir): Quote all autoconf macro arguments.
80562
80563 2005-08-24  Bruno Haible  <bruno@clisp.org>
80564
80565         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
80566         option --force, because --force causes the aclocal.m4 of each
80567         subdirectory to be newer than the corresponding config.h.in.
80568
80569 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
80570
80571         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
80572         All contents moved to gl_REGEX.
80573         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
80574         assume that it does.
80575
80576 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
80577
80578         * lib/regex.h (REG_NOSYS)
80579         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
80580         Define, since POSIX requires it as of 2001.
80581         (_REG_ENOSYS)
80582         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
80583         New private symbol, used to keep the enum signed in all cases.
80584         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
80585         Youngman in
80586         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
80587
80588         * lib/regex_internal.c (re_string_skip_chars, register_state):
80589         (calc_state_hash):
80590         Remove forward decls; no longer needed now that we use prototypes.
80591         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
80592         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
80593         (clean_state_log_if_needed): Likewise.
80594
80595 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
80596
80597         * config/srclist.txt: Add glibc bugs 1231-1233.
80598
80599 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80600
80601         Fix problems reported by Sam Steingold in
80602         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
80603         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
80604         assumed that reg_errcode_t is a signed type, which is not
80605         necessarily true if _XOPEN_SOURCE is not defined.
80606         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
80607         since some compilers warn about it otherwise.
80608
80609 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80610
80611         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
80612         (init_word_char, create_initial_state, duplicate_node_closure):
80613         (fetch_token, peek_token_bracket, build_range_exp):
80614         (build_collating_symbol): Remove forward decls; no longer needed
80615         now that we use prototypes.
80616
80617         * lib/regcomp.c:
80618         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
80619         (re_compile_fastmap_iter, regcomp, regerror, regfree):
80620         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
80621         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
80622         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
80623         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
80624         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
80625         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
80626         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
80627         (build_range_exp, build_collating_symbol, parse_bracket_exp):
80628         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
80629         (build_charclass, build_charclass_op, fetch_number, create_tree):
80630         (create_token_tree, mark_opt_subexp, duplicate_tree):
80631         Use prototypes rather than old-style definitions.
80632
80633         * lib/regex_internal.c:
80634         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
80635         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
80636         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
80637         (re_string_reconstruct, re_string_peek_byte_case):
80638         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
80639         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
80640         (re_node_set_init_copy, re_node_set_add_intersect):
80641         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
80642         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
80643         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
80644         (re_acquire_state, re_acquire_state_context, register_state):
80645         (create_ci_newstate, create_cd_newstate, free_state):
80646         Likewise.
80647         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
80648         re_search_2):
80649         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
80650         (re_search_internal, prune_impossible_nodes):
80651         (acquire_init_state_context, check_matching, static):
80652         (check_halt_node_context, check_halt_state_context, proceed_next_node):
80653         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
80654         (update_regs, sift_states_backward, build_sifted_states):
80655         (clean_state_log_if_needed, merge_state_array):
80656         (update_cur_sifted_state, add_epsilon_src_nodes):
80657         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
80658         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
80659         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
80660         (find_recover_state, check_subexp_matching_top, transit_state_mb):
80661         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
80662         (check_arrival, check_arrival_add_next_nodes):
80663         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
80664         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
80665         (check_node_accept_bytes, check_node_accept, extend_buffers):
80666         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
80667         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
80668         (sift_ctx_init):
80669         Likewise.
80670
80671         * lib/regex_internal.h:
80672         (re_string_allocate, re_string_construct, re_string_reconstruct):
80673         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
80674         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
80675         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
80676         (re_string_context_at, re_string_peek_byte_case):
80677         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
80678         is defined, since we now use prototypes always.
80679
80680         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
80681         C89 or better.  All uses removed.
80682
80683 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80684
80685         * config/srclist.txt: Add glibc bugs 1220-1227.
80686
80687 2005-08-20  Jim Meyering  <jim@meyering.net>
80688
80689         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
80690         of unused local, dfa.
80691
80692 2005-08-20  Bruno Haible  <bruno@clisp.org>
80693
80694         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
80695
80696 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80697
80698         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
80699         (re_node_set_insert_last, re_dfa_add_node):
80700         Rename local variables to avoid GCC shadowing warnings.
80701
80702 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80703
80704         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
80705         [defined lint]: Suppress bogus uninitialized-variable warnings.
80706
80707         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
80708         and let the caller return REG_ESPACE if out of space.  This
80709         removes an uninitialied-variable warning with GCC 4.0.1, and also
80710         avoids taking the address of a local variable.  All callers
80711         changed.
80712
80713 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80714
80715         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
80716         $LIBCSRC/posix/regexec.c.
80717         Add glibc bug 1217 for regcomp.c.
80718
80719 2005-08-19  Jim Meyering  <jim@meyering.net>
80720
80721         * lib/regexec.c (proceed_next_node): Redo local variables to
80722         avoid GCC shadowing warnings.
80723
80724 2005-08-18  Bruno Haible  <bruno@clisp.org>
80725
80726         * lib/strstr.c (strstr): Fix return value in multibyte case.
80727         * lib/strcasestr.c (strcasestr): Likewise.
80728
80729 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80730
80731         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
80732
80733 2005-08-17  Jim Meyering  <jim@meyering.net>
80734
80735         Make the %s format (seconds since the epoch) work for a negative
80736         number and when used with a zero-padded field width, e.g. %015s.
80737
80738         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
80739         label so that it precedes the code to set `digits'.  Otherwise,
80740         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
80741         print `00-22'.  Now, it prints `-0022', as it should.
80742
80743 2005-08-17  Bruno Haible  <bruno@clisp.org>
80744
80745         * modules/strstr (Files): Add m4/mbrtowc.m4.
80746         (Depends-on): Add mbuiter.
80747
80748 2005-08-17  Bruno Haible  <bruno@clisp.org>
80749
80750         * modules/strcasestr: New file.
80751         * MODULES.html.sh (String handling, based on ANSI C 89): Add
80752         strcasestr.
80753
80754 2005-08-17  Bruno Haible  <bruno@clisp.org>
80755
80756         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
80757
80758 2005-08-17  Bruno Haible  <bruno@clisp.org>
80759
80760         * modules/mbuiter: New file.
80761         * MODULES.html.sh (Extended multibyte and wide character utilities):
80762         Add mbuiter.
80763
80764 2005-08-17  Bruno Haible  <bruno@clisp.org>
80765
80766         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
80767         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
80768
80769 2005-08-17  Bruno Haible  <bruno@clisp.org>
80770
80771         * m4/strcasestr.m4: New file.
80772
80773 2005-08-17  Bruno Haible  <bruno@clisp.org>
80774
80775         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
80776         * lib/strstr.c: Completely rewritten, with multibyte locale support.
80777
80778 2005-08-17  Bruno Haible  <bruno@clisp.org>
80779
80780         * lib/strcasestr.h: New file.
80781         * lib/strcasestr.c: New file.
80782
80783 2005-08-17  Bruno Haible  <bruno@clisp.org>
80784
80785         * lib/strcasecmp.c: Use mbuiter.h.
80786
80787 2005-08-17  Bruno Haible  <bruno@clisp.org>
80788
80789         * lib/mbuiter.h: New file.
80790
80791 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
80792
80793         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
80794         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
80795         and gl_GETOPT are both invoked via different paths (as happens
80796         with GNU tar CVS because it uses both argp and getopt), the former
80797         wins.
80798
80799 2005-08-16  Bruno Haible  <bruno@clisp.org>
80800
80801         * modules/tls: New file.
80802         * MODULES.html.sh (Multithreading): Add tls.
80803
80804 2005-08-16  Bruno Haible  <bruno@clisp.org>
80805
80806         * modules/strnlen1: New file.
80807         * MODULES.html.sh (String handling): Add strnlen1.
80808
80809 2005-08-16  Bruno Haible  <bruno@clisp.org>
80810
80811         * modules/strcase (Files): Add m4/mbrtowc.m4.
80812         (Depends-on): Add strnlen1, mbchar.
80813
80814 2005-08-16  Bruno Haible  <bruno@clisp.org>
80815
80816         * modules/mbiter: New file.
80817         * MODULES.html.sh (Extended multibyte and wide character utilities):
80818         Add mbiter.
80819
80820 2005-08-16  Bruno Haible  <bruno@clisp.org>
80821
80822         * modules/mbfile: New file.
80823         * MODULES.html.sh (Extended multibyte and wide character utilities):
80824         Add mbfile.
80825
80826 2005-08-16  Bruno Haible  <bruno@clisp.org>
80827
80828         * modules/mbchar: New file.
80829         * MODULES.html.sh (Extended multibyte and wide character utilities):
80830         New section.
80831
80832 2005-08-16  Bruno Haible  <bruno@clisp.org>
80833
80834         * m4/tls.m4: New file, from GNU gettext.
80835
80836 2005-08-16  Bruno Haible  <bruno@clisp.org>
80837
80838         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
80839         always.
80840         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
80841
80842 2005-08-16  Bruno Haible  <bruno@clisp.org>
80843
80844         * m4/mbiter.m4: New file.
80845
80846 2005-08-16  Bruno Haible  <bruno@clisp.org>
80847
80848         * m4/mbfile.m4: New file.
80849
80850 2005-08-16  Bruno Haible  <bruno@clisp.org>
80851
80852         * m4/mbchar.m4: New file.
80853
80854 2005-08-16  Bruno Haible  <bruno@clisp.org>
80855
80856         * lib/tls.h: New file, from GNU gettext.
80857         * lib/tls.c: New file, from GNU gettext.
80858
80859 2005-08-16  Bruno Haible  <bruno@clisp.org>
80860
80861         * lib/strnlen1.h: New file.
80862         * lib/strnlen1.c: New file.
80863
80864 2005-08-16  Bruno Haible  <bruno@clisp.org>
80865
80866         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
80867         (mbi_init): Update.
80868         (mbi_avail, mbi_advance): Let the iteration end before the terminating
80869         NUL byte, not after it.
80870
80871 2005-08-16  Bruno Haible  <bruno@clisp.org>
80872
80873         * lib/strcase.h (strcasecmp): Add note in comments.
80874         * lib/strncasecmp.c: Use code from strcasecmp.c.
80875         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
80876         (strcasecmp): Work correctly in multibyte locales.
80877
80878 2005-08-16  Bruno Haible  <bruno@clisp.org>
80879
80880         * lib/mbiter.h: New file.
80881
80882 2005-08-16  Bruno Haible  <bruno@clisp.org>
80883
80884         * lib/mbfile.h: New file.
80885
80886 2005-08-16  Bruno Haible  <bruno@clisp.org>
80887
80888         * lib/mbchar.h: New file.
80889         * lib/mbchar.c: New file.
80890
80891 2005-08-16  Bruno Haible  <bruno@clisp.org>
80892
80893         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
80894         the valid ones. Makes the comparison operations transitive:
80895         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
80896         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
80897
80898 2005-08-15  Simon Josefsson  <jas@extundo.com>
80899
80900         * modules/ssize_t (License): Change to 'unlimited'.
80901
80902         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
80903
80904 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80905
80906         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
80907         Add comments for each pending glibc patch.
80908
80909 2005-08-15  Bruno Haible  <bruno@clisp.org>
80910
80911         * lib/regex.h (__restrict_arr): Don't define to __restrict if
80912         __cplusplus is defined.
80913
80914 2005-08-14  Jim Meyering  <jim@meyering.net>
80915
80916         Sync from coreutils.
80917
80918         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
80919         Use the hash-table-based cycle-detection code not just when
80920         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
80921         Reported by James Youngman in
80922         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
80923         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
80924         FTS_TIGHT_CYCLE_CHECK.
80925         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
80926         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
80927         once again.
80928         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
80929         * lib/fts.c (fd_safer): Remove decl.
80930         Include fcntl--.h rather than unistd-safer.h
80931         (fts_safe_changedir): Don't call fd_safer; no longer needed
80932         now that we include fcntl--.h.
80933
80934 2005-08-12  Simon Josefsson  <jas@extundo.com>
80935
80936         * modules/getndelim2: Use ssize_t module.
80937         * modules/getnline: Likewise.
80938         * modules/safe-read: Likewise.
80939         * modules/xreadlink: Likewise.
80940
80941         * modules/ssize_t: New file.
80942
80943 2005-08-12  Simon Josefsson  <jas@extundo.com>
80944
80945         * m4/readline.m4: Look for termcap, curses or ncurses if required.
80946
80947 2005-08-12  Simon Josefsson  <jas@extundo.com>
80948
80949         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80950         ssize_t.
80951
80952 2005-08-12  Simon Josefsson  <jas@extundo.com>
80953
80954         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
80955         readline, getdelim and check_version.
80956         (Support for systems lacking ISO C 99: Sizes of integer types):
80957         Add size_max.
80958
80959 2005-08-12  Bruno Haible  <bruno@clisp.org>
80960
80961         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
80962
80963 2005-08-11  Simon Josefsson  <jas@extundo.com>
80964
80965         * modules/readline: New file.
80966
80967         * modules/strnlen (Files): Add strnlen.h.
80968
80969 2005-08-11  Simon Josefsson  <jas@extundo.com>
80970
80971         * m4/readline.m4: New file.
80972
80973 2005-08-11  Simon Josefsson  <jas@extundo.com>
80974
80975         * lib/readline.h, readline.c: New file.
80976
80977 2005-08-11  Simon Josefsson  <jas@extundo.com>
80978
80979         * doc/gnulib.texi (Initial import, Finishing touches): Mention
80980         gl_AVOID.
80981
80982 2005-08-11  Bruno Haible  <bruno@clisp.org>
80983
80984         * lib/strnlen.h (strnlen): Change parameter name to match comment.
80985
80986 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
80987
80988         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
80989
80990 2005-08-10  Simon Josefsson  <jas@extundo.com>
80991
80992         * tests/test-iconvme.c: New file.
80993
80994 2005-08-10  Simon Josefsson  <jas@extundo.com>
80995
80996         * m4/strnlen.m4: New file.
80997
80998         * m4/strndup.m4: Don't check for strnlen declaration, done in
80999         strnlen.m4.
81000
81001 2005-08-10  Simon Josefsson  <jas@extundo.com>
81002
81003         * lib/strndup.c: Use strnlen.h.
81004
81005         * lib/strnlen.h: New file.
81006
81007 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81008
81009         * README: Typos.
81010
81011 2005-08-02  Simon Josefsson  <jas@extundo.com>
81012
81013         * modules/readline: New file.
81014
81015 2005-08-02  Simon Josefsson  <jas@extundo.com>
81016
81017         * modules/getdelim: New file.
81018
81019         * modules/getline: Rewrite, don't use getndelim2.
81020
81021 2005-08-02  Simon Josefsson  <jas@extundo.com>
81022
81023         * m4/getline.m4: Separate out getdelim stuff into separate module.
81024
81025         * m4/getdelim.m4: New file.
81026
81027 2005-08-02  Simon Josefsson  <jas@extundo.com>
81028
81029         * lib/getline.h, getline.c: Rewrite.
81030
81031         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
81032
81033 2005-07-31  Bruno Haible  <bruno@clisp.org>
81034
81035         * lib/lock.h (gl_lock_initializer): New macro.
81036         (gl_lock_define_initialized): Use it.
81037         (gl_rwlock_initializer): New macro.
81038         (gl_rwlock_define_initialized): Use it.
81039         (gl_recursive_lock_initializer): New macro.
81040         (gl_recursive_lock_define_initialized): Use it.
81041
81042 2005-07-30  Karl Berry  <karl@gnu.org>
81043
81044         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
81045         Report from Ben Pfaff, regarding getopt.
81046
81047 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
81048
81049         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
81050         normal way.
81051         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
81052         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
81053         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
81054         (gl_GETOPT): Use the new macros.  Most of the implementation
81055         is moved to the new macros.  This is for programs like Emacs
81056         that don't want all the functionality of gl_GETOPT.
81057
81058 2005-07-26  Bruno Haible  <bruno@clisp.org>
81059
81060         * m4/lock.m4: Update from GNU gettext.
81061
81062 2005-07-26  Bruno Haible  <bruno@clisp.org>
81063
81064         * lib/lock.h: Update from GNU gettext.
81065         * lib/lock.c: Update from GNU gettext.
81066
81067 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
81068
81069         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
81070         obsolescent AC_TRY_RUN.  Include the default includes files, for
81071         'exit'.
81072
81073 2005-07-24  Bruno Haible  <bruno@clisp.org>
81074
81075         * modules/visibility: New file.
81076         * MODULES.html.sh (Misc): Add visibility.
81077
81078 2005-07-24  Bruno Haible  <bruno@clisp.org>
81079
81080         * m4/visibility.m4: New file.
81081
81082 2005-07-24  Bruno Haible  <bruno@clisp.org>
81083
81084         * doc/visibility.texi: New file.
81085
81086 2005-07-22  Bruno Haible  <bruno@clisp.org>
81087
81088         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
81089         $(ALLOCA_H), redundant through BUILT_SOURCES.
81090         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
81091         redundant through BUILT_SOURCES.
81092         * modules/byteswap (Makefile.am): Remove explicit dependency on
81093         $(BYTESWAP_H), redundant through BUILT_SOURCES.
81094         * modules/fnmatch (Makefile.am): Remove explicit dependency on
81095         $(FNMATCH_H), redundant through BUILT_SOURCES.
81096         * modules/getopt (Makefile.am): Remove explicit dependency on
81097         $(GETOPT_H), redundant through BUILT_SOURCES.
81098         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
81099         redundant through BUILT_SOURCES.
81100         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
81101         redundant through BUILT_SOURCES.
81102         * modules/stdbool (Makefile.am): Remove explicit dependency on
81103         $(STDBOOL_H), redundant through BUILT_SOURCES.
81104         * modules/stdint (Makefile.am): Remove explicit dependency on
81105         $(STDINT_H), redundant through BUILT_SOURCES.
81106         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
81107         Remove explicit dependency on $(SYSEXITS_H).
81108         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
81109
81110 2005-07-18  Simon Josefsson  <jas@extundo.com>
81111
81112         * lib/check-version.c (check_version): Accept identical versions too.
81113
81114 2005-07-18  Bruno Haible  <bruno@clisp.org>
81115
81116         * modules/lock: New file.
81117         * MODULES.html.sh (Multithreading): New section.
81118
81119 2005-07-18  Bruno Haible  <bruno@clisp.org>
81120
81121         * m4/lock.m4: New file, from GNU gettext.
81122
81123 2005-07-18  Bruno Haible  <bruno@clisp.org>
81124
81125         * lib/lock.h: New file, from GNU gettext.
81126         * lib/lock.c: New file, from GNU gettext.
81127
81128 2005-07-18  Bruno Haible  <bruno@clisp.org>
81129
81130         * lib/lock.h (gl_once_t): New type.
81131         (gl_once_define, gl_once): New macros.
81132         * lib/lock.c (fresh_once): New variable.
81133         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
81134         functions.
81135
81136 2005-07-16  Simon Josefsson  <jas@extundo.com>
81137
81138         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
81139         workaround, suggested by Bruno.
81140
81141 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
81142
81143         * modules/xalloc (Depends-on): Add xalloc-die.
81144         * modules/xvasprintf (Depends-on): Add xalloc-die.
81145
81146 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
81147
81148         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
81149         with a minor change.
81150
81151 2005-07-15  Bruno Haible  <bruno@clisp.org>
81152
81153         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
81154         When using lib/poll.c, define poll as rpl_poll.
81155
81156 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
81157
81158         * modules/argp (Depends-on): Remove unlocked-io.
81159
81160 2005-07-14  Derek Price  <derek@ximbiot.com>
81161
81162         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
81163         for glob symlink bug.
81164
81165 2005-07-14  Bruno Haible  <bruno@clisp.org>
81166
81167         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
81168         Instead, test for *_unlocked function declarations directly.
81169
81170 2005-07-11  Simon Josefsson  <jas@extundo.com>
81171
81172         * modules/size_max: New file.
81173
81174         * modules/xsize: Depend on size_max module for size_max.m4.
81175
81176 2005-07-11  Simon Josefsson  <jas@extundo.com>
81177
81178         * lib/size_max.h: New file.
81179
81180 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
81181
81182         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
81183         copyright symbol and the year.
81184         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
81185         (version_etc_va): Use parameterized copyright notice.
81186         Reword to conform to the current GNU coding standards.
81187
81188 2005-07-11  Karl Berry  <karl@gnu.org>
81189
81190         * doc/gnulib.texi (Quoting): new node.
81191         (Initial import): more info, from Patrice.
81192
81193 2005-07-11  Bruno Haible  <bruno@clisp.org>
81194
81195         * gnulib-tool (func_usage): Document option --avoid.
81196         (Command line options): Handle --avoid.
81197         (func_acceptable): New function.
81198         (func_modules_transitive_closure): Use it.
81199
81200 2005-07-11  Bruno Haible  <bruno@clisp.org>
81201
81202         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
81203         Reported by Jim Meyering.
81204
81205 2005-07-10  Bruno Haible  <bruno@clisp.org>
81206
81207         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
81208         Needed when size_t is smaller than 'unsigned int'.
81209         Reported by Paul Eggert.
81210
81211 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81212
81213         * modules/argp (Depends-on): Add unlocked-io
81214
81215 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81216
81217         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
81218         block of defines.
81219
81220 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
81221
81222         * config/srclist.txt: Comment out regcomp.c, since we have a porting
81223         fix now.
81224
81225 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
81226         and Paul Eggert  <eggert@cs.ucla.edu>
81227
81228         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
81229         in wint_t, not wchar_t.  Remove now-unnecessary cast.
81230
81231 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81232
81233         * modules/regex (Files): Add lib/regex_internal.c,
81234         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
81235         (Depends-on): Add extensions.
81236         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
81237
81238 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81239
81240         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
81241         pathconf.
81242         * m4/same.m4 (gl_SAME): Likewise.
81243         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
81244
81245         * m4/regex.m4: Adjust to new libc regex implementation.
81246         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
81247         all the .c and .h parts of (the new) regex.
81248         Quote the m4 stuff better.
81249         Check for RE_ICASE bug of old gnulib.
81250         Check for REG_STARTEND of recent libc.
81251         Rename local variables from jm_* to gl_*.
81252         Quote operand of "test -f".
81253         Say "recent enough" version of libc, not "version 2".
81254         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
81255         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
81256         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
81257         Remove check for btowc, isascii.
81258         Require AM_LANGINFO_CODESET.
81259
81260 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81261
81262         * lib/regex.c, regex.h: Sync from libc.
81263         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
81264         * lib/regexec.c:
81265         New files, synced from libc, except that regex_internal.h
81266         currently has a small porting fix.
81267
81268 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81269
81270         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
81271         regex_internal.c, regexec.c.
81272         Add regex_internal.h too, but as a comment, since the libc version
81273         is currently broken in gnulib mode.
81274
81275 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81276
81277         Support programs like Emacs that use gnulib but not gettext.
81278         * MODULES.html.sh (Internationalization functions): Add gettext-h.
81279         * modules/gettext-h: New file.
81280         * modules/gettext (Files): Remove lib/gettext.h.
81281         (Depends-on): Add gettext-h.
81282         (Makefile.am): Remove lib_SOURCES.
81283         * modules/argmatch, modules/c-stack, modules/closeout:
81284         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
81285         * modules/execute, modules/file-type, modules/getaddrinfo:
81286         * modules/getopt, modules/human, modules/javacomp:
81287         * modules/javaexec, modules/mkdir-p, modules/obstack:
81288         * modules/openat, modules/pagealign_alloc, modules/pipe:
81289         * modules/quotearg, modules/regex, modules/rpmatch:
81290         * modules/unicodeio, modules/userspec, modules/version-etc:
81291         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
81292         * modules/xsetenv:
81293         Depend on gettext-h, not gettext.
81294
81295 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81296
81297         * gnulib-tool (func_import): Add support for 'public domain' license.
81298         * modules/alloca, modules/atexit, modules/memmove:
81299         Now public domain, not GPL.
81300         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
81301         * modules/realloc, modules/strerror, modules/strtod:
81302         Now LGPL, not GPL.
81303
81304 2005-07-05  Bruno Haible  <bruno@clisp.org>
81305
81306         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
81307         autoconf CVS. Needed for mingw.
81308
81309 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81310
81311         Remove the dependency of the strftime module on the tzset module.
81312         * modules/strftime (Depends-on): Remove dependency on tzset.
81313
81314 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81315
81316         Remove the dependency of the strftime module on the tzset module.
81317         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
81318         gl_FUNC_TZSET_CLOBBER.
81319
81320 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81321
81322         Remove the dependency of the strftime module on the tzset module.
81323         * lib/strftime.c (my_strftime)
81324         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
81325         Copy the input structure, to work around some of the bug with
81326         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
81327         Solaris releases, you should also use the tzset module, but we won't
81328         require it as a dependency any more since we don't want LGPLed code
81329         to depend on GPLed code.
81330
81331 2005-07-02  Jim Meyering  <jim@meyering.net>
81332
81333         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
81334         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
81335         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
81336         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
81337
81338 2005-07-02  Jim Meyering  <jim@meyering.net>
81339
81340         * lib/backupfile.c (backup_args): Change a `0' to NULL.
81341
81342 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81343
81344         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
81345         declares only 'struct timespec;' (!).
81346
81347 2005-07-01  Jim Meyering  <jim@meyering.net>
81348
81349         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
81350         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
81351         * lib/save-cwd.c, tempname.c:
81352         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
81353         and don't include <sys/file.h>).
81354
81355 2005-06-29  Jim Meyering  <jim@meyering.net>
81356
81357         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
81358         type name.  Use the variable name instead.
81359         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
81360         Likewise.
81361
81362 2005-06-28  Simon Josefsson  <jas@extundo.com>
81363
81364         * modules/check-version (Files): Add check-version.m4.
81365
81366 2005-06-28  Simon Josefsson  <jas@extundo.com>
81367
81368         * m4/check-version.m4: New file, suggested by Jim Meyering
81369         <jim@meyering.net>.
81370
81371 2005-06-28  Simon Josefsson  <jas@extundo.com>
81372
81373         * lib/check-version.h, lib/check-version.c: New files.
81374
81375 2005-06-28  Simon Josefsson  <jas@extundo.com>
81376
81377         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
81378         collision with global variable.  Better indentation.  Don't
81379         increment buffer pointer beyond buffer end.  Based on comments
81380         from Paul Eggert <eggert@cs.ucla.edu>.
81381
81382         * lib/base64.h: Indent.
81383
81384 2005-06-28  Simon Josefsson  <jas@extundo.com>
81385
81386         * doc/gnulib.texi (Library version handling): New section.
81387
81388 2005-06-28  Jim Meyering  <jim@meyering.net>
81389
81390         * check-module (find_included_lib_files): Hard-code another
81391         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
81392         but modules/fts-lgpl (correctly) does not list those files.
81393
81394         * modules/canonicalize (Files): Add lib/pathmax.h.
81395
81396 2005-06-25  Simon Josefsson  <jas@extundo.com>
81397
81398         * modules/check-version: New file.
81399
81400 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
81401
81402         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
81403         initializer of struct addrinfo, as an indication that we don't
81404         care how many members the structure has.
81405
81406 2005-06-24  Derek Price  <derek@ximbiot.com>
81407         and Bruno Haible  <bruno@clisp.org>
81408
81409         Remove stat module & update lstat.
81410         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
81411         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81412         * m4/stat.m4: Remove this file.
81413
81414 2005-06-24  Derek Price  <derek@ximbiot.com>
81415         and Bruno Haible  <bruno@clisp.org>
81416
81417         Remove stat module & update lstat.
81418         * lib/stat.c: Remove this file...
81419         (slash_aware_lstat): ...moving this content and its support...
81420         * lib/lstat.c (rpl_lstat): ...into here.
81421         * lib/lstat.h: New file.
81422
81423 2005-06-24  Derek Price  <derek@ximbiot.com>
81424         and Bruno Haible  <bruno@clisp.org>
81425
81426         Remove stat module & update lstat.
81427         * config/srclist.txt (libc sources): Remove stat.
81428
81429 2005-06-24  Derek Price  <derek@ximbiot.com>
81430         and Bruno Haible  <bruno@clisp.org>
81431
81432         Remove stat module & update lstat.
81433         * MODULES.html.sh (stat): Remove.
81434         * MODULES.html: Regenerated.
81435         * modules/lstat (Description): Correct function name.
81436         (Files): Add "lstat.h".
81437         (Depends-on): Remove stat, add xalloc, stat-macros.
81438         * modules/stat: Remove this file.
81439         (Include): Add "lstat.h", remove <sys/stat.h>.
81440
81441 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
81442
81443         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
81444         (ranged_convert): Don't save conversion in a temporary struct.
81445         This causes a warning with GCC 4.0.0, and anyway in the typical
81446         case it's not worth the extra 100 bytes or so of code.
81447         (ranged_convert, __mktime_internal): When calling a function via a
81448         pointer P, use P () rather than (*P) (), as we now assume C89 or
81449         better.
81450
81451 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81452
81453         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
81454         "who -r" failed to give output.  Problem reported by Tim Waugh.
81455
81456         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
81457         (xcalloc): Use it to avoid needless tests.
81458         Problem reported by Jim Meyering.
81459
81460 2005-06-20  Derek Price  <derek@ximbiot.com>
81461
81462         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
81463         unnecessary for Autoconfs > 2.59c.
81464
81465 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81466
81467         * lib/argp.h (__option_is_short): Check upper limit of
81468         __key. Isprint() requires its argument to have the value
81469         of an unsigned char or EOF.
81470
81471 2005-06-16  Jim Meyering  <jim@meyering.net>
81472
81473         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
81474         when either N or S is zero.
81475
81476 2005-06-16  Derek Price  <derek@ximbiot.com>
81477
81478         * m4/bison.m4: Declare YACC & YFLAGS precious.
81479
81480 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
81481
81482         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
81483         multibyte string or pattern, fall back on unibyte matching.
81484         Problem reported by James Youngman.
81485
81486 2005-06-08  Bruno Haible  <bruno@clisp.org>
81487
81488         * modules/csharpcomp: New file.
81489         * MODULES.html.sh (C#): Add csharpcomp.
81490
81491 2005-06-08  Bruno Haible  <bruno@clisp.org>
81492
81493         * m4/csharpcomp.m4: New file, from GNU gettext.
81494
81495 2005-06-08  Bruno Haible  <bruno@clisp.org>
81496
81497         * lib/csharpcomp.h: New file, from GNU gettext.
81498         * lib/csharpcomp.c: New file, from GNU gettext.
81499         * lib/csharpcomp.sh.in: New file, from GNU gettext.
81500
81501 2005-06-08  Bruno Haible  <bruno@clisp.org>
81502
81503         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
81504         warning on mingw.
81505
81506 2005-06-07  Derek Price  <derek@ximbiot.com>
81507
81508         Sync from CVS.
81509         * lib/glob_.h: Indent nested #ifdef.
81510
81511 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
81512
81513         Sync from coreutils.
81514         Use "file name" when talking about file names, instead of "filename"
81515         or "path", as per the GNU coding standards.
81516         * lib/mkdir-p.c: Renamed from makepath.c.
81517         (make_dir_parents): Renamed from make_path.  All callers changed.
81518         * lib/mkdir-p.h: Likewise.  All includers changed.
81519         * lib/filenamecat.c: Renamed from path-concat.c.
81520         (file_name_concat): Renamed from path_concat.  All callers changed.
81521         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
81522         * lib/filenamecat.h: Likewise.  All includers changed.
81523         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
81524         in comments or local variable names.
81525         * lib/basename.c: Likewise.
81526         * lib/canonicalize.c, canonicalize.h: Likewise.
81527         * lib/dirname.c, dirname.h: Likewise.
81528         * lib/euidaccess.c: Likewise.
81529         * lib/exclude.c: Likewise
81530         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
81531         * lib/fsusage.c, fsuage.h: Likewise.
81532         * lib/fts.c, fts_.h: Likewise.
81533         * lib/getcwd.c: Likewise.
81534         * lib/getloadavg.c: Likewise.
81535         * lib/mkstemp.c: Likewise.
81536         * lib/mountlist.c, mountlist.h: Likewise.
81537         * lib/openat.c, openat.h: Likewise.
81538         * lib/readlink-stub.c: Likewise.
81539         * lib/readutmp.c, readutmp.h: Likewise.
81540         * lib/rename.c: Likewise.
81541         * lib/rmdir.c: Likewise.
81542         * lib/same.c: Likewise.
81543         * lib/savedir.c: Likewise.
81544         * lib/stripslash.c: Likewise.
81545         * lib/tempname.c: Likewise.
81546         * lib/xreadlink.c: Likewise.
81547         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
81548         All uses changed.
81549         * lib/exclude.h: Likewise.
81550
81551         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
81552         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
81553         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
81554         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
81555         * lib/pathmax.h: Include <limits.h> unconditionally, since other
81556         files have been getting away with it for years (MORE/BSD 4.3
81557         is extinct now).
81558         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
81559         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
81560
81561         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
81562         Define to 256, not 255, as per modern POSIX.
81563
81564 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
81565
81566         Sync from coreutils.
81567         Use "file name" when talking about file names, instead of "filename"
81568         or "path", as per the GNU coding standards.
81569         * MODULES.html.sh: mkdir-p renamed from makepath.
81570         filenamecat renamed from path-concat.
81571         * modules/filenamecat: Renamed from modules/path-concat.
81572         (Files): filenamecat.h and filenamecat.c renamed from
81573         path-concat.h and path-concat.c.
81574         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
81575         (Include): filenamecat.h, not path-concat.h.
81576         * modules/mkdir-p: Renamed from modules/makepath.
81577         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
81578         makepath.c.
81579         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
81580         (Include): mkdir-p.h, not makepath.h.
81581
81582 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
81583
81584         Sync from coreutils.
81585         * m4/mkdir-p.m4: Renamed from makepath.m4.
81586         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
81587         Rename files from makepath.c to mkdir-p.c, and from
81588         makepath.h to mkdir-p.h.
81589         * m4/filenamecat.m4: Renamed from path-concat.m4.
81590         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
81591         Rename files from path-concat.c to filenamecat.c,
81592         and from path-concat.h to filenamecat.h.
81593         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
81594         "file name" in local variables or comments.
81595         * m4/rename.m4: Likewise.
81596
81597 2005-06-01  Bruno Haible  <bruno@clisp.org>
81598
81599         * modules/csharpexec: New file.
81600         * MODULES.html.sh (C#): New section.
81601
81602 2005-06-01  Bruno Haible  <bruno@clisp.org>
81603
81604         * m4/csharp.m4: New file, from GNU gettext.
81605         * m4/csharpexec.m4: New file, from GNU gettext.
81606
81607 2005-06-01  Bruno Haible  <bruno@clisp.org>
81608
81609         * lib/csharpexec.h: New file, from GNU gettext.
81610         * lib/csharpexec.c: New file, from GNU gettext.
81611         * lib/csharpexec.sh.in: New file, from GNU gettext.
81612
81613 2005-05-31  Derek Price  <derek@ximbiot.com>
81614             Paul Eggert  <eggert@cs.ucla.edu>
81615
81616         Sync from cvs.
81617         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
81618
81619 2005-05-31  Derek Price  <derek@ximbiot.com>
81620             Paul Eggert  <eggert@cs.ucla.edu>
81621
81622         Sync from cvs.
81623         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
81624
81625 2005-05-29  Derek Price  <derek@ximbiot.com>
81626
81627         * config/srclist.txt (glob_.h, glob.c): Add these files.
81628
81629 2005-05-29  Derek Price  <derek@ximbiot.com>
81630
81631         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
81632         * modules/glob: New file.
81633         * modules/getlogin_r: Add link to POSIX spec in description.
81634
81635 2005-05-29  Derek Price  <derek@ximbiot.com>
81636             Paul Eggert  <eggert@cs.ucla.edu>
81637
81638         * m4/glob.m4: New file.
81639
81640 2005-05-29  Derek Price  <derek@ximbiot.com>
81641             Paul Eggert  <eggert@cs.ucla.edu>
81642
81643         * lib/glob_.h, lib/glob.c: New files.
81644
81645 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
81646
81647         * modules/fts (Files): Remove m4/inttypes-pri.m4.
81648         * modules/fts-lgpl (Depends-on): Remove gettext.
81649
81650 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
81651
81652         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
81653         and don't require gt_INTTYPES_PRI.
81654
81655 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
81656
81657         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
81658
81659         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
81660         the configuration hassle isn't worth it.
81661         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
81662         (LONGEST_MODIFIER, PRIuMAX): Remove.
81663
81664 2005-05-27  Bruno Haible  <bruno@clisp.org>
81665
81666         * lib/getlogin_r.h: Remove second include of <stddef.h>.
81667
81668 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
81669
81670         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
81671         _POSIX_PTHREAD_SEMANTICS for Solaris.
81672
81673 2005-05-25  Derek Price  <derek@ximbiot.com>
81674
81675         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
81676
81677 2005-05-25  Derek Price  <derek@ximbiot.com>
81678             Paul Eggert  <eggert@cs.ucla.edu>
81679
81680         * modules/getlogin_r, m4/getlogin_r.m4: New files.
81681         * lib/getlogin_r.c, getlogin_r.h: New files.
81682
81683 2005-05-25  Bruno Haible  <bruno@clisp.org>
81684             Derek Price  <derek@ximbiot.com>
81685
81686         * lib/getlogin_r.h: Simplify API documentation.
81687
81688 2005-05-23  Derek Price  <derek@ximbiot.com>
81689
81690         * modules/minmax (Files): Add m4/minmax.m4.
81691         (configure.ac): Add gl_MINMAX.
81692
81693 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
81694
81695         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
81696         so that unistd-safer.h (GPL'ed code) need not be included.
81697
81698 2005-05-22  Bruno Haible  <bruno@clisp.org>
81699
81700         * m4/minmax.m4: New file.
81701         Based on a patch by Derek Price <derek@ximbiot.com>.
81702
81703 2005-05-22  Bruno Haible  <bruno@clisp.org>
81704
81705         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
81706         (INT64_MIN): Fix definition.
81707         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
81708
81709         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
81710         NEED_SIGNED_INT_TYPES.
81711
81712         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
81713         HAVE_SYSTEM_INTTYPES.
81714
81715 2005-05-22  Bruno Haible  <bruno@clisp.org>
81716
81717         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
81718         Also include <sys/param.h> if it defines MIN, MAX.
81719         Based on a patch by Derek Price <derek@ximbiot.com>.
81720
81721 2005-05-21  Jim Meyering  <jim@meyering.net>
81722
81723         * modules/fts (Files): Add m4/inttypes-pri.m4.
81724         (Depends-on): Add lstat and remove gettext.  Alphabetize.
81725
81726 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
81727
81728         New fts module.
81729         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
81730         (setup_dir, free_dir): New functions.
81731         (enter_dir, leave_dir): Define trivial
81732         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
81733         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
81734         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
81735         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
81736         Move to fts-cycle.c.
81737         (fts_open): Use setup_dir.
81738         (fts_close): Use free_dir.
81739         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
81740         This adds a label and some gotos, but the alternatives were messier.
81741         Check for memory allocation failure when entering a dir.
81742         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
81743         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
81744         (FTS): New member fts_cycle, that is a union that contains the
81745         old active_dir_ht and cycle_state.  All uses changed to mention
81746         fts_cycle.ht and fts_cycle.state.
81747         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
81748         fts.c, with the following changes:
81749         (setup_dir, free_dir): New functions.
81750         (enter_dir): Now returns bool.  Return true if successful, false
81751         if memory exhausted.  All callers changed.
81752         Do not bother partly cleaning up on
81753         memory allocation failure; that is free_dir's job.
81754         However, free ad if hash_insert fails, to avoid memory leak.
81755         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
81756         fts->fts_options to see which union member to use.
81757
81758 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
81759
81760         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
81761         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
81762
81763 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
81764
81765         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
81766
81767 2005-05-20  Jim Meyering  <jim@meyering.net>
81768
81769         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
81770         Now a macro, to pacify GCC.
81771
81772 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
81773
81774         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
81775         of -1.
81776
81777 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
81778
81779         * lib/chown.c (rpl_chown): Return -1 on failure.
81780
81781 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
81782
81783         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
81784         Don't check for stddef.h.
81785         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
81786         don't use its results.
81787         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
81788         since we include them unconditionally.  Don't require
81789         AM_STDBOOL_H, since stdbool is a prerequisite.
81790         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
81791         since we assume C89 or better.
81792         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
81793         as we don't use their results.
81794         Don't check for fchdir, memmove, memset, strrchr, as we use
81795         them unconditionally.
81796         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
81797         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
81798
81799 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
81800
81801         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
81802         Include <stddef.h> unconditionally, since we assume C89 now.
81803         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
81804         * lib/fts.c: Include fts_.h first, to check interface.
81805         Do not include intprops.h; no longer needed.
81806         Include cycle-check.h and hash.h, since fts_.h no longer does.
81807         Remove unnecessary casts of closedir to void.
81808         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
81809         decide whether to decrement nlinks.
81810         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
81811         (FTS): Use struct hash_table * instead of Hash_table, so that
81812         we no longer need to include hash.h here.
81813
81814 2005-05-18  Jim Meyering  <jim@meyering.net>
81815
81816         * modules/dirfd (License): Change to LGPL.  Most of the code
81817         is already in the public domain.
81818
81819 2005-05-18  Jim Meyering  <jim@meyering.net>
81820
81821         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
81822         Reported by Yoann Vandoorselaere.
81823
81824 2005-05-17  Jim Meyering  <jim@meyering.net>
81825
81826         * m4/fts.m4: New file, from coreutils.
81827
81828 2005-05-17  Jim Meyering  <jim@meyering.net>
81829
81830         * lib/fts.c, lib/fts_.h: New files, from coreutils.
81831
81832 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
81833
81834         Sync from coreutils.
81835         * m4/unlinkdir.m4: New file.
81836
81837 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
81838
81839         Sync from coreutils.
81840         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
81841         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
81842         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
81843         White space changes only.
81844         * lib/makepath.c (make_path): Port to hosts where leading "//" is
81845         special.
81846         * lib/yesno.c: Include getline.h, not ctype.h.
81847         (yesno): Don't remove leading white space; POSIX doesn't allow it.
81848         Use getline to remove arbitrary restriction on response length.
81849
81850 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
81851
81852         * config/srclist-update: Spell out "Street" in FSF postal
81853         mail address; this is the style the FSF seems to prefer.
81854
81855         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
81856         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
81857         this updates FSF postal mail address.
81858
81859         Sync from coreutils.
81860         * modules/unlinkdir: New file.
81861         * modules/yesno (Depends-on): Add getline.
81862         * MODULES.html.sh (File system functions): Add unlinkdir.
81863
81864 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
81865
81866         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
81867         lib/strsep.h:
81868         Change the initial comment to refer to GPL, not LGPL.
81869         gnulib-tool will change it to LGPL as needed.
81870
81871         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
81872         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
81873         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
81874         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
81875         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
81876         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
81877         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
81878         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
81879         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
81880         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
81881         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
81882         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
81883         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
81884         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
81885         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
81886         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
81887         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
81888         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
81889         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
81890         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
81891         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
81892         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
81893         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
81894         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
81895         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
81896         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
81897         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
81898         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
81899         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
81900         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
81901         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
81902         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
81903         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
81904         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
81905         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
81906         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
81907         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
81908         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
81909         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
81910         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
81911         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
81912         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
81913         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
81914         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
81915         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
81916         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
81917         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
81918         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
81919         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
81920         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
81921         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
81922         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
81923         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
81924         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
81925         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
81926         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
81927         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
81928         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
81929         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
81930         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
81931         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
81932         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
81933         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
81934         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
81935         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
81936         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
81937         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
81938         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
81939         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
81940         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
81941         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
81942         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
81943         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
81944         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
81945         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
81946         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
81947         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
81948         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
81949         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
81950         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
81951         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
81952         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
81953         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
81954         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
81955         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
81956         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
81957         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
81958         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
81959         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
81960         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
81961         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
81962         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
81963         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
81964         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
81965         lib/yesno.c, lib/yesno.h:
81966         Update FSF postal mail address.
81967
81968 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
81969
81970         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
81971         tests/test-memmem.c, tests/test-stpncpy.c:
81972         Update FSF postal mail address.
81973
81974 2005-05-13  Bruno Haible  <bruno@clisp.org>
81975
81976         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
81977         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
81978         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
81979         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
81980         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
81981         Add support for 64-bit integers in the MSVC compiler.
81982
81983 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81984
81985         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
81986
81987 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
81988
81989         * gnulib-tool (func_import): Sort and uniquify recommended includes.
81990
81991 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
81992
81993         * doc/getdate.texi (General date syntax): Don't say that date
81994         date --iso-8601=ns generates acceptable dates; it doesn't yet.
81995         Problem reported by Nic Ferrier.
81996
81997 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81998
81999         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
82000         specified in ai_socktype. Fix invalid ai_protocol
82001         check. ai_protocol is usually set to 0 or depending on
82002         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
82003         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
82004         ai_socktype / ai_protocol in the returned addrinfo structure.
82005
82006 2005-05-10  Simon Josefsson  <jas@extundo.com>
82007
82008         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
82009         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
82010
82011 2005-05-10  Karl Berry  <karl@gnu.org>
82012
82013         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
82014         (from http://www.gnu.org/licenses).
82015         * doc/COPYING.LIB: also rename to COPYING.LESSER.
82016         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
82017         fdl.texi suffices.
82018
82019 2005-05-10  Karl Berry  <karl@gnu.org>
82020
82021         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
82022         (COPYING.DOC): remove.
82023
82024         * config/srclist-update: new FSF address.
82025
82026 2005-05-10  Derek Price  <derek@ximbiot.com>
82027
82028         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
82029         possible.
82030
82031 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82032             Bruno Haible  <bruno@clisp.org>
82033
82034         * modules/inet_ntop: New file.
82035         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82036         inet_ntop.
82037
82038 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82039             Bruno Haible  <bruno@clisp.org>
82040
82041         * m4/inet_ntop.m4: New file.
82042
82043 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82044             Bruno Haible  <bruno@clisp.org>
82045
82046         * lib/inet_ntop.h: New file.
82047         * lib/inet_ntop.c: New file, from glibc with modifications.
82048
82049 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
82050
82051         * modules/time_r (License): Change to LGPL.
82052         * modules/extensions (License): Change to LGPL.  Actually,
82053         the license is more permissive than that, but currently gnulib-tool
82054         doesn't know how to handle more-permissive licenses.
82055
82056         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
82057         Problem reported by Dave Love.
82058
82059 2005-05-08  Jim Meyering  <jim@meyering.net>
82060
82061         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
82062         blank.
82063
82064 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
82065
82066         * modules/argmatch (Depends-on): Add stdbool.
82067         * modules/backupfile (Depends-on): Likewise.
82068         * modules/chdir-long (Depends-on): Likewise.
82069         * modules/closeout (Depends-on): Likewise.
82070         * modules/cycle-check (Depends-on): Likewise.
82071         * modules/dirname (Depends-on): Likewise.
82072         * modules/fnmatch (Depends-on): Likewise.
82073         * modules/fsusage (Depends-on): Likewise.
82074         * modules/fwriteerror (Depends-on): Likewise.
82075         * modules/getcwd (Depends-on): Likewise.
82076         * modules/getloadavg (Depends-on): Likewise.
82077         * modules/hard-locale (Depends-on): Likewise.
82078         * modules/makepath (Depends-on): Likewise.
82079         * modules/mountlist (Depends-on): Likewise.
82080         * modules/nanosleep (Depends-on): Likewise.
82081         * modules/posixtm (Depends-on): Likewise.
82082         * modules/quotearg (Depends-on): Likewise.
82083         * modules/readtokens (Depends-on): Likewise.
82084         * modules/readtokens0 (Depends-on): Likewise.
82085         * modules/readutmp (Depends-on): Likewise.
82086         * modules/save-cwd (Depends-on): Likewise.
82087         * modules/strftime (Depends-on): Likewise.
82088         * modules/userspec (Depends-on): Likewise.
82089         * modules/utimecmp (Depends-on): Likewise.
82090         * modules/xgetcwd (Depends-on): Likewise.
82091         * modules/xnanosleep (Depends-on): Likewise.
82092         * modules/xstrtod (Depends-on): Likewise.
82093         * modules/yesno (Depends-on): Likewise.
82094
82095 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
82096
82097         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
82098         needless checks.
82099
82100 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82101
82102         Merge from coreutils.  Among other things,
82103         add bulletproofing for cases where stdin, stdout, or stderr are closed.
82104         * lib/fd-safer.c: New file.
82105         * lib/fcntl-safer.h, open-safer.c: Remove.
82106         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
82107         * lib/dup-safer.c: Include unistd-safer.h first.
82108         Don't include errno.h.
82109         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
82110         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
82111         * lib/file-type.c: Rely on file-type.h change.
82112         * lib/getloadavg.c: Include unistd-safer.h.
82113         (getloadavg): Use safer open.
82114         * lib/getusershell.c: Include "stdio-safer.h".
82115         (getusershell): Use safer fopen.
82116         * lib/long-options.c (long_options): Use NULL rather than 0.
82117         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
82118         'free'.
82119         * lib/modechange.c: Likewise.
82120         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
82121         (MODE_DONE): New constant.
82122         (struct mode_change): Remove 'next' member.
82123         (make_node_op_equals): New function; like the old one of the
82124         same name, except it allocates an array.
82125         (mode_compile, mode_create_from_ref): Use it.
82126         (mode_compile): Allocate result as an array, not a linked list.
82127         Parse octal string ourself, so that we catch mistakes like "+0".
82128         (mode_adjust): Arg is an array, not a linked list.
82129         * lib/modechange.c: Include stat-macros.h, xalloc.h.
82130         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
82131         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
82132         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
82133         Remove.  This is now stat-macros.h's job.
82134         (talloc): Remove.  All callers replaced by xalloc, so that
82135         our invokers don't have to worry about reporting memory failures.
82136         (make_node_op_equals): Remove.
82137         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
82138         New constants.
82139         (struct mode_change): Moved here from modechange.h.
82140         (mode_append_entry): Remove.
82141         (mode_compile): Remove MASKED_OPS arg, since it encouraged
82142         apps to have incorrect behavior.  Use simpler algorithm for head
82143         and tail.  Don't futz with umask; that's now the job of mode_adjust.
82144         Detect more invalid usages rather than having somewhat-random behavior.
82145         Don't insert an "a=" action, as that leads to incorrect behavior.
82146         (mode_compile, mode_create_from_ref): Return NULL on error instead
82147         of an enum, since now there's only one way to have an error.  All
82148         callers changed.
82149         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
82150         at the correct time.  Simplify calculation of "+u" and its ilk.
82151         Don't mishandle "+X".
82152         (mode_free): Remove "register" and localize decls.
82153         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
82154         (struct mode_change): Move to modechange.c; callers don't
82155         need to see this stuff.
82156         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
82157         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
82158         (mode_change, mode_adjust): Reflect the new signatures noted above.
82159         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
82160         that might redefine system include files.
82161         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
82162         (my_usleep): Use NULL rather than (void *) 0.
82163         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
82164         Use siginterrupt to specify that system calls should be interrupted.
82165         (rpl_nanosleep): Move initialization of suspended closer to call of
82166         my_usleep.
82167         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
82168         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
82169         (desirable_utmp_entry): New function.
82170         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
82171         using x2nrealloc, to simplify logic.
82172         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
82173         size calculation.  Do not assume utmp file is a regular file.
82174         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
82175         (READ_UTMP_CHECK_PIDS): New constant.
82176         * lib/save-cwd.c: Include unistd-safer.h.
82177         (save_cwd): Use fd_safer.
82178         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
82179         [!_LIBC] Include "stat-macros.h" instead.
82180         * lib/unistd-safer.h (fd_safer): New decl.
82181
82182 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82183
82184         * modules/getloadavg (Depends-on): Add unistd-safer.
82185         * modules/getusershell (Depends-on): Add stdio-safer.
82186         * modules/lstat (Depends-on): Remove xalloc.
82187         * modules/mkstemp (Depends-on): Add stat-macros.
82188         * modules/modechange (Depends-on): Remove xstrtol.
82189         Add stat-macros, xalloc.
82190         * modules/save-cwd (Depends-on): Add unistd-safer.
82191         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
82192         * modules/unistd-safer (Files): Add lib/fd-safer.c
82193         (Makefile.am): Remove lib_SOURCES.
82194
82195         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
82196         Remove fcntl-safer; unistd-safer supersedes it.
82197
82198 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82199
82200         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
82201         AC_HEADER_STAT.
82202         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
82203         (gl_PREREQ_CHOWN): Remove.
82204         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
82205         it.  Don't require AC_HEADER_STAT.
82206         (gl_PREREQ_LSTAT): Remove.
82207         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
82208         Don't require AC_HEADER_STAT.
82209         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
82210         (gl_PREREQ_RMDIR): Remove.
82211         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
82212         mention stat-macros.h or AC_HEADER_STAT, since we'll make
82213         the stat-macros module a prerequisite.
82214         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
82215         * m4/filemode.m4 (gl_FILEMODE): Likewise.
82216         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
82217         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
82218         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
82219         variable names.
82220         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
82221         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
82222         variable prefixes.
82223         * m4/fcntl-safer.m4: Remove.
82224         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
82225         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
82226         Invoke gl_PREREQ_FD_SAFER.
82227         (gl_PREREQ_FD_SAFER): New macro.
82228         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
82229         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
82230         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
82231         Remove duplicate call to AC_LIBOBJ(readutmp).
82232         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
82233
82234         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
82235         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
82236
82237 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82238
82239         * MODULES.html.sh (Misc): Add byteswap.
82240
82241 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82242
82243         * modules/getcwd (Depends-on): Add extensions.
82244         * modules/openat (Depends-on): Likewise.
82245
82246 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82247
82248         * modules/byteswap: New file.
82249
82250 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82251
82252         * m4/byteswap.m4: New file.
82253
82254 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82255
82256         * lib/byteswap_.h: New file.
82257
82258 2005-04-25  Karl Berry  <karl@gnu.org>
82259
82260         * m4/gettext.m4: Update from GNU gettext 0.14.4.
82261
82262 2005-04-25  Albert Chin  <china@thewrittenword.com>
82263
82264         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
82265         Toolkit C bug.
82266
82267 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
82268
82269         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
82270         (func_ln_if_changed): Remove forcibly for no error message
82271         in case file does not exist.
82272
82273 2005-04-19  Simon Josefsson  <jas@extundo.com>
82274
82275         * gnulib-tool (Options): Make --symlink mean --symbolic.
82276
82277 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
82278
82279         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
82280
82281 2005-04-16  Simon Josefsson  <jas@extundo.com>
82282
82283         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
82284
82285 2005-04-15  Simon Josefsson  <jas@extundo.com>
82286
82287         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
82288
82289 2005-04-15  Simon Josefsson  <jas@extundo.com>
82290
82291         * gnulib-tool: Rename --symlink to --symbolic.
82292
82293 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
82294
82295         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
82296         symbolic links to files instead of copying/moving.  Add --aux-dir,
82297         specifying directory relative --dir where auxiliary build tools
82298         are placed.
82299
82300 2005-04-14  Bruno Haible  <bruno@clisp.org>
82301
82302         * modules/allocsa (License): Change to LGPL.
82303         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
82304
82305 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
82306
82307         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
82308         that "UTC +1 second" continues to work.  Problem reported
82309         by Dmitry V. Levin.
82310         (relunit_snumber): New rule.
82311         (relunit): Use it.
82312
82313 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
82314
82315         * lib/getdate.y (universal_time_zone_table): New constant.
82316         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
82317         universal_time_zone_table.
82318         (lookup_zone): Prefer universal_time_zone_table to
82319         local_time_zone_table, so that "GMT" time stamps are allowed in
82320         London during the summer.  Problem reported by Ian Abbott.
82321
82322 2005-04-12  Jim Meyering  <jim@meyering.net>
82323
82324         * lib/human.c (humblock): Set *options even when returning due to
82325         xstrtoumax conversion failure.  Thanks to a used-uninitialized
82326         warning from gcc-4.
82327
82328 2005-04-09  Jim Meyering  <jim@meyering.net>
82329
82330         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
82331         -Wuninitialized: initialize tm0.tm_year.
82332
82333 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
82334
82335         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
82336         count, since there's no maximum.  All uses changed.
82337         Add member dsts_seen.
82338         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
82339         not being INT_MAX.
82340         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
82341         Use pc_rels_seen to decide whther a date is absolute.
82342
82343         * lib/getdate.y (number): Don't overwrite year.
82344         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
82345         check.
82346
82347 2005-04-02  Simon Josefsson  <jas@extundo.com>
82348
82349         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
82350         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
82351
82352 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
82353
82354         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
82355         where no absolute path name can be longer than PATH_MAX.
82356
82357 2005-03-27  Jim Meyering  <jim@meyering.net>
82358
82359         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
82360
82361 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
82362
82363         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
82364         "one's complement" -> "ones' complement" in comment, as per Knuth.
82365         "value of type" -> "type or expression" in comment.
82366         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
82367
82368 2005-03-26  Jim Meyering  <jim@meyering.net>
82369
82370         Comment nits.
82371         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
82372         Correct typos: s/or/of/.
82373
82374 2005-03-26  Jim Meyering  <jim@meyering.net>
82375
82376         * modules/check-include-files: Move to ../ and rename to...
82377         * check-module: ...this.
82378
82379 2005-03-25  Jim Meyering  <jim@meyering.net>
82380
82381         * modules/xvasprintf (Files): Add xalloc.h.
82382
82383 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
82384
82385         * modules/gettext (Files): config/config.rpath ->
82386         build-aux/config.rpath
82387         * modules/iconv (Files): Likewise.
82388         Problem reported by Oskar Liljeblad.
82389
82390 2005-03-23  Jim Meyering  <jim@meyering.net>
82391
82392         * modules/check-include-files: New script to check for
82393         missing dependencies, multiple includes, etc.
82394
82395         * modules/c-strtold (Depends-on): Add xalloc.
82396         * modules/c-strtod (Depends-on): Add xalloc.
82397         * modules/hash (Depends-on): Add xalloc.
82398         (Files): Remove lib/xalloc.h.
82399
82400         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
82401         * modules/userspec (Files): Add lib/inttostr.h.
82402
82403 2005-03-23  Jim Meyering  <jim@meyering.net>
82404
82405         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
82406
82407 2005-03-22  Jim Meyering  <jim@meyering.net>
82408
82409         * modules/stat-macros: New module.
82410         * modules/canonicalize, modules/euidaccess, modules/file-type,
82411         * modules/filemode, modules/lchown, modules/makepath,
82412         * modules/rmdir, modules/stat: Depend on new stat-macros module
82413         rather than listing lib/stat-macros.h manually.
82414         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
82415
82416 2005-03-22  Jim Meyering  <jim@meyering.net>
82417
82418         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
82419
82420 2005-03-22  Bruno Haible  <bruno@clisp.org>
82421
82422         * config/srclist.txt: Replace target directory 'config' with
82423         'build-aux'.
82424         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
82425         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
82426         ../build-aux/.
82427
82428 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
82429
82430         * modules/chdir-long (Depends-on): Add mempcpy.
82431
82432         * modules/acl, modules/backupfile, modules/c-strtod,
82433         modules/c-strtold, modules/canon-host, modules/canonicalize,
82434         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
82435         modules/exclude, modules/exitfail, modules/file-type,
82436         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
82437         modules/getdate, modules/getline, modules/getpagesize,
82438         modules/getpass, modules/getugroups, modules/group-member,
82439         modules/hard-locale, modules/hash, modules/human, modules/idcache,
82440         modules/inttostr, modules/long-options, modules/makepath,
82441         modules/md5, modules/memcasecmp, modules/memcoll,
82442         modules/modechange, modules/mountlist, modules/path-concat,
82443         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
82444         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
82445         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
82446         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
82447         modules/strftime, modules/strndup, modules/strverscmp,
82448         modules/timespec, modules/unlocked-io, modules/userspec,
82449         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
82450         modules/yesno:
82451         Remove lib_SOURCES line from Makefile.am section, as this is now
82452         done automatically by the corresponding Autoconf macro.
82453
82454 2005-03-21  Jim Meyering  <jim@meyering.net>
82455
82456         Changes imported from coreutils.
82457
82458         * lib/cycle-check.c: Don't include xalloc.h.
82459
82460         * lib/path-concat.c: Don't include assert.h.
82461         (path_concat): Remove assertion that would have triggered
82462         for ABASE starting with more than one slash.
82463         Reported by Andreas Schwab.
82464
82465         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
82466         properly when ABASE is an absolute file name.
82467         Correct the description of this function.
82468         Include <assert.h>.
82469         Add an assertion and a test driver.
82470         This fixes a bug introduced on 2004-07-02.
82471         Andreas Schwab reported the resulting failure of cp --parents:
82472         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
82473
82474 2005-03-21  Jim Meyering  <jim@meyering.net>
82475
82476         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
82477         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
82478
82479 2005-03-21  Jim Meyering  <jim@meyering.net>
82480         and  Paul Eggert  <eggert@cs.ucla.edu>
82481
82482         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
82483         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
82484         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
82485         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
82486         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
82487         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
82488         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
82489         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
82490         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
82491         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
82492         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
82493         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
82494         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
82495         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
82496         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
82497         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
82498         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
82499         for these modules.
82500
82501 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
82502
82503         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
82504         (which shouldn't happen), generate nothing instead of returning 0
82505         immediately, so that nstrftime (NULL, ...) doesn't return 0.
82506
82507 2005-03-16  Bruno Haible  <bruno@clisp.org>
82508
82509         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
82510         HAVE_LONGLONG_64BIT.
82511
82512 2005-03-16  Bruno Haible  <bruno@clisp.org>
82513
82514         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
82515         HAVE_LONGLONG_64BIT.
82516
82517 2005-03-16  Bruno Haible  <bruno@clisp.org>
82518
82519         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
82520         HAVE_LONGLONG_64BIT.
82521
82522 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
82523
82524         * lib/strftime.c (my_strftime): Prepend space to format so that we can
82525         reliably distinguish strftime failure from empty output on POSIX
82526         hosts.
82527
82528 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
82529
82530         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
82531         (iconv_string): Don't guess a size-zero buffer, as that might cause
82532         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
82533         result would be 'too large', where 'too large' is (heuristically)
82534         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
82535         overflow concerns.  This will prevent some unwanted malloc failures
82536         when the inputs are very large.
82537
82538 2005-03-15  Karl Berry  <karl@gnu.org>
82539
82540         * config/srclist.txt (config.rpath): from gettext.
82541         * config/config.rpath: update.
82542
82543 2005-03-15  Bruno Haible  <bruno@clisp.org>
82544
82545         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
82546         to 'negate'.
82547
82548         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
82549         variable.
82550
82551         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
82552         results.
82553
82554 2005-03-14  Simon Josefsson  <jas@extundo.com>
82555
82556         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
82557         <fx@gnu.org>.
82558
82559 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
82560
82561         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
82562         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
82563         intprops.h.
82564         * lib/strtol.c: Likewise.
82565
82566 2005-03-14  Jim Meyering  <jim@meyering.net>
82567
82568         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
82569         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
82570         to be nonzero so that we (and caller) can detect the difference
82571         between a valid zero-length expansion and an error return, even
82572         when the underlying strftime fails before writing anything into
82573         that location.
82574
82575 2005-03-14  Bruno Haible  <bruno@clisp.org>
82576
82577         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
82578         Update from GNU gettext 0.14.3.
82579
82580 2005-03-10  Jim Meyering  <jim@meyering.net>
82581
82582         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
82583
82584 2005-03-10  Jim Meyering  <jim@meyering.net>
82585
82586         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
82587         so that this module works on systems without fchdir.
82588
82589 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
82590
82591         Factor int-properties macros into a single file, except for
82592         glibc-related files.
82593         * lib/intprops.h: New file.
82594         * lib/getloadavg.c: Include it instead of limits.h.
82595         (INT_STRLEN_BOUND): Remove.
82596         * lib/human.c: Include intprops.h.
82597         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
82598         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
82599         302/1000.
82600         * lib/inttostr.h: Include intprops.h instead of limits.h.
82601         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
82602         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
82603         for consistency with intprops.h.
82604         (time_t_is_integer, twos_complement_arithmetic): Use them.
82605         * lib/sig2str.h: Include <signal.h>, intprops.h.
82606         (INT_STRLEN_BOUND): Remove.
82607         * lib/strftime.c (TYPE_SIGNED): Remove.
82608         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
82609         * lib/strtol.c: Adjust comments to match intprops.h.
82610         * lib/userspec.c: Include intprops.h.
82611         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
82612         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
82613         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
82614         instead of rolling our own expressions.
82615         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
82616
82617         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
82618         instead of int.
82619         (my_strftime): Do not mishandle years close to INT_MAX, by doing
82620         the right thing even if adding 1900 would overflow.  Similarly
82621         for tm_mon + 1 and tm_yday + 1.
82622         Make %Y always equivalent to %C%y, and similarly for %G and %g.
82623         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
82624         (DO_SIGNED_NUMBER): New macro.
82625         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
82626
82627 2005-03-07  Bruno Haible  <bruno@clisp.org>
82628
82629         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
82630
82631 2005-03-07  Bruno Haible  <bruno@clisp.org>
82632
82633         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
82634
82635 2005-03-04  Derek R. Price  <derek@ximbiot.com>
82636
82637         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
82638         (func_import): Only replace files via --import when they have actually
82639         changed.
82640
82641 2005-03-03  Derek R. Price  <derek@ximbiot.com>
82642
82643         * m4/mmap-anon.m4: New file.
82644         * m4/pagealign_alloc.m4: New file.
82645
82646 2005-03-03  Derek R. Price  <derek@ximbiot.com>
82647             Bruno Haible  <bruno@clisp.org>
82648
82649         * modules/pagealign_alloc: New file.
82650         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
82651
82652 2005-03-03  Derek R. Price  <derek@ximbiot.com>
82653             Bruno Haible  <bruno@clisp.org>
82654
82655         * lib/pagealign_alloc.h: New file.
82656         * lib/pagealign_alloc.c: New file.
82657
82658 2005-03-03  Bruno Haible  <bruno@clisp.org>
82659
82660         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
82661         Use an all-permissive copyright notice, recommended by RMS.
82662
82663 2005-03-02  Bruno Haible  <bruno@clisp.org>
82664
82665         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
82666         of AIX, the replacement has to be done only after <string.h> is
82667         included, therefore not in config.h. stpncpy.h does the replacement,
82668         and stpncpy.c uses it.
82669
82670 2005-03-02  Bruno Haible  <bruno@clisp.org>
82671
82672         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
82673         stpncpy.c uses it.
82674
82675 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82676
82677         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
82678         The workaround isn't strictly needed for POSIX conformance, and
82679         it's too much of a pain to configure and maintain.  We'll ask
82680         people to fix their kernels instead.
82681         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
82682         (NANOSLEEP_BUG_WORKAROUND): Remove.
82683         (xnanosleep): Remove the workaround.
82684
82685 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82686
82687         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
82688         Reported by Derek Price.
82689         (Include): Add "timespec.h".
82690
82691         * modules/xnanosleep (Depends-on): Remove gethrxtime.
82692
82693 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82694
82695         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
82696         to detect nanosleep bug.
82697
82698 2005-03-01  Bruno Haible  <bruno@clisp.org>
82699
82700         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
82701
82702 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
82703
82704         * modules/gethrxtime: New file.
82705         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
82706         (Depends-on): Add gethrxtime.
82707         (configure.ac): Add gl_XNANOSLEEP.
82708         (Makefile.am): Remove lib_SOURCES line.
82709
82710 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
82711
82712         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
82713         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
82714
82715 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
82716
82717         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
82718         * lib/timespec.h (gettime): Return void, since it always
82719         succeeds now.  All uses changed.
82720         * lib/gettime.c (gettime): Likewise.
82721         [HAVE_NANOTIME]: Prefer nanotime.
82722         Assume gettimeofday succeeds, as POSIX requires.
82723         Assime time () succeeds, since other code already does.
82724         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
82725         (timespec_subtract): Remove.
82726         (NANOSLEEP_BUG_WORKAROUND): New constant.
82727         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
82728         things considerably.  Use it only on GNU/Linux hosts, since the
82729         workaround shouldn't be needed elsewhere.
82730
82731 2005-02-24  Bruno Haible  <bruno@clisp.org>
82732
82733         * modules/gettext (Files): Add m4/glibc2.m4.
82734
82735 2005-02-24  Bruno Haible  <bruno@clisp.org>
82736
82737         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
82738         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
82739         * m4/progtest.m4:
82740         Update from GNU gettext 0.14.2.
82741         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
82742
82743 2005-02-24  Bruno Haible  <bruno@clisp.org>
82744
82745         * lib/localcharset.c: Update from GNU gettext 0.14.2.
82746         * lib/config.charset: Update from GNU gettext 0.14.2.
82747
82748 2005-02-24  Bruno Haible  <bruno@clisp.org>
82749
82750         * lib/gettext.h: Update from GNU gettext 0.14.2.
82751
82752 2005-02-23  Simon Josefsson  <jas@extundo.com>
82753
82754         * m4/iconvme.m4: New file.
82755
82756 2005-02-23  Jim Meyering  <jim@meyering.net>
82757
82758         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
82759         change.
82760         Thanks to Bruno Haible for catching it.
82761
82762 2005-02-22  Simon Josefsson  <jas@extundo.com>
82763
82764         * modules/iconvme: New file.
82765
82766         * MODULES.html.sh: Add iconvme.
82767
82768 2005-02-22  Simon Josefsson  <jas@extundo.com>
82769
82770         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
82771
82772 2005-02-22  Simon Josefsson  <jas@extundo.com>
82773
82774         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
82775
82776 2005-02-22  Jim Meyering  <jim@meyering.net>
82777
82778         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
82779         s/ifndef/ifdef/.
82780
82781 2005-02-20  Neil Conway  <neilc@samurai.com>
82782
82783         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
82784         returned by OSX/Darwin if the specified buffer is not large
82785         enough for the hostname.
82786
82787 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82788
82789         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
82790         pass it to _help, otherwise the latter coredumps trying to
82791         dereference state.root_argp.
82792
82793 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
82794
82795         * modules/chdir-long (Depends-on): Add memrchr.
82796         * modules/memrchr (Files): Add lib/memrchr.h.
82797         (Include): "memrchr.h".
82798
82799 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
82800
82801         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
82802
82803 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
82804
82805         * lib/memrchr.h: New file.
82806         * lib/chdir-long.c: Include it.
82807         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
82808         Don't bother including stddef.h.
82809
82810 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
82811
82812         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
82813         inclusion.
82814         Include <sys/types.h>, for dev_t.
82815         (ME_DUMMY, ME_REMOTE): Move from here....
82816         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
82817         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
82818         Dmitry V. Levin.
82819         Include mountlist.h first, to test the interface.
82820
82821 2005-01-29  Bruno Haible  <bruno@clisp.org>
82822
82823         * lib/progname.c (program_name): Initialize.
82824         Needed when linking statically on MacOS X.
82825
82826 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
82827
82828         Sync from coreutils.
82829         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
82830         (Depends-on): Add c-strtod.
82831         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
82832
82833 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
82834
82835         Sync from coreutils.
82836         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
82837
82838         Remove files that are specific to coreutils.
82839         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
82840
82841 2005-01-28  Bruno Haible  <bruno@clisp.org>
82842
82843         * modules/javacomp: New file.
82844         * MODULES.html.sh (Java): Add javacomp.
82845
82846 2005-01-28  Bruno Haible  <bruno@clisp.org>
82847
82848         * m4/javacomp.m4: New file, from GNU gettext.
82849
82850 2005-01-28  Bruno Haible  <bruno@clisp.org>
82851
82852         * lib/javacomp.sh.in: New file, from GNU gettext.
82853         * lib/javacomp.h: New file, from GNU gettext.
82854         * lib/javacomp.c: New file, from GNU gettext.
82855
82856 2005-01-26  Simon Josefsson  <jas@extundo.com>
82857
82858         * lib/gai_strerror.c: Use GPL in header.
82859
82860 2005-01-26  Bruno Haible  <bruno@clisp.org>
82861
82862         * modules/javaexec: New file.
82863         * MODULES.html.sh (Java): Add javaexec.
82864
82865 2005-01-26  Bruno Haible  <bruno@clisp.org>
82866
82867         * m4/javaexec.m4: New file, from GNU gettext.
82868
82869 2005-01-26  Bruno Haible  <bruno@clisp.org>
82870
82871         * lib/javaexec.sh.in: New file, from GNU gettext.
82872         * lib/javaexec.h: New file, from GNU gettext.
82873         * lib/javaexec.c: New file, from GNU gettext.
82874
82875 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82876
82877         * modules/lchown (Depends-on): Remove lchown.h
82878
82879 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82880
82881         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
82882         must be defined if the header file was not found, in order
82883         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
82884
82885 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82886
82887         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
82888         initializers for struct pentry_state.
82889         (__argp_error): Check return value of __asprintf
82890         (__argp_failure): Translate error message
82891
82892         * lib/argp-parse.c: Removed braces around the expansion of N_()
82893
82894 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
82895
82896         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
82897         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
82898         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
82899         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
82900         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
82901         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
82902         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
82903         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
82904         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
82905         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
82906         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
82907         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
82908         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
82909         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
82910         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
82911         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
82912         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
82913         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
82914         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
82915         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
82916         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
82917         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
82918         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
82919         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
82920         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
82921         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
82922         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
82923         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
82924         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
82925         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
82926         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
82927         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
82928         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
82929         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
82930         xstrtol.m4, xstrtoumax.m4, yesno.m4:
82931         Use an all-permissive copyright notice, recommended by RMS.
82932
82933 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
82934
82935         * modules/chdir-long (Depends-on): Remove mempcpy.
82936
82937 2005-01-21  Jim Meyering  <jim@meyering.net>
82938
82939         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
82940         same value as for Solaris 9.
82941
82942         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
82943         component length.  This included changing the parameter to be
82944         of type `char *' rather than `char const *'.
82945         * lib/chdir-long.h (chdir_long): Update prototype.
82946
82947         * lib/openat.c (fdopendir, fstatat): New functions.
82948         * lib/openat.h: Include headers required for use of DIR and struct
82949         stat.
82950         [AT_SYMLINK_NOFOLLOW]: Define.
82951         (fdopendir, fstatat): Add prototypes.
82952
82953 2005-01-21  Bruno Haible  <bruno@clisp.org>
82954
82955         * modules/classpath: New file.
82956         * MODULES.html.sh (Java): Add classpath.
82957
82958 2005-01-21  Bruno Haible  <bruno@clisp.org>
82959
82960         * lib/classpath.h: New file, from GNU gettext.
82961         * lib/classpath.c: New file, from GNU gettext.
82962
82963 2005-01-20  Simon Josefsson  <jas@extundo.com>
82964
82965         * modules/version-etc-fsf: New file.
82966
82967 2005-01-20  Simon Josefsson  <jas@extundo.com>
82968
82969         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
82970         * lib/version-etc.c: Remove version_etc_copyright.
82971         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
82972         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
82973
82974 2005-01-20  Simon Josefsson  <jas@extundo.com>
82975
82976         * lib/base64.h (isbase64): Add.
82977
82978         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
82979         using a unsigned prototype, don't inline.
82980         (base64_decode): Use it.
82981
82982 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
82983
82984         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
82985         it.
82986
82987 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
82988
82989         * lib/save-cwd.c (save_cwd): Remove code to support the case
82990         where fchdir is missing or flaky.
82991
82992 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
82993
82994         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
82995
82996 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
82997
82998         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
82999         AC_LIBSOURCES now does this.
83000         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
83001         with new ullong_max module.
83002
83003 2005-01-19  Bruno Haible  <bruno@clisp.org>
83004
83005         * modules/sh-quote: New file.
83006         * MODULES.html.sh (Executing programs): Add sh-quote.
83007
83008 2005-01-19  Bruno Haible  <bruno@clisp.org>
83009
83010         * lib/sh-quote.h: New file, from GNU gettext.
83011         * lib/sh-quote.c: New file, from GNU gettext.
83012
83013 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83014
83015         Merge from coreutils.
83016         * m4/ullong_max.m4: New file.
83017         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
83018         (gl_MACROS): Assume localeconv exists.
83019
83020 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83021
83022         Merge changes from coreutils, as described below in several
83023         changelogs dated today.
83024
83025         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
83026         (O_DIRECTORY): Remove; not needed here, since "." must be
83027         a directory.  All uses removed.
83028         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
83029         universal on Suns, and we also need to test for IRIX.
83030         Revamp code to use 'if' rather than '#if'.
83031         Avoid unnecessary comparison of cwd->desc to 0.
83032
83033         * lib/utimens.c (futimens): Robustify the previous patch, by checking
83034         for known valid error numbers rather than observed invalid ones.
83035
83036 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83037
83038         * modules/ullong_max: New file.
83039
83040         * modules/chdir-long, modules/openat: New files.
83041         * modules/save-cwd (Depends-on): Depend on chdir-long.
83042         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
83043
83044 2005-01-18  Jim Meyering  <jim@meyering.net>
83045
83046         Merge from coreutils.
83047         * m4/chdir-long.m4, m4/openat.m4: New files.
83048         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
83049         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
83050         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
83051         is sane and DOES follow symlinks.  Besides, testing 20 different
83052         systems found no broken chown implementations.
83053         Prompted by a change in rsync's copy of this macro.
83054         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
83055
83056         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
83057
83058         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
83059         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
83060         NULL-means-set-to-current-time semantics.
83061         Remove temporary file immediately, rather than waiting
83062         for configure's at-exit trap code to do it.
83063
83064 2005-01-18  Jim Meyering  <jim@meyering.net>
83065
83066         * lib/version-etc.c (version_etc_copyright): Update copyright date.
83067
83068         * lib/utimens.c (futimens): Account for the fact that futimes
83069         can also fail with errno == ENOSYS or errno == ENOENT.
83070         Patch from Dmitry V. Levin.
83071
83072         Change the name of the robust chdir function from chdir to chdir_long.
83073         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
83074         (restore_cwd): Use chdir_long, not chdir.
83075         * lib/chdir-long.c: Renamed from chdir.c.
83076         * lib/chdir-long.h: Renamed from chdir.h.
83077         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
83078         Hurd.
83079
83080 2005-01-18  Bruno Haible  <bruno@clisp.org>
83081
83082         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
83083         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
83084         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
83085         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
83086         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
83087         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
83088         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
83089         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
83090         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
83091         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
83092         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
83093         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
83094         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
83095         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
83096         Use an all-permissive copyright notice, recommended by RMS.
83097
83098 2005-01-18  Bob Proulx  <bob@proulx.com>
83099
83100         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
83101         simplify offsetof() macro construct to avoid compile failure with
83102         native HP-UX 11.0 ANSI C compiler.
83103
83104 2005-01-17  Bruno Haible  <bruno@clisp.org>
83105
83106         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
83107         redundant because stpncpy.m4 takes care of it.
83108
83109 2005-01-17  Bruno Haible  <bruno@clisp.org>
83110
83111         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
83112
83113 2005-01-17  Bruno Haible  <bruno@clisp.org>
83114
83115         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
83116         used.
83117
83118 2005-01-17  Bruno Haible  <bruno@clisp.org>
83119
83120         * lib/fwriteerror.h (fwriteerror): Change specification to include
83121         fclose.
83122         * lib/fwriteerror.c: Include <stdbool.h>.
83123         (fwriteerror): At the end, close the file stream. Record whether
83124         stdout was already closed.
83125
83126 2005-01-17  Bruno Haible  <bruno@clisp.org>
83127
83128         * lib/execute.c (environ): Declare if needed.
83129         * lib/pipe.c (environ): Likewise.
83130         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
83131
83132 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83133
83134         * modules/argp: Depend on vsnprintf
83135
83136 2005-01-10  Jim Meyering  <jim@meyering.net>
83137
83138         * modules/closeout (Depends-on): Add atexit.
83139
83140 2005-01-06  Bruno Haible  <bruno@clisp.org>
83141
83142         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
83143
83144 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
83145
83146         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
83147         definitions to be after all include files, to avoid collisions.
83148         Problem reported by Bob Proulx.
83149
83150 2005-01-04  Jim Meyering  <jim@meyering.net>
83151
83152         Changes imported from coreutils.
83153         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
83154         as the mkstemp template, use a temporary directory and an
83155         8.3-friendly template to avoid trouble on systems like DJGPP.
83156         Reported by Juan M. Guerrero via Stepan Kasal.
83157         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
83158         close. Remove the temporary directory right away, rather than waiting
83159         for configure's at-exit trap code to do it.
83160         Suggestion from Stepan Kasal.
83161
83162 2005-01-01  Simon Josefsson  <jas@extundo.com>
83163
83164         * gnulib-tool: Print #include directives when --import'ing.
83165
83166 2004-12-28  Simon Josefsson  <jas@extundo.com>
83167
83168         * tests/test-base64.c: Include required header files.  Remove
83169         unused variables.
83170
83171 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
83172
83173         * modules/error (Depends-on): Remove gettext.
83174
83175 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
83176
83177         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
83178         not needed.  This removes a dependency on the gettext module.
83179         [defined _LIBC]: Do not include <libintl.h>; not needed.
83180
83181 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
83182
83183         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
83184         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
83185
83186 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
83187
83188         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
83189         HAVE_DECL_STRTOLD.
83190
83191 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83192
83193         * modules/getdate (Depends-on): Remove alloca-opt.
83194
83195 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83196
83197         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
83198
83199 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83200
83201         * lib/argp-parse.c: Include <stddef.h>.
83202         (alignof, alignto): New macros.
83203         (parser_init): Don't assume that void * is aligned sufficiently
83204         for struct option.
83205
83206         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
83207         need to extend the stack.
83208         (YYINITDEPTH): New macro, so that the initial stack isn't overly
83209         large.
83210
83211 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83212
83213         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
83214
83215 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
83216
83217         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
83218         (2004-10-24) change.  Apparently this was a false alarm.
83219
83220         * modules/getdate: Depend on alloca-opt, not alloca.
83221
83222 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
83223
83224         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
83225         Remove now-obsolete comment about AIX.
83226         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
83227         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
83228         (YYMAXDEPTH): New macro.
83229
83230 2004-12-18  Simon Josefsson  <jas@extundo.com>
83231
83232         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
83233
83234 2004-12-18  Bruno Haible  <bruno@clisp.org>
83235
83236         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
83237
83238 2004-12-18  Bruno Haible  <bruno@clisp.org>
83239
83240         * lib/fatal-signal.c (fatal_signals): Make non-const.
83241         (init_fatal_signals): New function.
83242         (uninstall_handlers, install_handlers): Ignore signals that were set to
83243         SIG_IGN.
83244         (at_fatal_signal): Call init_fatal_signals.
83245         (init_fatal_signal_set): Likewise. Ignore signals that were set to
83246         SIG_IGN.
83247         Reported by Paul Eggert.
83248
83249 2004-12-18  Bruno Haible  <bruno@clisp.org>
83250
83251         * doc/alloca.texi: New file.
83252         * doc/alloca-opt.texi: New file.
83253
83254 2004-12-17  Jim Meyering  <jim@meyering.net>
83255
83256         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
83257         Otherwise, install-sh could exit with improper exit status when
83258         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
83259
83260 2004-12-16  Simon Josefsson  <jas@extundo.com>
83261
83262         * tests/test-base64.c: Add license.
83263
83264 2004-12-15  Stepan Kasal  <address@hidden>
83265
83266         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
83267
83268 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
83269
83270         * modules/getcwd (Files): Add m4/d-ino.m4.
83271         Suggested by Mark D. Baushke.
83272
83273 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
83274
83275         * lib/getdate.y (textint): New member "negative".
83276         (time_zone_hhmm): New function.
83277         Expect 14 shift-reduce conflicts, not 13.
83278         (o_colon_minutes): New rule.
83279         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
83280         (yylex): Set the "negative" member of signed numbers.
83281
83282 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
83283
83284         * doc/getdate.texi (Time of day items, Time zone items):
83285         Describe new formats +00:00, UTC+00:00.
83286
83287 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
83288
83289         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
83290         spurious "-l"s.  Problem reported by Stepan Kasal.
83291
83292 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
83293
83294         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
83295         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
83296
83297 2004-12-04  Simon Josefsson  <jas@extundo.com>
83298
83299         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
83300         Vandoorselaere <yoann@prelude-ids.org>.
83301
83302 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83303
83304         Changes imported from coreutils.
83305         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
83306         exist.
83307         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
83308
83309 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83310
83311         Changes imported from coreutils.
83312         * lib/hard-locale.c: Assume <locale.h> exists.
83313         Include "strdup.h".
83314         (GLIBC_VERSION): New macro.
83315         (hard_locale): Assume setlocale exists.
83316         Rewrite to avoid #ifdef.
83317         Use strdup rather than malloc + strcpy.
83318         * lib/human.c: Assume <locale.h> exists.
83319         (human_readable): Assume localeconv exists.
83320
83321 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83322
83323         * modules/hard-locale (Depends-on): Add strdup.
83324
83325 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
83326
83327         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
83328         convert T2, not T.  (Imported from libc.)
83329
83330 2004-11-30  Simon Josefsson  <jas@extundo.com>
83331
83332         * modules/restrict (License): Change to LGPL.
83333
83334 2004-11-30  Simon Josefsson  <jas@extundo.com>
83335
83336         * m4/restrict.m4: Add copyright and copying conditions.
83337
83338 2004-11-30  Simon Josefsson  <jas@extundo.com>
83339
83340         * m4/base64.m4: New file.
83341
83342 2004-11-30  Simon Josefsson  <jas@extundo.com>
83343
83344         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
83345         base64.
83346
83347         * tests/test-base64.c: New file.
83348
83349         * modules/base64: New file.
83350
83351 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
83352
83353         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
83354         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
83355
83356         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
83357
83358 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
83359
83360         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
83361         (__getcwd.c): Don't restore errno; glibc doesn't.
83362         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
83363         first, falling back to our code only if its results look suspicious.
83364         Ensure that the resulting buffer is only as large as necessary.
83365
83366         * lib/readutmp.c: Include readutmp.h first.
83367         Include <errno.h>, since readutmp.h no longer does that.
83368         * lib/readutmp.h: Don't include <errno.h>,
83369         <sys/param.h>, <time.h>; not needed to establish interface.
83370         (errno): Remove decl.
83371         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
83372         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
83373         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
83374
83375 2004-11-28  Simon Josefsson  <jas@extundo.com>
83376
83377         * lib/base64.h, base64.c: New file.
83378
83379 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
83380
83381         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
83382
83383 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
83384
83385         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
83386         (Depends-on): Remove pathmax, same.  Add mempcpy.
83387         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
83388         (Makefile.am): Append getcwd.h to lib_SOURCES.
83389         (Include): Add getcwd.h.
83390         (Maintainer): Change from Jim Meyering to "all, glibc",
83391         since getdate now uses intended-for-glibc code.
83392         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
83393         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
83394
83395 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
83396
83397         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
83398         HP's ANSI C compiler.
83399         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
83400         Declaring int functions causes warnings on some modern systems and
83401         shouldn't be needed to compile on ancient ones.
83402         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
83403         defined.
83404
83405         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
83406         with the following changes.
83407         (__set_errno): Parenthesize properly.
83408         Include <stdbool.h>.
83409         (MIN, MAX, MATCHING_INO): New macros.
83410         (__getcwd): Define with prototype, not K&R form.
83411         Use heuristics to allocate default buffer on stack if possible.
83412         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
83413         behavior, and to avoid the PATH_MAX limit when computing
83414         ../../../../...
83415         Use MATCHING_INO to compare inode number to file.
83416         Check for arithmetic overflow in size calculations.
83417         Fix bug in reallocation of dot array that caused getcwd to fail
83418         on directories nested deeper than 75.
83419         Be more careful about saving errno on error.
83420         Do not use realloc; use only free+malloc, as this is a bit
83421         more flexible and avoids a needless copy operation.
83422         Do not inspect st_dev and st_ino for symbolic links; POSIX
83423         doesn't specify the latter.
83424         Check for closedir errors.
83425         Avoid needless casts.
83426         Use "#ifdef weak_alias" around weak_alias, to be like other
83427         glibc code.
83428         The following changes to getcwd.c have effect only when used in
83429         gnulib; they have no effect inside glibc proper.
83430         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
83431         as alloca isn't used.
83432         (alloca, __alloca): Likewise.
83433         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
83434         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
83435         unconditionally, as gnulib assumes C89 or better.
83436         Do not include <sys/param.h>.
83437         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
83438         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
83439         better.
83440         (NULL) [!defined NULL]: Remove; we assume C89 or better.
83441         Include <dirent.h> in a way that is compatible with modern Autoconf.
83442         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
83443         New macros, if not already defined.
83444         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
83445         Use "_LIBC", not "defined _LIBC", for consistency.
83446         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
83447         a mempcpy module.
83448         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
83449         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
83450         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
83451         credit only to Jim Meyering and adjust the copyright dates.
83452         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
83453         <stdlib.h>, <unistd.h>, "pathmax.h".
83454         Instead, include "xgetcwd.h" (first) and "getcwd.h".
83455         (INITIAL_BUFFER_SIZE): Remove.
83456         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
83457
83458 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
83459
83460         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
83461         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
83462         Use the _ONCE methods, for efficiency.
83463         Check for fcntl.h.  In test program, include <errno.h>
83464         and <fcntl.h> if available.  Remove old K&R cruft from
83465         test program.  Check for common errors in GNU/Linux,
83466         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
83467         don't do AC_LIBOBJ, as that's getcwd.m4's job.
83468         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
83469         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
83470         name accordingly.
83471         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
83472         accommodate new getcwd.c.
83473         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
83474         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
83475         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
83476         that's all we need now.
83477
83478 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83479
83480         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
83481         argp-parse.c depends on getopt internals, that means we should
83482         always use our getopt, to be on the safe side.
83483         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
83484         order not to spoil the result of an eventual previous invocation
83485         of gl_GETOPT_SUBSTITUTE.
83486
83487 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83488
83489         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
83490         redefinition warnings. To avoid them, include the defines
83491         in `#if !defined __need_getopt ... #endif'. The only place
83492         where __getopt_argv_const is used is in definitions
83493         of getopt_long and getopt_long_only below, which are as well
83494         protected by `#ifndef __need_getopt'.
83495         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
83496         __need_getopt after including <stdio.h> and <unistd.h> These
83497         headers might have defined it.
83498
83499 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
83500
83501         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
83502
83503 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
83504
83505         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
83506         (futimens): New function, which uses futimes if available.
83507         (futimens, utimens): Support timespec==NULL, with same semantics
83508         as utime and utimens.
83509         * lib/utimens.h (futimens): New decl.
83510
83511 2004-11-23  Jim Meyering  <jim@meyering.net>
83512
83513         * lib/getopt_.h: Remove trailing blanks.
83514
83515 2004-11-23  Jim Meyering  <jim@meyering.net>
83516
83517         * lib/__fpending.c: Add comment.
83518
83519 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
83520
83521         * modules/canonicalize (Depends-on): Add xreadlink.
83522         Problem reported by James Youngman.
83523
83524 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
83525
83526         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
83527         New macros.
83528         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
83529         optopt): Use them instead of invoking ## directly; otherwise, the
83530         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
83531
83532 2004-11-19  Bruno Haible  <bruno@clisp.org>
83533
83534         * lib/strtok_r.c: Move comments from here...
83535         * lib/strtok_r.h: ... to here.
83536
83537 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
83538
83539         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
83540         implementations that mishandle size_t overflow.
83541
83542 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
83543
83544         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
83545         might fail.  Problem reported by Yoann Vandoorselaere.
83546         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
83547         implementations that mishandle size_t overflow.
83548
83549 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83550
83551         * modules/canon-host (Depends-on): Add strdup.
83552
83553 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83554
83555         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
83556
83557 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83558
83559         * lib/canon-host.c: Include "strdup.h".
83560         (canon_host): Use getaddrinfo if available, so that IPv6 works.
83561         Use strdup instead of malloc/strcpy to duplicate strings.
83562
83563         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
83564         (human_space_before_unit): New constant.
83565         * lib/human.c (human_readable): Support it.
83566
83567         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
83568         (xgetcwd): Set errno correctly when failing.
83569         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
83570         the failure is actually due to a PATH_MAX problem.
83571
83572         Further getopt changes to make it more likely that glibc will
83573         buy the changes back.
83574         * lib/getopt.c (POSIXLY_CORRECT): New constant.
83575         (getopt): Use it, so to preserve glibc semantic
83576         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
83577         when compiling for libc.
83578         * lib/getopt_.h (__getopt_argv_const): Bring it back.
83579         (getopt_long, getopt_long_only): Use it.
83580
83581         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
83582         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
83583         (getopt): Argv is now char * const *, as per standard.
83584         (_getopt_internal_r, _getopt_internal): Argv is now char **,
83585         not char *__getopt_argv_const *.
83586         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
83587         _getopt_long_only_r): Likewise.
83588         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
83589         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
83590         _getopt_long_r, _getopt_long_only_r): Likewise.
83591         * lib/getopt_.h (__getopt_argv_const): Remove.
83592         (getopt): Argv is now char * const *, as per standard.
83593
83594         * lib/getdate.y (tORDINAL): New token.
83595         (day, relunit): Allow it for relative times.
83596         (relative_time_table): Use tORDINAL for ordinals.
83597
83598 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83599
83600         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
83601         Document that "second" isn't allowed as an ordinal number.
83602
83603 2004-11-16  Jim Meyering  <jim@meyering.net>
83604
83605         * modules/closeout (Depends-on): Add fpending.
83606
83607 2004-11-15  Jim Meyering  <jim@meyering.net>
83608
83609         * lib/closeout.c: Include "__fpending.h" once again.
83610         Include <stdbool.h>.
83611         (close_stdout): Don't fail just because stdout was closed initially,
83612         since some programs don't write to stdout in the normal course of
83613         operation (other than --version and --help), and we don't want this
83614         function to make e.g. `touch file >&-' fail.
83615         But do fail if it was closed and someone has tried to write to it.
83616         E.g., `printf foo >&-' must fail.
83617
83618 2004-11-13  Jim Meyering  <jim@meyering.net>
83619
83620         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
83621
83622 2004-11-12  Simon Josefsson  <jas@extundo.com>
83623
83624         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
83625         small doc fix is still pending.
83626
83627 2004-11-11  Simon Josefsson  <jas@extundo.com>
83628
83629         * modules/strtok_r: New file.
83630
83631         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83632         strtok_r.
83633
83634 2004-11-11  Simon Josefsson  <jas@extundo.com>
83635
83636         * m4/strtok_r.m4: New file.
83637
83638         * m4/getopt.m4: Replace opterr.
83639
83640 2004-11-11  Simon Josefsson  <jas@extundo.com>
83641
83642         * lib/strtok_r.h, strtok_r.c: New file.
83643
83644 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
83645
83646         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
83647         of replacing opterr, getopt, etc.  This should handle the
83648         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
83649
83650 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
83651
83652         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
83653         we can stop lying to compilers about the constness of argv when we
83654         are compiled outside glibc.
83655         (getopt, getopt_long, getopt_long_only): Use it.
83656         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
83657         _getopt_internal, getopt): Likewise.
83658         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
83659         _getopt_long_only_r): Likewise.
83660         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
83661         _getopt_long_r, _getopt_long_only_r): Likewise.
83662
83663         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
83664         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
83665         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
83666         the other external symbols.
83667         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
83668         declaration, since the above renaming now works around collisions.
83669
83670 2004-11-11  Jim Meyering  <jim@meyering.net>
83671
83672         * lib/linebreak.c: Remove trailing blanks.
83673         * lib/alloca_.h: Likewise.
83674         * lib/acosl.c: Likewise.
83675         * lib/euidaccess.c: Likewise.
83676         * lib/allocsa.h: Likewise.
83677
83678 2004-11-10  Simon Josefsson  <jas@extundo.com>
83679
83680         * m4/getaddrinfo.m4: New file.
83681
83682 2004-11-10  Simon Josefsson  <jas@extundo.com>
83683
83684         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
83685
83686 2004-11-10  Simon Josefsson  <jas@extundo.com>
83687
83688         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83689         getaddrinfo.
83690
83691         * modules/getaddrinfo: New file.
83692
83693 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83694
83695         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
83696
83697 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83698
83699         * lib/mktime.c (SHR): New macro, which is a portable
83700         substitute for >> that should work even on Crays.
83701         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
83702         Problem reported by Mark D. Baushke in
83703         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
83704         * lib/getdate.y (SHR): Likewise.
83705         (tm_diff): Use it.
83706         * lib/strftime.c (SHR): Likewise.
83707         (tm_diff): Use it.
83708         * lib/quotearg.c (struct quoting_options): Use unsigned int for
83709         quote_these_too, so that right shifts are well defined.  All uses
83710         changed.
83711
83712 2004-11-10  Jim Meyering  <jim@meyering.net>
83713
83714         Ensure that no close failure goes unreported.
83715         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
83716         return early when it seems there's nothing to flush.
83717         Don't include __fpending.h.
83718
83719 2004-11-10  Jim Meyering  <jim@meyering.net>
83720
83721         * modules/closeout (Depends-on): Remove fpending.
83722
83723 2004-11-10  Jim Meyering  <jim@meyering.net>
83724
83725         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
83726
83727 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
83728
83729         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
83730         gl_FUNC_STRFTIME.
83731         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
83732         and AC_REQUIRE when possible, to avoid duplicate checks.
83733         Check for <wchar.h>.
83734
83735 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
83736
83737         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
83738
83739 2004-11-09  Bruno Haible  <bruno@clisp.org>
83740
83741         * m4/sockpfaf.m4: New file.
83742
83743 2004-11-05  Bruno Haible  <bruno@clisp.org>
83744
83745         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
83746         Reported by Mark D. Baushke <mdb@cvshome.org>.
83747
83748 2004-11-04  Bruno Haible  <bruno@clisp.org>
83749
83750         2004-09-11  Bruno Haible  <bruno@clisp.org>
83751                 * allocsa.valgrind: New file.
83752         2004-02-06  Bruno Haible  <bruno@clisp.org>
83753                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
83754                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
83755                 Reported by Christopher Seip <chris.seip@hp.com>.
83756
83757 2004-11-04  Bruno Haible  <bruno@clisp.org>
83758
83759         * modules/allocsa (Files): Add lib/allocsa.valgrind.
83760         (Makefile.am): Distribute it.
83761
83762 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
83763
83764         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
83765         with errno == ERANGE if the buffer is too small.
83766         Problem reported by Mark D. Baushke.
83767
83768 2004-11-03  Albert Chin  <china@thewrittenword.com>
83769             Paul Eggert  <eggert@cs.ucla.edu>
83770
83771         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
83772         equivalent, substitute $ac_type for equivalent type rather than
83773         blindly using uint32_t *always* which won't work if uint32_t is not
83774         available.  Define _UINT32_T to work around typedef of uint32_t if
83775         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
83776         2.5.1.
83777
83778 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
83779
83780         * m4/jm-macros.m4: Sync from coreutils.
83781         (gl_MACROS): Check for mbrlen, for pathchk.
83782         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
83783
83784 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
83785
83786         * lib/xreadlink.c (MAXSIZE): New macro.
83787         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
83788         size does not exceed MAXSIZE.  Avoid cast.
83789         As suggested by Mark D. Baushke in
83790         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
83791         if readlink fails with buffer size just under MAXSIZE, try again
83792         with MAXSIZE.
83793
83794 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
83795
83796         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
83797
83798 2004-11-02  Derek R. Price  <derek@ximbiot.com>
83799         and  Paul Eggert  <eggert@cs.ucla.edu>
83800
83801         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
83802         (get_date): Overparenthesize to avoid GCC warning.
83803
83804 2004-11-02  Bruno Haible  <bruno@clisp.org>
83805
83806         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
83807         returns void.
83808
83809 2004-11-02  Bruno Haible  <bruno@clisp.org>
83810
83811         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
83812         function returns void.
83813
83814 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
83815
83816         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
83817         fflush_unlocked, flockfile, funlockfile, funlockfile,
83818         fputs_unlocked, putc_unlocked.
83819
83820 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
83821
83822         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
83823         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
83824         already declared.
83825
83826 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
83827
83828         * modules/getdate (Files): Add doc/getdate.texi.
83829         (Depends-on): Add setenv, xalloc.
83830
83831 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
83832
83833         * lib/getdate.y: Add support for TZ="foo" within a date string.
83834         Fix some bugs near time_t boundaries.  Reject dates with
83835         out-of-range components, e.g., "Sept 31".
83836         Include <stdlib.h>, "setenv.h", "xalloc.h".
83837         (ISDIGIT_LOCALE): Remove; unused.
83838         Note that the TZ and time functions used here are not reentrant.
83839         (mktime_ok, get_tz): New functions.
83840         (TZBUFSIZE): New constant.
83841         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
83842         This requires that we sometimes generate our own TZ="XXX..." setting.
83843
83844 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
83845
83846         * doc/getdate.texi: New file, from coreutils with modifications for
83847         the new TZ parsing.
83848
83849 2004-10-27  Derek R. Price  <derek@ximbiot.com>
83850
83851         * lib/mktime.c (not_equal_tm): Remove redundant check.
83852
83853 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
83854
83855         * modules/regex (lib_SOURCES): Add regex.c.
83856         Reported by James Youngman in
83857         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
83858
83859 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
83860
83861         * lib/getdate.y: Use Bison 1.875 features, and some minor
83862         code cleanups.  This change does not affect semantics.
83863         Don't include <stdlib.h>; no longer needed.
83864         Don't include unlocked-io.h; only the "#if TEST" code uses
83865         stdio, and performance isn't crucial there.
83866         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
83867         Bison 1.875 features as described below.
83868         All uses of "PC." replaced by "pc->".
83869         (YYSTYPE): Add a forward declaration.
83870         (yylex, yyerror): Use full prototypes in forward decls.
83871         Use "%pure-parser" rather than obsolescent "%pure_parser".
83872         Use %parse-param and %lex-param instead of obsolescent
83873         YYPARSE_PARAM and YYLEX_PARAM.
83874         (meridian_table, month_and_day_table, time_units_table,
83875         relative_time_table, time_zone_table, military_table,
83876         lookup_zone, lookup_word, get_date):
83877         Use NULL instead of 0 where appropriate.
83878         (to_hour): Avoid abort (), to avoid a dependency on
83879         stdlib.h.
83880         (yyerror, yylex): Now accepts parser_control * arg.
83881         (main) [TEST]: Use '\0' rather than 0 for char.
83882
83883 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
83884
83885         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
83886
83887 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
83888
83889         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
83890         It's now the caller's responsibility to handle the case where
83891         !HAVE_GETPAGESIZE && !defined getpagesize.
83892
83893         * lib/mktime.c (leapyear): Arg is long int, not int.
83894
83895 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
83896
83897         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
83898
83899 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
83900
83901         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
83902         missing.  Problem reported by James Youngman.
83903
83904 2004-10-16  Simon Josefsson  <jas@extundo.com>
83905
83906         * gnulib-tool: Fix comments.  Fix parse problem.
83907         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
83908
83909 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
83910
83911         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
83912         implementation of getopt_long.  Problem reported by Alexander Taler in:
83913         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
83914
83915 2004-10-15  Bruno Haible  <bruno@clisp.org>
83916
83917         * gnulib-tool: Untabify. Initialize supplied_libname.
83918         (func_usage): More homogenous output.
83919         (func_modules_transitive_closure, func_modules_to_filelist,
83920         func_emit_lib_Makefile_am): New functions.
83921         (func_import): New function, extracted from big case statement. Use
83922         func_get_license, func_modules_transitive_closure,
83923         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
83924         opt_lgpl. Don't use test -a, as it's not portable.
83925         (func_create_testdir): Use func_modules_transitive_closure,
83926         func_modules_to_filelist, func_emit_lib_Makefile_am.
83927
83928 2004-10-15  Bruno Haible  <bruno@clisp.org>
83929
83930         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
83931
83932 2004-10-15  Bruno Haible  <bruno@clisp.org>
83933
83934         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
83935         the portions belonging to each module.
83936         Suggested by Derek Robert Price <derek@ximbiot.com>.
83937
83938 2004-10-12  Simon Josefsson  <jas@extundo.com>
83939
83940         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
83941         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
83942         to real functions.
83943
83944 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
83945
83946         * modules/vsnprintf: New file.
83947
83948 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
83949
83950         * m4/vsnprintf.m4: New file.
83951
83952 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
83953
83954         * lib/vsnprintf.h: New file.
83955         * lib/vsnprintf.c: New file.
83956
83957 2004-10-11  Bruno Haible  <bruno@clisp.org>
83958
83959         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
83960         vsnprintf.
83961
83962 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
83963
83964         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
83965
83966 2004-10-07  Bruno Haible  <bruno@clisp.org>
83967
83968         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
83969         fits into the provided buffer.
83970
83971 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
83972
83973         * lib/diacrit.c, diacrit.h: Add GPL notice.
83974
83975         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
83976         notice.
83977         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
83978         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
83979         This avoids a potential constant-folding bug.
83980
83981 2004-10-05  Bruno Haible  <bruno@clisp.org>
83982
83983         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
83984         for the declaration of strsep.
83985
83986 2004-10-05  Bruno Haible  <bruno@clisp.org>
83987
83988         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
83989
83990 2004-10-04  Simon Josefsson  <jas@extundo.com>
83991
83992         * modules/memmem: New file.
83993         * tests/test-memmem.c: New file.
83994         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
83995
83996 2004-10-04  Simon Josefsson  <jas@extundo.com>
83997
83998         * m4/memmem.m4: New file.
83999
84000 2004-10-04  Simon Josefsson  <jas@extundo.com>
84001
84002         * lib/memmem.h: New file.
84003         * lib/memmem.c: New file, taken from glibc.
84004
84005 2004-10-04  Simon Josefsson  <jas@extundo.com>
84006
84007         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
84008         '#ifdef USE_UNLOCKED_IO'.
84009
84010 2004-10-04  Simon Josefsson  <jas@extundo.com>
84011
84012         * config/srclist.txt: Add memmem from glibc.
84013
84014 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84015
84016         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
84017
84018         * modules/argmatch, modules/argp, modules/closeout, modules/error,
84019         modules/exclude, modules/getdate, modules/getline,
84020         modules/getndelim2, modules/getpass, modules/getpass-gnu,
84021         modules/getusershell, modules/linebuffer, modules/md5,
84022         modules/mountlist, modules/posixtm, modules/readtokens,
84023         modules/readutmp, modules/regex, modules/sha1,
84024         modules/version-etc, modules/yesno:
84025         Remove dependency on unlocked-io.
84026
84027 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84028
84029         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
84030
84031         * m4/unlocked-io.m4: Add copyright notice.
84032         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
84033
84034 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84035
84036         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
84037         * lib/xmalloc.c (xmemdup): Likewise.
84038         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
84039         XFREE): Remove these long-obsolescent macros.
84040         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
84041         * lib/xstrdup.c: Remove.
84042
84043         * lib/regex.c (re_comp): Cast gettext return value to char *,
84044         Problem reported by Martin Neitzel via Mark D. Baushke.
84045
84046 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84047
84048         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
84049         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
84050         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
84051         regex.c, sha1.c, version-etc.c, yesno.c:
84052         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
84053         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
84054         the includer's responsibility.
84055
84056         Sync from coreutils.
84057
84058         * lib/modechange.c (mode_compile): Don't decrement a pointer that
84059         points to the start of a string, as the C Standard says the
84060         resulting behavior is undefined.
84061
84062         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
84063         simple -> simple_backups, numbered_existing ->
84064         numbered_existing_backups, numbered -> numbered_backups
84065         to avoid shadowing problems.  All uses changed.
84066         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
84067         * lib/backupfile.c (check_extension, numbered_backup):
84068         Rename locals to avoid shadowing 'basename'.
84069         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
84070         once.
84071
84072         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
84073         * lib/.cvsignore: Add getopt.h.
84074
84075 2004-10-04  Bruno Haible  <bruno@clisp.org>
84076
84077         * modules/README: New file.
84078         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
84079         not a module.
84080
84081 2004-10-02  Jim Meyering  <jim@meyering.net>
84082
84083         * lib/dirfd.h, getpagesize.h: Add copyright notice.
84084
84085 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84086
84087         * modules/strsep: New file.
84088
84089 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84090
84091         * m4/strsep.m4: New file.
84092
84093 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84094
84095         * lib/strsep.h: New file.
84096         * lib/strsep.c: New file.
84097
84098 2004-10-01  Simon Josefsson  <jas@extundo.com>
84099
84100         * lib/snprintf.c (snprintf): Handle size==0.
84101
84102 2004-10-01  Simon Josefsson  <jas@extundo.com>
84103             Bruno Haible  <bruno@clisp.org>
84104
84105         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
84106         (snprintf): Declare 'args'.
84107
84108 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
84109
84110         * lib/snprintf.c: Remove comments as to why each header is needed.
84111
84112 2004-10-01  Bruno Haible  <bruno@clisp.org>
84113
84114         * MODULES.html.sh: Add strsep.
84115
84116 2004-09-30  Simon Josefsson  <jas@extundo.com>
84117
84118         * modules/snprintf: New file.
84119
84120 2004-09-30  Simon Josefsson  <jas@extundo.com>
84121
84122         * m4/snprintf.m4: New file.
84123
84124 2004-09-30  Simon Josefsson  <jas@extundo.com>
84125
84126         * lib/snprintf.h, lib/snprintf.c: New files.
84127
84128 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84129
84130         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
84131         (hol_entry_help): Never translate an empty string.
84132         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
84133         * lib/argp.h (OPTION_NO_TRANS): New option.
84134
84135 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84136
84137         * modules/argp (Maintainer): Replace Simon Josefsson
84138         by Sergey Poznyakoff.
84139
84140 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84141
84142         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
84143         changes merged back into glibc.
84144
84145 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84146
84147         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
84148
84149 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
84150
84151         * lib/xvasprintf.c: Include xalloc.h.
84152         (xvasprintf): Use xalloc_die, not xmalloc_die.
84153
84154 2004-09-29  Bruno Haible  <bruno@clisp.org>
84155
84156         * modules/alloca-opt: New file, derived from modules/alloca.
84157         * modules/allocsa: Depend on alloca-opt instead of alloca.
84158         * modules/setenv: Likewise.
84159         * modules/vasnprintf: Likewise.
84160         * MODULES.html.sh: Add alloca-opt.
84161
84162 2004-09-28  Simon Josefsson  <jas@extundo.com>
84163
84164         * gnulib-tool: New parameter --lgpl, to asseert that modules are
84165         LGPL, and to replace license template from GPL to LGPL.
84166
84167 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
84168
84169         * modules/dummy: Change license to LGPL.
84170
84171 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
84172
84173         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
84174
84175 2004-09-24  Simon Josefsson  <jas@extundo.com>
84176
84177         * modules/minmax (License): Change from GPL to LGPL.
84178
84179 2004-09-23  Simon Josefsson  <jas@extundo.com>
84180
84181         * gnulib-tool (--import): Typo.
84182
84183 2004-09-23  Simon Josefsson  <jas@extundo.com>
84184
84185         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
84186
84187 2004-09-22  Bruno Haible  <bruno@clisp.org>
84188
84189         * modules/*: Add 'License' field.
84190         * gnulib-tool: Accept --extract-license option.
84191         (func_get_license): New function.
84192
84193 2004-09-21  Bruno Haible  <bruno@clisp.org>
84194
84195         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
84196         Reported by Simon Josefsson.
84197
84198 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
84199
84200         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
84201         gl_AC_TYPE_LONG_LONG.
84202
84203 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
84204
84205         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
84206
84207 2004-09-18  Simon Josefsson  <jas@extundo.com>
84208         and  Paul Eggert  <eggert@cs.ucla.edu>
84209
84210         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
84211         calls with autoreconf.  Define GL_LIB.
84212
84213 2004-09-14  Karl Berry  <karl@gnu.org>
84214
84215         * config/srclist.txt: unsync setenv.c, sigh.
84216
84217 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
84218
84219         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
84220         Problem reported by Bruno Haible in:
84221         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
84222
84223 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
84224
84225         * config/srclist.txt: Comment out argp-pvh.c.
84226
84227 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
84228
84229         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
84230         in case some system header has #define'd it.  Problem reported by
84231         Soeren D. Schulze in
84232         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
84233
84234 2004-09-09  Karl Berry  <karl@gnu.org>
84235
84236         * regex.[ch]: delete from the root.  These were supposed to be
84237                 synced with emacs cvs, but this has not happened for about
84238                 a year, and anyway nothing else uses emacs regex.[ch].
84239                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
84240                 lib/regex[.ch] is untouched.
84241
84242 2004-09-09  Bruno Haible  <bruno@clisp.org>
84243
84244         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
84245
84246 2004-09-09  Bruno Haible  <bruno@clisp.org>
84247
84248         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
84249         modifications.
84250         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
84251
84252 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
84253
84254         * modules/xvasprintf: New file.
84255         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
84256
84257 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
84258
84259         * lib/xvasprintf.h: New file.
84260         * lib/xvasprintf.c: New file.
84261         * lib/xasprintf.c: New file.
84262
84263 2004-09-08  Bruno Haible  <bruno@clisp.org>
84264
84265         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
84266
84267 2004-09-08  Bruno Haible  <bruno@clisp.org>
84268
84269         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
84270         length is > INT_MAX.
84271         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
84272         more.
84273
84274 2004-09-08  Bruno Haible  <bruno@clisp.org>
84275
84276         * lib/stdint_.h: New file, taken from GNU clisp.
84277
84278 2004-09-08  Bruno Haible  <bruno@clisp.org>
84279             Oskar Liljeblad  <oskar@osk.mine.nu>
84280
84281         * modules/stdint: New file.
84282         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
84283
84284 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84285
84286         Import from coreutils.
84287         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
84288         strings on unbounded length.  alloca's performance benefits aren't
84289         that important here.
84290         (V_STRDUP): Remove.
84291         (parse_with_separator): New function, with most of the internals
84292         of the old parse_user_spec.  Allow user to omit both user and group,
84293         for compatibility with FreeBSD.
84294         Clone only the user name, not the entire spec.
84295         Do not set *uid, *gid unless entirely successful.
84296         Avoid memory leak in some failing cases.
84297         Fix regression for USER.GROUP reported by Dmitry V. Levin in
84298         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
84299         (parse_user_spec): Rewrite to use parse_with_separator.
84300
84301 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84302
84303         * modules/userspec: Don't depend on alloca.
84304
84305 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84306
84307         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
84308
84309 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
84310
84311         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
84312         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
84313         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
84314
84315 2004-08-16  Simon Josefsson  <jas@extundo.com>
84316
84317         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
84318         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
84319         Add --dry-run for --import.
84320         Let user provided command line parameters override configure.ac
84321         settings.
84322
84323 2004-08-12  Simon Josefsson  <jas@extundo.com>
84324
84325         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
84326         as discussed with Paul Eggert in threads rooted at
84327         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
84328         and
84329         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
84330         Before, the test was empty, and relied on ELIDE_CODE in source
84331         code.)
84332         (gl_PREREQ_GETOPT): New macro.
84333         (gl_GETOPT): Use them.
84334
84335 2004-08-12  Simon Josefsson  <jas@extundo.com>
84336
84337         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
84338         * lib/getopt_.h: Renamed from getopt.h.
84339
84340 2004-08-12  Simon Josefsson  <jas@extundo.com>
84341
84342         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
84343         Change default library name from libfoo to libgnu.
84344         Now, if you have a configure.ac that says:
84345                 gl_SOURCE_BASE(gl)
84346                 gl_M4_BASE(gl/m4)
84347                 gl_MODULES(error getopt etcetera)
84348                 gl_INIT
84349         you can import all you need by running:
84350                 ../gnulib/gnulib-tool --import
84351
84352         * modules/getopt (Files): Rename getopt.h to getopt_.h.
84353         (Makefile.am): Rewrite, use logic from argz.
84354         (Include): Use <getopt.h> instead of "getopt.h".
84355
84356 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84357
84358         * modules/argp (Files): Add m4/unlocked-io.m4.
84359         (Depends-on): Add extensions.
84360
84361 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84362
84363         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
84364         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
84365         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
84366         Check for program_invocation_name, program_invocation_short_name,
84367         flockfile, funlockfile, features.h, _getopt_long_only_r.
84368
84369 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84370
84371         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
84372         its complicated substitute.
84373         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
84374         and program_invocation_name.
84375         (__argp_basename) [!_LIBC]: Remove; the only use was
84376         replaced by its body.
84377         (__argp_short_program_name): Change condition from
84378         !defined __argp_short_program_name to
84379         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
84380         to match argp-namefrob.h.
84381         (__argp_failure): Don't assume strerror_r returns char *.
84382         * lib/argp-parse.c (N_): Define unconditionally.
84383         (argp_default_options): Fill out initializers with 0 to avoid
84384         gcc warnings.
84385
84386 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84387
84388         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
84389         getopt1.c.
84390
84391 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84392
84393         Merge from coreutils.
84394
84395         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
84396
84397         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
84398         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
84399
84400 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84401
84402         Merge from coreutils.
84403
84404         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
84405         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
84406         for Reliant Unix 5.43.
84407
84408         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
84409         (union fooround): Use uintmax_t, not long int.
84410         The rest is a merge from libc:
84411         [defined _LIBC]: Include <shlib-compat.h>.
84412         (_obstack) [defined _LIBC]: Remove after 2.3.4.
84413
84414         * lib/settime.c (settime): Recode to avoid warning with
84415         Sun Forte C 6U2.
84416
84417         * lib/strverscmp.c: Convert to UTF-8.
84418
84419 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84420
84421         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
84422         m4/uintmax_t.m4.
84423
84424 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84425
84426         * modules/xalloc-die: New file.
84427         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
84428
84429         * modules/md5 (Files): Add m4/uint32_t.m4.
84430         * modules/sha1: Renamed from modules/sha.
84431         (Files):
84432         Rename lib/sha.h to lib/sha1.h.
84433         Rename lib/sha.c to lib/sha1.c.
84434         Rename m4/sha.m4 to m4/sha1.m4.
84435         (lib_SOURCES): Likewise.
84436         (configure.ac): Rename gl_SHA to gl_SHA1.
84437         (Include): sha.h -> sha1.h.
84438
84439 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84440
84441         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
84442         * m4/sha1.m4: Renamed from sha.m4.
84443         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
84444
84445 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84446
84447         * lib/obstack.h (obstack_empty_p):
84448         Don't assume that chunk->contents is suitably aligned.
84449         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
84450         Likewise. Problem reported by Benno in
84451         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
84452
84453         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
84454         readable.  This could be improved further but it'd take some work.
84455
84456 2004-08-08  Simon Josefsson  <jas@extundo.com>
84457
84458         * modules/xgethostname (Depends-on): Remove exit and error (not
84459         used).
84460
84461         * modules/getpass-gnu: Add getpass.h.
84462         (Depends-on): Add stdbool.
84463         * modules/getpass: Add getpass.h.
84464
84465 2004-08-08  Simon Josefsson  <jas@extundo.com>
84466
84467         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
84468         Check getpass declaration.
84469
84470 2004-08-08  Simon Josefsson  <jas@extundo.com>
84471
84472         * lib/xgethostname.c: Don't include error.h (not used).
84473
84474         * lib/getpass.h: Add.
84475         * lib/getpass.c: Include getpass.h first.
84476
84477 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
84478
84479         * lib/xalloc-die.c: New file.
84480         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
84481         All uses removed.
84482         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
84483         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
84484         xalloc-die.c.
84485         (_, N_, xalloc_die): Move to xalloc-die.c.
84486         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
84487         so that we needn't mess with xalloc_msg_memory_exhausted.
84488
84489         * lib/sha1.h: Renamed from sha.h.
84490         (SHA1_H): Renamed from _SHA_H.
84491         (sha1_ctx): Renamed from sha_ctx.
84492         (sha1_init_ctx): Renamed from sha_init_ctx.
84493         (sha1_process_block): Renamed from sha_process_block.
84494         (sha1_process_bytes): Renamed from sha_process_bytes.
84495         (sha1_finish_ctx): Renamed from sha_finish_ctx.
84496         (sha1_read_ctx): Renamed from sha_read_ctx.
84497         (sha1_stream): Renamed from sha_stream.
84498         (sha1_buffer): Renamed from sha_buffer.
84499         * lib/sha1.c: Likewise; renamed from sha.c.
84500         Do not include <sys/types.h>.
84501         Include <stddef.h> rather than <stdlib.h>.
84502
84503 2004-08-08  Bruno Haible  <bruno@clisp.org>
84504
84505         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
84506         FILESYSTEM_PREFIX_LEN.
84507         * lib/progreloc.c: Likewise.
84508         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
84509
84510 2004-08-06  Simon Josefsson  <jas@extundo.com>
84511
84512         * modules/progname (Depends-on): Don't depend on stdbool.
84513
84514 2004-08-06  Simon Josefsson  <jas@extundo.com>
84515
84516         * modules/getsubopt: New file.
84517         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84518         getsubopt.
84519
84520 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
84521
84522         More merge from coreutils.
84523
84524         * m4/utimens.m4, m4/utimecmp.m4: New files.
84525         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
84526         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
84527         prereq.m4, sha.m4: Import changes from coreutils.
84528
84529 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
84530
84531         More merge from coreutils.
84532         * modules/raise, modules/readtokens0, modules/utimens:
84533         * modules/utimecmp, module/xnanosleep: New files.
84534         * modules/strftime: Add lib/strftime.h.
84535         Change include from <time.h> to "strftime.h".
84536         * modules/yesno: Add lib/yesno.h.
84537         * modules/backupfile: Remove lib/addext.c.
84538         * modules/euidaccess: Add stat-macros.h.
84539         * modules/canonicalize, modules/euidaccess,
84540         modules/filemode, modules/lchown, modules/makepath,
84541         modules/rmdir, modules/stat: Likewise.
84542
84543 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
84544
84545         Merge from tar.
84546         * lib/argp-help.c (make_hol, hol_append): Don't assume that
84547         SIZE_MAX is a valid preprocessor constant.
84548         (__argp_basename): Change from "#ifndef _LIBC"
84549         to "#ifndef __argp_short_program_name", so that
84550         we don't compile these functions for tar.
84551
84552         More merges from coreutils.
84553         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
84554         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
84555         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
84556         * lib/addext.c: Remove; no longer needed.
84557         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
84558         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
84559         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
84560         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
84561         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
84562         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
84563         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
84564         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
84565         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
84566         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
84567         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
84568         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
84569         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
84570         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
84571         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
84572         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
84573         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
84574         Import changes from coreutils.
84575
84576 2004-08-05  Simon Josefsson  <jas@extundo.com>
84577
84578         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
84579
84580 2004-08-05  Simon Josefsson  <jas@extundo.com>
84581
84582         * m4/getsubopt.m4: New file.
84583
84584 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
84585
84586         Merge from coreutils.
84587
84588         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
84589         * m4/getcwd-path-max.m4: New files.
84590
84591         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
84592         FILESYSTEM_PREFIX_LEN ->
84593         FILE_SYSTEM_PREFIX_LEN.
84594         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
84595         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
84596         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
84597         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
84598
84599         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
84600         prerequisite modules now handle the DOS stuff.
84601         Don't check for unistd.h.
84602
84603 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
84604
84605         Merge from coreutils.
84606
84607         * lib/.gdb-history: Remove; this doesn't belong here.
84608
84609         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
84610         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
84611         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
84612         * lib/getcwd.c: New files.
84613
84614         * lib/dirname.h: Include <stdbool.h>.
84615         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
84616         for consistency with POSIX terminology.  All uses changed.
84617         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
84618         (strip_trailing_slashes): Use bool for booleans.
84619         * lib/stripslash.c (strip_trailing_slashes): Likewise.
84620
84621         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
84622         sometimes returns a positive errno value even when it succeeds.
84623         (print_errno_message) [!LIBC]: Fall back on strerror if
84624         __strerror_r fails.
84625
84626         * lib/path-concat.c (mempcpy): Don't define if a system header defines
84627         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
84628         (longest_relative_suffix): New function.
84629         (path_concat): Use it.  Assume first argument is not NULL.
84630         Port to DOS.  Omit redundant separators.
84631         Report an error instead of returning NULL.
84632         Use mempcpy instead of memcpy.
84633         (xpath_concat): Remove: not declared or used.
84634
84635         * lib/same.h: Include <stdbool.h>
84636         (same_name): Return bool, not int.
84637         * lib/same.c (same_name): Likewise.
84638         (errno): Don't declare; we assume C89 or better now.
84639
84640         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
84641         if not already defined.
84642
84643         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
84644         * lib/dup-safer.c (errno): Likewise.
84645
84646 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
84647
84648         Merge from coreutils.
84649         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
84650         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
84651         * modules/path-concat: Don't depend on strdup.
84652
84653 2004-08-03  Simon Josefsson  <jas@extundo.com>
84654
84655         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
84656         * lib/progname.h: Don't include stdbool.h.
84657
84658 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
84659
84660         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
84661         * MODULES.html.sh (func_all_modules): Remove fatal.
84662
84663 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
84664
84665         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
84666
84667 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
84668
84669         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
84670         working.
84671
84672 2004-08-02  Simon Josefsson  <jas@extundo.com>
84673
84674         * lib/getsubopt.h: New file, with comments from Bruno Haible.
84675         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
84676         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
84677
84678 2004-08-01  Simon Josefsson  <jas@extundo.com>
84679
84680         * lib/xgetdomainname.c: Include stdlib.h, for free().
84681
84682 2004-07-19  Bruno Haible  <bruno@clisp.org>
84683
84684         * MODULES.html.sh (func_all_modules): Add dummy.
84685
84686 2004-07-16  Simon Josefsson  <jas@extundo.com>
84687
84688         * modules/dummy: New file.
84689
84690 2004-07-16  Simon Josefsson  <jas@extundo.com>
84691
84692         * lib/dummy.c: New file.
84693
84694 2004-07-16  Bruno Haible  <bruno@clisp.org>
84695
84696         * lib/backupfile.h: Add extern "C" for C++.
84697         * lib/closeout.h: Likewise.
84698         * lib/copy-file.h: Likewise.
84699         * lib/findprog.h: Likewise.
84700         * lib/full-write.h: Likewise.
84701         * lib/pathname.h: Likewise.
84702         * lib/progname.h: Likewise.
84703         * lib/stpcpy.h: Likewise.
84704         * lib/stpncpy.h: Likewise.
84705         * lib/strcase.h: Likewise.
84706         * lib/strstr.h: Likewise.
84707         * lib/xalloc.h: Likewise.
84708
84709         * lib/mbswidth.h: Add extern "C" for C++.
84710         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
84711
84712 2004-07-13  Robert Millan  <robertmh@gnu.org>
84713
84714         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
84715
84716 2004-07-09  Simon Josefsson  <jas@extundo.com>
84717
84718         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
84719         failed without this.)
84720
84721 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
84722
84723         * modules/chown (Files): Add lib/fchown-stub.c, since
84724         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
84725
84726 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
84727
84728         * lib/fchown-stub.c: New file.
84729
84730 2004-06-24  Jim Meyering  <jim@meyering.net>
84731
84732         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
84733
84734 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
84735
84736         * modules/argz: Omit "#include".
84737
84738         * MODULES.html.sh (func_all_modules): Add calloc, to match
84739         2004-06-01 addition of calloc module.
84740
84741 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
84742
84743         * m4/argz.m4: New file, which is autoupdated from libtool.
84744
84745 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
84746
84747         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
84748         libtool.
84749
84750 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
84751
84752         * config/srclist-update: Don't insist on "USA." before the
84753         close-comment, as libtool omits the period and puts the */ on a
84754         separate line.
84755         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
84756         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
84757
84758 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
84759
84760         * modules/argz: New file.
84761         * MODULES.html.sh (func_all_modules): Add argz.
84762
84763 2004-06-12  Jim Meyering  <jim@meyering.net>
84764         and  Paul Eggert  <eggert@cs.ucla.edu>
84765
84766         * modules/hash (Files): Add lib/xalloc.h.
84767         * modules/pipe (Depends-on): Add wait-process.
84768         * modules/stat (Depends-on): Add xalloc.
84769         * modules/userspec (Files): Add lib/userspec.h.
84770         * modules/xstrto
84771
84772         Upgrade from gettext-0.13.
84773         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
84774         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
84775         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
84776
84777 2004-06-10  Jim Meyering  <jim@meyering.net>
84778
84779         * lib/calloc.c: New file.
84780
84781 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
84782
84783         * lib/getdate.y (yylex): Allow space between sign and number.
84784         Problem reported by Dan Jacobson.
84785
84786 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
84787
84788         Merge from coreutils CVS.
84789
84790         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
84791         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
84792         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
84793         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
84794         xstrtol.m4: Fix copyright date and/or serial number.
84795
84796         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
84797         See if we need an fchown replacement.
84798         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
84799         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
84800         and use the replacement function if we detect either defect.
84801
84802         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
84803         gl_UTIMECMP.
84804
84805 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
84806         and  Jim Meyering  <jim@meyering.net>
84807
84808         Merge from coreutils CVS.
84809
84810         * lib/stat-macros.h: New file, with contents from file-type.h
84811         and coreutils' system.h.
84812         * lib/file-type.c: Include "stat-macros.h".
84813         * lib/file-type.h (file_type): Move all macro definitions to new file,
84814         stat-macros.h.
84815
84816         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
84817         Wrap old code with this conditional.
84818         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
84819         function that does not dereference symlinks.
84820         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
84821
84822         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
84823         dependency problems.
84824         (xreadlink): Accept new arg SIZE, for efficiency.
84825         All decls and uses changed.
84826         * lib/xreadlink.h: Include <stddef.h>, for size_t.
84827
84828         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
84829         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
84830
84831         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
84832         sysexits.h.
84833
84834 2004-06-01  Jim Meyering  <jim@meyering.net>
84835
84836         * m4/calloc.m4: New file.
84837
84838 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
84839
84840         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
84841         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
84842         Also, fix a typo in a diagnostic.
84843
84844 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
84845
84846         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
84847         or AC_FUNC_REALLOC.
84848
84849 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
84850
84851         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
84852         macros to be defined.
84853         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
84854         the allocator returns NULL because the requested size is zero.
84855
84856 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
84857
84858         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
84859         var.  Add comment explaining why libc still defines it.  This
84860         merges the following patch from glibc:
84861         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
84862
84863 2004-05-20  Andreas Schwab  <schwab@suse.de>
84864
84865         * m4/free.m4: Replace free if it not known to work, not the other
84866         way round.
84867
84868 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
84869
84870         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
84871         present in glibc since revision 1.1 of this file.
84872         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
84873         obstack_alignment_mask, obstack_alloc, obstack_base,
84874         obstack_blank, obstack_blank_fast, obstack_chunk_size,
84875         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
84876         obstack_grow0, obstack_init, obstack_int_grow,
84877         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
84878         obstack_next_free, obstack_object_size, obstack_ptr_grow,
84879         obstack_ptr_grow_fast, obstack_room): Remove declarations of
84880         nonexistent functions.
84881
84882 2004-05-18  Karl Berry  <karl@gnu.org>
84883
84884         * config/srclist.txt: break link for vasnprintf.c.
84885
84886 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
84887
84888         Port obstack to the AS/400, where pointers are 16 bytes wide and
84889         you cannot cast an integer to a valid pointer.  This patch is
84890         currently waiting to be integrated into glibc; see
84891         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
84892
84893         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
84894         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
84895         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
84896         (struct obstack): temp member is now a union of a pointer and
84897         an integer, instead of an integer.  All integer uses changed.
84898         This does not affect the physical layout of struct obstack,
84899         except on hosts (like the AS/400) where the size or alignment of
84900         void * is greater than that of ptrdiff_t.
84901         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
84902         __STDC__)]: Store temporary in pointer member of union, not
84903         integer member.
84904         * lib/obstack.c: Include <stddef.h>, for offsetof.
84905         (struct fooalign): Remove; it doesn't need a name.
84906         (union fooround): Change double to long double, and add void *.
84907         (DEFAULT_ALIGNMENT): Use offsetof to compute.
84908         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
84909         not a macro.  Hence the values are always int; so remove all
84910         casts-to-int in uses.
84911
84912 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
84913
84914         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
84915         we can get this patch merged into glibc.
84916
84917 2004-05-17  Derek R. Price  <derek@ximbiot.com>
84918             Paul Eggert  <eggert@cs.ucla.edu>
84919
84920         * m4/argp: Depend on alloca.
84921
84922 2004-05-17  Derek R. Price  <derek@ximbiot.com>
84923             Paul Eggert  <eggert@cs.ucla.edu>
84924
84925         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
84926         freecoding.
84927
84928 2004-05-17  Bruno Haible  <bruno@clisp.org>
84929
84930         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
84931         precision that consists of a '.' followed by an empty digit string.
84932         Patch by Tor Lillqvist <tml@iki.fi>.
84933
84934 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
84935
84936         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
84937         for backward compatibility with older code.  We need our own
84938         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
84939         it under some other name, and our alloca.h will define it.
84940
84941 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
84942             Derek Price  <derek@ximbiot.com>
84943
84944         * lib/alloca.c: Include <alloca.h>, to get our interface.
84945         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
84946         include <alloca.h> first.  Use C89 prototype for alloca; this
84947         requires including <stddef.h> for size_t.  Use extern "C" if C++.
84948         Use #elif for simplicity, since we can assume C89 now.
84949         Don't try to source the system alloca.h since it will not be found
84950         and to prevent recursively including its replacement.
84951         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
84952         * lib/regex.c: Likewise.
84953
84954 2004-05-16  Derek Price  <derek@ximbiot.com>
84955             Paul Eggert  <eggert@cs.ucla.edu>
84956
84957         getline cleanup.  This changes the getndelim2 API: both order of
84958         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
84959         no delimiter).
84960
84961         * lib/getline.c: Don't include stddef.h or stdio.h, since our
84962         interface does that.
84963         (getline): Always use getdelim, so that we don't have two
84964         copies of this code.
84965         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
84966         if available.
84967         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
84968         (GETNDELIM2_MAXIMUM): New macro.
84969         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
84970         instead of the old practice of delim2==0.  All callers changed.
84971         Return -1 on overflow, instead of returning junk.
84972         Do not set *linesize unless allocation succeeds.
84973         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
84974         that we include sys/types.h.
84975         * lib/getnline.h: Likewise.
84976         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
84977         (getndelim2): Reorder arguments.
84978         * lib/getnline.c (getnline, getndelim):
84979         Don't discard the NMAX argument.
84980         (getnline): Invoke getndelim, to avoid code duplication.
84981         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
84982         of (size_t) -1 by callers of the getnline family.
84983
84984 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
84985
84986         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
84987         Check for gettimeofday.
84988         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
84989         Check for settimeofday, stime.
84990
84991 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
84992
84993         * lib/nanosleep.c (suspended): Change its type from int to
84994         sig_atomic_t volatile.
84995         (first_call): Make it private to rpl_nanosleep, and have it
84996         be zero initially as that's a bit faster.
84997         (my_usleep): Round up fractional times instead of truncating them,
84998         as this is the usual meaning for 'sleep'.
84999
85000         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
85001         doesn't work.
85002         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
85003         (ENOSYS): Define if not defined.
85004         (settime): Fall back on stime if it exists and settimeofday fails.
85005         But don't bother with fallbacks if a method fails with errno == EPERM.
85006
85007 2004-05-11  Jim Meyering  <jim@meyering.net>
85008
85009         Prior to this change, the save_cwd caller required read access to the
85010         current directory on most systems (ones with the fchdir function).
85011
85012         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
85013         fails, try write-only, and finally, resort to using xgetcwd.
85014
85015 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
85016
85017         * lib/obstack.c, obstack.h: Import changes from libc.
85018
85019 2004-04-28  Bruno Haible  <bruno@clisp.org>
85020
85021         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
85022         also implicitly appends .exe to executables.
85023         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
85024         accepts Windows pathnames.
85025         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
85026         Treat Cygwin like Windows, since it now accepts Windows pathnames.
85027         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
85028         Treat Cygwin like Windows, since it now accepts Windows pathnames.
85029         Reported by Derek Robert Price <derek@ximbiot.com>.
85030
85031 2004-04-21  Karl Berry  <karl@gnu.org>
85032
85033         * config/srclist.txt (localcharset.c): break sync.
85034
85035 2004-04-20  Paul Eggert  <eggert@twinsun.com>
85036
85037         * m4/host-os.m4: Add a copyright notice.
85038
85039 2004-04-20  Jim Meyering  <jim@meyering.net>
85040
85041         Change UTILS_ to gl_ in AC_DEFINE'd names.
85042         Change utils_- and jm_-prefixed variables, too.
85043         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
85044         UTILS_FUNC_MKDIR_TRAILING_SLASH.
85045         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
85046
85047         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
85048         Don't emit trailing blanks.
85049         Also rename jm_-prefixed variables to have gl_ prefix.
85050
85051         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
85052         Also rename jm_-prefixed variables to have gl_ prefix.
85053
85054         * m4/jm-macros.m4: Reflect the renamings.
85055         * m4/prereq.m4: Likewise.
85056
85057 2004-04-20  Jim Meyering  <jim@meyering.net>
85058
85059         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
85060         memory.
85061
85062 2004-04-20  Jim Meyering  <jim@meyering.net>
85063             Bruno Haible  <bruno@clisp.org>
85064
85065         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
85066         memory when realloc fails.
85067
85068 2004-04-19  Jim Meyering  <jim@meyering.net>
85069
85070         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
85071         now that readutmp.c may call `free (0)'.
85072
85073 2004-04-19  Bruno Haible  <bruno@clisp.org>
85074
85075         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
85076         * m4/inttypes_h.m4: Likewise.
85077         * m4/stdint_h.m4: Likewise.
85078         * m4/intmax_t.m4: Likewise.
85079         * m4/uintmax_t.m4: Likewise.
85080
85081 2004-04-18  Jim Meyering  <jim@meyering.net>
85082
85083         * m4/prereq.m4: Don't forbid jm_ prefix.
85084
85085         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
85086         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
85087         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
85088         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
85089         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
85090         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
85091         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
85092         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
85093         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
85094         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
85095         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
85096         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
85097         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
85098         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
85099         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
85100         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
85101         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
85102         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
85103         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
85104
85105 2004-04-18  Jim Meyering  <jim@meyering.net>
85106
85107         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
85108         failure, don't leak memory and do call END_UTMP_ENT.
85109
85110 2004-04-16  Jim Meyering  <jim@meyering.net>
85111
85112         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
85113         coreutils' stat program.
85114         (gl_PREREQ): Don't require jm_PREREQ_STAT.
85115
85116 2004-04-11  Paul Eggert  <eggert@twinsun.com>
85117
85118         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
85119         C89.
85120         (CHAR_BIT): Remove, since we assume C89.
85121         Include <stdint.h> if available, as per current Autoconf CVS advice.
85122
85123 2004-03-31  Jim Meyering  <jim@meyering.net>
85124
85125         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
85126         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
85127         * m4/xalloc.m4: Likewise.
85128
85129 2004-03-30  Paul Eggert  <eggert@twinsun.com>
85130
85131         Merge from coreutils.
85132
85133         * m4/inttostr.m4: New file.
85134         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
85135         Require AM_STDBOOL_H and gl_TIMESPEC instead.
85136         Require gl_CLOCK_TIME.
85137         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
85138
85139 2004-03-30  Paul Eggert  <eggert@twinsun.com>
85140
85141         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
85142         not bool, to be more consistent with Unix conventions.
85143         Suggested by Bruno Haible.
85144
85145         Merge from coreutils.
85146
85147         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
85148         * lib/umaxtostr.c: New files.
85149
85150         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
85151         the usual <time.h> dance.
85152         (get_date): Change signature to support fractional time stamps.
85153         All callers changed.
85154         * lib/getdate.y: Include "getdate.h" first, as we can now
85155         assume C89 and don't need to worry about 'const'.
85156         Similarly, include "unlocked-io.h" near start, not in middle.
85157         Include <limits.h>.
85158         (textint.value): Use long int rather than int.
85159         (textint.digits): Use size_t rather than int.
85160         (BILLION, LOG10_BILLION): New constants.
85161         (parser_control): New member rel_ns.  Members day_ordinal,
85162         time_zone, month, day, hour, minutes, rel_year, rel_month,
85163         rel_day, rel_hour, rel_minutes, rel_seconds
85164         are now long int, not int.  Member seconds is now struct timespec,
85165         not int.  New member timespec_seen.  Members dates_seen, days_seen,
85166         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
85167         not int.
85168         (%union.intval): Now long int, not int.
85169         New member timespec.
85170         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
85171         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
85172         (spec): Now is a timespec or an item list.
85173         (timespec, items): New nonterminals.
85174         (time, rel, relunit, number, get_date):
85175         Add support for fractional seconds.
85176         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
85177         (gmtime, localtime, mktime): Remove decls; not needed with C89.
85178         (to_hour): First arg is now long int, not int.
85179         (to_year): Returns long int, not int.
85180         Don't treat year -70 like 70.
85181         (tm_diff): Returns long int, not int.
85182         (lookup_word): Use bool instead of int when appropriate.
85183         (yylex): Use size_t for count, not int.
85184         Detect overflow when parsing large integer constants.
85185         Add support for fractions.
85186         (get_date): Make pointers 'const' if possible.
85187         Use more-portable code to detect integer overflow.
85188         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
85189         Don't use ctime; it's not reliable if the year has >4 digits.
85190
85191         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
85192         This is for compatibility with BSD.
85193
85194         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
85195         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
85196         From coreutils' system.h.
85197
85198         * lib/userspec.c: Don't include "posixver.h".
85199         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
85200         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
85201         compatible extension.  Simplify code by removing a boolean int
85202         that was always nonzero if a string was nonnull.
85203
85204 2004-03-30  Jim Meyering  <jim@meyering.net>
85205
85206         Merge from coreutils.
85207
85208         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
85209         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
85210         on some systems one must include <grp.h> before it.
85211         Reported by Christian Krackowizer.
85212
85213 2004-03-30  Jim Meyering  <jim@meyering.net>
85214
85215         Merge from coreutils.
85216
85217         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
85218
85219         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
85220         an empty input stream.
85221
85222         * lib/readtokens.c: Include <stdbool.h>.
85223         (readtoken): Use `size_t' rather than int/long.
85224         All callers adjusted.
85225         Use `bool' rather than `int' where appropriate.
85226         Use memset rather than an explicit loop.
85227         Use x2nrealloc rather than xrealloc.
85228         Allow the use of `\0' as a delimiter.
85229         (readtokens): Likewise.
85230         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
85231
85232 2004-03-30  Jim Meyering  <jim@meyering.net>
85233
85234         * m4/realloc.m4: Remove file, since now it does no more than
85235         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
85236         the `configure.ac' section of module/realloc.
85237         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
85238
85239 2004-03-30  Bruno Haible  <bruno@clisp.org>
85240
85241         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
85242         nonnull.
85243
85244 2004-03-29  Paul Eggert  <eggert@twinsun.com>
85245
85246         Merge changes to getloadavg.c from coreutils and Emacs.
85247
85248         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
85249         Define to an expression, not to the empty string.
85250         Include cloexec.h and xalloc.h.
85251         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
85252         Use set_cloexec_flag rather than rolling our own.
85253         * lib/cloexec.c, lib/cloexec.h: New files.
85254
85255 2004-03-29  Paul Eggert  <eggert@twinsun.com>
85256
85257         * m4/cloexec.m4: New file.
85258
85259 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85260
85261         * lib/getopt.h: Sync with libc CVS.
85262
85263 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85264             Bruno Haible  <bruno@clisp.org>
85265
85266         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
85267         mbswidth.
85268
85269 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85270             Bruno Haible  <bruno@clisp.org>
85271
85272         * lib/mbswidth.h: Include <wchar.h> only if
85273         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
85274         <wchar.h>.
85275         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
85276
85277 2004-03-09  Paul Eggert  <eggert@twinsun.com>
85278
85279         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
85280         Sync with libc CVS.
85281         * lib/getopt_int.h: New file, also synced from libc.
85282
85283 2004-03-09  Paul Eggert  <eggert@twinsun.com>
85284
85285         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
85286         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
85287         Bring back getopt.c, getopt.h, getopt1.c.
85288
85289 2004-03-07  Paul Eggert  <eggert@twinsun.com>
85290
85291         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
85292         All uses changed.  Check for sa_sigaction member; this fixes
85293         a bug first reported by Jason Andrade in
85294         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
85295
85296 2004-03-07  Paul Eggert  <eggert@twinsun.com>
85297
85298         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
85299         '#if' expressions.  Unlike the code it replaces, it does not
85300         depend on (defined _SC_PAGESIZE).  However, it does depend on
85301         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
85302         first reported by Jason Andrade in
85303         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
85304
85305 2004-02-25  Simon Josefsson  <jas@extundo.com>
85306
85307         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
85308
85309 2004-02-25  Simon Josefsson  <jas@extundo.com>
85310
85311         * lib/strdup.h: New file.
85312         * lib/strdup.c: Include it.
85313         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
85314         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
85315
85316 2004-02-23  Karl Berry  <karl@gnu.org>
85317
85318         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
85319         (from fencepost.gnu.org:/gd/gnuorg).
85320
85321 2004-02-23  Karl Berry  <karl@gnu.org>
85322
85323         * config/srclistvars.sh (GNUORG) [karl]: redefine.
85324         * config/srclist.txt: add maintain/standards documents.
85325
85326 2004-02-18  Bruno Haible  <bruno@clisp.org>
85327
85328         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
85329         Reported by Derek Robert Price <derek@ximbiot.com>.
85330
85331 2004-02-16  Karl Berry  <karl@gnu.org>
85332
85333         * config/mkinstalldirs, install-sh: update from automake.
85334
85335 2004-02-06  Karl Berry  <karl@gnu.org>
85336
85337         * m4/po.m4: update from gettext 0.14.1.
85338
85339 2004-02-06  Karl Berry  <karl@gnu.org>
85340
85341         * lib/config.charset: update from gettext 0.14.1.
85342
85343 2004-02-05  Paul Eggert  <eggert@twinsun.com>
85344
85345         Add comments and code, prompted by suggestions from Bruno Haible
85346         for sh-quote.
85347         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
85348         describing the enum quoting_style values.
85349         * lib/quotearg.c (quotearg_alloc): New function.
85350         (quotearg_buffer_restyled): Treat lone { and } as special.
85351         Treat = as special.  Work around bug with older shells
85352         that "see" a '\' that is really the 2nd byte of a multibyte char.
85353         Quote empty string with shell_quoting_style.
85354
85355 2004-02-03  Bruno Haible  <bruno@clisp.org>
85356
85357         * m4/pipe.m4: New file, from GNU gettext.
85358
85359 2004-02-03  Bruno Haible  <bruno@clisp.org>
85360
85361         * lib/pipe.h: New file, from GNU gettext.
85362         * lib/pipe.c: New file, from GNU gettext.
85363
85364 2004-01-27  Bruno Haible  <bruno@clisp.org>
85365
85366         * m4/execute.m4: New file, from GNU gettext.
85367
85368 2004-01-27  Bruno Haible  <bruno@clisp.org>
85369
85370         * lib/execute.h: New file, from GNU gettext.
85371         * lib/execute.c: New file, from GNU gettext.
85372         * lib/w32spawn.h: New file, from GNU gettext.
85373
85374 2004-01-24  Paul Eggert  <eggert@twinsun.com>
85375
85376         Merge from diffutils.
85377
85378         * lib/file-type.c (file_type): Add typed memory objects.
85379         * lib/file-type.h (S_TYPEISTMO): New macro.
85380
85381         * lib/c-stack.h (c_stack_action): Remove argv argument.
85382         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
85383         (die): Don't calculate message unless segv_action returns.
85384         (get_stack_location, min_address_from_argv, max_address_from_argv,
85385         volatile stack_base, volatile_stack_size): Remove.
85386         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
85387         that every segmentation violation is a stack overflow.  (Ouch!)
85388         See Debian bug 136249 (still outstanding) for more info about why
85389         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
85390
85391 2004-01-24  Paul Eggert  <eggert@twinsun.com>
85392
85393         Exit-status fix from coreutils.
85394
85395         Use exit_failure consistently in place of EXIT_FAILURE,
85396         so that program exit statuses are consistent on failure.
85397
85398         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
85399         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
85400         * lib/argmatch.h: Comment fix to match the above.
85401         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
85402         Now a macro referring to exit_failure, instead of a separate
85403         variable.  Include "exitfail.h" to get it.
85404         * lib/xstrtol.h: Include "exitfail.h".
85405         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
85406
85407         * lib/long-options.c (parse_long_options): Use prototype
85408         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
85409         for clarity.
85410
85411 2004-01-21  Jim Meyering  <jim@meyering.net>
85412
85413         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
85414         so as not to conflict with a different-sized __mktime_internal
85415         function in GNU libc.
85416         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
85417         Problem building statically-linked `ls' reported by Michael Brunnbauer.
85418
85419 2004-01-20  Karl Berry  <karl@gnu.org>
85420
85421         * config/config.guess: update from config.
85422
85423         * config/srclistvars.sh: GNUWWWLICENSES for karl.
85424
85425 2004-01-20  Bruno Haible  <bruno@clisp.org>
85426
85427         Safer stack allocation.
85428         * lib/setenv.c: Include allocsa.h.
85429         (alloca): Remove fallback definition.
85430         (freea): Remove macro.
85431         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
85432         instead of freea.
85433
85434 2004-01-20  Bruno Haible  <bruno@clisp.org>
85435
85436         * m4/eealloc.m4: New file, from GNU gettext.
85437
85438 2004-01-20  Bruno Haible  <bruno@clisp.org>
85439
85440         * m4/allocsa.m4: New file, from GNU gettext.
85441
85442 2004-01-20  Bruno Haible  <bruno@clisp.org>
85443
85444         * lib/xallocsa.h: New file, from GNU gettext.
85445         * lib/xallocsa.c: New file, from GNU gettext.
85446
85447 2004-01-20  Bruno Haible  <bruno@clisp.org>
85448
85449         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
85450
85451 2004-01-20  Bruno Haible  <bruno@clisp.org>
85452
85453         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
85454         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
85455         specially.
85456
85457 2004-01-20  Bruno Haible  <bruno@clisp.org>
85458
85459         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
85460         patch.
85461
85462 2004-01-20  Bruno Haible  <bruno@clisp.org>
85463
85464         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
85465
85466 2004-01-20  Bruno Haible  <bruno@clisp.org>
85467
85468         * lib/eealloc.h: New file.
85469
85470 2004-01-20  Bruno Haible  <bruno@clisp.org>
85471
85472         * lib/binary-io.h: Avoid warnings on Cygwin.
85473
85474 2004-01-20  Bruno Haible  <bruno@clisp.org>
85475
85476         * lib/allocsa.h: New file, from GNU gettext.
85477         * lib/allocsa.c: New file, from GNU gettext.
85478
85479 2004-01-18  Karl Berry  <karl@gnu.org>
85480
85481         * doc/gpl.texi, doc/lgpl.texi: new files.
85482
85483 2004-01-18  Karl Berry  <karl@gnu.org>
85484
85485         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
85486         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
85487
85488 2004-01-15  Paul Eggert  <eggert@twinsun.com>
85489
85490         Merge from coreutils.
85491
85492         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
85493         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
85494         (gl_DEFAULT_POSIX2_VERSION): Move
85495         the documentation from 'configure' into 'config.hin',
85496         so that 'configure --help' isn't burdened by it and
85497         we don't have to worry about its formatting there.
85498         Reword the documentation so that it's more succinct
85499         and can be run together into a single paragraph.
85500         * m4/same.m4 (gl_SAME): Check for pathconf.
85501
85502 2004-01-15  Paul Eggert  <eggert@twinsun.com>
85503
85504         Merge from coreutils.
85505
85506         * lib/posixver.c: Include posixver.h.
85507
85508         * lib/same.c: Include <stdbool.h>, <limits.h>.
85509         (_POSIX_NAME_MAX): Define if not defined.
85510         (MIN): New macro.
85511         (same_name): If file names are silently truncated, report
85512         that the file names are the same if they are the same after
85513         the silent truncation.
85514
85515         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
85516         conversion function.
85517         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
85518         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
85519         longer needed.
85520
85521 2004-01-15  Jim Meyering  <jim@meyering.net>
85522
85523         Merge from coreutils.
85524
85525         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
85526         if no library is required.
85527         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
85528         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
85529         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
85530         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
85531         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
85532         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
85533         value, $ac_cv_search_crypt, if it's "none required".
85534         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
85535         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
85536         not gl_FUNC_GETLOADAVG.
85537         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
85538         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
85539
85540 2004-01-15  Jim Meyering  <jim@meyering.net>
85541
85542         Merge from coreutils.
85543
85544         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
85545         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
85546         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
85547
85548         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
85549         optional configure-time default.
85550
85551         * lib/version-etc.c (version_etc_copyright): Update copyright date.
85552
85553         * lib/xreadlink.c (xreadlink): Correct outdated comment.
85554
85555 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
85556
85557         Merge from coreutils.
85558
85559         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
85560         value, $ac_cv_search_nanosleep, if it's "none required".
85561
85562 2004-01-14  Paul Eggert  <eggert@twinsun.com>
85563
85564         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
85565         with like-named macro in fnmatch.c.
85566         (EXT): Use an internal constant instead.
85567
85568         Merge fnmatch patches from glibc.
85569         * lib/fnmatch.c (mbsinit): Remove define.
85570         Add libc_hidden_ver (__fnmatch, fnmatch).
85571         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
85572         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
85573
85574 2004-01-14  Karl Berry  <karl@gnu.org>
85575
85576         * config/install-sh: update from automake.
85577
85578 2004-01-13  Karl Berry  <karl@gnu.org>
85579
85580         * config/install-sh: update from automake.
85581
85582 2004-01-09  Karl Berry  <karl@gnu.org>
85583
85584         * config/install-sh: update from automake.
85585
85586 2004-01-05  Karl Berry  <karl@gnu.org>
85587
85588         * config/config.{sub,guess}: update from config.
85589
85590 2003-12-31  Karl Berry  <karl@gnu.org>
85591
85592         * config/depcomp: update from automake.
85593
85594 2003-12-14  Karl Berry  <karl@gnu.org>
85595
85596         * lib/config.charset: update from gettext-runtime.
85597
85598 2003-12-03  Paul Eggert  <eggert@twinsun.com>
85599
85600         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
85601         Bug reported by Alfred M. Szmidt.
85602
85603 2003-12-03  Bruno Haible  <bruno@clisp.org>
85604
85605         * m4/gettext.m4: Upgrade from gettext-0.13.
85606         * m4/po.m4: Upgrade from gettext-0.13.
85607         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
85608         * m4/intmax.m4: New file, from gettext-0.13.
85609         * m4/printf-posix.m4: New file, from gettext-0.13.
85610
85611 2003-11-29  Karl Berry  <karl@gnu.org>
85612
85613         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
85614
85615 2003-11-25  Paul Eggert  <eggert@twinsun.com>
85616             Bruno Haible  <bruno@clisp.org>
85617
85618         * lib/printf-parse.h: Don't include sys/types.h.
85619         (ARG_NONE): New macro.
85620         (char_directive): Change type of *arg_index fields to size_t.
85621         * lib/printf-parse.c: Don't include sys/types.h.
85622         (SSIZE_MAX): Remove macro.
85623         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
85624         Remove unnecessary overflow check.
85625         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
85626         fields.
85627
85628 2003-11-25  Bruno Haible  <bruno@clisp.org>
85629
85630         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
85631
85632 2003-11-25  Bruno Haible  <bruno@clisp.org>
85633
85634         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
85635         gt_TYPE_SSIZE_T.
85636
85637 2003-11-24  Paul Eggert  <eggert@twinsun.com>
85638
85639         * modules/alloca: Remove dependency on xalloc.
85640
85641 2003-11-24  Paul Eggert  <eggert@twinsun.com>
85642
85643         * lib/alloca.c: Remove dependency on xalloc module.
85644         (xalloc_die): Remove.
85645         (memory_full) [!defined emacs]: New macro.
85646         [!defined emacs]: Don't include xalloc.h.
85647         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
85648         address arithmetic overflows.  Change datatypes a bit to avoid
85649         unnecessary casts.
85650
85651 2003-11-22  Jim Meyering  <jim@meyering.net>
85652
85653         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
85654         s/size/size_t/.
85655
85656 2003-11-21  Karl Berry  <karl@gnu.org>
85657
85658         * config/config.{sub,guess}: update from config.
85659
85660 2003-11-18  Karl Berry  <karl@gnu.org>
85661
85662         * config/config.{sub,guess}: update from config.
85663
85664         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
85665
85666 2003-11-17  Paul Eggert  <eggert@twinsun.com>
85667
85668         * README: Mention that S+T cannot overflow if S is the size of
85669         an existing object and T is sufficiently small.
85670
85671 2003-11-17  Jim Meyering  <jim@meyering.net>
85672
85673         On systems without utime and without a utimes function capable of
85674         dealing with a NULL struct utimbuf* argument, this utime replacement
85675         could -- in unusual circumstances -- leak a file descriptor.
85676         * lib/utime.c: Include <unistd.h> and <errno.h>.
85677         (utime_null): Be sure to close `fd' and to preserve errno.
85678         Reported by Geoff Collyer via Arnold Robbins.
85679
85680 2003-11-17  Bruno Haible  <bruno@clisp.org>
85681
85682         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
85683         (Depends-on): Add xsize.
85684
85685 2003-11-17  Bruno Haible  <bruno@clisp.org>
85686
85687         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
85688
85689 2003-11-17  Bruno Haible  <bruno@clisp.org>
85690
85691         * lib/vasnprintf.c (alloca): Remove fallback definition.
85692         (freea): Remove definition.
85693         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
85694         Reported by Paul Eggert.
85695
85696 2003-11-16  Paul Eggert  <eggert@twinsun.com>
85697             Bruno Haible  <bruno@clisp.org>
85698
85699         Protect against address arithmetic overflow.
85700         * lib/printf-args.h: Include stddef.h.
85701         (arguments): Change type of field 'count' to size_t.
85702         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
85703         'unsigned int' where appropriate.
85704         * lib/printf-parse.h: Include sys/types.h.
85705         (char_directive): Change type of *arg_index fields to ssize_t.
85706         (char_directives): Change type of fields 'count', max_*_length to
85707         size_t.
85708         * lib/printf-parse.c: Include sys/types.h and xsize.h.
85709         (SSIZE_MAX): Define fallback value.
85710         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
85711         instead of 'int' where appropriate. Check a_allocated, d_allocated
85712         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
85713         * lib/vasnprintf.c: Include xsize.h.
85714         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
85715         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
85716         overflow. Avoid wraparound when converting a width or precision from
85717         decimal to binary.
85718
85719 2003-11-16  Bruno Haible  <bruno@clisp.org>
85720
85721         Update from GNU gettext.
85722         * lib/printf-parse.c: Generalize to it can be compiled for wide
85723         strings.
85724         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
85725         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
85726         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
85727         SNPRINTF): New macros.
85728         Don't include <alloca.h> if the file is used inside libintl.
85729         (local_wcslen): New function, for Solaris 2.5.1.
85730         (VASNPRINTF): Use it instead of wcslen.
85731
85732 2003-11-16  Bruno Haible  <bruno@clisp.org>
85733
85734         * lib/xsize.h (xmax): New function.
85735         (xsum, xsum3, xsum4): Declare as "pure" functions.
85736
85737 2003-11-12  Paul Eggert  <eggert@twinsun.com>
85738
85739         * modules/xalloc (Files): Undo latest change, since xalloc.h
85740         no longer needs SIZE_MAX or PTRDIFF_MAX.
85741
85742 2003-11-12  Paul Eggert  <eggert@twinsun.com>
85743
85744         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
85745         gl_PTRDIFF_MAX.
85746
85747 2003-11-12  Paul Eggert  <eggert@twinsun.com>
85748
85749         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
85750         "return", to pacify some unknown compiler.  Problem reported
85751         by Joerg Schilling.
85752
85753 2003-11-12  Paul Eggert  <eggert@twinsun.com>
85754
85755         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
85756         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
85757         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
85758         heuristic is just as accurate as far as we know, and it removes a
85759         dependency on size_max.m4 and ptrdiff_max.m4.
85760
85761 2003-11-11  Bruno Haible  <bruno@clisp.org>
85762
85763         * modules/xsize (Files): Add m4/size_max.m4.
85764         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
85765
85766 2003-11-11  Bruno Haible  <bruno@clisp.org>
85767
85768         * m4/size_max.m4: New file.
85769         * m4/ptrdiff_max.m4: New file.
85770         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
85771         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
85772         (gl_XALLOC): Invoke it.
85773
85774 2003-11-11  Bruno Haible  <bruno@clisp.org>
85775
85776         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
85777         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
85778         defined.
85779
85780 2003-11-10  Paul Eggert  <eggert@twinsun.com>
85781
85782         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
85783         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
85784         rejected some allocations of exactly SIZE_MAX - 2 bytes.
85785         From Bruno Haible.
85786         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
85787         not (size_t) -1, since it's defined here.
85788
85789 2003-11-09  Karl Berry  <karl@gnu.org>
85790
85791         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
85792
85793 2003-11-06  Paul Eggert  <eggert@twinsun.com>
85794
85795         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
85796         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
85797         Reject sizes of exactly SIZE_MAX bytes.
85798         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
85799         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
85800
85801 2003-11-05  Bruno Haible  <bruno@clisp.org>
85802
85803         * lib/xsize.h: Include limits.h, to avoid a possible collision with
85804         SIZE_MAX defined in <limits.h> on Solaris.
85805
85806 2003-11-04  Jim Meyering  <jim@meyering.net>
85807
85808         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
85809         variable names, rather than @VAR@.
85810         * modules/poll: Likewise.
85811
85812 2003-11-04  Bruno Haible  <bruno@clisp.org>
85813
85814         * modules/xsize: New file.
85815         * modules/linebreak: Depend on xsize.
85816         * MODULES.html.sh (func_all_modules): Add xsize.
85817
85818 2003-11-04  Bruno Haible  <bruno@clisp.org>
85819
85820         * m4/xsize.m4: New file.
85821
85822 2003-11-04  Bruno Haible  <bruno@clisp.org>
85823
85824         * lib/xsize.h: New file.
85825         * lib/linebreak.c: Include xsize.h.
85826         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
85827         argument for overflow.
85828         Suggested by Paul Eggert.
85829
85830 2003-11-03  Karl Berry  <karl@gnu.org>
85831
85832         * config/config.{guess,sub}: update from config.
85833
85834 2003-11-03  Jim Meyering  <jim@meyering.net>
85835
85836         * modules/userspec (lib_SOURCES): Add userspec.h.
85837         (Include): Add "userspec.h".
85838         Improve description.
85839
85840 2003-11-03  Jim Meyering  <jim@meyering.net>
85841
85842         * lib/userspec.c: Include "userspec.h".
85843         * lib/userspec.h: New file.
85844
85845 2003-11-03  Bruno Haible  <bruno@clisp.org>
85846
85847         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
85848
85849 2003-11-03  Bruno Haible  <bruno@clisp.org>
85850
85851         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
85852         available, to avoid (extremely rare) race condition.
85853         Suggested by Paul Eggert.
85854
85855 2003-11-02  Karl Berry  <karl@gnu.org>
85856
85857         * config/srclist.txt (vasprintf.c): sync broken, sigh.
85858
85859 2003-10-31  Paul Eggert  <eggert@twinsun.com>
85860
85861         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
85862         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
85863         (read_filesystem_list): Set and use me_type_malloced.
85864         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
85865         whatever the type happens to be), for brevity and consistency.
85866         Check for size calculation overflow on Alphas running OSF/1.
85867
85868 2003-10-31  Jim Meyering  <jim@meyering.net>
85869
85870         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
85871
85872         * lib/linebuffer.c: Include <string.h> for declaration of memset.
85873
85874 2003-10-30  Paul Eggert  <eggert@twinsun.com>
85875             Bruno Haible  <bruno@clisp.org>
85876
85877         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
85878         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
85879
85880 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
85881
85882         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
85883         netbsd*-gnu*.  Suggested by Robert Millan.
85884
85885 2003-10-29  Paul Eggert  <eggert@twinsun.com>
85886
85887         * modules/group-member: Depend on stdbool.
85888
85889 2003-10-29  Paul Eggert  <eggert@twinsun.com>
85890
85891         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
85892
85893 2003-10-29  Paul Eggert  <eggert@twinsun.com>
85894
85895         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
85896         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
85897         after the 'gnu' in these cases.  This fixes some bugs in the
85898         previous change, and is based on suggestions by Robert Millan.
85899
85900 2003-10-29  Paul Eggert  <eggert@twinsun.com>
85901
85902         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
85903         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
85904         no longer needed.
85905         * lib/quotearg.c (quotearg_n_options): Use it.
85906         * lib/group-member.c: Include <stdbool.h>.
85907         (free_group_info): Arg is now const *; don't free arg.
85908         (get_group_info): Now returns bool and accepts struct group_info *,
85909         rather than returning a malloc'ed struct group_info *.
85910         All uses changed.  Check for overflow in internal size calculation.
85911
85912         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
85913         rather than xmalloc/xrealloc.
85914         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
85915         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
85916         conformance bug: the old code used a pointer after freeing the
85917         storage that it addressed.
85918         * lib/hash.c (hash_initialize): Simplify the code by using
85919         xalloc_oversized rather than doing it by hand.
85920         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
85921         the buffer preserved.  Use free and xmalloc instead.
85922         * lib/quotearg.c (quotearg_n_options): Likewise.
85923         Use a simpler test for size overflow.  Don't use xalloc_oversized
85924         because unsigned int might be wider than size_t (!); this suggests
85925         that we should switch from unsigned int to size_t for slot numbers.
85926
85927 2003-10-28  Paul Eggert  <eggert@twinsun.com>
85928
85929         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
85930         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
85931         NetBSD kernels.  Requested by Richard Stallman.
85932
85933 2003-10-27  Paul Eggert  <eggert@twinsun.com>
85934
85935         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
85936         to allocate the returned structure.  Do not allocate a subarray,
85937         as x2nrealloc will do that.
85938         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
85939         instead of xnrealloc.
85940         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
85941
85942 2003-10-27  Bruno Haible  <bruno@clisp.org>
85943
85944         * lib/stdbool_.h: Better support for BeOS.
85945
85946 2003-10-26  Paul Eggert  <eggert@twinsun.com>
85947
85948         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
85949         now uses inline.
85950
85951 2003-10-26  Paul Eggert  <eggert@twinsun.com>
85952
85953         * lib/xalloc.h (xalloc_oversized): New static inline function, for
85954         callers that want to do their own size-overflow checking.  Include
85955         <stdbool.h>, since xalloc_oversized returns bool.
85956         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
85957         to use xalloc_oversized.
85958
85959         Add two functions x2realloc, x2nrealloc, for programs that grow
85960         arrays dynamically by doubling their sizes.
85961         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
85962         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
85963         New functions.
85964
85965         Port to C99 semantics for 'inline' of external functions.
85966         Bug reported by Bruno Haible.
85967         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
85968         with the old contents of xnmalloc.
85969         (xnmalloc, xmalloc): Use it.
85970         (xnrealloc_inline): New static inline function,
85971         with the old contents of xnrealloc.
85972         (xnrealloc, xrealloc): Use it.
85973
85974         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
85975         that.
85976
85977 2003-10-26  Karl Berry  <karl@gnu.org>
85978
85979         * config/srclist.txt (COPYING.DOC): no longer available from
85980         /gd/gnuorg; don't know where the ultimate source is.
85981
85982 2003-10-25  Paul Eggert  <eggert@twinsun.com>
85983
85984         Fix several address-calculation bugs in the hash modules,
85985         plus some minor code cleanup.
85986
85987         * lib/hash.h: Include <stdbool.h>, for bool.
85988         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
85989         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
85990         hash_get_n_entries, hash_get_max_bucket_length,
85991         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
85992         hash_rehash): Use size_t rather than unsigned.
85993         * lib/hash.c (struct hash_table, hash_get_n_buckets,
85994         hash_get_n_buckets_used, hash_get_n_entries,
85995         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
85996         hash_get_entries, hash_do_for_each, hash_string, is_prime,
85997         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
85998         Likewise.
85999         (SIZE_MAX): Define if not defined.
86000         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
86001         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
86002         hash_print):
86003         Use const * when possible.
86004         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
86005         (check_tuning): Fix bug: if tuning parameters were very close to
86006         0 or 1, rounding errors could have caused subscript violations.
86007         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
86008         (hash_initialize): Add 'fail:' label
86009         to free table and return NULL, and use it to simplify code.
86010         Use calloc rather than clearing the storage ourself.
86011         (hash_initialize, hash_rehash): Check for arithmetic overflow in
86012         buffer size calculations.
86013         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
86014         Include <stddef.h>, for size_t.
86015         * lib/hash-pjw.c (hash_pjw): Likewise.
86016         Switch to method described by Bruno Haible.
86017         Include <limits.h>, for CHAR_BIT.
86018         (SIZE_BITS): New macro.
86019
86020 2003-10-23  Paul Eggert  <eggert@twinsun.com>
86021
86022         * m4/getline.m4 (AM_FUNC_GETLINE):
86023         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
86024         hosts.  Problem reported by Derek Robert Price in
86025         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
86026         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
86027         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
86028
86029 2003-10-21  Paul Eggert  <eggert@twinsun.com>
86030
86031         * lib/getndelim2.c (getndelim2): When size calculation overflows,
86032         ceiling the allocation at NMAX bytes rather than silently
86033         discarding input bytes before NMAX is reached.  This makes
86034         a difference only if NMAX exceeds SIZE_MAX / 2.
86035
86036         * lib/obstack.c: Merge from glibc.
86037         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
86038         Add libc_hidden_def (_obstack_newchunk).
86039         (_obstack_free) [! defined _LIBC]: Remove.
86040         [defined _LIBC]: Make a strong alias from obstack_free, rather than
86041         a clone of the function body.
86042         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
86043         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
86044
86045         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
86046         glibc.
86047         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
86048         arg to memcpy.
86049
86050         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
86051         (obstack_ptr_grow_fast, obstack_int_grow_fast):
86052         Don't use lvalue casts, as GCC plans to remove support for them
86053         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
86054         was also present in the non-GCC version, indicating that this
86055         code had always been buggy and had never been widely used.
86056         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
86057         Use the fast variant of each macro, rather than copying the
86058         definiens of the fast variant; that way, we'll be more likely to
86059         catch future bugs in the fast variants.
86060
86061 2003-10-20  Bruno Haible  <bruno@clisp.org>
86062
86063         * modules/wait-process: New file.
86064         * MODULES.html.sh (func_all_modules): Add wait-process.
86065
86066 2003-10-20  Bruno Haible  <bruno@clisp.org>
86067
86068         * m4/wait-process.m4: New file.
86069
86070 2003-10-20  Bruno Haible  <bruno@clisp.org>
86071
86072         * lib/wait-process.h: New file, from GNU gettext.
86073         * lib/wait-process.c: New file, from GNU gettext.
86074
86075 2003-10-19  Jim Meyering  <jim@meyering.net>
86076
86077         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
86078         HPUX 10.20.
86079
86080 2003-10-18  Karl Berry  <karl@gnu.org>
86081
86082         * config/config.guess: update from config.
86083
86084 2003-10-16  Paul Eggert  <eggert@twinsun.com>
86085
86086         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
86087         (getgroups): First arg is int, not size_t.
86088         Don't let 'free' mangle errno.
86089
86090 2003-10-16  Paul Eggert  <eggert@twinsun.com>
86091
86092         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
86093
86094 2003-10-16  Karl Berry  <karl@gnu.org>
86095
86096         * config/config.{guess,sub}: update from config.
86097
86098 2003-10-16  Jim Meyering  <jim@meyering.net>
86099
86100         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
86101         memcpy.
86102
86103 2003-10-15  Paul Eggert  <eggert@twinsun.com>
86104
86105         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
86106         (SIZE_MAX): Remove.
86107         (new_exclude, add_exclude_file): Initial size no longer needs to
86108         be a power of 2.
86109         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
86110         our own address arithmetic overflow checking.
86111
86112         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
86113         (fnmatch): Do not alloca more than 2000 wide characters;
86114         instead, use malloc for large buffers.
86115         Check for address arithmetic overflow, and return -1
86116         with errno set to ENOMEM in that case.
86117         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
86118         (NEW_PATTERN): Do not alloca more than 8000 bytes;
86119         instead, return -1.  Check for address arithmetic overflow.
86120
86121 2003-10-14  Paul Eggert  <eggert@twinsun.com>
86122
86123         Handle invalid suffixes and overflow independently, so that
86124         callers can treat them independently as needed.  Fix some bugs in
86125         suffix handling, e.g., "100k@" was not diagnosed as an invalid
86126         suffix for a human-readable blocksize.  The major caller-visible
86127         change is the addition of a new
86128         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
86129         that both overflow and suffix chars were found.
86130
86131         * lib/human.c (humblock): Don't check separately for invalid suffix
86132         char; that is xstrtoumax's job (now that its bug is fixed).
86133         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
86134         INTMAX_MAX]: New macros.
86135         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
86136         TYPE_MAXIMUM): New macros.
86137         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
86138         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
86139         if overflow occurs, as it's what __strtol does and it's more useful
86140         in practice.
86141         (__xstrtol): If __strtol reports some error other than ERANGE,
86142         reflect it to the caller as LONGINT_INVALID.  If it reports
86143         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
86144         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
86145         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
86146         value.
86147         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
86148         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
86149         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
86150         [defined UINTMAX_MAX]: New macros.
86151
86152 2003-10-14  Bruno Haible  <bruno@clisp.org>
86153
86154         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
86155
86156 2003-10-14  Bruno Haible  <bruno@clisp.org>
86157
86158         * m4/sig_atomic_t: New file, from GNU gettext.
86159         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
86160
86161 2003-10-14  Bruno Haible  <bruno@clisp.org>
86162
86163         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
86164         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
86165         Also use volatile where needed.
86166
86167 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86168
86169         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
86170         Change maintainer from Bruno Haible to 'all'.
86171
86172 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86173
86174         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
86175
86176 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86177
86178         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
86179         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
86180         and define in terms of the other primitives.
86181         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
86182         (SIZE_MAX): Define if not already defined.
86183         (array_size_overflow): New function.
86184         (xalloc_die): Abort instead of exiting if 'error' returns.
86185         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
86186         (xmalloc, xrealloc): Use them.
86187         (xcalloc): Check for address arithmetic overflow.
86188         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
86189         a bit faster than strcpy.
86190
86191 2003-10-10  Simon Josefsson  <jas@extundo.com>
86192
86193         * modules/argp (Depends-on): Add restrict and strcase.
86194
86195 2003-10-10  Simon Josefsson  <jas@extundo.com>
86196
86197         * m4/argp.m4: Add AC_C_INLINE.
86198
86199 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86200
86201         Merge getpass from libc, plus a few fixes.
86202
86203         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
86204         Include <stdbool.h>.
86205         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
86206         __fsetlocking to empty.
86207         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
86208         do include <bits/libc-lock.h>.
86209         Do not include <fcntl.h>; not needed.
86210         [_LIBC]: Include <wchar.h>.
86211         (NOTCANCEL_MODE): New macro.
86212         (flockfile, funlockfile) [_LIBC]: New macros.
86213         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
86214         [!_LIBC]: New macros.
86215         (call_fclose): New function.
86216         (getpass): Use it.  Save tty stream separately; this simplifies the
86217         code and makes it more reliable if stdin happens to equal stdout.
86218         Invoke __fsetlocking on tty.
86219         Handle thread cancellation if needed.
86220         Namespace cleanup (use __tcgetattr, __getline).
86221         Use bool for Booleans.
86222         [USE_IN_LIBIO]: Handle wide streams.
86223         [!_LIBC]: Unconditionally do the fseek, since we don't know what
86224         stream might go where.
86225
86226         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
86227         doesn't have to include <stdio.h> before us.
86228         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
86229         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
86230         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
86231         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
86232         if not declared, so that we can use getpass.c code from libc without
86233         rewriting it.
86234         (flockfile, ftrylockfile, funlockfile): New macros.
86235
86236 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86237
86238         * modules/getpass: Depend on stdbool.
86239
86240 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86241
86242         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
86243
86244 2003-10-07  Karl Berry  <karl@gnu.org>
86245
86246         * config/config.{guess,sub}: update from config.
86247
86248 2003-10-06  Jim Meyering  <jim@meyering.net>
86249             Bruno Haible  <bruno@clisp.org>
86250
86251         This lets translators provide better translations for the
86252         "Written by ..." part of --version output.
86253         * lib/version-etc.h: Include stdarg.h.
86254         (version_etc_copyright): Declare as readonly.
86255         (version_etc): Make this function variadic with a NULL-terminated list
86256         of author name strings.
86257         (version_etc_va): New declaration.
86258         * lib/version-etc.c: Include stdarg.h, stdlib.h.
86259         (version_etc_copyright): Declare as readonly.
86260         (version_etc_va): New function. Provide a different translatable string
86261         for each possible number of authors < 10. Abbreviate when there are 10
86262         authors or more.
86263         (version_etc): Make this function variadic. Call version_etc_va.
86264         Suggestion from Gary V. Vaughan.
86265
86266         * lib/long-options.h (parse_long_options): Change prototype: the
86267         authors string is moved to the end and becomes variadic.
86268         * lib/long-options.c: Include stdarg.h.
86269         (parse_long_options): Make this function variadic, too.
86270         Call version_etc_va, not version_etc.
86271
86272 2003-10-06  Bruno Haible  <bruno@clisp.org>
86273
86274         * modules/version-etc-2: Remove file.
86275         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
86276
86277 2003-10-06  Bruno Haible  <bruno@clisp.org>
86278
86279         * modules/fatal-signal: New file.
86280         * MODULES.html.sh (func_all_modules): Add fatal-signal.
86281
86282 2003-10-06  Bruno Haible  <bruno@clisp.org>
86283
86284         * m4/fatal-signal.m4: New file.
86285         * m4/signalblocking.m4: New file, from GNU gettext.
86286
86287 2003-10-06  Bruno Haible  <bruno@clisp.org>
86288
86289         * lib/version-etc-2.h: Remove file.
86290         * lib/version-etc-2.c: Remove file.
86291
86292 2003-10-06  Bruno Haible  <bruno@clisp.org>
86293
86294         * lib/fatal-signal.h: New file, from GNU gettext.
86295         * lib/fatal-signal.c: New file, from GNU gettext.
86296
86297 2003-10-05  Paul Eggert  <eggert@twinsun.com>
86298
86299         * README: Rework advice for preventing empty .o files.
86300         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
86301         not <sys/types.h>.
86302
86303 2003-10-04  Karl Berry  <karl@gnu.org>
86304
86305         * lib/argp*: update from libc.
86306
86307 2003-10-04  Karl Berry  <karl@gnu.org>
86308
86309         * config/config.{guess,sub}: update from config.
86310
86311 2003-10-02  Bruno Haible  <bruno@clisp.org>
86312
86313         * modules/lchown (Include): Add lchown.h.
86314         * modules/time_r (Include): Use "..." syntax.
86315         * modules/xgetdomainname (Include): Add xgetdomainname.h.
86316
86317 2003-10-01  Simon Josefsson  <jas@extundo.com>
86318
86319         * MODULES.html.sh (func_all_modules): Move gethostname from section
86320         'based on' to section 'lacking' POSIX:2001.
86321
86322 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
86323
86324         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
86325         to output mode on the same stream.
86326
86327 2003-09-29  Paul Eggert  <eggert@twinsun.com>
86328
86329         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
86330         Fix arg typo in previous patch.
86331
86332 2003-09-28  Jim Meyering  <jim@meyering.net>
86333
86334         * lib/error.c: Correct cpp indentation.
86335
86336 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86337
86338         * modules/free: New file.
86339
86340 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86341
86342         * m4/free.m4: New file.
86343
86344 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86345
86346         * lib/minmax.h (MIN, MAX)
86347         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
86348         Omit the special code that used __typeof__, since we worry that
86349         it could be more trouble than it's worth.  See:
86350         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
86351         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
86352
86353         * lib/free.c: New file.
86354
86355 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
86356
86357         Trivial fixes to Makefile.am parts of module listings.
86358         * modules/strstr: Append strstr.h to lib_SOURCES.
86359         * modules/strcase: Likewise, for strcase.h.
86360
86361 2003-09-27  Karl Berry  <karl@gnu.org>
86362
86363         * config/mkinstalldirs: update from automake.
86364
86365 2003-09-26  Paul Eggert  <eggert@twinsun.com>
86366
86367         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
86368         (error_tail): Do not loop, reallocating temporary buffer, since
86369         the output cannot contain more wide characters than the input
86370         contains bytes, the size must be big enough already.  This avoids
86371         one potential size overflow calculation.  Check for size overflow
86372         when calculating temporary buffer size.  Free temporary buffer
86373         when done, if it was allocated with malloc; this plugs a memory
86374         leak.  Remove casts from void * to pointers, that are no longer
86375         needed now that we're assuming C89 or better.
86376
86377         Merge error changes from glibc.
86378
86379         * lib/error.c, error.h: Update copyright notice header to match glibc.
86380         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
86381         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
86382         Disable cancellation while printing error.
86383         * lib/error.h: Prepend __ to parameter names.
86384
86385 2003-09-26  Jim Meyering  <jim@meyering.net>
86386
86387         * lib/error.c (error_tail): Move some declarations
86388         into inner scope where the local variables are used.
86389
86390 2003-09-26  Bruno Haible  <bruno@clisp.org>
86391
86392         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
86393         stpncpy().
86394         Don't define stpncpy through config.h; it's now done through stpncpy.h.
86395
86396 2003-09-26  Bruno Haible  <bruno@clisp.org>
86397
86398         * lib/stpncpy.h (gnu_stpncpy): New declaration.
86399         (stpncpy): Define as alias for gnu_stpncpy.
86400         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
86401
86402 2003-09-25  Simon Josefsson  <jas@extundo.com>
86403
86404         * lib/xgetdomainname.h: New file.
86405         * lib/xgetdomainname.c: New file.
86406
86407 2003-09-25  Simon Josefsson  <jas@extundo.com>
86408             Bruno Haible  <bruno@clisp.org>
86409
86410         * modules/getdomainname: New file.
86411         * modules/xgetdomainname: New file.
86412         * MODULES.html.sh (func_all_modules): Add getdomainname,
86413         xgetdomainname.
86414
86415 2003-09-25  Simon Josefsson  <jas@extundo.com>
86416             Bruno Haible  <bruno@clisp.org>
86417
86418         * m4/getdomainname.m4: New file.
86419
86420 2003-09-25  Simon Josefsson  <jas@extundo.com>
86421             Bruno Haible  <bruno@clisp.org>
86422
86423         * lib/getdomainname.h: New file.
86424         * lib/getdomainname.c: New file.
86425
86426 2003-09-25  Karl Berry  <karl@gnu.org>
86427
86428         * lib/argp-fmtstream.c, argp-help.c: update from libc.
86429
86430 2003-09-25  Karl Berry  <karl@gnu.org>
86431
86432         * config/install-sh: update from automake.
86433
86434 2003-09-25  Bruno Haible  <bruno@clisp.org>
86435
86436         * modules/version-etc-2: New file, from modules/version-etc with
86437         modifications.
86438         * MODULES.html.sh (func_all_modules): Add version-etc-2.
86439
86440 2003-09-25  Bruno Haible  <bruno@clisp.org>
86441
86442         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
86443         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
86444
86445 2003-09-24  Simon Josefsson  <jas@extundo.com>
86446
86447         * modules/xgethostname: Add xgethostname.h.
86448
86449 2003-09-24  Paul Eggert  <eggert@twinsun.com>
86450
86451         * lib/linebuffer.c (freebuffer): Don't free the argument, just
86452         the buffer associated with the argument.  Bug reported by
86453         Simon Josefsson.
86454
86455 2003-09-24  Paul Eggert  <eggert@twinsun.com>
86456
86457         * README: Document assumptions that 'int' is at least 32 bits
86458         wide, that integer arithmetic is 2's complement without overflow,
86459         that there are no holes in integer values, that adding sizes of
86460         two nonoverlapping objects can't overflow, and that all-bits-zero
86461         yields scalar zero.  Fix spelling and capitalization typos.
86462
86463 2003-09-19  Karl Berry  <karl@gnu.org>
86464
86465         * lib/argp.h: update from libc.
86466
86467 2003-09-17  Paul Eggert  <eggert@twinsun.com>
86468
86469         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
86470         to avoid spurious warnings like "AC_RUN_IFELSE was called before
86471         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
86472
86473 2003-09-17  Paul Eggert  <eggert@twinsun.com>
86474
86475         * gnulib-tool: Use "test -h", not "test -L", for portability
86476         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
86477         (tags_regexp): Remove, since \| doesn't conform to POSIX.
86478         (sed_extract_prog): Issue s commands one-by-one, rather than
86479         using \| in one s command.
86480
86481 2003-09-16  Paul Eggert  <eggert@twinsun.com>
86482
86483         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
86484         input error, instead of returning NULL the next time we are called
86485         (and therefore losing track of errno).
86486
86487 2003-09-16  Bruno Haible  <bruno@clisp.org>
86488
86489         * gnulib-tool (func_create_testdir): Warn about duplicated
86490         dependencies.
86491
86492 2003-09-15  Paul Eggert  <eggert@twinsun.com>
86493
86494         * modules/argmatch, modules/fatal, modules/obstack,
86495         modules/xalloc, modules/xgethostname: Sort dependencies by
86496         importance, not alphabetically.
86497
86498 2003-09-15  Paul Eggert  <eggert@twinsun.com>
86499
86500         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
86501         fails, so that the caller gets the proper errno.
86502
86503         * lib/readutmp.c (read_utmp): Likewise.
86504         Check for fstat error.  Close stream and free storage
86505         when failing.
86506
86507 2003-09-14  Karl Berry  <karl@gnu.org>
86508
86509         * config/srclist.txt (strdup.c): disable for c89 changes.
86510
86511 2003-09-14  Jim Meyering  <jim@meyering.net>
86512
86513         * lib/getloadavg.c: Correct cpp indentation.
86514         * lib/strdup.c: Likewise.
86515         * lib/vasnprintf.c: Likewise.
86516
86517 2003-09-14  Bruno Haible  <bruno@clisp.org>
86518
86519         * modules/fwriteerror: New file.
86520         * MODULES.html.sh (func_all_modules): Add fwriteerror.
86521
86522 2003-09-14  Bruno Haible  <bruno@clisp.org>
86523
86524         * lib/fwriteerror.h: New file.
86525         * lib/fwriteerror.c: New file.
86526
86527 2003-09-12  Paul Eggert  <eggert@twinsun.com>
86528
86529         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
86530         modules/xgethostname, modules/xalloc: Depend on exit.
86531
86532 2003-09-12  Paul Eggert  <eggert@twinsun.com>
86533
86534         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
86535
86536         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
86537         and AC_MINIX, too, so that their extensions are available.
86538
86539         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
86540         This macro has been superseded by gl_BACKUPFILE.
86541
86542         More patches to assume C89 or better.
86543
86544         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
86545
86546         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
86547         unconditionally.
86548         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
86549         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
86550         Include <string.h>, <stdlib.h> unconditionally.
86551         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
86552         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
86553         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
86554         headers or for string.h.
86555         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
86556         or strtoul.
86557
86558         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
86559         headers.
86560         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
86561         * m4/userspec.m4 (gl_USERSPEC): Likewise.
86562         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
86563         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
86564         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
86565         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
86566         memcpy, memset.
86567         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
86568         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
86569         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
86570         strtol.
86571         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
86572         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
86573         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
86574         strtoul.
86575
86576 2003-09-12  Paul Eggert  <eggert@twinsun.com>
86577
86578         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
86579         * lib/obstack.c [!defined _LIBC]: Likewise.
86580         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
86581         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
86582         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
86583
86584         More changes to assume C89 or better.
86585
86586         * lib/error.c (error_tail): Assume vprintf.
86587
86588         * lib/argmatch.c (getenv): Remove decl.
86589         * lib/progreloc.c (get_full_program_name): Define via prototype.
86590         * lib/setenv.c (clearenv): Likewise.
86591         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
86592         needed.
86593         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
86594         (malloc, memcpy): Remove decls.
86595         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
86596         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
86597         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
86598         (memcpy): Remove macro.
86599         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
86600         (__P): Remove.  All uses removed.
86601         (PTR): Remove.  All uses changed to void *.
86602         (CHAR_BIT, NULL): Remove.
86603         (spaces, zeros, memset_space, memset_zero)
86604         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
86605         Remove.
86606         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
86607         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
86608         Define with prototype.
86609         Remove now-unnecessary prototype decl.
86610         (extra_args_spec): Assume ANSI C.  All uses changed.
86611         (extra_args_spec_iso): Remove.
86612         (my_strftime, emacs_strftimeu): Define via prototype.
86613         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
86614         unconditionally.
86615         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
86616         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
86617         (strtoul, strtol): Remove decls.
86618         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
86619         LONG_MAX): Remove.
86620         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
86621         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
86622         (LOCALE_PARAM_PROTO): New macro.
86623         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
86624         (INTERNAL (strtol), strtol): Define with a prototype.
86625         (PARAMS): Remove.  All uses removed.
86626         * lib/tempname.c: Include <string.h> unconditionally.
86627         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
86628         * lib/xgethostname.c (main): Define with a prototype.
86629         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
86630         Include <stdlib.h> unconditionally.
86631         (calloc, malloc, realloc, free): Remove decls.
86632         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
86633         Include <stdlib.h> unconditionally.  Sort include file names.
86634         (strtod): Remove.
86635         (xstrtod): Define with a prototype.
86636         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
86637         (strtol, strtoul): Remove decls.
86638
86639 2003-09-11  Paul Eggert  <eggert@twinsun.com>
86640
86641         More patches to assume C89 or better.
86642         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
86643         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
86644         string.h, memchr, STDC_HEADERS.
86645
86646 2003-09-11  Paul Eggert  <eggert@twinsun.com>
86647
86648         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
86649         Include <stdlib.h>, <string.h> unconditionally.
86650         Remove now-unnecessary cast to char *.
86651         * lib/strnlen.c: Include <string.h> unconditionally.
86652         * lib/yesno.c (yesno): Define with a prototype.
86653
86654 2003-09-11  Bruno Haible  <bruno@clisp.org>
86655
86656         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
86657
86658 2003-09-10  Jim Meyering  <jim@meyering.net>
86659
86660         * lib/error.c: Correct indentation of cpp directives.
86661
86662 2003-09-10  Bruno Haible  <bruno@clisp.org>
86663
86664         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
86665         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
86666         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
86667         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
86668         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
86669         <stdlib.h> and <string.h> checks.
86670         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
86671         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
86672
86673 2003-09-10  Bruno Haible  <bruno@clisp.org>
86674
86675         * lib/strcspn.c: Include <string.h> unconditionally.
86676         * lib/strpbrk.c: Include <string.h> unconditionally.
86677         * lib/strstr.c: Include <string.h> unconditionally.
86678         * lib/unicodeio.c: Include <string.h> unconditionally.
86679         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
86680         * lib/unsetenv.c: Likewise.
86681         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
86682         * lib/yesno.c: Include <stdlib.h> unconditionally.
86683         (rpmatch): Add prototype.
86684
86685 2003-09-09  Paul Eggert  <eggert@twinsun.com>
86686
86687         More patches to assume C89 or better.
86688         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
86689         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
86690         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
86691         or for string.h.
86692         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
86693         stdlib.h.
86694         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
86695         C headers.
86696         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
86697         string.h.
86698         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
86699         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
86700         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
86701         or for string.h.
86702         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
86703         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
86704         C headers.
86705         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
86706         memcpy.
86707         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
86708         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
86709         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
86710         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
86711         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
86712         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
86713         string.h, free.
86714         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
86715         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
86716         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
86717         C headers, or for string.h.
86718         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
86719         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
86720         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
86721         headers, memory.h, stdlib.h, string.h, strings.h.
86722         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
86723         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
86724         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
86725         strchr.
86726         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
86727         headers, memory.h, string.h.
86728         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
86729         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
86730         free.
86731         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
86732         headers.
86733         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
86734         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
86735         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
86736         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
86737         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
86738
86739 2003-09-09  Paul Eggert  <eggert@twinsun.com>
86740
86741         More K&R removal.
86742
86743         * lib/acosl.c (main): Use a prototype.
86744         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
86745         tanl.c: Likewise.
86746
86747         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
86748
86749         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
86750         (getopt, etopt_long, getopt_long_only, _getopt_internal)
86751         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
86752         with a prototype.
86753         * lib/getopt.c (const): Remove macro.
86754         Include <string.h> unconditionally.
86755         (my_index): Remove; all uses changed to strchr.
86756         (strlen): Remove decl.
86757         (exchange): Remove forward decl; no longer needed.
86758         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
86759         Define with prototype.
86760         * lib/getopt1.c (const): Remove macro.
86761         (getopt_long, getopt_long_only, main): Define with prototype.
86762
86763         * lib/getugroups.c: Include <string.h> unconditionally.
86764
86765         * lib/getusershell.c: Include <stdlib.h> unconditionally.
86766         (getusershell, setusershell, endusershell, readname, main):
86767         Define with prototypes.
86768
86769         * lib/group-member.c: Include group-member.h first.
86770         Include <stdlib.h> unconditionally.
86771
86772         * lib/hard-locale.c: Include hard-locale.h first.
86773         Include <stdlib.h>, <string.h> unconditionally.
86774
86775         * lib/hash.c (free, malloc): Remove decls.
86776         Include <stdlib.h> unconditionally.
86777
86778         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
86779         (getenv): Do not declare.
86780
86781         * lib/idcache.c: Include <string.h> unconditionally.
86782
86783         * lib/long-options.c: Include long-options.h first, to test interface.
86784         Include <stdlib.h> unconditionally.
86785
86786         * lib/makepath.c: Include makepath.h first, to test interface.
86787         Include <stdlib.h> and <string.h> unconditionally.
86788
86789         * lib/linebuffer.c: Include <stdlib.h>.
86790         (free): Remove decl.
86791
86792         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
86793         stddef.h. rpl_malloc returns void *, not char *.
86794         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
86795         prototype.
86796
86797         * lib/md5.h: Include <limits.h> unconditionally.
86798         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
86799         (__P): Remove; all uses removed.
86800         * lib/md5.c: Include "md5.h" first.
86801         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
86802         md5_buffer, md5_process_bytes, md5_process_block):
86803         Define with prototypes.
86804         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
86805         * lib/sha.c: Include "sha.h" first.
86806         Include <stdlib.h>, <string.h> unconditionally.
86807
86808         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
86809         * lib/memcmp.c (__ptr_t): Likewise.
86810         * lib/memrchr.c (__ptr_t): Likewise.
86811         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
86812         Include <string.h> unconditionally.
86813         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
86814         * lib/memchr.c: Include <stdlib.h> unconditionally.
86815         * lib/memchr.c (LONG_MAX): Remove.
86816         * lib/memrchr.c (LONG_MAX): Likewise.
86817         * lib/memchr.c (__memchr): Define via a prototype.
86818         * lib/memrchr.c (__memrchr): Likewise.
86819         * lib/memcmp.c (__P): Remove, and remove all uses.
86820         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
86821         Remove forward decls; no longer needed.
86822         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
86823         Use types required by C89 in prototype.
86824
86825         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
86826         * lib/savedir.c: Likewise.
86827         * lib/mkdir.c (free): Remove decl.
86828         * lib/rmdir.c (rmdir): Define with a prototype.
86829         * lib/savedir.c: Include savedir.h first, to test interface.
86830
86831         * lib/mktime.c (STDC_HEADERS): Remove.
86832         Include <stdlib.h>, <string.h> unconditionally.
86833
86834         * lib/modechange.c: Include <stdlib.h> unconditionally.
86835         (malloc): Remove decl.
86836
86837         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
86838         (free): Remove decl.
86839
86840         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
86841         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
86842         (This type really should be intptr_t, but that's a C99ism.)
86843         (_obstack_memcpy): Remove: all uses changed to memcpy.
86844         Include <string.h> unconditionally.
86845         (struct obstack): Assume __STDC__ for types of members
86846         chunkfun, freefun, extra_arg.
86847         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
86848         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
86849         obstack_begin, obstack_specify_allocation,
86850         obstack_specify_allocation_with_arg, obstack_chunkfun,
86851         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
86852         Remove unprototyped decls and the macros that use them.
86853         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
86854         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
86855         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
86856         (defined __STDC__ && __STDC__)]:
86857         Remove nonprototyped code.
86858         Include <stdlib.h> unconditionally.
86859         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
86860         _obstack_allocated_p, _obstack_free, obstack_free,
86861         _obstack_memory_used, print_and_abort):
86862         Define using prototypes.
86863         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
86864         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
86865         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
86866         obstack_next_free, obstack_object_size, obstack_room) [0]:
86867         Remove unused, unprototyped code.
86868
86869         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
86870
86871         * lib/physmem.c (physmem_total, physmem_available, main): Define
86872         with prototypes.
86873
86874         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
86875         (main): Define with a prototype.
86876
86877         * lib/posixver.c (getenv): Remove decl.
86878
86879         * lib/putenv.c (malloc): Returns void *, not char *.
86880         Include <string.h> unconditionally.
86881         (strchr, memcpy, NULL): Do not define.
86882
86883         * lib/readtokens.c: Include readtokens.h first, to test interface.
86884         Include <stdlib.h>, <string.h> unconditionally.
86885         (init_tokenbuffer): Define with a prototype.
86886
86887         * lib/regex.c (PARAMS): Remove.  All uses removed.
86888         All uses of _RE_ARGS removed, too.
86889         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
86890         unconditionally.
86891         (bzero): Assume memset exists.
86892         (memcmp, memcpy, NULL): Remove.
86893         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
86894         char, or assignments to local vars of type signed char.
86895         (init_syntax_once, PREFIX(extract_number_and_incr),
86896         PREFIX(print_partial_compiled_pattern),
86897         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
86898         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
86899         PREFIX(regex_grow_registers), PREFIX(regex_compile),
86900         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
86901         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
86902         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
86903         wcs_compile_range, byte_compile_range, truncate_wchar,
86904         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
86905         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
86906         count_mbs_length, wcs_re_match_2_internal,
86907         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
86908         PREFIX(alt_match_null_string_p),
86909         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
86910         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
86911         regfree, PREFIX(extract_number)): Define with prototype.  Remove
86912         now-unnecessary declaration, if any.
86913         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
86914         regcomp, regexec):
86915         Remove now-unnecessary casts among pointer types.
86916         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
86917
86918         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
86919         (free): Remove decl.
86920
86921         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
86922
86923         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
86924         (free): Remove decl.
86925
86926         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
86927         * lib/xgetcwd.c: Likewise.
86928
86929         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
86930         (free): Remove decl.
86931
86932         * lib/strchrnul.c (strchrnul): Define with a prototype.
86933         Fix bug: c_in was not converted to char before searching.
86934
86935         The following changes are not K&R related:
86936
86937         * lib/group-member.h: Include <sys/types.h>, so that this file is
86938         self-contained.
86939         * lib/makepath.h: Likewise.
86940
86941         * lib/getusershell.c (readname, default_index, line_size, readname):
86942         Use size_t, not int, for sizes.
86943         (readname): If the size overflows, report an error instead of
86944         looping forever.
86945
86946 2003-09-09  Paul Eggert  <eggert@twinsun.com>
86947
86948         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
86949         libc.
86950
86951 2003-09-09  Paul Eggert  <eggert@twinsun.com>
86952
86953         * README: New section: portability guidelines.
86954
86955 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
86956
86957         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
86958         C89 spec.
86959
86960 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
86961
86962         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
86963
86964 2003-09-08  Paul Eggert  <eggert@twinsun.com>
86965
86966         Assume C89 or better; remove K&R cruft.
86967         A few of these changes were first proposed by Derek Robert Price
86968         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
86969
86970         * lib/addext.c: Include <string.h> unconditionally.
86971         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
86972         Don't declare getenv or malloc.
86973
86974         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
86975         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
86976         (NULL): Remove.
86977         (find_stack_direction, alloca): Use prototypes.
86978
86979         * lib/atexit.c (atexit): Define using a prototype.
86980
86981         * lib/basename.c, dirname.c, stripslash.c:
86982         Include <string.h> unconditionally.
86983
86984         * lib/bcopy.c: Include <stddef.h>.
86985         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
86986
86987         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
86988
86989         * lib/error.h (error, error_at_line, error_print_progname)
86990         [! (defined (__STDC__) && __STDC__)]: Remove decls.
86991         * lib/error.c: Include error.h first, to check interface.
86992         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
86993         (VA_START): Remove; all uses changeed to va_start.
86994         (exit, strerror): Remove decls.
86995         (error_print_progname): Prototype uncondionally.
86996         Don't include <errno.h>; no longer needed.
86997         (private_strerror): Remove.
86998         (error_tail): Always define.
86999         (error, error_at_line): Assume C89 or better; always use prototypes.
87000         * lib/fatal.c: Include "fatal.h" first, to test interface.
87001         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
87002         (VA_START): Remove; all uses changed to va_start.
87003         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
87004         this case.
87005         (exit): Remove decl.
87006         (fatal): Prototype unconditionally.  Assume va_start works.
87007         Abort at end, to pacify gcc.
87008
87009         * lib/euidaccess.c (main): Define with a prototype.
87010
87011         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
87012
87013         * lib/exitfail.c: Include <stdlib.h> unconditionally.
87014
87015         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
87016         prototypes.
87017         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
87018         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
87019         (getenv): Remove decl.
87020         (fnmatch): Define using a prototype.
87021         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
87022         (FCT): Define using a prototype.
87023
87024         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
87025
87026         * lib/gethostname.c: Include <stddef.h>.
87027         (gethostname): Define with prototype.  Length is size_t, not int.
87028
87029 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87030
87031         Assume C89 or better; remove K&R cruft.
87032         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
87033         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
87034         string.h, getenv, malloc.
87035         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
87036         headers.
87037         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
87038         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
87039         do not check for strerror.
87040         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
87041         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
87042         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
87043         do not check for doprnt or vprintf.
87044         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
87045         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
87046
87047 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87048
87049         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
87050         getversion.c should have been removed then, but was accidentally
87051         preserved.
87052
87053         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
87054         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
87055
87056 2003-09-08  Karl Berry  <karl@gnu.org>
87057
87058         * config/config.sub, config.guess, srclistvars.sh: update from savannah
87059                 config, forget about prep.
87060
87061         * config/depcomp, missing: update from automake.
87062
87063 2003-09-07  Paul Eggert  <eggert@twinsun.com>
87064
87065         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
87066         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
87067
87068 2003-09-07  Paul Eggert  <eggert@twinsun.com>
87069
87070         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
87071         copy_tm_result.  Bug reported by Simon Josefsson in
87072         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
87073
87074 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87075
87076         * m4/time_r.m4: New file.
87077         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
87078         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
87079         is. Check for timegm declaration.
87080         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
87081         Do not check for gmtime_r.
87082         Replace mktime if __mktime_internal does not exist and if mktime
87083         hasn't been replaced already.
87084
87085 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87086
87087         * lib/time_r.c, lib/time_r.h: New files.
87088
87089         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
87090         __localtime_r.
87091         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
87092         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
87093
87094         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
87095         __gmtime_r.
87096         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
87097         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
87098         Include <time_r.h>.
87099
87100         * lib/timegm.c: Switch to glibc implementation, with the following
87101         changes:
87102         [defined HAVE_CONFIG_H]: Include <config.h>.
87103         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
87104         (__mktime_internal) [!defined _LIBC]: New decl.
87105         (__gmtime_r) [!defined _LIBC]: New macro and function.
87106         (timegm): Use a prototype, since gnulib assumes C89.
87107         Do not bother declaring tmp to be const, as it's not really usefu.
87108         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
87109         (timegm): Declare only if HAVE_DECL_TIMEGM.
87110
87111 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87112
87113         * MODULES.html.sh (func_all_modules): Add time_r.
87114         * modules/time_r: New file.
87115         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
87116         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
87117
87118 2003-09-03  Paul Eggert  <eggert@twinsun.com>
87119
87120         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
87121         Bug reported by Lute Kamstra in
87122         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
87123
87124         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
87125         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
87126         course with correspondingly smaller numbers for tomorrow and
87127         yesterday.  From Tadayoshi Funaba.  Originally installed into
87128         sh-utils on 1999-08-07, but the patch got lost (I guess during the
87129         coreutils merge?).
87130
87131 2003-08-31  Simon Josefsson  <jas@extundo.com>
87132
87133         * modules/timegm: New file.
87134         * MODULES.html.sh (func_all_modules): Add timegm.
87135
87136 2003-08-31  Simon Josefsson  <jas@extundo.com>
87137
87138         * m4/timegm.m4: New file.
87139
87140 2003-08-31  Simon Josefsson  <jas@extundo.com>
87141
87142         * lib/timegm.h: New file.
87143         * lib/timegm.c: New file.  Based on
87144         wget-1.8.2/src/http.c:mktime_from_utc.
87145
87146 2003-08-31  Karl Berry  <karl@gnu.org>
87147
87148         * lib/argp.h: update from libc.
87149
87150 2003-08-28  Bruno Haible  <bruno@clisp.org>
87151
87152         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
87153         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
87154         followed by '#define fnmatch fnmatch_posix' gives an error.
87155
87156 2003-08-28  Bruno Haible  <bruno@clisp.org>
87157
87158         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
87159         warning on QNX, which defines O_BINARY to 000000.
87160
87161 2003-08-27  Jim Meyering  <jim@meyering.net>
87162
87163         * m4/mkstemp.m4: Require that the system mkstemp be able to create
87164         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
87165         would fail after 32.  Reported by Danny Levinson.  Details here:
87166         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
87167
87168 2003-08-24  Bruno Haible  <bruno@clisp.org>
87169
87170         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
87171         MSVC7 <stdio.h> is included later.
87172
87173 2003-08-22  Simon Josefsson  <jas@extundo.com>
87174
87175         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
87176
87177 2003-08-20  Karl Berry  <karl@gnu.org>
87178
87179         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
87180
87181 2003-08-20  Bruno Haible  <bruno@clisp.org>
87182
87183         * modules/progname: New file.
87184         * MODULES.html.sh (func_all_modules): Add progname.
87185
87186 2003-08-20  Bruno Haible  <bruno@clisp.org>
87187
87188         * lib/progname.h: New file, from GNU gettext.
87189         * lib/progname.c: New file, from GNU gettext.
87190         * lib/progreloc.c: New file, from GNU gettext.
87191
87192 2003-08-19  Jim Meyering  <jim@meyering.net>
87193
87194         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
87195         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
87196
87197 2003-08-19  Bruno Haible  <bruno@clisp.org>
87198
87199         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
87200         more.
87201
87202 2003-08-19  Bruno Haible  <bruno@clisp.org>
87203
87204         * lib/xstrdup.c: Assume <string.h> exists.
87205
87206 2003-08-18  Paul Eggert  <eggert@twinsun.com>
87207
87208         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
87209         in makefile rules.
87210
87211 2003-08-18  Jim Meyering  <jim@meyering.net>
87212
87213         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
87214         * m4/lib-ld.m4: Likewise.
87215
87216 2003-08-18  Jim Meyering  <jim@meyering.net>
87217
87218         * lib/setenv.h: Indent nested cpp directive.
87219         * lib/vasnprintf.c: Remove trailing blanks.
87220
87221 2003-08-17  Simon Josefsson  <jas@extundo.com>
87222
87223         * modules/xstrndup: New file.
87224         * MODULES.html.sh (func_all_modules): Add xstrndup.
87225
87226 2003-08-17  Simon Josefsson  <jas@extundo.com>
87227
87228         * modules/argp: Fix autoconf macro name. Add more dependencies.
87229
87230 2003-08-17  Simon Josefsson  <jas@extundo.com>
87231
87232         * m4/xstrndup.m4: New file.
87233
87234 2003-08-17  Simon Josefsson  <jas@extundo.com>
87235
87236         * m4/argp.m4: New file.
87237
87238 2003-08-17  Simon Josefsson  <jas@extundo.com>
87239             Bruno Haible  <bruno@clisp.org>
87240
87241         * lib/xstrndup.h: New file.
87242         * lib/xstrndup.c: New file.
87243
87244 2003-08-17  Bruno Haible  <bruno@clisp.org>
87245
87246         * modules/strndup (Files, Include): Add lib/strndup.h.
87247
87248 2003-08-17  Bruno Haible  <bruno@clisp.org>
87249
87250         * modules/euidaccess (Files): Add lib/euidaccess.h.
87251
87252 2003-08-17  Bruno Haible  <bruno@clisp.org>
87253
87254         * lib/strndup.h: New file.
87255
87256 2003-08-17  Bruno Haible  <bruno@clisp.org>
87257
87258         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
87259         like AC_GNU_SOURCE.
87260         * modules/extensions (configure.ac): Comment out the invocation of
87261         gl_USE_SYSTEM_EXTENSIONS.
87262
87263 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87264
87265         Merges from coreutils, etc.
87266         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
87267         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
87268         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
87269         fixing a typo.
87270         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
87271         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
87272
87273 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87274
87275         Document merge from coreutils.
87276         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
87277         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
87278         * modules/utime: Add m4/utimes-null.m4.
87279
87280 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87281
87282         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
87283         space, undoing this 2003-08-12 change:
87284         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
87285
87286 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87287
87288         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
87289         strtoul.c from libc, undoing this 2003-08-12 change:
87290         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
87291
87292 2003-08-16  Jim Meyering  <jim@meyering.net>
87293
87294         Merges from coreutils.
87295         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
87296         prefix.  Adjust cache variables similarly.  Create 500 rather than
87297         just 300 files, to exercise bug on Darwin6.5, too.
87298         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
87299         $missing_dir.
87300         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
87301         AM_SYS_POSIX_TERMIOS.
87302         Reported by mkc@mathdogs.com.
87303         Also change use of $am_cv_sys_posix_termios
87304         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
87305         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
87306         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
87307         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
87308         in /proc/mounts until it finds one with matching device number.  This
87309         is unnecessary when the FILE argument *is* a mount point.  No stat call
87310         is necessary in that case.  So, disable the statvfs-testing code on
87311         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
87312         as RedHat bug# 84846.
87313         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
87314         to 1MB, so as not to render systems with no stack size limit (e.g.,
87315         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
87316         Include <unistd.h>.  On some systems,
87317         it is required for the definition of _SC_PAGESIZE.
87318
87319 2003-08-16  Jim Meyering  <jim@meyering.net>
87320
87321         Merge from coreutils.
87322         * lib/xstrtoimax.c: #else #if -> #elif.
87323         * lib/xstrtoumax.c: Likewise.
87324
87325 2003-08-16  Jim Meyering  <jim@meyering.net>
87326
87327         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
87328         * m4/utimes.m4: Removed.
87329         * m4/utimes-null.m4: Renamed from utimes.m4.
87330
87331         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
87332         to 1MB, so as not to render systems with no stack size limit (e.g.,
87333         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
87334         Include <unistd.h>.  On some systems,
87335         it is required for the definition of _SC_PAGESIZE.
87336
87337 2003-08-16  Jim Meyering  <jim@meyering.net>
87338         and Paul Eggert  <eggert@cs.ucla.edu>
87339
87340         Merges from coreutils, etc.
87341
87342         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
87343         using the latest version from cvs.  This avoids problems with #line
87344         directives using a vendor (Sun) compiler.
87345         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
87346         Don't set GETGROUPS_LIB here; now it's
87347         done via getgroups.m4's wrapper function.
87348         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
87349         rather than just in sh-util/configure.in, so that the
87350         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
87351         same.
87352         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
87353         AC_FUNC_GETLOADAVG where to find getloadavg.c.
87354         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
87355         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
87356         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
87357         Remove code that is now done by the newly-required macros.
87358         Append $(EXEEXT) to DF_PROG.
87359         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
87360         Do not invoke or require the following here,
87361         since prereq.m4 or some gnulib .m4 now does this for us:
87362         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
87363         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
87364         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
87365         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
87366         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
87367         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
87368         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
87369         AC_FUNC_OBSTACK.
87370         Do not replace the following functions, as this is now the job
87371         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
87372         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
87373         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
87374         atexit getpass, strdup, getpagesize.
87375         Replace 'raise'.
87376         Do not check for the following functions, as this is now the job
87377         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
87378         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
87379         setregid.
87380         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
87381         Check for sys/sysctl.h.
87382         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
87383         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
87384         of checking for ssize_t ourselves.
87385
87386         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
87387         Require every macro that gnulib/modules/* suggests for us.
87388         (jm_PREREQ_ADDEXT): New macro.
87389         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
87390         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
87391
87392         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
87393         (gl_PHYSMEM): Use it.
87394         Also check for `table' function.
87395         Check for new headers and functions.
87396         Add check for sys/sysmp.h.
87397         With suggestions from Kaveh Ghazi.
87398         Ignore headers that are present but cannot be compiled.  This
87399         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
87400         C 5.4.
87401
87402 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87403
87404         Document merge from coreutils.
87405         * modules/userspec: Depend on posixver.
87406         * modules/strftime: Depend on tzset.
87407
87408 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87409
87410         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
87411         rather than tab, after '#' in shell-script copyright notices.
87412         Suggested by Bruno Haible.
87413
87414 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87415
87416         * config/srclist-update: Use three spaces, rather than tab, after '#'
87417         in shell-script copyright notices.  Suggested by Bruno Haible.
87418         Remove unnecessary parenthesization in regular expression.
87419
87420 2003-08-15  Jim Meyering  <jim@meyering.net>
87421
87422         Merge from coreutils.
87423         * lib/xgethostname.c: Include <stdlib.h>.
87424         (xghostname): Don't exit for anything other than memory-related
87425         failure; just return NULL.
87426         * lib/userspec.c: Include "posixver.h".
87427         (parse_user_spec): Accept `.' as a separator only
87428         in pre-POSIX-200112 mode.
87429         * lib/strtoimax.c: Use #elif rather than #else #if.
87430         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
87431         Remove function, now that we can rely on a working tzset function.
87432         [!_LIBC]: Ensure that the required autoconf test has been run.
87433         [!defined _NL_CURRENT && HAVE_STRFTIME]:
87434         Use underlying_strftime for %r.
87435         * lib/sha.c: Merge in some clean-up and optimization changes from
87436         glibc.
87437         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
87438         Ensure that it is a multiple of 64.
87439         Rearrange loop exit tests so as to avoid performing an
87440         additional fread after encountering an error or EOF.
87441         * lib/realloc.c: Update copyright date.
87442
87443 2003-08-15  Jim Meyering  <jim@meyering.net>
87444         and Paul Eggert  <eggert@twinsun.com>
87445
87446         Merge from coreutils.
87447         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
87448         member but strut utmpx does not.  Needed for AIX 4.3.3.
87449         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
87450
87451 2003-08-15  Jim Meyering  <jim@meyering.net>
87452         and Paul Eggert  <eggert@cs.ucla.edu>
87453
87454         Merges from coreutils, etc.
87455         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
87456         Require gl_FUNC_TZSET_CLOBBER.
87457         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
87458         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
87459         members.
87460
87461 2003-08-14  Paul Eggert  <eggert@twinsun.com>
87462
87463         Help the merge from coreutils.
87464         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
87465         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
87466         * m4/tzset.m4: Use it too.
87467
87468 2003-08-14  Paul Eggert  <eggert@twinsun.com>
87469
87470         * modules/tzset: New file.
87471
87472 2003-08-14  Jim Meyering  <jim@meyering.net>
87473
87474         Merges from coreutils.
87475         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
87476         variable names, rather than @FNMATCH_H@.
87477         * modules/alloca: Likewise for $(ALLOCA_H).
87478
87479         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
87480         the three copies of the literal target, `fnmatch.h'.
87481         * modules/alloca (alloca.h): Likewise.
87482
87483 2003-08-14  Jim Meyering  <jim@meyering.net>
87484
87485         Merge from coreutils.
87486         * m4/tzset.m4: New file.
87487         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
87488         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
87489         otherwise, AIX 5.1 systems would end up using the latter.
87490         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
87491         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
87492         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
87493         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
87494
87495 2003-08-14  Jim Meyering  <jim@meyering.net>
87496
87497         Merge from coreutils.
87498         * lib/obstack.h: Whitespace changes.
87499         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
87500         and xcalloc return values.
87501         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
87502         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
87503         hang on OSF/1 5.1 for DIR on both local and remote file systems.
87504         Reported by (and fix confirmed by) Nelson H. F. Beebe.
87505         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
87506         error from mntctl.
87507         Use mntctl's return value to drive the entry-processing loop, since
87508         we can't rely on the value of the vmt_length member in the last
87509         entry.  On some systems doing so could result in exhausting
87510         virtual memory.  Based in part on a patch from Mike Jetzer.
87511
87512 2003-08-14  Jim Meyering  <jim@meyering.net>
87513         and Paul Eggert  <eggert@twinsun.com>
87514
87515         Merges from coreutils, plus other fixes.
87516         * lib/physmem.c: Merge in portability changes from gcc/libiberty
87517         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
87518         for credits and details.  Thanks to Kaveh Ghazi for helping
87519         to keep these files in sync.
87520         (ARRAY_SIZE): Define it.
87521         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
87522         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
87523         (memcasecmp): Don't assume size_t fits in unsigned int.
87524         Remove casts and duplicate code.
87525         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
87526         (memcpy): Remove definition.
87527         Merge in some clean-up and optimization changes from glibc.
87528         [BLOCKSIZE]: Move definition to top of file.
87529         Ensure that it is a multiple of 64.
87530         Rearrange loop exit tests so as to avoid performing an
87531         additional fread after encountering an error or EOF.
87532         * lib/md5.h (md5_uintptr): Define.
87533         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
87534         return to the initial working directory.  Preserve errno
87535         for caller.
87536         * lib/idcache.c: Include "xalloc.h".
87537         (xmalloc, xrealloc): Remove decls.
87538         (getuser): Remove casts no longer required in C89.
87539         * lib/human.c: Include stdio.h, for sprintf.
87540         * lib/group-member.c: Include "xalloc.h".
87541         (xmalloc, xrealloc): Remove decls.
87542         (get_group_info): Remove casts no longer required in C89.
87543         * lib/getusershell.c (readname): Remove casts no longer required in
87544         C89.
87545         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
87546         * lib/getline.c: Whitespace fix, from coreutils.
87547
87548 2003-08-13  Paul Eggert  <eggert@twinsun.com>
87549
87550         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
87551         Check for isascii.
87552
87553         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
87554         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
87555         Undo previous (whitespace-only) change.
87556
87557 2003-08-13  Paul Eggert  <eggert@twinsun.com>
87558
87559         * lib/exclude.c: Include <ctype.h>
87560         (IN_CTYPE_DOMAIN): New macro.
87561         (is_space): New fn.
87562         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
87563         and empty lines.
87564
87565         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
87566         Undo previous (whitespace-only) change.
87567
87568 2003-08-13  Paul Eggert  <eggert@twinsun.com>
87569
87570         * config/srclist-update: Change update back to the old behavior,
87571         leaving whitespace alone.  Use one 'sed' command rather than a
87572         pipeline.
87573         (fixlicense): Now a variable, not a function.
87574         (remove_trailing_blanks): Remove.
87575         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
87576         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
87577         Undo previous (whitespace-only) change.
87578
87579 2003-08-12  Paul Eggert  <eggert@twinsun.com>
87580
87581         Merge from coreutils.
87582         * modules/euidaccess: Add lib_SOURCES, include for new
87583         file euidaccess.h
87584
87585 2003-08-12  Paul Eggert  <eggert@twinsun.com>
87586
87587         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
87588         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
87589         Normalize leading white space and remove trailing white space.
87590
87591         Merge from coreutils
87592         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
87593
87594         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
87595         0.12.1.  These files are now being upgraded automatically by
87596         ../config/srclist-update.
87597
87598 2003-08-12  Paul Eggert  <eggert@twinsun.com>
87599
87600         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
87601         Normalize leading white space and remove trailing white space.
87602         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
87603         notice, as per ../config/srclist-update.
87604
87605         Merge from coreutils.
87606         * lib/euidaccess.h: New file.
87607         * lib/euidaccess.c: Include it.
87608         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
87609         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
87610         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
87611
87612 2003-08-12  Paul Eggert  <eggert@twinsun.com>
87613
87614         * config/srclist-update: Add copyright notice.
87615         (remove_id_lines, remove_trailing_blanks): New constants.
87616         (fixfile): Use them to normalize spacing a bit in copied files.
87617         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
87618         Normalize leading white space and remove trailing white space.
87619
87620         * config/texinfo.tex: Sync with texinfo.
87621
87622         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
87623         strtoul.c from libc, to merge coreutils whitespace changes.
87624
87625         * config/srclist.txt: Get the following m4 files from gettext:
87626         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
87627         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
87628         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
87629         wint_t.m4.
87630
87631 2003-08-12  Karl Berry  <karl@gnu.org>
87632
87633         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
87634         been made.
87635
87636 2003-08-11  Paul Eggert  <eggert@twinsun.com>
87637
87638         * modules/gnu-source, m4/gnu-source.m4:
87639         Remove; we're assuming Autoconf 2.54 or later now.
87640         Suggested by Bruno Haible.
87641         * MODULES.html.sh (func_all_modules): Remove gnu-source.
87642
87643 2003-08-11  Bruno Haible  <bruno@clisp.org>
87644
87645         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
87646
87647 2003-08-11  Bruno Haible  <bruno@clisp.org>
87648
87649         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
87650         (vasnprintf): Use it instead of wcslen.
87651
87652 2003-08-11  Bruno Haible  <bruno@clisp.org>
87653
87654         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
87655         value to ensure that _Bool promotes to int. Use #define for _Bool when
87656         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
87657
87658 2003-08-10  Karl Berry  <karl@gnu.org>
87659
87660         * lib/regex.h: update from libc (whitespace fix).
87661
87662 2003-08-09  Paul Eggert  <eggert@twinsun.com>
87663
87664         Merge some files from coreutils.  These changes were
87665         originally made by Jim Meyering.
87666         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
87667         many older Unixes require this.
87668         * lib/alloca.c (alloca): Remove cast to argument of free;
87669         no longer needed in C89.
87670         * lib/alloca_.h, regex.h: Fix white space to match
87671         what GNU indent does.
87672
87673 2003-08-09  Paul Eggert  <eggert@twinsun.com>
87674
87675         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
87676         apparently Emacs's Unicode mode got confused before my 2003-08-05
87677         checkin.
87678
87679 2003-08-08  Paul Eggert  <eggert@twinsun.com>
87680
87681         * m4/extensions.m4: New file.
87682         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
87683         Require gl_USE_SYSTEM_EXTENSIONS.
87684         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
87685         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
87686
87687 2003-08-08  Paul Eggert  <eggert@twinsun.com>
87688
87689         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
87690         * modules/extensions, modules/gnu-source: New files.
87691         * modules/timespec, modules/unlocked-io: Depend on extensions.
87692
87693 2003-08-07  Paul Eggert  <eggert@twinsun.com>
87694
87695         * modules/restrict: New file.
87696         * MODULES.html.sh (func_all_modules): Add restrict.
87697         * modules/regex: Depend on restrict.
87698
87699 2003-08-07  Paul Eggert  <eggert@twinsun.com>
87700
87701         * m4/restrict.m4: New file.
87702         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
87703
87704 2003-08-07  Bruno Haible  <bruno@clisp.org>
87705
87706         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
87707         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
87708
87709 2003-08-07  Bruno Haible  <bruno@clisp.org>
87710
87711         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
87712         makes the module 'getndelim2' compatible with the module 'getline'.
87713
87714 2003-08-05  Paul Eggert  <eggert@twinsun.com>
87715
87716         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
87717         byte with "\201" to avoid glitches when editing that source file
87718         with multi-gnome-terminal.
87719
87720 2003-08-05  Paul Eggert  <eggert@twinsun.com>
87721
87722         * lib/bumpalloc.h: Remove.
87723
87724 2003-08-05  Paul Eggert  <eggert@twinsun.com>
87725
87726         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
87727         * modules/bumpalloc: Remove.
87728
87729 2003-08-04  Paul Eggert  <eggert@twinsun.com>
87730
87731         * lib/getloadavg.c: Change copyright notice and spacing to conform to
87732         GNU coding style.
87733
87734         Merge from coreutils.
87735         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
87736         1. From glibc.
87737         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
87738         from Karl Berry, implemented by Jim Meyering.
87739         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
87740         from Dmitry V. Levin.
87741         Remove anachronistic cast of xrealloc.
87742         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
87743         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
87744         type. Otherwise, it wouldn't compile with at least /bin/cc on
87745         ymp-cray-unicos9.0.2.X.
87746         Combine two mostly-identical uses of alloca into one.
87747         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
87748
87749 2003-08-04  Dave Love  <d.love@dl.ac.uk>
87750
87751         [From Emacs.]
87752
87753         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
87754         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
87755         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
87756         obsolete NLIST_NAME_UNION.
87757         [__GNU__]: Undef BSD and FSCALE.
87758         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
87759
87760 2003-08-03  Paul Eggert  <eggert@twinsun.com>
87761
87762         * lib/stdbool_.h (_Bool): Make it signed char, instead of
87763         an enum type, so that it's guaranteed to promote to int.  See:
87764         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
87765
87766 2003-08-03  Karl Berry  <karl@gnu.org>
87767
87768         * config/depcomp: update from automake.
87769
87770 2003-07-31  Paul Eggert  <eggert@twinsun.com>
87771
87772         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
87773         (strerror): Don't assume that a printable int fits in 14 bytes.
87774
87775 2003-07-31  Bruno Haible  <bruno@clisp.org>
87776
87777         * modules/getpass-gnu: New file.
87778         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
87779
87780 2003-07-31  Bruno Haible  <bruno@clisp.org>
87781
87782         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
87783
87784 2003-07-24  Karl Berry  <karl@gnu.org>
87785
87786         * config/missing: update from automake.
87787
87788 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
87789             Bruno Haible  <bruno@clisp.org>
87790
87791         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
87792         * lib/getline.c (getline, getdelim): Likewise.
87793         Remove _GNU_SOURCE define; now it's defined in config.h through
87794         m4/getline.m4.
87795
87796 2003-07-23  Karl Berry  <karl@gnu.org>
87797
87798         * config/config.sub: update from prep.
87799
87800 2003-07-22  Paul Eggert  <eggert@twinsun.com>
87801
87802         * modules/xalloc (Depends-on): Add exitfail.
87803         * modules/xmemcoll: Likewise.
87804
87805 2003-07-22  Paul Eggert  <eggert@twinsun.com>
87806
87807         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
87808         over-parenthesization in macros.
87809
87810         Sync with coreutils.
87811
87812         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
87813         required by C99.
87814
87815         Use `exit_failure' for xalloc and xmemcoll instead of their own
87816         private exit-failure variables.
87817         * lib/xalloc.h (xalloc_exit_failure): Remove.
87818         * lib/xmalloc.c: Likewise.  Include exitfail.h.
87819         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
87820         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
87821         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
87822         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
87823
87824 2003-07-20  Jim Meyering  <jim@meyering.net>
87825
87826         * modules/closeout (Depends-on): Add exitfail.
87827         Suggestion from Bruno Haible.
87828
87829 2003-07-19  Karl Berry  <karl@gnu.org>
87830
87831         * config/config.sub: update from prep.
87832
87833 2003-07-18  Paul Eggert  <eggert@twinsun.com>
87834
87835         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
87836         Remove.
87837         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
87838         to test that it can stand by itself.  Include "exitfail.h".
87839         Clients should set exit_failure instead.
87840         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
87841
87842 2003-07-18  Bruno Haible  <bruno@clisp.org>
87843
87844         * modules/getndelim2: New file.
87845         * modules/getline: Share files with module getndelim2.
87846         * modules/getnline: Depend on getndelim2 instead of sharing files with
87847         it. Add getnline.c to lib_SOURCES.
87848         * MODULES.html.sh (func_all_modules): Add getndelim2.
87849
87850 2003-07-18  Bruno Haible  <bruno@clisp.org>
87851
87852         * m4/getndelim2.m4: New file.
87853         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
87854         invoke gl_PREREQ_GETNDELIM2.
87855         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
87856         gl_PREREQ_GETNDELIM2.
87857         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
87858         gl_GETNDELIM2.
87859
87860 2003-07-18  Bruno Haible  <bruno@clisp.org>
87861
87862         * lib/getndelim2.h: New file.
87863         * lib/getndelim2.c: Make into a module of its own. Include config.h,
87864         getndelim2.h.
87865         (getndelim2): Make non-static. Change return type to ssize_t.
87866         * lib/getline.h: Change argument names.
87867         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
87868         * lib/getnline.c: Include getndelim2.h.
87869
87870 2003-07-18  Andreas Schwab  <schwab@suse.de>
87871
87872         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
87873
87874 2003-07-17  Karl Berry  <karl@gnu.org>
87875
87876         * config/config.sub: update from prep.
87877
87878 2003-07-17  Bruno Haible  <bruno@clisp.org>
87879
87880         * modules/getnline: New file.
87881         * modules/getline: Add lib/getndelim2.c to source file list.
87882         * MODULES.html.sh (func_all_modules): Add getnline.
87883
87884 2003-07-17  Bruno Haible  <bruno@clisp.org>
87885
87886         * m4/getnline.m4: New file.
87887
87888 2003-07-17  Bruno Haible  <bruno@clisp.org>
87889
87890         * m4/Makefile.am.in: Remove file.
87891         * m4/Makefile.am: Remove file.
87892         * m4/Makefile.in: Remove file.
87893
87894 2003-07-17  Bruno Haible  <bruno@clisp.org>
87895
87896         * lib/getnline.h: New file.
87897         * lib/getnline.c: New file.
87898         * lib/getndelim2.c: New file, extracted from getline.c.
87899         (getndelim2): Renamed from getdelim2, with added nmax argument.
87900         * lib/getline.c: Include getndelim2.c.
87901         (getdelim2): Moved out to getndelim2.c.
87902         (getline, getdelim): Update.
87903
87904 2003-07-17  Bruno Haible  <bruno@clisp.org>
87905
87906         * lib/Makefile.am: Remove file.
87907         * lib/Makefile.in: Remove file.
87908
87909 2003-07-17  Bruno Haible  <bruno@clisp.org>
87910
87911         * configure.in: Remove file.
87912         * Makefile.in: Remove file.
87913
87914 2003-07-17  Bruno Haible  <bruno@clisp.org>
87915
87916         * MODULES.html.sh: Put the </BODY> right before </HTML>.
87917
87918 2003-07-16  Karl Berry  <karl@gnu.org>
87919
87920         * config/srclist-update: was running fixlicense twice, which caused
87921                 texinfo.tex to be nullified for some reason.  Simplify,
87922                 $gplsrc is no longer needed as far as I can see?
87923
87924 2003-07-16  Jim Meyering  <jim@meyering.net>
87925
87926         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
87927
87928 2003-07-15  Paul Eggert  <eggert@twinsun.com>
87929
87930         * config/srclist.txt: Get the following files from gettext-runtime/intl
87931         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
87932         ref-del.sin.  From Bruno Haible.
87933         * config/srclist-update (fixfile): Change grep pattern again, since the
87934         previous fix didn't work (there was another trailing $).  Use
87935         '[$]' to escape the $s.
87936
87937 2003-07-15  Karl Berry  <karl@gnu.org>
87938
87939         * lib/vasnprintf.c: update from gettext.
87940
87941 2003-07-15  Karl Berry  <karl@gnu.org>
87942
87943         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
87944         gets expanded when surrounded by '$'.
87945
87946 2003-07-15  Jim Meyering  <jim@meyering.net>
87947
87948         * modules/save-cwd: Don't depend on error.  From Derek Price.
87949
87950 2003-07-15  Jim Meyering  <jim@meyering.net>
87951
87952         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
87953
87954 2003-07-14  Simon Josefsson  <jas@extundo.com>
87955
87956         * modules/mempcpy: New file.
87957         * MODULES.html.sh (func_all_modules): Add mempcpy.
87958
87959 2003-07-14  Simon Josefsson  <jas@extundo.com>
87960
87961         * m4/mempcpy.m4: New file.
87962
87963 2003-07-14  Simon Josefsson  <jas@extundo.com>
87964
87965         * lib/mempcpy.h: New file.
87966         * lib/mempcpy.c: New file.
87967
87968 2003-07-14  Paul Eggert  <eggert@twinsun.com>
87969
87970         * modules/getdate, modules/posixtm: Depend on mktime.
87971
87972 2003-07-14  Paul Eggert  <eggert@twinsun.com>
87973
87974         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
87975         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
87976         unicodeio.c, unicodeio.h, unlocked-io.h:
87977         Switch from LGPL to GPL.
87978
87979 2003-07-14  Paul Eggert  <eggert@twinsun.com>
87980
87981         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
87982         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
87983         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
87984         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
87985         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
87986         updated automatically by ../config/srclist-update.  This changes
87987         their license from LPGL to GPL.
87988
87989 2003-07-14  Paul Eggert  <eggert@twinsun.com>
87990
87991         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
87992         assumed to refer to the root of the most recent stable gettext version.
87993         * config/srclistvars.sh: Add defaults for eggert.
87994         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
87995         Match "This program" as well as "The program".  This is needed
87996         for gettext.
87997
87998 2003-07-14  Jim Meyering  <jim@meyering.net>
87999
88000         Don't emit diagnostics.  Let callers do that.
88001         * lib/save-cwd.c: Don't include "error.h".
88002         (save_cwd): Don't call error.  Ensure that errno is valid
88003         when returning nonzero.
88004
88005         * lib/save-cwd.h (restore_cwd): Update prototype.
88006         * lib/save-cwd.c (restore_cwd): Remove two parameters.
88007         Simplify.  Don't call error upon failure.  Let callers do that.
88008         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
88009         when auditing is enabled.  But don't bother updating the #if.
88010
88011 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
88012
88013         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
88014         it breaks C++ compilation.
88015         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
88016
88017 2003-07-10  Simon Josefsson  <jas@extundo.com>
88018
88019         * modules/strchrnul (Makefile.am): Add strchrnul.h.
88020
88021 2003-07-10  Jim Meyering  <jim@meyering.net>
88022
88023         * m4/clock_time.m4: Remove trailing blank.
88024         * m4/intmax_t.m4: Likewise.
88025
88026 2003-07-10  Jim Meyering  <jim@meyering.net>
88027
88028         * lib/vasnprintf.c: Remove trailing blanks.
88029         Make cpp indentation consistent.
88030
88031 2003-07-09  Paul Eggert  <eggert@twinsun.com>
88032
88033         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
88034         posixver.c, strftime.c, strnlen.c, strverscmp.c:
88035         Switch from LGPL to GPL.
88036
88037 2003-07-09  Paul Eggert  <eggert@twinsun.com>
88038
88039         * config/srclist.txt: Sort sublists.  Add
88040         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
88041         that differ from gnulib for one reason or another; we'd like this list
88042         to be smaller but for now let's document what we have.
88043
88044 2003-07-08  Paul Eggert  <eggert@twinsun.com>
88045
88046         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
88047         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
88048         and sweeter "eval x=$x".
88049         * config/srclist.txt: Get lib/argp* from glibc.
88050
88051 2003-07-07  Paul Eggert  <eggert@twinsun.com>
88052
88053         * lib/mktime.c: Fix some boundary cases and remove need for floating
88054         point.
88055
88056         Issue a compile-time diagnostic if time_t is floating point, or if
88057         two's complement arithmetic is not in effect, or if arithmetic
88058         right shift does not propagate the sign.  These assumptions were
88059         all in the original code but they weren't checked.
88060
88061         (TIME_T_MIDPOINT, verify): New macros.
88062         (__isleap): Remove; it has integer overflow problems.
88063         (leapyear): New function, without those problems.
88064         (ydhms_tm_diff): Remove; splitting into two parts.
88065         (ydhms_diff): New function, containing the arithmetic part of
88066         the old ydhms_tm_diff function.  Issue a compile-time
88067         diagnostic if we are not using C99 integer division.
88068         Avoid casts when possible.
88069         (guess_time_tm): New function, containing the checking part of
88070         the old ydhms_tm_diff function.  Return the new value, rather than
88071         the difference between it and the old.  Accept a new argument T
88072         so that *T specifies the old value.  Check for overflow in the result.
88073
88074         (__mktime_internal): Use a time_t offset, not a long int offset.
88075         This undoes the 2003-06-04 change, which is no longer needed now
88076         that we have better overflow checking.
88077         (localtime_offset): Likewise.
88078
88079         (__mktime_internal): Avoid harmful overflow on hosts where time_t
88080         and long are 64-bit but int is only 32-bit.
88081         (ydhms_diff): Use long int to store year1 and yday1.
88082         Issue a compile-time diagnostic if long int is not wide enough.
88083
88084         (__mktime_internal): Use long int to store adjusted year and yday.
88085         Use plain C rather than preprocessor commands, if that doesn't
88086         affect efficiency.
88087         Check for overflow (and try to repair) after each probe
88088         rather than checking only at the very end.  This avoids some bugs
88089         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
88090         does not equal GMT offset at maximum time).
88091         Use integer to check for overflow rather than floating point; this
88092         is more portable to non-IEEE hosts, and is a tad faster.
88093         When we detect that we are oscillating between two values,
88094         don't check whether tm_isdst has the requested value, since
88095         we already know the answer.  When tm_isdst has the wrong value,
88096         use a different heuristic to find the right one, based on the
88097         extreme values actually observed in practice in tz2003a,
88098         rather than the (overly optimistic) "previous 3 calendar quarters".
88099
88100         (not_equal_tm, print_tm, check_result): Use "const T" rather than
88101         "T const" to accommodate glibc style.
88102         (check_result): Use less-confusing report format.  "long" -> "long int.
88103         (main): Likewise.
88104         Don't loop if the iteration overflows time_t.
88105         Allow a negative step in the iteration.
88106
88107 2003-07-06  Karl Berry  <karl@gnu.org>
88108
88109         * config/depcomp: update from automake.
88110         * config/config.sub: update from prep.
88111
88112 2003-07-03  Karl Berry  <karl@gnu.org>
88113
88114         * config/config.guess: update from prep.
88115
88116 2003-07-01  Paul Eggert  <eggert@twinsun.com>
88117
88118         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
88119         xreadlink.c now includes it unconditionally.
88120
88121 2003-07-01  Paul Eggert  <eggert@twinsun.com>
88122
88123         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
88124         having it depend on HAVE_SYS_TYPES_H.
88125
88126 2003-07-01  Bruno Haible  <bruno@clisp.org>
88127
88128         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
88129         <sys/types.h> should be sufficient.
88130         Reported by Paul Eggert.
88131
88132 2003-06-26  Karl Berry  <karl@gnu.org>
88133
88134         * config/depcomp: update from automake.
88135
88136 2003-06-26  Bruno Haible  <bruno@clisp.org>
88137
88138         * modules/human: Depend on module stdbool.
88139
88140 2003-06-25  Bruno Haible  <bruno@clisp.org>
88141
88142         * modules/readlink: New file.
88143         * modules/xreadlink: Depend on it.
88144         * MODULES.html.sh (func_all_modules): Add readlink.
88145
88146 2003-06-25  Bruno Haible  <bruno@clisp.org>
88147
88148         * m4/readlink.m4: New file.
88149
88150 2003-06-25  Bruno Haible  <bruno@clisp.org>
88151
88152         * lib/readlink.c: New file.
88153
88154 2003-06-22  Karl Berry  <karl@gnu.org>
88155
88156         * config/srclist.txt: update mkinstalldirs from automake.
88157         * config/mkinstalldirs: update.
88158
88159 2003-06-22  Bruno Haible  <bruno@clisp.org>
88160
88161         Portability to mingw32.
88162         * m4/ssize_t.m4: New file, from GNU gettext.
88163         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
88164         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
88165
88166 2003-06-22  Bruno Haible  <bruno@clisp.org>
88167
88168         * modules/safe-read: Add m4/ssize_t.m4.
88169         * modules/xreadlink: Add m4/ssize_t.m4.
88170
88171 2003-06-20  Bruno Haible  <bruno@clisp.org>
88172
88173         Assume C89, so PARAMS isn't needed.
88174         * lib/unicodeio.h (PARAMS): Remove.
88175         * lib/unicodeio.c: Don't use PARAMS.
88176
88177 2003-06-18  Karl Berry  <karl@gnu.org>
88178
88179         * config/config.{guess,sub}: update from prep.
88180
88181 2003-06-18  Jim Meyering  <jim@meyering.net>
88182
88183         Merge changes from coreutils.
88184         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
88185         Remove explicit declarations of xmalloc and realloc.
88186         Include xalloc.h.
88187         (read_utmp): Remove anachronistic cast of xmalloc.
88188
88189 2003-06-17  Paul Eggert  <eggert@twinsun.com>
88190
88191         Assume C89, so PARAMS isn't needed.
88192         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
88193         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
88194         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
88195         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
88196         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
88197         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
88198         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
88199         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
88200         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
88201         lib/xstrtod.h, lib/xstrtol.h: Likewise.
88202         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
88203         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
88204         no longer needed. Anyway, config.h should always be included before any
88205         other file.
88206
88207 2003-06-11  Simon Josefsson  <jas@extundo.com>
88208
88209         * modules/sysexits: New file.
88210         * MODULES.html.sh (func_all_modules): Add sysexits.
88211
88212 2003-06-11  Simon Josefsson  <jas@extundo.com>
88213
88214         * lib/sysexit_.h: New file.
88215
88216 2003-06-11  Derek Price  <derek@ximbiot.com>
88217
88218         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
88219         necessary.
88220
88221 2003-06-11  Bruno Haible  <bruno@clisp.org>
88222
88223         * m4/sysexits.m4: New file.
88224
88225 2003-06-10  Simon Josefsson  <jas@extundo.com>
88226
88227         * lib/argp.h: New file, from glibc.
88228         * lib/argp-ba.c: New file, from glibc.
88229         * lib/argp-eexst.c: New file, from glibc.
88230         * lib/argp-fmtstream.c: New file, from glibc.
88231         * lib/argp-fmtstream.h: New file, from glibc.
88232         * lib/argp-fs-xinl.c: New file, from glibc.
88233         * lib/argp-help.c: New file, from glibc.
88234         * lib/argp-namefrob.h: New file, from glibc.
88235         * lib/argp-parse.c: New file, from glibc.
88236         * lib/argp-pv.c: New file, from glibc.
88237         * lib/argp-pvh.c: New file, from glibc.
88238         * lib/argp-xinl.c: New file, from glibc.
88239
88240 2003-06-10  Simon Josefsson  <jas@extundo.com>
88241
88242         * modules/strchrnul: New file.
88243
88244 2003-06-10  Simon Josefsson  <jas@extundo.com>
88245
88246         * modules/argp: New file.
88247
88248 2003-06-10  Simon Josefsson  <jas@extundo.com>
88249
88250         * m4/strchrnul.m4: New file.
88251
88252 2003-06-10  Simon Josefsson  <jas@extundo.com>
88253
88254         * lib/strchrnul.h: New file.
88255         * lib/strchrnul.c: New file.
88256
88257 2003-06-10  Bruno Haible  <bruno@clisp.org>
88258
88259         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
88260
88261 2003-06-07  Karl Berry  <karl@gnu.org>
88262
88263         * config/config.{guess,sub}: update from prep.
88264
88265 2003-06-07  Jim Meyering  <jim@meyering.net>
88266
88267         * modules/strtod: Use $(...) notation, not @...@ for
88268         AC_REPLACE'd variables.
88269         * modules/localcharset: Likewise.
88270
88271 2003-06-07  Jim Meyering  <jim@meyering.net>
88272
88273         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
88274         in place of my name in the copyright comment.
88275         Remove definition and uses of __P.
88276
88277         From coreutils.
88278         * lib/stat.c: Don't declare xmalloc explicitly.
88279         Instead, include "xalloc.h".
88280         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
88281         xrealloc, and xcalloc return values.
88282         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
88283         Improve comment.
88284         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
88285
88286 2003-06-07  Bruno Haible  <bruno@clisp.org>
88287
88288         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
88289         avoid AC_CONFIG_LINKS.
88290         * modules/fnmatch (Makefile.am): Use explicit creation rule for
88291         fnmatch.h, to avoid AC_CONFIG_LINKS.
88292         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
88293
88294 2003-06-07  Bruno Haible  <bruno@clisp.org>
88295
88296         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
88297         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
88298         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
88299         directory.
88300         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
88301         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
88302         directory.
88303
88304 2003-06-06  Jim Meyering  <jim@meyering.net>
88305
88306         Merge from coreutils.
88307         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
88308         Consolidate declarations and initializations of *_base* locals.
88309
88310         Merge from coreutils.
88311         This avoids a core dump on systems without GNU putenv,
88312         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
88313         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
88314         (unsetenv): New static function, from GNU libc.
88315         (rpl_putenv): Use it.
88316
88317         * lib/modechange.c: Remove trailing blanks.
88318
88319         Merge from coreutils.
88320         * lib/fsusage.c: Remove declaration of statfs.
88321         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
88322
88323         * lib/posixtm.c: Include <stdbool.h> unconditionally.
88324
88325 2003-06-06  Jim Meyering  <jim@meyering.net>
88326
88327         * lib/stdbool_.h: Renamed from stdbool.h.in.
88328
88329 2003-06-06  Jim Meyering  <jim@meyering.net>
88330             Bruno Haible  <bruno@clisp.org>
88331
88332         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
88333         Adjust Makefile.am snippet not to redirect directly to target.
88334         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
88335
88336 2003-06-05  Paul Eggert  <eggert@twinsun.com>
88337
88338         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
88339         mismatch, look in future quarters as well as past.  This fixes a
88340         bug when processing fall-backwards gaps immediately after a long
88341         period of daylight-saving time.
88342
88343         * lib/mktime.c: Assume freestanding C89 or better.
88344         (HAVE_LIMITS_H): Remove.  Assume it's 1.
88345         (__P): Remove; not used.
88346         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
88347         (mktime, not_equal_tm, print_tm, check_result,
88348         main): Use prototypes.  Use const * where appropriate.
88349         (main): Fix typo in testing code that uncovered by above changes.
88350         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
88351
88352 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88353
88354         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
88355         locale.h, localeconv.  This merges changes from coreutils.
88356
88357         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
88358         It can be removed after the next Autoconf is released.
88359         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
88360         needed.
88361
88362 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88363
88364         * lib/mktime.c: Fix Debian bug 177940
88365         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
88366         (localtime_offset): Now long int, not time_t, because we want it
88367         to be guaranteed to be signed.  All uses changed.
88368         (__mktime_internal): If overflow would occur when adding offset,
88369         don't add it.
88370
88371         Merge 'human' changes from coreutils.  Rewrite to support
88372         locale-specific notations like thousands separators.
88373         * lib/human.c: Simplify authorship notice.
88374         Include human.h immediately after config.h.
88375         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
88376         <limits.h>: Do not include, since human.h does.
88377         (SIZE_MAX, UINTMAX_MAX): New macros.
88378         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
88379         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
88380         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
88381         (power_letter): Renamed from suffixes.
88382         (generate_suffix_backwards): Remove.
88383         (adjust_value): Now takes int style (because of human.h changes)
88384         and long double value (for greater precision on some platforms).
88385         (group_number): New function.
88386         (human_readable): Use it.  Use integer options, not enum.
88387         Put the options before the sizes in the arg list.
88388         Support all the new options.
88389         The old human_readable function has been removed;
88390         use inttostr.h instead.
88391         (human_readable, default_block_size, humblock):
88392         Use uintmax_t, not int, for block sizes.
88393         (human_readable_inexact, block_size_types): Remove.
88394         (block_size_opts): New constant.
88395         (human_options): Renamed from human_block_size, with new signature
88396         that allows block sizes up to UINTMAX_MAX.  All callers changed.
88397         * lib/human.h: Add copyright and authorship notice.
88398         Include <limits.h> and <stdbool.h> unconditionally.
88399         (PARAMS): Remove.  All uses removed.
88400         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
88401         (enum human_inexact_style): Remove tag; now a nameless enum.
88402         (human_floor, human_ceiling, human_round_to_even): Now have
88403         values 2, 0, 1 rather than -1, 1, 0.
88404         (human_group_digits, human_suppress_point_zero, human_autoscale,
88405         human_base_1024, human_SI, human_B): New constants.
88406         (human_readable_inexact, human_block_size): Remove.
88407         (human_readable): Size args are now uintmax_t, not int.
88408         (human_options): New decl.
88409
88410         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
88411         unnecessary now that we assume C89 or better.  This change
88412         imported from coreutils.
88413
88414         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
88415         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
88416         in the 2003-05-30 sync from glibc.
88417
88418         .h files should stand alone, but we shouldn't include <sys/types.h>
88419         if we can get away with just <stddef.h>.
88420
88421         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
88422         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
88423         rather than <sys/types.h>, as we merely need size_t.
88424         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
88425         to get size_t.
88426         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
88427         Include <stdio.h>, to get FILE.
88428         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
88429         memcasecmp.h has included <stddef.h> and all we need is size_t.
88430         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
88431         our interface, instead of including <sys/types.h>
88432
88433 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88434
88435         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
88436         now, as glibc mktime is buggy on non-glibc systems.
88437
88438 2003-06-03  Karl Berry  <karl@gnu.org>
88439
88440         * config/config.sub: update from prep.
88441
88442 2003-06-02  Paul Eggert  <eggert@twinsun.com>
88443
88444         [from coreutils]
88445         Fix some minor time-related bugs with POSIX time arguments.
88446         Some valid time stamps were being rejected (notably -1, and
88447         time stamps before 1900 on 64-bit hosts).  And some invalid
88448         time stamps were being accepted, e.g. September 31.
88449
88450         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
88451         that we can return (time_t) -1 successfully.
88452         * lib/posixtm.c: Likewise.
88453         [HAVE_STDBOOL_H]: Include <stdbool.h>.
88454         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
88455         (t): Remove static var.
88456         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
88457         of static var.  All uses changed.
88458         (year): Do not reject years before 1900; they can occur with
88459         64-bit time_t.
88460         (posix_time_parse): Do not check for out-of-range components;
88461         that is now the caller's responsibility, since our checks were
88462         only approximations.
88463         (posixtime): Use mktime to check for out-of-range components,
88464         since it knows them exactly.
88465         If mktime returns (time_t) -1, check whether an error actually occurred
88466         by invoking localtime on -1.
88467         (main) [TEST_POSIXTIME]: Check for input data errors, and report
88468         posixtime failures better.
88469         Improve the test data (in comments only).
88470
88471 2003-06-02  Karl Berry  <karl@gnu.org>
88472
88473         * config/mkinstalldirs (version): new variable.
88474         (--version): new option.
88475         (usage): improve message.
88476
88477 2003-05-30  Karl Berry  <karl@gnu.org>
88478
88479         * lib/mktime.c: update from libc.
88480
88481 2003-05-30  Bruno Haible  <bruno@clisp.org>
88482
88483         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
88484         * config/config.rpath: Upgrade to gettext-0.12.1.
88485
88486 2003-05-30  Bruno Haible  <bruno@clisp.org>
88487
88488         * m4/gettext.m4: Upgrade to gettext-0.12.1.
88489         * m4/nls.m4: New file, from gettext-0.12.1.
88490         * m4/po.m4: New file, from gettext-0.12.1.
88491         * m4/progtest.m4: Upgrade to gettext-0.12.1.
88492
88493 2003-05-30  Bruno Haible  <bruno@clisp.org>
88494
88495         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
88496         * lib/localcharset.h: Likewise.
88497         * lib/localcharset.c: Likewise.
88498
88499 2003-05-29  Karl Berry  <karl@gnu.org>
88500
88501         * config/config.rpath: update from gettext.
88502
88503 2003-05-28  Paul Eggert  <eggert@twinsun.com>
88504
88505         Assume the headers required for C89 freestanding compilers.
88506         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
88507         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
88508         * m4/human.m4 (gl_HUMAN): Likewise.
88509         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
88510         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
88511         * m4/userspec.m4 (gl_USERSPEC): Likewise.
88512         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
88513         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
88514         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
88515
88516 2003-05-28  Paul Eggert  <eggert@twinsun.com>
88517
88518         Assume the headers required for C89 freestanding compilers.
88519         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
88520         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
88521         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
88522         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
88523         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
88524         define, since <limits.h> is guaranteed to do that.
88525         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
88526         * lib/exclude.c: Include <stdbool.h> unconditionally.
88527         * lib/tempname.c: Include <stddef.h> unconditionally.
88528         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
88529         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
88530         <stddef.h> does that.
88531         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
88532         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
88533         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
88534         needed.
88535         * lib/xstrtol.c: Likewise.
88536         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
88537         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
88538
88539         * lib/addext.c (addext): Use assignment rather than cast, to avoid
88540         warnings on some platforms.
88541
88542         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
88543         arbitrarily.
88544
88545 2003-05-26  Jim Meyering  <jim@meyering.net>
88546
88547         Merge in a change from coreutils:
88548         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
88549         that is guaranteed to be `no'.  Use `no_such_member' to indicate
88550         that condition, rather than `-1' which is slightly misleading.
88551         Change the name of the cache variable to have the gl_ prefix.
88552         Prompted by a patch from Richard Dawe for DJGPP.
88553
88554 2003-05-24  Karl Berry  <karl@gnu.org>
88555
88556         * config/config.guess: update from prep.
88557
88558 2003-05-22  Karl Berry  <karl@gnu.org>
88559
88560         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
88561
88562 2003-05-20  Karl Berry  <karl@gnu.org>
88563
88564         * config/config.guess: update from prep.
88565
88566 2003-05-18  Karl Berry  <karl@gnu.org>
88567
88568         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
88569         might actually be set by the user.
88570
88571         * config/depcomp, install-sh, mdate-sh: update from automake.
88572
88573 2003-05-17  Bruno Haible  <bruno@clisp.org>
88574
88575         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
88576         invalid expansion for AC_EGREP_CPP.
88577         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
88578         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
88579         Suggested by Akim Demaille <akim@epita.fr> in
88580         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
88581
88582 2003-05-12  Jim Meyering  <jim@meyering.net>
88583
88584         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
88585         the space-padded-by-default conversion specifiers, %e, %k, %l.
88586
88587 2003-05-12  Bruno Haible  <bruno@clisp.org>
88588
88589         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
88590         the string is longer than 4 KB.
88591
88592 2003-05-11  Karl Berry  <karl@gnu.org>
88593
88594         * config/config.{guess,sub}: update from prep.
88595
88596 2003-05-09  Bruno Haible  <bruno@clisp.org>
88597
88598         * modules/error: Add m4/strerror_r.m4 to file list.
88599
88600 2003-05-03  Bruno Haible  <bruno@clisp.org>
88601
88602         Upgrade to Unicode-4.0.
88603         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
88604         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
88605         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
88606         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
88607         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
88608         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
88609         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
88610         Change width of U+E0100..U+E01EF from 1 to 0.
88611
88612 2003-04-25  Jim Meyering  <jim@meyering.net>
88613
88614         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
88615         of type size_t, not int.
88616
88617 2003-04-25  Bruno Haible  <bruno@clisp.org>
88618
88619         * lib/copy-file.c: Include <stddef.h>, for size_t.
88620
88621 2003-04-21  Paul Eggert  <eggert@twinsun.com>
88622
88623         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
88624         code which expansion is under static control.  Patch imported from
88625         Akim Demaille's patch to Bison; see
88626         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
88627
88628 2003-04-14  Bruno Haible  <bruno@clisp.org>
88629
88630         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
88631
88632 2003-04-11  Jim Meyering  <jim@meyering.net>
88633
88634         Merge changes from Coreutils.
88635
88636         2003-03-22  Jim Meyering  <jim@meyering.net>
88637
88638         * lib/strftime.c (widen): Cast alloca return value to proper type.
88639
88640         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
88641
88642         From GNU libc.
88643         * lib/strftime.c (my_strftime): Handle very large width
88644         specifications for numeric values correctly.  Improve checks for
88645         overflow.
88646
88647         2003-01-19  Jim Meyering  <jim@meyering.net>
88648
88649         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
88650         definitions.
88651         (nl_get_alt_digit) [! defined my_strftime]: Define.
88652         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
88653         _nl_get_alt_digit and _nl_get_walt_digit.
88654
88655         * lib/strftime.c (my_strftime): Merge in locale-related changes from
88656         libc. These changes have no effect outside of _LIBC.
88657
88658 2003-04-10  Bruno Haible  <bruno@clisp.org>
88659
88660         * modules/findprog: New file.
88661         * MODULES.html.sh (func_all_modules): Add it.
88662
88663 2003-04-10  Bruno Haible  <bruno@clisp.org>
88664
88665         * m4/findprog.m4: New file.
88666         * m4/eaccess.m4: New file.
88667
88668 2003-04-10  Bruno Haible  <bruno@clisp.org>
88669
88670         * lib/findprog.h: New file, from GNU gettext.
88671         * lib/findprog.c: New file, from GNU gettext.
88672
88673 2003-04-05  Jim Meyering  <jim@meyering.net>
88674
88675         Merge changes from Coreutils.
88676
88677         * lib/exclude.h (PARAMS): Remove definition and uses.
88678         * lib/exclude.c: Remove uses of `PARAMS'.
88679
88680         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
88681         Add test-cases for DOS filenames. Declare program_name.
88682         (main): Set up program_name.  Patch by Rich Dawe.
88683
88684         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
88685         error from mntctl.
88686         Use mntctl's return value to drive the entry-processing loop, since
88687         we can't rely on the value of the vmt_length member in the last
88688         entry.  On some systems doing so could result in exhausting
88689         virtual memory.  Based in part on a patch from Mike Jetzer.
88690
88691 2003-04-04  Bruno Haible  <bruno@clisp.org>
88692
88693         * modules/linebreak: New file.
88694         * MODULES.html.sh (func_all_modules): Add it.
88695
88696 2003-04-04  Bruno Haible  <bruno@clisp.org>
88697
88698         * m4/linebreak.m4: New file.
88699
88700 2003-04-04  Bruno Haible  <bruno@clisp.org>
88701
88702         * lib/linebreak.h: New file, from GNU gettext.
88703         * lib/linebreak.c: New file, from GNU gettext with slight
88704         modifications.
88705         * lib/lbrkprop.h: New file, from GNU gettext.
88706
88707 2003-04-03  Bruno Haible  <bruno@clisp.org>
88708
88709         * modules/utf8-ucs4: New file.
88710         * modules/utf16-ucs4: New file.
88711         * modules/ucs4-utf8: New file.
88712         * modules/ucs4-utf16: New file.
88713         * MODULES.html.sh (func_all_modules): Add them.
88714
88715 2003-04-03  Bruno Haible  <bruno@clisp.org>
88716
88717         * m4/utf-ucs4.m4: New file.
88718         * m4/ucs4-utf.m4: New file.
88719
88720 2003-04-03  Bruno Haible  <bruno@clisp.org>
88721
88722         * lib/utf8-ucs4.h: New file, from GNU gettext.
88723         * lib/utf16-ucs4.h: New file, from GNU gettext.
88724         * lib/ucs4-utf8.h: New file, from GNU gettext.
88725         * lib/ucs4-utf16.h: New file, from GNU gettext.
88726
88727 2003-04-02  Bruno Haible  <bruno@clisp.org>
88728
88729         * modules/binary-io: New file.
88730         * MODULES.html.sh (func_all_modules): Add it.
88731
88732 2003-04-02  Bruno Haible  <bruno@clisp.org>
88733
88734         * lib/binary-io.h: New file, from GNU gettext.
88735
88736 2003-04-01  Bruno Haible  <bruno@clisp.org>
88737
88738         * modules/pathname: New file.
88739         * MODULES.html.sh (func_all_modules): Add it.
88740
88741 2003-04-01  Bruno Haible  <bruno@clisp.org>
88742
88743         * lib/pathname.h: New file, from GNU gettext.
88744         * lib/concatpath.c: New file, from GNU gettext.
88745
88746 2003-03-30  Bruno Haible  <bruno@clisp.org>
88747
88748         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
88749
88750 2003-03-30  Bruno Haible  <bruno@clisp.org>
88751
88752         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
88753         function chown() doesn't exist.
88754
88755 2003-03-28  Bruno Haible  <bruno@clisp.org>
88756
88757         * modules/copy-file: New file.
88758         * MODULES.html.sh (func_all_modules): Add it.
88759
88760 2003-03-28  Bruno Haible  <bruno@clisp.org>
88761
88762         * m4/copy-file.m4: New file.
88763
88764 2003-03-28  Bruno Haible  <bruno@clisp.org>
88765
88766         * lib/copy-file.h: New file, from GNU gettext.
88767         * lib/copy-file.c: New file, from GNU gettext.
88768
88769 2003-03-18  Jim Meyering  <jim@meyering.net>
88770
88771         * lib/quote.c (quote_n): Fix typo in comment.
88772
88773 2003-03-18  Bruno Haible  <bruno@clisp.org>
88774
88775         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
88776         checking.
88777         * m4/onceonly_2_57.m4: Likewise.
88778
88779 2003-03-17  Bruno Haible  <bruno@clisp.org>
88780
88781         * m4/onceonly.m4: Require autoconf 2.54 or newer.
88782         (m4_quote): Remove macro.
88783         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
88784
88785 2003-03-14  Jim Meyering  <jim@meyering.net>
88786
88787         Merge changes from Coreutils.
88788         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
88789         to be const, in order to avoid warnings.
88790         (obstack_room): Likewise.
88791         (obstack_empty_p): Likewise.
88792
88793 2003-03-14  Bruno Haible  <bruno@clisp.org>
88794
88795         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
88796         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
88797
88798 2003-03-13  Paul Eggert  <eggert@twinsun.com>
88799
88800         Merge changes from Bison.
88801         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
88802         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
88803         when compiling Bison 1.875's `bitset bset = obstack_alloc
88804         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
88805         * lib/hash.c: Include <stdbool.h> unconditionally.
88806
88807 2003-03-13  Paul Eggert  <eggert@twinsun.com>
88808
88809         * m4/onceonly.m4 (m4_quote): New macro.
88810         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
88811         Quote AC_FOREACH variable-expansions properly.
88812
88813 2003-03-13  Paul Eggert  <eggert@twinsun.com>
88814
88815         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
88816
88817 2003-03-09  Paul Eggert  <eggert@twinsun.com>
88818
88819         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
88820         Reported by Bruce Becker; see:
88821         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
88822
88823 2003-03-03  Paul Eggert  <eggert@twinsun.com>
88824             Bruno Haible  <bruno@clisp.org>
88825
88826         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
88827         Reported by John Hughes, see
88828         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
88829
88830 2003-02-20  Bruno Haible  <bruno@clisp.org>
88831
88832         * MODULES.html.sh (func_all_modules): Add poll.
88833
88834 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
88835
88836         * modules/poll: New file.
88837
88838 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
88839
88840         * lib/poll_.h: New file.
88841         * lib/poll.c: New file.
88842
88843 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
88844
88845         * m4/poll.m4: New file.
88846
88847 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
88848
88849         * modules/mathl: New file.
88850
88851 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
88852
88853         * lib/mathl.h: New file.
88854         * lib/acosl.c: New file.
88855         * lib/asinl.c: New file.
88856         * lib/atanl.c: New file.
88857         * lib/ceill.c: New file.
88858         * lib/cosl.c: New file.
88859         * lib/expl.c: New file.
88860         * lib/floorl.c: New file.
88861         * lib/frexpl.c: New file.
88862         * lib/ldexpl.c: New file.
88863         * lib/logl.c: New file.
88864         * lib/sincosl.c: New file.
88865         * lib/sinl.c: New file.
88866         * lib/sqrtl.c: New file.
88867         * lib/tanl.c: New file.
88868         * lib/trigl.c: New file.
88869         * lib/trigl.h: New file.
88870
88871 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
88872
88873         * m4/mathl.m4: New file.
88874
88875 2003-02-18  Bruno Haible  <bruno@clisp.org>
88876
88877         * MODULES.html.sh (func_all_modules): Add mathl.
88878
88879 2003-02-17  Bruno Haible  <bruno@clisp.org>
88880
88881         * modules/mkdtemp: New module.
88882         * MODULES.html.sh (func_all_modules): Add it.
88883
88884 2003-02-17  Bruno Haible  <bruno@clisp.org>
88885
88886         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
88887
88888 2003-02-17  Bruno Haible  <bruno@clisp.org>
88889
88890         * lib/mkdtemp.h: New file, from GNU gettext.
88891         * lib/mkdtemp.c: New file, from GNU gettext.
88892
88893 2003-02-02  Jim Meyering  <jim@meyering.net>
88894
88895         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
88896         e.g. glibc-2.2.93.
88897
88898 2003-01-31  Bruno Haible  <bruno@clisp.org>
88899
88900         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
88901         'rpl_rename'.
88902         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
88903         'rpl_strnlen'.
88904         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
88905         'rpl_strtod'.
88906         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
88907         'rpl_utime'.
88908
88909 2003-01-31  Bruno Haible  <bruno@clisp.org>
88910
88911         * lib/rename.c: #undef rename before defining rpl_rename.
88912         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
88913
88914 2003-01-30  Bruno Haible  <bruno@clisp.org>
88915
88916         * modules/vasnprintf, modules/vasprintf: New modules.
88917         * MODULES.html.sh (func_all_modules): Add them.
88918
88919 2003-01-30  Bruno Haible  <bruno@clisp.org>
88920
88921         * m4/signed.m4: New file, from GNU gettext.
88922         * m4/longdouble.m4: New file, from GNU gettext.
88923         * m4/wchar_t.m4: New file, from GNU gettext.
88924         * m4/wint_t.m4: New file, from GNU gettext.
88925         * m4/vasnprintf.m4: New file.
88926         * m4/vasprintf.m4: New file.
88927
88928 2003-01-30  Bruno Haible  <bruno@clisp.org>
88929
88930         * lib/printf-args.h: New file, from GNU gettext.
88931         * lib/printf-args.c: New file, from GNU gettext.
88932         * lib/printf-parse.h: New file, from GNU gettext.
88933         * lib/printf-parse.c: New file, from GNU gettext.
88934         * lib/vasnprintf.h: New file, from GNU gettext.
88935         * lib/vasnprintf.c: New file, from GNU gettext.
88936         * lib/asnprintf.c: New file, from GNU gettext.
88937         * lib/vasprintf.h: New file, from GNU gettext with modifications.
88938         * lib/vasprintf.c: New file, from GNU gettext.
88939         * lib/asprintf.c: New file, from GNU gettext.
88940
88941 2003-01-29  Bruno Haible  <bruno@clisp.org>
88942
88943         * modules/stpncpy: New module.
88944         * MODULES.html.sh (func_all_modules): Add it.
88945
88946 2003-01-29  Bruno Haible  <bruno@clisp.org>
88947
88948         * m4/stpncpy.m4: New file.
88949
88950 2003-01-29  Bruno Haible  <bruno@clisp.org>
88951
88952         * lib/stpncpy.h: New file, from GNU gettext with modifications.
88953         * lib/stpncpy.c: New file, from GNU gettext with modifications.
88954
88955 2003-01-28  Bruno Haible  <bruno@clisp.org>
88956
88957         * modules/c-ctype: New module.
88958         * MODULES.html.sh (func_all_modules): Add it.
88959
88960 2003-01-28  Bruno Haible  <bruno@clisp.org>
88961
88962         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
88963         Paul Eggert.
88964         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
88965         Paul Eggert.
88966
88967 2003-01-27  Bruno Haible  <bruno@clisp.org>
88968
88969         * modules/xsetenv: New module.
88970         * MODULES.html.sh (func_all_modules): Add it.
88971
88972 2003-01-27  Bruno Haible  <bruno@clisp.org>
88973
88974         * lib/xsetenv.h: New file, from GNU gettext.
88975         * lib/xsetenv.c: New file, from GNU gettext.
88976
88977 2003-01-23  Jim Meyering  <jim@meyering.net>
88978
88979         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
88980         from working on systems without dirfd (at least Irix and OSF1/Tru64).
88981
88982 2003-01-23  Bruno Haible  <bruno@clisp.org>
88983
88984         * modules/minmax: New module.
88985         * MODULES.html.sh (func_all_modules): Add it.
88986
88987 2003-01-23  Bruno Haible  <bruno@clisp.org>
88988
88989         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
88990         Eggert.
88991
88992 2003-01-22  Bruno Haible  <bruno@clisp.org>
88993
88994         * modules/exit: New module.
88995         * MODULES.html.sh (func_all_modules): Add it.
88996
88997 2003-01-22  Bruno Haible  <bruno@clisp.org>
88998
88999         * lib/exit.h: New file, from GNU gettext.
89000
89001 2003-01-19  Bruno Haible  <bruno@clisp.org>
89002
89003         * gnulib-tool: Recognize option --extract-maintainer.
89004         (func_get_maintainer): New function.
89005         * modules/*: Add Maintainer entry.
89006
89007 2003-01-16  Jim Meyering  <jim@meyering.net>
89008
89009         * m4/regex.m4: The `regex' struct is both input and output.
89010         Initialize it before each use.  Patch by Tim Waugh.
89011
89012 2003-01-16  Bruno Haible  <bruno@clisp.org>
89013
89014         * MODULES.html.sh: Add a table of contents. Add the module name as
89015         leftmost column. Add hyperlinks.
89016
89017 2003-01-15  Bruno Haible  <bruno@clisp.org>
89018
89019         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
89020
89021 2003-01-15  Bruno Haible  <bruno@clisp.org>
89022
89023         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
89024         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
89025         suffix.
89026
89027 2003-01-15  Bruno Haible  <bruno@clisp.org>
89028
89029         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
89030
89031 2003-01-15  Bruno Haible  <bruno@clisp.org>
89032
89033         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
89034         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
89035
89036 2003-01-14  Jim Meyering  <jim@meyering.net>
89037
89038         * lib/same.c (same_name): Tweak a comment.
89039
89040 2003-01-14  Bruno Haible  <bruno@clisp.org>
89041
89042         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
89043         when a string comparison is sufficient.
89044
89045 2003-01-14  Bruno Haible  <bruno@clisp.org>
89046
89047         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
89048         'unsigned int'.
89049
89050 2003-01-14  Bruno Haible  <bruno@clisp.org>
89051
89052         * lib/hash-pjw.c: Add comment about low quality of this function.
89053
89054 2003-01-13  Bruno Haible  <bruno@clisp.org>
89055
89056         * modules/stpcpy: Distribute lib/stpcpy.h.
89057         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
89058
89059 2003-01-13  Bruno Haible  <bruno@clisp.org>
89060
89061         * modules/*: Add a description.
89062         * modules/strpbrk: Fix Makefile.am snippet.
89063         * modules/strtoimax: Fix dependencies.
89064         * modules/strtoumax: Likewise.
89065
89066 2003-01-13  Bruno Haible  <bruno@clisp.org>
89067
89068         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
89069         * modules/alloca (Makefile.am): All object files depend on alloca.h.
89070         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
89071
89072 2003-01-13  Bruno Haible  <bruno@clisp.org>
89073
89074         * gnulib-tool (func_create_testdir): Store config/* files in the main
89075         directory.
89076         * config.rpath: Move to ...
89077         * config/config.rpath: ... here.
89078         * modules/gettext: Contains config/config.rpath, not config.rpath.
89079         * modules/iconv: Likewise.
89080
89081 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89082
89083         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89084         to avoid collisions with libcurses and libreadline.
89085
89086         * m4/getstr.m4: Remove.
89087         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
89088
89089 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89090
89091         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89092         to avoid collisions with libcurses and libreadline.
89093
89094         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
89095         * lib/getstr.h, getstr.c: Remove.
89096         * lib/getline.c: Include "getline.h", to check interface.
89097         Move body of old getstr.c here: this defines MIN_CHUNK and
89098         declares getdelim2, which is renamed from getstr.
89099         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
89100
89101         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
89102         All uses changed.
89103         * lib/linebuffer.h: Likewise.
89104         (readline): Remove backward-compatibility macro.
89105
89106 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89107
89108         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89109         to avoid collisions with libcurses and libreadline.
89110         * getstr: Remove.
89111         * MODULES.html.sh: Remove getstr.
89112         * modules/getline: Depend on unlocked-io, not getstr.
89113
89114 2003-01-12  Jim Meyering  <jim@meyering.net>
89115
89116         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
89117
89118 2003-01-10  Bruno Haible  <bruno@clisp.org>
89119
89120         * modules/alloca: Change Makefile.am requirements. Simplify Include
89121         requirements. Add lib/alloca_.h to file list.
89122
89123 2003-01-10  Bruno Haible  <bruno@clisp.org>
89124
89125         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
89126
89127 2003-01-10  Bruno Haible  <bruno@clisp.org>
89128
89129         * lib/alloca_.h: New file.
89130         * lib/getdate.y: Unconditionally include alloca.h.
89131         * lib/makepath.c: Likewise.
89132         * lib/setenv.c: Likewise.
89133         * lib/userspec.c: Likewise.
89134
89135 2003-01-09  Karl Berry  <karl@gnu.org>
89136
89137         * MODULES.html.sh: include `dirname $0` in PATH, to find
89138         gnulib-tool.
89139
89140 2003-01-09  Bruno Haible  <bruno@clisp.org>
89141
89142         * modules/stdbool: Change configure.ac, Makefile.am requirements.
89143         Simplify Include requirements. Add lib/stdbool.h.in to file list.
89144
89145 2003-01-09  Bruno Haible  <bruno@clisp.org>
89146
89147         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
89148
89149 2003-01-09  Bruno Haible  <bruno@clisp.org>
89150
89151         * lib/stdbool.h.in: New file.
89152
89153 2003-01-09  Bruno Haible  <bruno@clisp.org>
89154
89155         * gnulib-tool (func_all_modules): Ignore files ending in ~.
89156         * MODULES.html.sh: Likewise.
89157
89158 2003-01-08  Jim Meyering  <jim@meyering.net>
89159
89160         * lib/full-write.c: Undefine and define-away `const' after inclusion
89161         of errno.h, not before.  Suggestion from Bruno Haible.
89162
89163 2003-01-08  Bruno Haible  <bruno@clisp.org>
89164
89165         * modules/full-read: Depend on full-write.
89166
89167 2003-01-08  Bruno Haible  <bruno@clisp.org>
89168
89169         * lib/safe-read.c: Include specification header first, to ensure its
89170         selfcontainedness.
89171         * lib/full-write.c: Likewise.
89172
89173 2003-01-07  Jim Meyering  <jim@meyering.net>
89174
89175         * lib/full-write.c: Rework so that it may serve to define full_read,
89176         too.
89177         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
89178
89179 2003-01-07  Bruno Haible  <bruno@clisp.org>
89180
89181         * lib/strtoimax.c: Include <stdint.h> as an alternative to
89182         <inttypes.h>.
89183         * lib/xstrtol.h: Likewise.
89184         * lib/xstrtoimax.c: Likewise.
89185         * lib/xstrtoumax.c: Likewise.
89186         * lib/human.h: Likewise.
89187
89188         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
89189         on systems that have <inttypes.h> but not <stdint.h>.
89190
89191 2003-01-07  Bruno Haible  <bruno@clisp.org>
89192
89193         * MODULES.html.sh: Add copyright notice.
89194         (missed_files): Omit CVS directory entries.
89195         (func_module): Make it work with sed-3.02.
89196         * MODULES.txt: Remove file.
89197
89198 2003-01-06  Jim Meyering  <jim@meyering.net>
89199
89200         * lib/version-etc.c: Update year in translatable copyright string.
89201
89202 2003-01-03  Karl Berry  <karl@gnu.org>
89203
89204         * config/config.{guess,sub}: update from prep.
89205
89206 2003-01-02  Karl Berry  <karl@gnu.org>
89207
89208         * doc/COPYING.DOC: belatedly updated to 1.2.
89209
89210 2003-01-01  Karl Berry  <karl@gnu.org>
89211
89212         * gnulib-tool (func_verify_module): report module name $module in
89213         error message, not $1.
89214         * gnulib-tool (create-testdir): don't complain if destdir couldn't
89215         be created, only if it doesn't exist.
89216         * gnulib-tool (last_checkin_date): don't expand the $Date here.
89217
89218 2002-12-31  Paul Eggert  <eggert@twinsun.com>
89219
89220         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
89221
89222 2002-12-31  Paul Eggert  <eggert@twinsun.com>
89223
89224         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
89225         memcmp if strcoll doesn't work.
89226
89227 2002-12-31  Bruno Haible  <bruno@clisp.org>
89228
89229         * lib/utime.c (utime_null): No need to call ftruncate if the file was
89230         nonempty.
89231
89232 2002-12-31  Bruno Haible  <bruno@clisp.org>
89233
89234         * lib/memcoll.c (STRCOLL): New macro.
89235         (memcoll): Use it.
89236
89237 2002-12-31  Bruno Haible  <bruno@clisp.org>
89238
89239         * lib/localcharset.h: New file.
89240         * lib/localcharset.c: Include it.
89241         * lib/unicodeio.c: Likewise.
89242
89243 2002-12-31  Bruno Haible  <bruno@clisp.org>
89244
89245         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
89246         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
89247
89248 2002-12-31  Bruno Haible  <bruno@clisp.org>
89249
89250         * lib/getline.h: Include <stddef.h>, for size_t.
89251
89252         * lib/unicodeio.h: Include <stddef.h>, for size_t.
89253         * lib/unicodeio.c: Don't include <stddef.h>.
89254
89255 2002-12-31  Bruno Haible  <bruno@clisp.org>
89256
89257         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
89258         HAVE_TM_ZONE.
89259
89260 2002-12-24  Karl Berry  <karl@gnu.org>
89261
89262         * config/config.guess: update from prep.
89263
89264 2002-12-24  Bruno Haible  <bruno@clisp.org>
89265
89266         General infrasructure.
89267         * m4/README: Rewritten.
89268         * m4/onceonly.m4: New file.
89269         * m4/onceonly_2_57.m4: New file.
89270
89271         Module atexit.
89272         * m4/atexit.m4: New file.
89273
89274         Module strtod.
89275         * m4/strtod.m4: New file.
89276
89277         Module strtol.
89278         * m4/strtol.m4: New file.
89279
89280         Module strtoul.
89281         * m4/strtoul.m4: New file.
89282
89283         Module memchr.
89284         * m4/memchr.m4: New file.
89285
89286         Module memcmp.
89287         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
89288         (jm_FUNC_MEMCMP): Invoke it.
89289
89290         Module memcpy.
89291         * m4/memcpy.m4: New file.
89292
89293         Module memmove.
89294         * m4/memmove.m4: New file.
89295
89296         Module memset.
89297         * m4/memset.m4: New file.
89298
89299         Module strcspn.
89300         * m4/strcspn.m4: New file.
89301
89302         Module strpbrk.
89303         * m4/strpbrk.m4: New file.
89304
89305         Module strstr.
89306         * m4/strstr.m4: New file.
89307
89308         Module strerror.
89309         * m4/strerror.m4: New file.
89310
89311         Module mktime.
89312         * m4/mktime.m4: Renamed from jm-mktime.m4.
89313         (gl_PREREQ_MKTIME): New macro.
89314         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
89315
89316         Module malloc.
89317         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
89318         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
89319         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
89320
89321         Module realloc.
89322         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
89323         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
89324         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
89325
89326         Module strftime.
89327         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
89328         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
89329         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
89330         gl_TM_GMTOFF.
89331         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
89332
89333         Module xalloc.
89334         * m4/xalloc.m4: New file.
89335
89336         Module alloca.
89337         * m4/alloca.m4: New file.
89338
89339         Module putenv.
89340         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
89341         (jm_FUNC_PUTENV): Invoke it.
89342
89343         Module setenv.
89344         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
89345         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
89346         when invoked twice.
89347         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
89348         gt_FUNC_SETENV.
89349
89350         Module memrchr.
89351         * m4/memrchr.m4: New file.
89352
89353         Module stpcpy.
89354         * m4/stpcpy.m4: New file.
89355
89356         Module strcase.
89357         * m4/strcase.m4: New file.
89358
89359         Module strdup.
89360         * m4/strdup.m4: New file.
89361
89362         Module strnlen.
89363         * m4/strnlen.m4: New file.
89364
89365         Module strndup.
89366         * m4/strndup.m4: New file.
89367
89368         Module xstrtod.
89369         * m4/xstrtod.m4: New file.
89370
89371         Module xstrtol.
89372         * m4/xstrtol.m4: New file.
89373
89374         Module getdate.
89375         * m4/getdate.m4: New file.
89376
89377         Module unlocked-io.
89378         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
89379         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
89380         * m4/jm-glibc-io.m4n: Remove file.
89381
89382         Module long-options.
89383         * m4/long-options.m4: New file.
89384
89385         Module md5.
89386         * m4/md5.m4: New file.
89387
89388         Module sha.
89389         * m4/sha.m4: New file.
89390
89391         Module getstr.
89392         * m4/getstr.m4: New file.
89393
89394         Module getline.
89395         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
89396         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
89397         <sys/types.h>, for size_t. Use the function name gnu_getline, not
89398         simply getline. Infoke gl_PREREQ_GETLINE.
89399
89400         Module obstack.
89401         * m4/obstack.m4: New file.
89402
89403         Module hash.
89404         * m4/hash.m4: New file.
89405
89406         Module readtokens.
89407         * m4/readtokens.m4: New file.
89408
89409         Module strverscmp.
89410         * m4/strverscmp.m4: New file.
89411
89412         Module stdbool.
89413         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
89414         OSF/1.
89415
89416         Module strtoll.
89417         * m4/strtoll.m4: New file.
89418
89419         Module strtoull.
89420         * m4/strtoull.m4: New file.
89421
89422         Module strtoimax.
89423         * m4/strtoimax.m4: New file.
89424
89425         Module strtoumax.
89426         * m4/strtoumax.m4: New file.
89427
89428         Module xstrtoimax.
89429         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
89430         jm_AC_PREREQ_XSTRTOIMAX.
89431         Moved the strtol prerequisites to strtol.m4.
89432         Moved the strtoll prerequisites to strtoll.m4.
89433         Moved the strtoimax prerequisites to strtoimax.m4.
89434
89435         Module xstrtoumax.
89436         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
89437         jm_AC_PREREQ_XSTRTOUMAX.
89438         Moved the strtoul prerequisites to strtoul.m4.
89439         Moved the strtoull prerequisites to strtoull.m4.
89440         Moved the strtoumax prerequisites to strtoumax.m4.
89441
89442         Module chown.
89443         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
89444         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
89445
89446         Module dup2.
89447         * m4/dup2.m4: New file.
89448
89449         Module ftruncate.
89450         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
89451         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
89452
89453         Module getgroups.
89454         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
89455         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
89456
89457         Module gettimeofday.
89458         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
89459         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
89460         gl_PREREQ_GETTIMEOFDAY.
89461
89462         Module mkdir.
89463         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
89464         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
89465
89466         Module mkstemp.
89467         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
89468         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
89469         jm_AC_TYPE_UINTMAX_T.
89470         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
89471
89472         Module stat.
89473         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
89474         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
89475
89476         Module lstat.
89477         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
89478         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
89479
89480         Module timespec.
89481         * m4/timespec.m4 (gl_TIMESPEC): New macro.
89482         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
89483         * m4/st_mtim.m4: Indentation.
89484
89485         Module nanosleep.
89486         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
89487         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
89488         gl_PREREQ_NANOSLEEP.
89489
89490         Module regex.
89491         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
89492         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
89493         (gl_REGEX): New macro.
89494
89495         Module rename.
89496         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
89497         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
89498
89499         Module rmdir.
89500         * m4/rmdir.m4: New file.
89501
89502         Module utime.
89503         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
89504         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
89505         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
89506
89507         Module dirname.
89508         * m4/dirname.m4: New file.
89509
89510         Module getopt.
89511         * m4/getopt.m4: New file.
89512
89513         Module unistd-safer.
89514         * m4/unistd-safer.m4: New file.
89515
89516         Module fnmatch.
89517         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
89518         declaration.
89519         (gl_PREREQ_FNMATCH_EXTRA): New macro.
89520         (gl_FUNC_FNMATCH_POSIX): New macro.
89521         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
89522         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
89523         simply fnmatch.
89524
89525         Module exclude.
89526         * m4/exclude.m4: New file.
89527
89528         Module human.
89529         * m4/human.m4: New file.
89530
89531         Module acl.
89532         * m4/acl.m4: Nop.
89533
89534         Module backupfile.
89535         * m4/backupfile.m4: New file.
89536         * m4/d-ino.m4: Indentation.
89537
89538         Module fsusage.
89539         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
89540         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
89541         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
89542
89543         Module dirfd.
89544         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
89545         requirements.
89546
89547         Module euidaccess.
89548         * m4/euidaccess.m4: New file.
89549
89550         Module file-type.
89551         * m4/file-type.m4: New file.
89552
89553         Module fileblocks.
89554         * m4/fileblocks.m4: New file.
89555
89556         Module filemode.
89557         * m4/filemode.m4: New file.
89558
89559         Module isdir.
89560         * m4/isdir.m4: New file.
89561
89562         Module lchown.
89563         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
89564         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
89565
89566         Module makepath.
89567         * m4/makepath.m4: New file.
89568
89569         Module modechange.
89570         * m4/modechange.m4: New file.
89571
89572         Module mountlist.
89573         * m4/mountlist.m4: New file.
89574         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
89575         Indentation.
89576
89577         Module path-concat.
89578         * m4/path-concat.m4: New file.
89579
89580         Module pathmax.
89581         * m4/pathmax.m4: New file.
89582
89583         Module same.
89584         * m4/same.m4: New file.
89585
89586         Module save-cwd.
89587         * m4/save-cwd.m4: New file.
89588
89589         Module savedir.
89590         * m4/savedir.m4: New file.
89591
89592         Module xgetcwd.
89593         * m4/xgetcwd.m4: New file.
89594         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
89595
89596         Module xreadlink.
89597         * m4/xreadlink.m4: New file.
89598
89599         Module safe-read.
89600         * m4/safe-read.m4: New file.
89601
89602         Module safe-write.
89603         * m4/safe-write.m4: New file.
89604
89605         Module closeout.
89606         * m4/closeout.m4: New file.
89607
89608         Module stdio-safer.
89609         * m4/stdio-safer.m4: New file.
89610
89611         Module getpass.
89612         * m4/getpass.m4: New file.
89613
89614         Module getugroups.
89615         * m4/getugroups.m4: New file.
89616
89617         Module group-member.
89618         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
89619         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
89620
89621         Module idcache.
89622         * m4/idcache.m4: New file.
89623
89624         Module userspec.
89625         * m4/userspec.m4: New file.
89626
89627         Module gettime.
89628         * m4/clock_time.m4: New file.
89629         * m4/gettime.m4: New file.
89630
89631         Module settime.
89632         * m4/settime.m4: New file.
89633
89634         Module posixtm.
89635         * m4/posixtm.m4: New file.
89636
89637         Module gethostname.
89638         * m4/gethostname.m4: New file.
89639
89640         Module canon-host.
89641         * m4/canon-host.m4: New file.
89642
89643         Module gettext.
89644         * m4/codeset.m4: New file, from gettext-0.11.5.
89645         * m4/gettext.m4: New file, from gettext-0.11.5.
89646         * m4/glibc21.m4: New file, from gettext-0.11.5.
89647         * m4/iconv.m4: New file, from gettext-0.11.5.
89648         * m4/intdiv0.m4: New file, from gettext-0.11.5.
89649         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
89650         * m4/inttypes.m4: New file, from gettext-0.11.5.
89651         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
89652         * m4/isc-posix.m4: New file, from gettext-0.11.5.
89653         * m4/lcmessage.m4: New file, from gettext-0.11.5.
89654         * m4/lib-ld.m4: New file, from gettext-0.11.5.
89655         * m4/lib-link.m4: New file, from gettext-0.11.5.
89656         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
89657         * m4/progtest.m4: New file, from gettext-0.11.5.
89658         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
89659         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
89660         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
89661
89662         Module localcharset.
89663         * m4/localcharset.m4: New file.
89664
89665         Module hard-locale.
89666         * m4/hard-locale.m4: New file.
89667
89668         Module mbswidth.
89669         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
89670         onceonly macros.
89671         * m4/mbrtowc.m4: Add comment.
89672
89673         Module memcasecmp.
89674         * m4/memcasecmp.m4: New file.
89675
89676         Module memcoll.
89677         * m4/memcoll.m4: New file.
89678
89679         Module unicodeio.
89680         * m4/unicodeio.m4: New file.
89681
89682         Module rpmatch.
89683         * m4/rpmatch.m4: New file.
89684
89685         Module yesno.
89686         * m4/yesno.m4: New file.
89687
89688         Module exitfail.
89689         * m4/exitfail.m4: New file.
89690
89691         Module c-stack.
89692         * m4/c-stack.m4 (gl_C_STACK): New macro.
89693         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
89694
89695         Module error.
89696         * m4/error.m4 (gl_ERROR): New macro.
89697         (jm_PREREQ_ERROR): Use onceonly macros.
89698
89699         Module fatal.
89700         * m4/fatal.m4: New file.
89701
89702         Module getloadavg.
89703         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
89704         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
89705
89706         Module getpagesize.
89707         * m4/getpagesize.m4: New file.
89708
89709         Module getusershell.
89710         * m4/getusershell.m4: New file.
89711
89712         Module physmem.
89713         * m4/physmem.m4: New file.
89714
89715         Module posixver.
89716         * m4/posixver.m4: New file.
89717
89718         Module quotearg.
89719         * m4/quotearg.m4: New file.
89720
89721         Module quote.
89722         * m4/quote.m4: New file.
89723
89724         Module readutmp.
89725         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
89726
89727         Module sig2str.
89728         * m4/sig2str.m4: New file.
89729
89730         Other.
89731         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
89732         ulonglong.m4.
89733         * m4/intmax_t.m4: New file.
89734         * m4/d-type.m4: Indentation.
89735         * m4/jm-macros.m4: Update.
89736         * m4/prereq.m4 (jm_PREREQ): Update.
89737         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
89738         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
89739         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
89740         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
89741         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
89742         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
89743         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
89744         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
89745         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
89746         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
89747         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
89748         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
89749         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
89750         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
89751         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
89752         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
89753         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
89754         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
89755         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
89756
89757 2002-12-24  Bruno Haible  <bruno@clisp.org>
89758
89759         * MODULES.txt: Update according to m4/ changes.
89760
89761         Module gettext.
89762         * config.rpath: New file, from gettext-0.11.5.
89763
89764         * modules/*: New module descriptions.
89765         * gnulib-tool: New file.
89766         * MODULES.html.sh: New file.
89767
89768 2002-12-21  Karl Berry  <karl@gnu.org>
89769
89770         * doc/fdl.texi: update to version 1.2.
89771
89772 2002-12-19  Karl Berry  <karl@gnu.org>
89773
89774         * config/config.guess: update from prep.
89775
89776 2002-12-18  Bruno Haible  <bruno@clisp.org>
89777
89778         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
89779         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
89780
89781 2002-12-17  Bruno Haible  <bruno@clisp.org>
89782
89783         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
89784         stdlib.h, string.h.
89785
89786 2002-12-17  Bruno Haible  <bruno@clisp.org>
89787
89788         * lib/canon-host.c (strdup): Remove unused declaration.
89789
89790         * lib/fsusage.c: Include full_read.h.
89791         (get_fs_usage): Use full_read instead of safe_read.
89792
89793         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
89794
89795 2002-12-12  Karl Berry  <karl@gnu.org>
89796
89797         * config/config.guess: update from prep.
89798
89799 2002-12-11  Bruno Haible  <bruno@clisp.org>
89800
89801         * m4/setenv.m4: New file, from gettext-0.11.5.
89802
89803 2002-12-11  Bruno Haible  <bruno@clisp.org>
89804
89805         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
89806         not unsetenv().
89807         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
89808         modifications:
89809
89810         2002-12-11  Bruno Haible  <bruno@clisp.org>
89811
89812                 * setenv.c (alloca): Fall back to malloc.
89813                 (freea): New macro.
89814                 (setenv): Use freea() to free memory allocated with alloca().
89815
89816         2002-11-13  Bruno Haible  <bruno@clisp.org>
89817
89818                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
89819                 function declarations.
89820                 * unsetenv.c (unsetenv): Likewise.
89821
89822         2002-03-04  Bruno Haible  <bruno@clisp.org>
89823
89824                 Portability to AIX 4.3.3.
89825                 * unsetenv.c: New file, extracted from setenv.c.
89826                 * setenv.c: Move the unsetenv() function to unsetenv.c.
89827
89828         2001-12-20  Bruno Haible  <bruno@clisp.org>
89829
89830                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
89831                 use malloc instead. For SunOS 4.
89832
89833         2001-12-11  Bruno Haible  <bruno@clisp.org>
89834
89835                 * setenv.c: Declare alloca.
89836                 (compar_fn_t): New typedef.
89837                 (KNOWN_VALUE, STORE_VALUE): Use it.
89838
89839         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
89840         setenv.h.
89841
89842 2002-12-10  Paul Eggert  <eggert@twinsun.com>
89843
89844         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
89845         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
89846         Choose values that are less likely to collide with system fnmatch
89847         options.
89848         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
89849         defined (e.g., a pure POSIX system).
89850         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
89851         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
89852
89853 2002-12-06  Paul Eggert  <eggert@twinsun.com>
89854
89855         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
89856         a pain in practice to deal with generated m4 files.  This change
89857         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
89858
89859         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
89860         and jm-glibc-io.m4, as they are no longer a special case.
89861         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
89862         kludge and the auto-generation stuff.  Check only whether the
89863         functions are declared, not whether they exist, since older hosts
89864         that don't declare the functions can't use the optimization anyway.
89865
89866 2002-12-06  Jim Meyering  <jim@meyering.net>
89867
89868         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
89869
89870         Merge in changes from libc's misc/error.c, in preparation
89871         for the merge of gnulib's changes back into libc.
89872
89873         * lib/error.c (_): Define only if not already defined.
89874         Move definition to follow all #include directives.
89875         Include unlocked-io.h only if !_LIBC.
89876         [_LIBC]: Include <libio/libioP.h>.
89877         [USE_IN_LIBIO]: Include <libio/iolibio.h>
89878         (fflush): Tweak definition to use INTUSE.
89879         (putc): Define.
89880
89881 2002-12-05  Paul Eggert  <eggert@twinsun.com>
89882
89883         * lib/alloca.c [defined emacs]: Include "lisp.h".
89884         (xalloc_die) [defined emacs]: New macro.
89885         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
89886         [! defined emacs]: Include <xalloc.h>.
89887         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
89888         (pointer): Typedef to POINTER_TYPE *.
89889         (malloc): Remove decl; we now always use xmalloc.
89890         (alloca): Use old-style definition, since Emacs needs this.
89891         Check for arithmetic overflow when computing combined size.
89892
89893 2002-12-04  Paul Eggert  <eggert@twinsun.com>
89894
89895         Do not generate unlocked-io.h automatically, since it's easier to
89896         maintain it by hand.
89897
89898         * lib/unlocked-io.h: New file, from GNU diffutils,
89899         but with proper copyright notice and attribution.
89900         * lib/gen-uio: Remove.
89901         * lib/Makefile.am: Add copyright notice.
89902         (libfetish_a_SOURCES): Add unlocked-io.h.
89903         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
89904         (DISTCLEANFILES, io_functions): Remove macros.
89905         (EXTRA_DIST): Remove gen_uio.
89906         (unlocked-io.h): Remove rule.
89907
89908 2002-12-04  Jim Meyering  <jim@meyering.net>
89909
89910         Reflect the fact that stat.c and lstat.c are no longer generated.
89911         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
89912         (DISTCLEANFILES): Likewise.
89913         (EXTRA_DIST): Likewise.
89914         (all_local): Don't depend on stat.c or lstat.c.
89915         (stat.c, lstat.c): Remove rules.
89916         (EXTRA_DIST): Remove xstat.in.
89917
89918         * lib/xstat.in: Remove file.  Contents moved into stat.c.
89919         * lib/stat.c: New file.  Contents mostly from xstat.in.
89920         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
89921         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
89922
89923         * lib/safe-read.c: Rework so that it may serve to define safe_write,
89924         too.
89925         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
89926
89927 2002-12-03  Jim Meyering  <jim@meyering.net>
89928
89929         * lib/safe-read.c, safe-write.c: Change variable names and comments,
89930         but not semantics, to minimize the differences between these two files.
89931         (safe_read): Change comment to mention SAFE_READ_ERROR.
89932
89933         * lib/safe-read.c (IS_EINTR): Define.
89934         (safe_read): Use IS_EINTR in place of in-function cpp directives.
89935
89936 2002-12-02  Jim Meyering  <jim@meyering.net>
89937
89938         * lib/safe-read.c (EINTR): Define.
89939         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
89940         (INT_MAX): Provide fallback.
89941         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
89942
89943         * lib/safe-read.h (SAFE_READ_ERROR): Define.
89944
89945 2002-12-02  Bruno Haible  <bruno@clisp.org>
89946
89947         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
89948         Define, taken from safe-read.c.
89949         (INT_MAX): Provide fallback.
89950         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
89951         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
89952
89953         * lib/safe-read.c (EINTR): Remove definition.
89954         (safe_read): Don't use EINTR if it is absent.
89955
89956 2002-12-01  Jim Meyering  <jim@meyering.net>
89957
89958         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
89959         zero.
89960         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
89961
89962 2002-11-27  Paul Eggert  <eggert@twinsun.com>
89963
89964         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
89965         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
89966         with `if (! (value < limit)) abort ();', for readability.
89967
89968 2002-11-26  Karl Berry  <karl@gnu.org>
89969
89970         * lib/strdup.c: copy from libc again, with jim's ok.
89971         * lib/.cppi-disable: re-add strdup.c
89972
89973 2002-11-25  Karl Berry  <karl@gnu.org>
89974
89975         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
89976         instead of "strtol.c".
89977
89978 2002-11-25  Karl Berry  <karl@gnu.org>
89979
89980         * config/install-sh: update from automake for variable quoting, $0 in
89981         error msgs, etc.
89982
89983         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
89984         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
89985         entry.
89986
89987 2002-11-25  Jim Meyering  <jim@meyering.net>
89988
89989         * lib/mktime.c: Sync from libc, now that it has the latest fix.
89990
89991 2002-11-24  Karl Berry  <karl@gnu.org>
89992
89993         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
89994         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
89995
89996 2002-11-24  Jim Meyering  <jim@meyering.net>
89997
89998         Update from coreutils:
89999
90000         * lib/mktime.c: Merge in changes from libc.
90001
90002         Avoid a link-time failure on some Linux systems.
90003         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
90004         (otherwise).
90005         (__mon_yday): Declare with the STATIC attribute.
90006         (__mktime_internal): Likewise.
90007         Based on a report from Greg Schafer.
90008
90009 2002-11-23  Jim Meyering  <jim@meyering.net>
90010
90011         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
90012         Use `unsigned', not `int', as type of index.
90013
90014         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
90015
90016         * lib/fsusage.c: Remove unneeded parentheses around operands of
90017         `defined'.
90018
90019 2002-11-22  Paul Eggert  <eggert@twinsun.com>
90020
90021         * lib/quotearg.h: Allow multiple inclusion by surrounding with
90022         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
90023         so that we can be included first.
90024         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
90025         * lib/quotearg.c: Include quotearg.h immediately after config.h.
90026         No need to include stddef.h or sys/types.h any more.
90027         Surround local include files with "", not "<>".
90028         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
90029         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
90030         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
90031         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
90032         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
90033         (ISPRINT): Remove; no longer needed now that we assume C89.
90034
90035         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
90036         Preserve errno.
90037
90038         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
90039         quotearg_char): Use SIZE_MAX rather than
90040         (size_t) -1 when we are talking about "infinity".
90041
90042         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
90043
90044 2002-11-22  Paul Eggert  <eggert@twinsun.com>
90045
90046         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
90047         hint that one should use `if (! x) abort ();' rather than `assert
90048         (x);', and anyway it's one less thing to worry about configuring.
90049         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
90050         hash_rehash, hash_insert): Use abort rather than assert.
90051
90052 2002-11-22  Bruno Haible  <bruno@clisp.org>
90053
90054         * lib/safe-read.h: Assume C89. Add comments.
90055         (safe_read): Change return type to size_t.
90056         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
90057         byte counts > SSIZE_MAX correctly.
90058         * lib/safe-write.h: New file.
90059         * lib/safe-write.c: New file.
90060         * lib/full-read.h: New file.
90061         * lib/full-read.c: New file.
90062         * lib/full-write.h: Assume C89. Add comments.
90063         * lib/full-write.c: Include safe-write.h.
90064         (full_write): Rewritten to use safe_write.
90065         Suggested by Jim Meyering and Paul Eggert.
90066
90067 2002-11-21  Jim Meyering  <jim@meyering.net>
90068
90069         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
90070
90071         Merge in changes from the coreutils.
90072
90073         2002-09-25  Paul Eggert  <eggert@twinsun.com>
90074         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
90075         <stdint.h>.
90076         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
90077         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
90078         int.  Work more efficiently if X is the same width as uintmax_t.
90079         Do not compare X to -1, to avoid bogus compiler warning.
90080         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
90081         Don't assume that f_frsize and f_bsize are the same type.
90082
90083         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
90084         warning on FreeBSD.
90085
90086         * lib/makepath.c (make_path): Restore umask *before* creating the final
90087         component.
90088         (make_path): Minor reformatting.
90089
90090         * lib/xmalloc.c: Adjust to work with new autoconf macros,
90091         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
90092         HAVE_MALLOC/HAVE_REALLOC.
90093
90094         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
90095         dummy ones.  At least on GNU/Linux systems, `auto' means something
90096         else.
90097         From Michael Stone.
90098
90099 2002-11-21  Bruno Haible  <bruno@clisp.org>
90100
90101         Remove case insensitive option matching.
90102         * lib/argmatch.h (argcasematch): Remove declaration.
90103         (ARGCASEMATCH): Remove macro.
90104         (__xargmatch_internal): Remove case_sensitive argument.
90105         (XARGMATCH): Update.
90106         (XARGCASEMATCH): Remove macro.
90107         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
90108         case_sensitive argument.
90109         (argcasematch): Remove function.
90110         (__xargmatch_internal): Remove case_sensitive argument.
90111         (main): Use XARGMATCH instead of XARGCASEMATCH.
90112
90113         * lib/xmalloc.c: Change compile-time error message. Add comment about
90114         required autoconf version.
90115
90116 2002-11-20  Paul Eggert  <eggert@twinsun.com>
90117
90118         Merge argmatch cleanups from Bison.  Assume C89.
90119
90120         * lib/argmatch.c: Include config.h here, not in argmatch.h.
90121         Include stdlib.h, for EXIT_FAILURE.
90122         Always include <string.h>, since we assume C89.
90123         (EXIT_FAILURE): Remove pre-C89 bug workaround.
90124         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
90125         Include <stddef.h> instead, since it's all we need for size_t.
90126         (PARAMS): Remove.  All uses removed.
90127         (ARRAY_CARDINALITY): Do not bother to #undef.
90128         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
90129         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
90130         Remove unnecessary parentheses.
90131         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
90132         Insert necessary parentheses.
90133         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
90134         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
90135
90136 2002-11-19  Bruno Haible  <bruno@clisp.org>
90137
90138         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
90139         * lib/mbswidth.h: Include <stddef.h>, for size_t.
90140
90141         * lib/mbswidth.h (PARAMS): Remove macro.
90142         (mbswidth, mbsnwidth): Use ANSI C function declarations.
90143         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
90144
90145         * lib/gcd.h (PARAMS): Remove macro.
90146         (gcd): Use ANSI C function declarations.
90147         * lib/gcd.c (gcd): Likewise.
90148
90149 2002-11-15  Bruno Haible  <bruno@clisp.org>
90150
90151         * lib/strcspn.c: Include <stddef.h>.
90152         (strcspn): Use ANSI C function declaration. Change return type to
90153         size_t. Use NULL.
90154         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
90155         (strpbrk): Use NULL.
90156         * lib/strpbrk.h (PARAMS): Remove macro.
90157         (strpbrk): Use ANSI C function declaration.
90158         * lib/strstr.c: Don't include <sys/types.h>.
90159         * lib/strstr.h (PARAMS): Remove macro.
90160         (strstr): Use ANSI C function declarations.
90161
90162 2002-11-14  Karl Berry  <karl@gnu.org>
90163
90164         * config/mkinstalldirs: `do' on separate line, instead of
90165         `for var; do'.
90166
90167 2002-11-06  Bruno Haible  <bruno@clisp.org>
90168
90169         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
90170         * lib/gcd.c (gcd): Likewise.
90171
90172 2002-11-05  Bruno Haible  <bruno@clisp.org>
90173
90174         * lib/gcd.h: New file, from gettext-0.11.5.
90175         * lib/gcd.c: New file, from gettext-0.11.5.
90176
90177 2002-11-05  Bruno Haible  <bruno@clisp.org>
90178
90179         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90180         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90181         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90182         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90183
90184         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
90185         <libintl.h>.
90186         * lib/makepath.c: Include gettext.h instead of <locale.h> and
90187         <libintl.h>.
90188
90189         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
90190         * lib/human.c: Include gettext.h instead of <libintl.h>.
90191         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
90192         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
90193         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
90194         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
90195         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
90196         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
90197         (textdomain): Remove definition.
90198         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
90199
90200         * lib/long-options.c: Remove include of <libintl.h> and definition of
90201         _.
90202         * lib/same.c: Remove include of <libintl.h> and definition of _.
90203
90204 2002-11-04  Owen Taylor  <otaylor@redhat.com>
90205
90206         * lib/config.charset: A few additions for Solaris.
90207
90208 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
90209
90210         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
90211         * lib/localcharset.c (locale_charset): Declare as extern "C".
90212
90213 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
90214
90215         * lib/config.charset: msdos in uk_UA uses CP1125.
90216
90217 2002-11-04  Bruno Haible  <bruno@clisp.org>
90218
90219         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
90220         * lib/strcase.h: New file, from GNU gettext-0.11.5.
90221         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
90222         * lib/strstr.h: New file, from GNU gettext-0.11.5.
90223         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
90224
90225 2002-11-04  Bruno Haible  <bruno@clisp.org>
90226
90227         * lib/localcharset.c (locale_charset): Don't return an empty string.
90228
90229 2002-11-04  Bruno Haible  <bruno@clisp.org>
90230
90231         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
90232         aliases.
90233
90234 2002-11-04  Bruno Haible  <bruno@clisp.org>
90235
90236         * lib/config.charset: Update for newest glibc. Add canonical names
90237         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
90238
90239 2002-11-04  Bruno Haible  <bruno@clisp.org>
90240
90241         * lib/config.charset: Add support for NetBSD.
90242
90243 2002-11-04  Bruno Haible  <bruno@clisp.org>
90244
90245         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
90246
90247 2002-11-01  Bruno Haible  <bruno@clisp.org>
90248
90249         * configure.in: Add AC_CONFIG_AUX_DIR call.
90250         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
90251         test/Makefile.
90252         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
90253
90254 2002-09-28  Karl Berry  <karl@gnu.org>
90255
90256         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
90257         installed automake until the next release, since changes have been
90258         made.
90259
90260 2002-09-25  Karl Berry  <karl@gnu.org>
90261
90262         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
90263         * lib/getopt*: copy from libc/posix.
90264         * lib/gettext.h: copy from gettext.
90265         * lib/.cppi-disable: add strdup.c, gettext.h.
90266
90267 2002-09-25  Karl Berry  <karl@gnu.org>
90268
90269         * config/srclist.txt: enable gettext.h check.
90270         * config/config.{guess,sub}: update from prep.
90271         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
90272                 from automake 1.6.3.
90273         See srclist*.
90274
90275 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
90276
90277         * regex.c (PATFETCH): Remove the translating fetch.
90278         (PATFETCH_RAW): Rename to PATFETCH.
90279         (set_image_of_range): New fun.
90280         (SET_RANGE_TABLE_WORK_AREA): Use it.
90281         (regex_compile): Don't translate the pattern chars so eagerly.
90282         Only do it when inserting an `exactn' bytecode or when handling
90283         a char-range.
90284         (mutually_exclusive_p): Avoid empty statement.
90285
90286 2002-07-06  Jim Meyering  <meyering@lucent.com>
90287
90288         * m4/README: Don't mention Makefile.am.in.
90289         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
90290
90291 2002-07-01  Jim Meyering  <meyering@lucent.com>
90292
90293         * lib/c-stack.c: Include sys/time.h.
90294         From Volker Borchert.
90295
90296 2002-06-26  Paul Eggert  <eggert@twinsun.com>
90297
90298         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
90299
90300 2002-06-26  Paul Eggert  <eggert@twinsun.com>
90301
90302         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
90303         New macro.  Use it uniformly instead of
90304         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
90305         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
90306         reported by Vin Shelton.
90307
90308 2002-06-22  Paul Eggert  <eggert@twinsun.com>
90309
90310         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
90311         Do not assume SA_SIGINFO behavior.
90312         Bug reported by Jim Meyering on NetBSD 1.5.2.
90313
90314 2002-06-22  Jim Meyering  <meyering@lucent.com>
90315
90316         * m4/c-stack.m4: New file, from diffutils-2.8.2.
90317         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
90318
90319         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
90320         now that configure.ac uses AC_GNU_SOURCE.
90321         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
90322         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
90323
90324         Update to latest tools.  Suggestions from Paul Eggert.
90325         * m4/stdbool.m4: New file, from diffutils-2.8.2.
90326         * m4/gnu-source.m4: Update from diffutils-2.8.2.
90327         * m4/fnmatch.m4: Likewise.
90328         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
90329         to AC_HEADER_STDBOOL
90330
90331 2002-06-22  Jim Meyering  <meyering@lucent.com>
90332
90333         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
90334         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
90335
90336 2002-06-22  Jim Meyering  <meyering@lucent.com>
90337
90338         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
90339
90340         * lib/exitfail.c, exitfail.h: Likewise.
90341         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
90342
90343         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
90344         of fnmatch.h.
90345         (EXTRA_DIST): Add fnmatch_loop.c.
90346         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
90347
90348         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
90349         * lib/fnmatch.c: Update from diffutils-2.8.2.
90350         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
90351         * lib/fnmatch.h: Remove file.
90352
90353 2002-06-21  Jim Meyering  <meyering@lucent.com>
90354
90355         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
90356         * m4/mbrtowc.m4: Likewise.
90357
90358         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
90359         * m4/mbswidth.m4: Reflect name change:
90360         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
90361         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
90362
90363         * m4/lib-link.m4: Update from gettext-0.11.2.
90364         * m4/gettext.m4: Likewise.
90365
90366         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
90367         From Alfred M. Szmidt.
90368
90369 2002-06-18  Paul Eggert  <eggert@twinsun.com>
90370
90371         * lib/file-type.h: Report an error if neither S_ISREG nor
90372         S_IFREG is defined, instead of using a test specific to glibc
90373         2.2.  This should be safe, since POSIX requires S_ISREG and
90374         Unix Version 7 had S_IFREG.  We don't need to check for
90375         <sys/types.h> since we don't use any symbols that it defines.
90376
90377 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
90378
90379         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
90380         $@-t, so that each temporary file name is unique and valid in the first
90381         8 characters, for operation under DOS.
90382
90383 2002-06-15  Paul Eggert  <eggert@twinsun.com>
90384
90385         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
90386
90387 2002-06-15  Jim Meyering  <meyering@lucent.com>
90388
90389         Work even with DJGPP 2.03, which lacks support for symlinks.
90390         From Richard Dawe.
90391         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
90392         is defined.
90393         * lib/lchown.c (S_ISLNK): Likewise.
90394
90395 2002-06-15  Jim Meyering  <meyering@lucent.com>
90396
90397         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
90398         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
90399         have been included before this file.
90400
90401 2002-06-14  Jim Meyering  <meyering@lucent.com>
90402
90403         * lib/file-type.h: Use the version from diffutils-2.8.2.
90404         * lib/file-type.c: Likewise.
90405
90406 2002-06-07  Jim Meyering  <meyering@lucent.com>
90407
90408         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
90409         They're needed at least for NetBSD 1.5.2.
90410         ($statxfs_includes): Include those same headers.
90411         ($statxfs_includes): Include sys/vfs.h if available.
90412         ($statxfs_includes): Likewise for sys/statvfs.h.
90413         Check for the following members in both structs statfs and statvfs:
90414         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
90415
90416 2002-06-01  Jim Meyering  <meyering@lucent.com>
90417
90418         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
90419         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
90420
90421 2002-05-28  Jim Meyering  <meyering@lucent.com>
90422
90423         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
90424         Reported by Volker Borchert.
90425
90426 2002-05-27  Jim Meyering  <meyering@lucent.com>
90427
90428         Fix a problem seen only on nonconforming systems whereby ls.c's
90429         use of localtime, and then of gettimeofday would cause trouble:
90430         the localtime call used to initialize rpl_gettimeofday's save
90431         mechanism would clobber ls's current local time information so
90432         that in any long listing the first file would always be listed
90433         with date 1970-01-01.  Analysis by Volker Borchert.
90434
90435         * lib/gettimeofday.c (localtime): Undefine.
90436         (rpl_localtime): New function.
90437
90438 2002-05-27  Jim Meyering  <meyering@lucent.com>
90439
90440         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
90441         localtime.
90442
90443         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
90444         use the replacement function; it wouldn't resolve at link time.
90445         Reported by Volker Borchert.
90446
90447 2002-05-22  Jim Meyering  <meyering@lucent.com>
90448
90449         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
90450         file-type.h.
90451         * lib/file-type.h: New file.
90452         * lib/file-type.c (file_type): New file/function.  Extracted from
90453         diffutils.
90454
90455 2002-04-30  Jim Meyering  <meyering@lucent.com>
90456
90457         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
90458
90459 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90460
90461         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
90462
90463 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90464
90465         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
90466         Do not check for alloca.h (no longer used) or stdbool.h (was never
90467         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
90468
90469 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90470
90471         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
90472
90473 2002-04-29  Jim Meyering  <meyering@lucent.com>
90474
90475         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
90476         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
90477         Use AC_FUNC_STRNLEN here instead.
90478
90479         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
90480         With autoconf-2.53a, it's part of AC_PROG_CC.
90481
90482 2002-04-28  Paul Eggert  <eggert@twinsun.com>
90483
90484         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
90485         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
90486
90487 2002-04-28  Paul Eggert  <eggert@twinsun.com>
90488
90489         * lib/sig2str.h, lib/sig2str.c: New files.
90490         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
90491
90492 2002-04-28  Paul Eggert  <eggert@twinsun.com>
90493
90494         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
90495         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
90496         of 127, since 64 is the largest conceivable number for ancient
90497         nonstandard hosts.
90498         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
90499
90500 2002-04-28  Jim Meyering  <meyering@lucent.com>
90501
90502         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
90503
90504 2002-04-24  Jim Meyering  <meyering@lucent.com>
90505
90506         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
90507         (jm_PREREQ): Use it.
90508
90509         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
90510         mach/mach.h fcntl.h.
90511         Check for this function: setlocale.
90512
90513 2002-04-24  Jim Meyering  <meyering@lucent.com>
90514
90515         * lib/gettext.h: New file, from Gettext.
90516         * lib/Makefile.am (INCLUDES): Remove -I../intl.
90517         (libfetish_a_SOURCES): Add gettext.h.
90518
90519 2002-04-16  Jim Meyering  <meyering@lucent.com>
90520
90521         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
90522         ut_pid, ut_id, ut_exit.
90523
90524 2002-04-16  Jim Meyering  <meyering@lucent.com>
90525
90526         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
90527         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
90528         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
90529
90530 2002-04-12  Jim Meyering  <meyering@lucent.com>
90531
90532         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
90533         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
90534         existence of the getmntinfo function.  Needed for Darwin 5.3.
90535
90536         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
90537         This is necessary at least on Darwin 5.3.
90538
90539         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
90540         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
90541         strnlen.o in the library, and that makes some versions of ranlib
90542         object.
90543
90544 2002-04-12  Jim Meyering  <meyering@lucent.com>
90545
90546         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
90547
90548 2002-04-09  Jim Meyering  <meyering@lucent.com>
90549
90550         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
90551         to be more precise.  Rather than saying we're checking whether the
90552         function `works', say what we're testing.
90553         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
90554         Reported by Bruno Haible.
90555
90556 2002-03-10  Jim Meyering  <meyering@lucent.com>
90557
90558         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
90559         Suggestion from Santiago Vila.
90560
90561 2002-03-08  Jim Meyering  <meyering@lucent.com>
90562
90563         * lib/rename.c: Mention that this wrapper is needed also on
90564         mips-dec-ultrix4.4 systems.
90565
90566 2002-03-02  Jim Meyering  <meyering@lucent.com>
90567
90568         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
90569         not HAVE_CLOCK_SETTIME.
90570
90571 2002-02-27  Paul Eggert  <eggert@twinsun.com>
90572
90573         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
90574         Check for clock_settime.
90575
90576 2002-02-27  Paul Eggert  <eggert@twinsun.com>
90577
90578         * lib/nanosleep.h: Rename to....
90579         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
90580
90581         * lib/gettime.c: New file.
90582         * lib/settime.c: New file.
90583         * lib/stime.c: Remove.
90584
90585         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
90586         timespec.h.  Remove nanosleep.h.
90587
90588 2002-02-25  Paul Eggert  <eggert@twinsun.com>
90589
90590         * m4/acl.m4: New file.
90591         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
90592         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
90593
90594 2002-02-25  Paul Eggert  <eggert@twinsun.com>
90595
90596         * lib/acl.c, lib/acl.h: New files.
90597         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
90598
90599 2002-02-24  Jim Meyering  <meyering@lucent.com>
90600
90601         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
90602         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
90603         cause trouble.  Reported by Nelson Beebe.
90604
90605 2002-02-23  Paul Eggert  <eggert@twinsun.com>
90606
90607         * lib/path-concat.c (xpath_concat): Reorder code to pacify
90608         compilers that don't know that xalloc_die never returns.
90609
90610 2002-02-20  Jim Meyering  <meyering@lucent.com>
90611
90612         * lib/getdate.c: Regenerate using bison-1.33.
90613
90614 2002-02-17  Jim Meyering  <meyering@lucent.com>
90615
90616         * config/config.guess (main): Don't use `head -1'; it's no longer
90617         portable. Use `sed 1q' instead.
90618
90619 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
90620
90621         * m4/codeset.m4: Upgrade to gettext-0.11.
90622         * m4/gettext.m4: Upgrade to gettext-0.11.
90623         * m4/glibc21.m4: Upgrade to gettext-0.11.
90624         * m4/iconv.m4: Upgrade to gettext-0.11.
90625         * m4/isc-posix.m4: Upgrade to gettext-0.11.
90626         * m4/lcmessage.m4: Upgrade to gettext-0.11.
90627         * m4/lib-ld.m4: New file, from gettext-0.11.
90628         * m4/lib-link.m4: New file, from gettext-0.11.
90629         * m4/lib-prefix.m4: New file, from gettext-0.11.
90630         * m4/progtest.m4: Upgrade to gettext-0.11.
90631
90632 2002-02-15  Paul Eggert  <eggert@twinsun.com>
90633
90634         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
90635         (jm_PREREQ): Use it.
90636
90637 2002-02-15  Paul Eggert  <eggert@twinsun.com>
90638
90639         * lib/posixver.c, lib/posixver.h: New files.
90640         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
90641
90642 2002-02-02  Paul Eggert  <eggert@twinsun.com>
90643             Bruno Haible  <bruno@clisp.org>
90644
90645         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
90646         (fwrite_success_callback): New declaration.
90647         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
90648         print_unicode_char. Call failure callback instead of error.
90649         (fwrite_success_callback): New function.
90650         (exit_failure_callback): New function.
90651         (fallback_failure_callback): New function.
90652         (print_unicode_char): Call unicode_to_mb.
90653
90654 2002-01-26  Jim Meyering  <meyering@lucent.com>
90655
90656         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
90657         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
90658
90659 2002-01-26  Jim Meyering  <meyering@lucent.com>
90660
90661         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
90662
90663 2002-01-22  Paul Eggert  <eggert@twinsun.com>
90664
90665         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
90666
90667 2002-01-22  Jim Meyering  <meyering@lucent.com>
90668
90669         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
90670         Otherwise, some versions of automake would omit the rule that makes
90671         Makefile from Makefile.in.
90672
90673 2002-01-21  Paul Eggert  <eggert@twinsun.com>
90674
90675         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
90676         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
90677         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
90678         (memcoll): Set errno to zero if there is no error.
90679
90680         * lib/quotearg.c (quotearg_buffer_restyled):
90681         Fix bug with quoting buffers containing NUL when backslashing escapes.
90682         This bug was exposed by the other changes in this patch.
90683         (quotearg_n_options): New arg ARGSIZE.
90684         All callers changed.
90685         (quoting_options_from_style): New function.
90686         (quotearg_n_style): Use it.
90687         (quotearg_n_style_mem): New function.
90688
90689         * lib/quotearg.h (quotearg_n_style_mem): New function.
90690
90691 2002-01-19  Jim Meyering  <meyering@lucent.com>
90692
90693         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
90694         Remove useless quotes: DF_PROG="df".
90695         * m4/strnlen.m4: New file.
90696
90697 2002-01-16  Paul Eggert  <eggert@twinsun.com>
90698
90699         * lib/backupfile.c (ISDIGIT): Comment fix.
90700         * lib/getdate.y (ISDIGIT): Likewise.
90701         * lib/posixtm.c (ISDIGIT, year): Likewise.
90702         * lib/strverscmp.c (ISDIGIT): Likewise.
90703         * lib/userspec.c (ISDIGIT): Likewise.
90704
90705 2002-01-16  Jim Meyering  <meyering@lucent.com>
90706
90707         * lib/getdate.y: Add three semicolons, each just before a closing
90708         brace. Bison (as of version 1.31) no longer papers over that mistake.
90709
90710 2002-01-05  Jim Meyering  <meyering@lucent.com>
90711
90712         * lib/version-etc.c (version_etc_copyright): Update copyright year.
90713
90714 2001-12-19  Paul Eggert  <eggert@twinsun.com>
90715
90716         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
90717         not silently exit merely because the output buffer happens to
90718         have nothing pending.
90719
90720 2001-12-18  Paul Eggert  <eggert@twinsun.com>
90721
90722         See the big note in ../ChangeLog.
90723         * lib/human.c (suffixes): Prefer K to k for 1024.
90724         (generate_suffix_backwards): New function.
90725         (human_readable_inexact): Use it.
90726         * lib/xstrtol.c (__xstrtol): If there is no number but there
90727         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
90728         Accept 'K' as well as 'k'.
90729
90730 2001-12-15  Jim Meyering  <meyering@lucent.com>
90731
90732         * lib/regex.h (__restrict_arr): Update from libc.
90733
90734         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
90735         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
90736         (STREQ): Define.
90737
90738 2001-12-14  Jim Meyering  <meyering@lucent.com>
90739
90740         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
90741         Suggestion from Bruno Haible.
90742
90743 2001-12-10  Jim Meyering  <meyering@lucent.com>
90744
90745         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
90746         xrealloc, Instead, include "xalloc.h".
90747         (initbuffer): Don't cast xmalloc return value to char*.
90748         (readline): Reword comment.
90749         Don't cast xrealloc return value to char*
90750         Return NULL, not 0.
90751
90752 2001-12-09  Jim Meyering  <meyering@lucent.com>
90753
90754         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
90755         about `signed and unsigned type in conditional expression'.
90756         * lib/posixtm.c (posix_time_parse): Likewise.
90757
90758         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
90759
90760         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
90761         to avoid a pedantic warning.
90762
90763         * lib/getstr.c: Don't include assert.h.
90764         (getstr): Remove warning-evoking assertions.
90765         Return -1 if offset parameter is out of bounds.
90766         Change the type of a local from int to size_t.
90767
90768         * lib/strftime.c (my_strftime_localtime_r): Include this function
90769         definition in the `#if ! HAVE_TM_GMTOFF' block.
90770
90771         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
90772         Include xalloc.h instead.
90773
90774 2001-12-02  Jim Meyering  <meyering@lucent.com>
90775
90776         * lib/tempname.c: Don't declare getenv, thus reverting the change of
90777         2001-11-18.  It's no longer necessary, now that stdlib.h is always
90778         included.
90779
90780         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
90781         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
90782
90783 2001-11-30  Akim Demaille  <akim@epita.fr>
90784
90785         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
90786         before being defined.
90787
90788 2001-11-27  Paul Eggert  <eggert@twinsun.com>
90789
90790         * lib/quotearg.h (quotearg_n, quotearg_n_style):
90791         First arg is int, not unsigned.
90792         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
90793         (SIZE_MAX, UINT_MAX): New macros.
90794         (quotearg_n_options): Abort if N is negative.
90795         Avoid overflow check on hosts where size_t is 64 bits and int
90796         is 32 bits, as overflow is impossible there.
90797         Fix off-by-one typo that caused unnecessary reallocation.
90798
90799 2001-11-27  Jim Meyering  <meyering@lucent.com>
90800
90801         * lib/tempname.c: Merge with version from libc.
90802         * lib/regex.c: Likewise.
90803
90804         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
90805         systems for which STDC_HEADERS is 0, it was not included, resulting in
90806         a warning about an integer-to-pointer conversion problem with getenv.
90807         Reported by Volker Borchert.
90808
90809 2001-11-26  Jim Meyering  <meyering@lucent.com>
90810
90811         * lib/gtod.h: Remove file.
90812         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
90813         * lib/gettimeofday.c: Don't include gtod.h.
90814         (GTOD_init): Remove function.
90815         (rpl_gettimeofday): Do its job here instead, rather than aborting.
90816         Suggestion from Volker Borchert.
90817
90818 2001-11-23  Jim Meyering  <meyering@lucent.com>
90819
90820         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
90821         it.
90822         * lib/hash.c (struct hash_table): Define it here instead.
90823
90824 2001-11-22  Jim Meyering  <meyering@lucent.com>
90825
90826         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
90827
90828 2001-11-20  Jim Meyering  <meyering@lucent.com>
90829
90830         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
90831         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
90832
90833 2001-11-19  Jim Meyering  <meyering@lucent.com>
90834
90835         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
90836         directory.  Use "conftestXXXXXX" as the template.
90837         Suggestion from Paul Eggert.
90838
90839         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
90840         immediately, so the test doesn't mistakenly hit the max-open-files
90841         limit.
90842
90843 2001-11-18  Paul Eggert  <eggert@twinsun.com>
90844
90845         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
90846         (TEMPORARIES): New macro.
90847         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
90848         removes an artificial limitation (e.g. HP-UX 10.20, where
90849         TMP_MAX is 17576).
90850
90851 2001-11-18  Jim Meyering  <meyering@lucent.com>
90852
90853         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
90854
90855 2001-11-18  Jim Meyering  <meyering@lucent.com>
90856
90857         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
90858         on SunOS 4.
90859
90860         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
90861         files will be created before anything else.
90862
90863 2001-11-17  Paul Eggert  <eggert@twinsun.com>
90864
90865         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
90866         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
90867
90868 2001-11-17  Jim Meyering  <meyering@lucent.com>
90869
90870         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
90871         Prompted by a report from Bob Proulx.
90872
90873         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
90874         Instead, require UTILS_FUNC_MKSTEMP.
90875
90876 2001-11-17  Jim Meyering  <meyering@lucent.com>
90877
90878         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
90879         Now, that's done as part of AC_FUNC_STRTOD.
90880
90881 2001-11-17  Jim Meyering  <meyering@lucent.com>
90882
90883         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
90884         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
90885         rather than group writable.  Patch by Juan F. Codagnone.
90886
90887         * lib/readtokens.c: Remove explicit declarations of xmalloc and
90888         xrealloc, Instead, include "xalloc.h".
90889
90890         * lib/mountlist.c: Include unlocked-io.h after all system headers.
90891         Remove explicit declarations of xmalloc, xrealloc,
90892         and xstrdup.  Instead, include "xalloc.h".
90893
90894         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
90895         unlocked-io.h.
90896         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
90897         Likewise.
90898         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
90899
90900         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
90901         Reported by Padraig Brady.
90902
90903         * lib/mkstemp.c: #undef mkstemp.
90904         Include config.h.
90905         (rpl_mkstemp): Rename from mkstemp.
90906         Protoize.
90907
90908 2001-11-16  Jim Meyering  <meyering@lucent.com>
90909
90910         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
90911         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
90912         determine the amount of total physical memory, use pstat_getstatic.
90913         HPUX-11 doesn't define _SC_PHYS_PAGES.
90914         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
90915         If sysconf couldn't be used to determine the amount of available
90916         physical memory, use both pstat_getstatic and pstat_getdynamic.
90917         Based on a patch from Bob Proulx.
90918
90919 2001-11-10  Jim Meyering  <meyering@lucent.com>
90920
90921         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
90922         (jm_PREREQ): Use it.
90923
90924 2001-11-09  Jim Meyering  <meyering@lucent.com>
90925
90926         * m4/jm-macros.m4: Require autoconf-2.52f.
90927         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
90928         Use these AC_-prefixed names, not the AM_-prefixed ones.
90929
90930         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
90931
90932 2001-11-05  Jim Meyering  <meyering@lucent.com>
90933
90934         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
90935
90936 2001-11-04  Jim Meyering  <meyering@lucent.com>
90937
90938         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
90939         $DEFS.
90940
90941 2001-11-03  Jim Meyering  <meyering@lucent.com>
90942
90943         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
90944         of AC_DEFUN.
90945
90946         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
90947         know the name of the variable in the macro definition.
90948
90949 2001-11-03  Jim Meyering  <meyering@lucent.com>
90950
90951         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
90952         in argmatch_to_argument call.
90953
90954         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
90955         argument.
90956
90957         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
90958         e.g., a fault due to an attempt to free a NULL pointer.
90959
90960 2001-11-01  Jim Meyering  <meyering@lucent.com>
90961
90962         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
90963         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
90964
90965 2001-11-01  Jim Meyering  <meyering@lucent.com>
90966
90967         * lib/dirfd.c, lib/dirfd.h: New files.
90968         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
90969
90970         * lib/hash.c (hash_print) [TESTING]: Clean up.
90971
90972 2001-10-22  Paul Eggert  <eggert@twinsun.com>
90973
90974         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
90975         to avoid a warning if -Wall.
90976
90977 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
90978
90979         * README: New file
90980         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
90981         (per RMS's instructions, this is now the canonical source)
90982         * lgpl/, gpl/: New directories.
90983
90984 2001-10-21  Paul Eggert  <eggert@twinsun.com>
90985
90986         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
90987
90988 2001-10-21  Jim Meyering  <meyering@lucent.com>
90989
90990         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
90991         this code would end up calling gettext even in packages built
90992         with --disable-nls.
90993         * lib/getopt.c (_): Likewise.
90994         * lib/regex.c (_): Likewise.
90995
90996 2001-10-20  Paul Eggert  <eggert@twinsun.com>
90997
90998         * m4/error.m4 (jm_PREREQ_ERROR):
90999         Do not invoke AC_CHECK_FUNCS with strerror_r, as
91000         AC_FUNC_STRERROR_R does that.
91001         Check for strerror declaration.
91002
91003         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
91004         are supposed to have them these days.
91005         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
91006         Merge changes from latest Autoconf CVS.
91007         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
91008         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
91009         POSIX decided to standardize on the int flavor of strerror_r.
91010
91011 2001-10-20  Paul Eggert  <eggert@twinsun.com>
91012
91013         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
91014         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
91015         Use strerror_r that is only a macro, even if it is not a function.
91016         (strerror): Check for HAVE_DECL_STRERROR before declaring.
91017         (private_strerror): Use prototypes, not old-style function definition.
91018         (print_errno_message): New function.
91019         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
91020         char*-flavored one.
91021         (error_tail, error, error_at_line): Use it.
91022
91023 2001-10-11  Jim Meyering  <meyering@lucent.com>
91024
91025         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
91026         and quote_n (1, ... to avoid clobbering a buffer.
91027
91028 2001-10-05  Jim Meyering  <meyering@lucent.com>
91029
91030         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
91031         hash-pjw.h.
91032         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
91033         * lib/hash-pjw.h: New file.
91034
91035 2001-09-30  Jim Meyering  <meyering@lucent.com>
91036
91037         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
91038         `struct fsstat' has the `f_fstypename' member.
91039         Use that to define FS_TYPE, which is now used to make
91040         the getfsstat link test tighter.
91041
91042 2001-09-30  Jim Meyering  <meyering@lucent.com>
91043
91044         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
91045         Include <sys/ucred.h>, for Apple Darwin.
91046         Include sys/mount.h and sys/fs_types.h only if available.
91047         (FS_TYPE): Define.
91048         (read_filesystem_list): Use FS_TYPE.
91049
91050 2001-09-29  Paul Eggert  <eggert@twinsun.com>
91051
91052         * lib/exclude.c (excluded_filename): 0 -> false, since it's
91053         a boolean context.
91054
91055 2001-09-29  Jim Meyering  <meyering@lucent.com>
91056
91057         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
91058         [one-argument getmntent function]): Include stdio.h before mntent.h.
91059         SunOS 4.1.x needs it for the declaration of `FILE'.
91060         Patch by Volker Borchert.
91061
91062         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
91063         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
91064         sys/fs_types.h, and make the link-test for getfsstat guard #include
91065         directives with appropriate #if HAVE_*_H tests so that we can
91066         detect getfsstat on Apple Darwin1.3.7 systems.
91067         Reported by Nelson Beebe.
91068         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
91069
91070 2001-09-28  Paul Eggert  <eggert@twinsun.com>
91071
91072         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
91073         #defines strtoimax.  Also treat the other strto* functions
91074         like strtoimax.
91075
91076         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
91077         Check for strtoul and strtoumax,
91078         as those declarations are made even in the signed case.
91079         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
91080         Likewise, for strtol and strtoimax.
91081
91082 2001-09-28  Paul Eggert  <eggert@twinsun.com>
91083
91084         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
91085         #defines strtoimax.  Also treat the other strto* functions
91086         like strtoimax.
91087
91088         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
91089         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
91090         (strtoimax, strtoumax): Do not declare if already defined as a macro.
91091
91092 2001-09-26  Jim Meyering  <meyering@lucent.com>
91093
91094         Most macros in unlocked-io.h had the wrong number of arguments.
91095         * lib/gen-uio: New script.
91096         (USE_UNLOCKED_IO): Define to 1 if not already defined.
91097         * lib/unlocked-io.hin: Remove file.
91098         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
91099         rather than trying to embed it here.
91100         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
91101         Reported by Padraig Brady.
91102
91103 2001-09-25  Volker Borchert  <bt@teknon.de>
91104
91105         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
91106         `result'.
91107
91108 2001-09-24  Jim Meyering  <meyering@lucent.com>
91109
91110         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
91111
91112 2001-09-23  Jim Meyering  <meyering@lucent.com>
91113
91114         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
91115         instead of the mere test for existence of mntent.h.  The latter
91116         would get a false-positive on AIX 3.4 systems.
91117         In the outer getmntent if-block, don't die if neither of the getmntent
91118         tests succeeds.  Instead, just fall through and continue with the
91119         remaining tests.
91120
91121 2001-09-23  Jim Meyering  <meyering@lucent.com>
91122
91123         * lib/mountlist.c: Remove useless parentheses in #if directives.
91124         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
91125         the deprecated MOUNTED symbol is no longer defined in mntent.h.
91126
91127 2001-09-22  Jim Meyering  <meyering@lucent.com>
91128
91129         * m4/gettext.m4: New file.  From gettext.
91130         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
91131         * m4/progtest.m4: Likewise
91132         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
91133         * m4/glibc21.m4: Likewise.
91134
91135         * m4/libintl.m4: Remove.  No longer used.
91136
91137 2001-09-22  Jim Meyering  <meyering@lucent.com>
91138
91139         * lib/localcharset.c: Update from latest gettext.
91140         * lib/config.charset: Likewise.
91141
91142 2001-09-20  Jim Meyering  <meyering@lucent.com>
91143
91144         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
91145         strtoimax.
91146         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
91147         strtoumax.
91148
91149 2001-09-20  Jim Meyering  <meyering@lucent.com>
91150
91151         * lib/xstrtol.c (strtoimax): Guard declaration with
91152         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
91153         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
91154         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
91155         (strtoumax): Likewise, for completeness (it wasn't necessary).
91156
91157 2001-09-17  Paul Eggert  <eggert@twinsun.com>
91158
91159         * lib/strtoimax.c (HAVE_LONG_LONG):
91160         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
91161         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
91162         to work around bug in IBM C compiler.
91163
91164 2001-09-17  Jim Meyering  <meyering@lucent.com>
91165
91166         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
91167         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
91168         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
91169         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
91170         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
91171         whenever the right hand side need not be expanded by the shell.
91172
91173 2001-09-16  Paul Eggert  <eggert@twinsun.com>
91174
91175         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
91176         library.  It's not correct, as some older glibcs are buggy.
91177         fnmatch wasn't fixed until glibc 2.2.
91178
91179         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
91180         special shell magic here.
91181
91182 2001-09-16  Jim Meyering  <meyering@lucent.com>
91183
91184         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
91185         * m4/jm-macros.m4: Require it.
91186
91187 2001-09-16  Jim Meyering  <meyering@lucent.com>
91188
91189         * lib/mkdir.c: New file.
91190
91191 2001-09-15  Jim Meyering  <meyering@lucent.com>
91192
91193         * m4/jm-macros.m4: Check for help2man.
91194
91195 2001-09-11  Jim Meyering  <meyering@lucent.com>
91196
91197         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
91198         The body, by Paul Eggert, was moved here from configure.in.
91199         * m4/jm-macros.m4: Require UTILS_HOST_OS.
91200
91201 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91202
91203         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
91204         (jm_PREREQ): Use it.
91205
91206 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91207
91208         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
91209         Use ssize_t, not int, to store result of readlink.
91210         Check for ssize_t overflow as well as size_t overflow,
91211         as POSIX says the result of readlink is implementation-defined
91212         when ssize_t overflows.
91213         Remove unnecessary cast to char*.
91214         Use free+malloc instead of realloc, as the storage doesn't need
91215         to be preserved and it's clearer and can be more efficient that way.
91216         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
91217         * lib/xreadlink.h (xreadlink): Update prototype.
91218
91219 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91220
91221         * lib/xgetcwd.c: Revert some of the previous change; intead,
91222         fix the HAVE_GETCWD_NULL code to behave more like the
91223         !HAVE_GETCWD_NULL code used to.
91224
91225         Include "xalloc.h".
91226         (xgetcwd): Do not return NULL when memory is exhausted; instead,
91227         invoke xalloc_die.
91228
91229 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91230
91231         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
91232         sys/param.h, as pathmax.h includes them.
91233
91234 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91235
91236         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
91237         (jm_PREREQ_XGETCWD): New macro.
91238
91239         * m4/getcwd.m4: New file.
91240
91241 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91242
91243         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
91244         like the HAVE_GETCWD_NULL code.
91245         Include pathmax.h if not HAVE_GETCWD.
91246         Do not include xalloc.h.
91247         (INITIAL_BUFFER_SIZE): New symbol.
91248         Do not use xmalloc / xrealloc, since the caller is responsible for
91249         handling errors.  Preserve errno around `free' during failure.
91250         Do not overrun buffer when using getwd.
91251
91252 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91253
91254         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
91255         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
91256         getcwd (NULL, 0).
91257
91258 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91259
91260         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
91261         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
91262         spotted by Jim Meyering.
91263
91264 2001-09-03  Jim Meyering  <meyering@lucent.com>
91265
91266         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
91267         failure.
91268
91269 2001-09-02  Jim Meyering  <meyering@lucent.com>
91270
91271         * lib/error.c: Update from GNU libc.
91272
91273 2001-09-01  Jim Meyering  <meyering@lucent.com>
91274
91275         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
91276         Used by df.
91277
91278 2001-09-01  Jim Meyering  <meyering@lucent.com>
91279
91280         * lib/xreadlink.c: New file.
91281         * lib/xreadlink.h: New file.
91282         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
91283         xreadlink.h.
91284
91285         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
91286         doesn't conflict with sparc Solaris 7's definition in
91287         /usr/include/sys/int_types.h.
91288
91289         * lib/exclude.c: Use `""', not `<>' to #include non-system header
91290         files.
91291         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
91292         and strncasecmp as r-values.  Unixware didn't have declarations.
91293
91294 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91295
91296         * lib/xstrtol.h: Add copyright notice.
91297         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
91298         LONGINT_INVALID_SUFFIX_CHAR.
91299
91300 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91301
91302         * lib/xstrtol.c (strtoimax): New decl.
91303
91304 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91305
91306         * lib/xgetcwd.c: Don't include pathmax.h.
91307         Include stdlib.h and unistd.h if available.
91308         Include xalloc.h.
91309         (xmalloc, xstrdup, free): Remove decls.
91310         (xgetcwd): Don't assume sizes fit in unsigned.
91311         Check for overflow when computing sizes.
91312         Simplify reallocation code.
91313
91314 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91315
91316         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
91317         a directory's st_size can have an arbitrary value, so the old
91318         usage could waste an arbitrary amount of memory.  All uses
91319         changed.
91320         * lib/savedir.h: Update prototype.
91321
91322 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91323
91324         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
91325
91326         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
91327         old strtoimax.c.
91328
91329         Also, make the following further changes to make this file's
91330         configuration more similar to that of strtol.c:
91331         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
91332         (strtoumax, uintmax_t, strtoull, strtol): Remove.
91333         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
91334         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
91335         changed to signed values.
91336
91337         And make the following changes as well:
91338         Fix copyright notice, as 1999 was missing.
91339         (verify): New macro.
91340         (strtoimax): Check sizes at compile-time, not run-time.
91341         Prefer strtol to strtoll if both work.
91342         (main): Remove; it was not that useful and was a pain to maintain.
91343
91344         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
91345
91346 2001-08-31  Jim Meyering  <meyering@lucent.com>
91347
91348         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
91349         Use an initial, malloc'd, buffer of length 128 rather than
91350         a statically allocated one of length 1024.
91351
91352 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91353
91354         Simplify code, partly by assuming autoconf 2.52 semantics.
91355
91356         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
91357
91358         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
91359         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
91360         All uses removed.
91361         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
91362         Move AC_REQUIRE to next-to-top level, to avoid confusion.
91363         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
91364         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
91365         jm_AC_HEADER_INTTYPES_H.
91366         * m4/jm-macros.m4 (jm_MACROS): Likewise.
91367
91368         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
91369
91370         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
91371         Quote first arg of AC_DEFUN.
91372         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
91373         since they are needed to parse the include file even if we need
91374         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
91375         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
91376         but with opposite signedness.
91377
91378 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91379
91380         Merge 'exclude' changes from tar 1.13.22.
91381         This fixes one or two unlikely storage allocation overflow bugs,
91382         but doesn't change user-visible behavior otherwise.
91383
91384 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91385
91386         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
91387         (jm_PREREQ_EXCLUDE): New macro.
91388
91389 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91390
91391         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
91392         tm to be declared.
91393
91394 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91395
91396         * lib/hash.c: Remove '2001' from copyright notice.
91397
91398 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91399
91400         * lib/full-write.h: New file.
91401         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
91402         * lib/full-write.c: Correct credits, as cccp.c no longer
91403         exists and anyway it was so heavily changed from the old cccp
91404         code as to be unrecognizable.  Include full-write.h.
91405         (full_write): Return size_t, with short writes meaning failure.
91406         All callers changed.  This fixes a bug with large buffers
91407         on 64-bit hosts.
91408         * lib/utime.c: Include full-write.h.
91409
91410 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91411
91412         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
91413         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
91414         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
91415         Include if available.
91416         (<xalloc.h>): Include
91417         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
91418         (verify): New macro.  Use it to verify that EXCLUDE macros do not
91419         collide with FNM macros.
91420         (struct patopts): New struct.
91421         (struct exclude): Use it, as exclude patterns now come with options.
91422         (new_exclude): Support above changes.
91423         (new_exclude, add_exclude_file):
91424         Initial size must now be a power of two to simplify overflow checking.
91425         (free_exclude, fnmatch_no_wildcards): New function.
91426         (excluded_filename): No longer requires options arg, as the options
91427         are determined by add_exclude.  Now returns bool, not int.
91428         (excluded_filename, add_exclude):
91429         Add support for the fancy new exclusion options.
91430         (add_exclude, add_exclude_file): Now takes int options arg.
91431         Check for arithmetic overflow when computing sizes.
91432         (add_exclude_file): xrealloc might modify errno, so don't
91433         realloc until after errno might be used.
91434
91435         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
91436         New macros.
91437         (free_exclude): New decl.
91438         (add_exclude, add_exclude_file): Now takes int options arg.
91439         (excluded_filename): No longer requires options arg, as the options
91440         are determined by add_exclude.  Now returns bool, not int.
91441
91442 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91443
91444         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
91445
91446 2001-08-27  Jim Meyering  <meyering@lucent.com>
91447
91448         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
91449
91450         * lib/version-etc.c (N_): Remove definition.
91451         Revert most of last change.
91452         Instead, simply don't mark the `Copyright...' string for translation.
91453         Based on advice from Paul Eggert.
91454
91455         * lib/strtoxmax.c: Tweak comment.
91456
91457 2001-08-26  Jim Meyering  <meyering@lucent.com>
91458
91459         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
91460
91461         * m4/xstrtoimax.m4: New file.
91462         * m4/xstrtoumax.m4: Add comments explaining why we
91463         AC_REPLACE_FUNCS(strtol).
91464
91465 2001-08-26  Jim Meyering  <meyering@lucent.com>
91466
91467         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
91468         of copyright with `%s' so translators don't get an untranslated
91469         message in 2002.
91470         (COPYRIGHT_YEAR): Define.
91471         (version_etc): Use fprintf rather than fputs.
91472         Suggestion from Ulrich Drepper.
91473
91474         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
91475
91476         * lib/strtoll.c: New file, from GNU libc.
91477         * lib/xstrtoimax.c: New file.
91478
91479         * lib/xstrtol.h: Add xstrtoimax.
91480         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
91481         * lib/strtoimax.c: New file.  Likewise, but first define
91482         STRTOUXMAX_SIGNED.
91483
91484         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
91485         ...
91486         * lib/strtoxmax.c: ... then renamed to this.
91487
91488 2001-08-18  Paul Eggert  <eggert@twinsun.com>
91489
91490         * m4/inttypes.m4: Add AC_PREREQ(2.13).
91491         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
91492         (jm_AC_TYPE_INTMAX_T): New macro.
91493         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
91494
91495         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
91496
91497         * m4/longlong.m4: Renamed from ulonglong.m4.
91498         * m4/inttypes.m4: Renamed from inttypes_h.m4.
91499         * m4/uintmax_t.m4: Removed.
91500
91501 2001-08-13  Paul Eggert  <eggert@twinsun.com>
91502
91503         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
91504         Port to Solaris 8, where 'sed' requires a space after the 'r'
91505         command, and where sh dislikes "$/".  Clean up the spacing a bit.
91506         Redirect output to $tmp just once.
91507
91508 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
91509
91510         * lib/addext.c (<errno.h>): Include.
91511         (errno): Declare if not defined.
91512         (addext): Work correctly when pathconf returns -1 and leaves
91513         errno alone because there is no limit.  Also, work even if
91514         pathconf returns a value greater than SIZE_MAX.
91515
91516 2001-08-12  Jim Meyering  <meyering@lucent.com>
91517
91518         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
91519         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
91520         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
91521         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
91522         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
91523         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
91524         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
91525         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
91526         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
91527         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
91528         utime.m4, utimes.m4, xstrtoumax.m4:
91529         Quote the first argument in each use of AC_DEFUN.
91530
91531 2001-08-12  Jim Meyering  <meyering@lucent.com>
91532
91533         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
91534         Simply `return getcwd (NULL, 0);'.
91535         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
91536         Use 1300 as initial value for length, not PATH_MAX.
91537
91538         * lib/pathmax.h: Clean up cpp syntax.
91539
91540 2001-08-12  Jim Meyering  <meyering@lucent.com>
91541
91542         * lib/gettimeofday.c: New file.
91543         * lib/gtod.h: New file.
91544         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
91545
91546 2001-08-05  Jim Meyering  <meyering@lucent.com>
91547
91548         * m4/jm-macros.m4: Require autoconf-2.52.
91549
91550 2001-08-04  Jim Meyering  <meyering@lucent.com>
91551
91552         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
91553         stmt, to get in sync with glibc.
91554
91555 2001-08-03  Paul Eggert  <eggert@twinsun.com>
91556
91557         The following changes are from gettext 0.10.39 as maintained by
91558         Bruno Haible.
91559
91560         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
91561         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
91562         with inverted sense.  All uses changed.
91563
91564         * lib/mbswidth.c: Don't include <limits.h>.
91565         Include <stdlib.h> and <string.h> unconditionally.
91566         (iswcntrl, mbsinit, ISCNTRL): New macros.
91567         (mbsnwidth): Use K&R style function declarations.
91568         Don't bother checking for MB_LEN_MAX == 1, since the compiler
91569         can optimize it when MB_CUR_MAX == 1.
91570         The width of control characters is zero, not 1.
91571
91572 2001-08-03  Paul Eggert  <eggert@twinsun.com>
91573
91574         The following changes are from gettext 0.10.39 as maintained by
91575         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
91576
91577         * m4/codeset.m4: Upgrade to serial AM1.
91578         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
91579         all uses changed.  Quote first arg of AC_DEFUN.
91580         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
91581
91582         * m4/iconv.m4: Upgrade to serial AM2.
91583         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
91584         Add --with-libconv-prefix.
91585         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
91586         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
91587         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
91588         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
91589         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
91590
91591         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
91592         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
91593         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
91594         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
91595         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
91596         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
91597         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
91598         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
91599         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
91600
91601         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
91602         string.h any more.
91603
91604         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
91605         not the default value.
91606
91607         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
91608         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
91609         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
91610         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
91611         Also check for iswcntrl, used for wcwidth fallback.
91612         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
91613         to Autoconf 2.13.
91614
91615 2001-08-03  Jim Meyering  <meyering@lucent.com>
91616
91617         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
91618         as it was in the original.  Reported by Paul Eggert.
91619
91620 2001-07-16  Jim Meyering  <meyering@lucent.com>
91621
91622         * m4/gettimeofday.m4: New file.
91623         Prompted by a report from Bernhard Baehr.
91624
91625 2001-07-15  Jim Meyering  <meyering@lucent.com>
91626
91627         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
91628         stuff. Now it's in ../Makefile.cfg.
91629
91630 2001-07-15  Jim Meyering  <meyering@lucent.com>
91631
91632         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
91633         (BUILT_SOURCES): Add unlocked-io.h.
91634         (io_functions): Define.
91635         (unlocked-io.h): New rule.
91636         (DISTCLEANFILES): Add unlocked-io.h.
91637         (all-local): Depend on unlocked-io.h, to ensure it is created.
91638
91639         * lib/unlocked-io.hin: New file
91640
91641         * lib/regex.c: Update from glibc.
91642
91643 2001-07-05  Jim Meyering  <meyering@lucent.com>
91644
91645         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
91646         recommendation.
91647         (libfetish_a_SOURCES): Put all .h files here instead.
91648         Remove a thus-exposed (better checks in automake) duplicate and
91649         two unnecessary .h files.
91650
91651 2001-07-04  Jim Meyering  <meyering@lucent.com>
91652
91653         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
91654         that generates jm-glibc-io.m4 so that it doesn't trigger any make
91655         distcheck failure.
91656
91657 2001-07-02  Jim Meyering  <meyering@lucent.com>
91658
91659         The following changes were prompted by suggestions from Bruno Haible.
91660
91661         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
91662         is now generated.
91663         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
91664         definition of EXTRA_DIST.
91665         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
91666         ensure that the generated file is created/updated whenever the list
91667         of $(unlocked_functions) is changed.
91668         (jm-glibc-io.m4): New rule.
91669         (unlocked-io.h): New rule -- currently unused.
91670
91671 2001-06-24  Jim Meyering  <meyering@lucent.com>
91672
91673         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
91674         unmatched right bracket, rather than kludging it with an extra,
91675         falsely-matching quote in a comment.  Patch by Akim Demaille.
91676
91677 2001-06-11  Jim Meyering  <meyering@lucent.com>
91678
91679         * lib/regex.c: Update from GNU libc.
91680
91681 2001-05-27  Jim Meyering  <meyering@lucent.com>
91682
91683         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
91684         Check for ut_type in struct utmp.
91685
91686 2001-05-27  Jim Meyering  <meyering@lucent.com>
91687
91688         * lib/readutmp.h (UT_TYPE): Define.
91689
91690 2001-05-24  Jim Meyering  <meyering@lucent.com>
91691
91692         * lib/argmatch.c: Include "quote.h".
91693         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
91694         quote function.  Reported by Göran Uddeborg.
91695
91696 2001-05-22  Jim Meyering  <meyering@lucent.com>
91697
91698         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
91699         now that we use the package-supplied version unconditionally.
91700         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
91701
91702 2001-05-21  Jim Meyering  <meyering@lucent.com>
91703
91704         * m4/regex.m4: Change a couple backticks to single quotes to avoid
91705         shell syntax errors.
91706
91707 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
91708
91709         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
91710
91711 2001-05-20  Paul Eggert  <eggert@twinsun.com>
91712
91713         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
91714         Don't bother to check library strftime, since
91715         we'll be using our own my_strftime function anyway.
91716         Define my_strftime instead of strftime.
91717
91718 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
91719
91720         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
91721         which is not yet declared.
91722
91723 2001-05-15  Jim Meyering  <meyering@lucent.com>
91724
91725         * m4/regex.m4: Use proper quoting so brackets appear in the test
91726         program.
91727         Reported by, and with help from, Bruno Haible.
91728
91729 2001-05-13  Jim Meyering  <meyering@lucent.com>
91730
91731         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
91732         undefined.
91733
91734 2001-05-11  Paul Eggert  <eggert@twinsun.com>
91735
91736         dirname code cleanup.  base_name now behaves more compatibly
91737         with POSIX basename when given file names that have trailing
91738         slashes, and similarly for dir_name.  Add new primitives
91739         base_len and dir_len.  Put the directory-name-related decls
91740         into dirname.h.
91741
91742         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
91743         * lib/backupfile.c (base_name): Likewise.
91744         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
91745         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
91746         * lib/makepath.c (strip_trailing_slashes): Likewise.
91747         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
91748         ISSLASH): Likewise.
91749         * lib/rename.c (strip_trailing_slashes): Likewise.
91750         * lib/same.c (base_name): Likewise.
91751         * lib/stripslash.c (ISSLASH): Likewise.
91752
91753         * lib/addext.c: Include <dirname.h> after size_t is defined.
91754         * lib/backupfile.c: Likewise.
91755
91756         * lib/addext.c (addext): Use base_len to trim redundant
91757         trailing slashes instead of doing it ourselves.
91758         But do not trim the last slash if it is not redundant.
91759
91760         * lib/backupfile.c (find_backup_file_name,
91761         max_backup_version): Use base_len instead of rolling it ourselves.
91762         Handle the case of "" and (on DOS) "C:" correctly.
91763
91764         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
91765         needed. Include <string.h>, <dirname.h>.
91766         (base_name): Allow file names ending in slashes, other than names
91767         that are all slashes.  In this case, return the basename followed
91768         by the slashes.  This is more general, and can be used in places
91769         where the original base_name purposely had an assertion failure.
91770         (base_len): New function.
91771
91772         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
91773         Do not include <assert.h>; no longer needed.
91774         Include xalloc.h.
91775         (memrchr): Remove decl.
91776         (dir_name_r): Remove.
91777         (dir_len): Renamed from dirlen.  All callers changed.
91778         Rewrite in terms of base_name, for simplicity and consistency.
91779         (dir_name): Never return NULL.  All callers changed.
91780         Do not include <stdlib.h> in test program; no longer needed.
91781         return 0; is fine for test program.
91782
91783         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
91784         New macros.
91785         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
91786
91787         * lib/path-concat.c (path_concat): Use base_len to compute
91788         base length, not strlen; this means we cannot rely on memcpy
91789         to null-terminate.
91790
91791         * lib/same.c (STREQ): Remove.
91792         (same_name): Handle the case where the basename ends in trailing '/'.
91793
91794         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
91795         a slash was stripped.  Do not strip the last slash after a
91796         file system prefix.
91797
91798 2001-05-11  Paul Eggert  <eggert@twinsun.com>
91799
91800         * lib/Makefile.am (libfetish_a_SOURCES):
91801         Add strftime.c, since we now compile it on all hosts.
91802
91803         * lib/strftime.c (my_strftime):
91804         Define to nstrftime if emacs, but only if my_strftime is not defined.
91805         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
91806         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
91807         Add one more extra argument: a nanoseconds value.
91808         All uses changed.
91809         (ns): New macro.
91810         (my_strftime function): Add %N format.
91811         (emacs_strftimeu): Renamed from emacs_strftime,
91812         with extra ut argument.
91813
91814 2001-05-09  Paul Eggert  <eggert@twinsun.com>
91815
91816         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
91817
91818 2001-04-21  Jim Meyering  <meyering@lucent.com>
91819
91820         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
91821         doesn't interfere.
91822
91823 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
91824
91825         * m4/ftruncate.m4: Check for chsize.
91826         Link with ftruncate.o unconditionally if ftruncate is missing.
91827         This was required when cross-compiling to i586-mingw32msvc.
91828
91829 2001-04-08  Jim Meyering  <meyering@lucent.com>
91830
91831         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
91832         recomputed; that's necessary when the offset spans a DST transition.
91833         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
91834
91835 2001-04-02  Jim Meyering  <meyering@lucent.com>
91836
91837         * lib/regex.h, regex.c: Update from GNU libc.
91838
91839 2001-03-24  Jim Meyering  <meyering@lucent.com>
91840
91841         * m4/jm-macros.m4: Require autoconf-2.49d.
91842
91843 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
91844
91845         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
91846
91847 2001-03-19  Paul Eggert  <eggert@twinsun.com>
91848
91849         * lib/version-etc.c (version_etc_copyright): Update to 2001.
91850
91851 2001-03-17  Jim Meyering  <meyering@lucent.com>
91852
91853         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
91854         now that the version in autoconf is equivalent.
91855         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
91856
91857         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
91858         Suggestion from Akim Demaille.
91859
91860         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
91861         (jm_PREREQ_TEMPNAME): New function.
91862
91863 2001-03-16  Paul Eggert  <eggert@twinsun.com>
91864
91865         * lib/tempname.c (uint64_t): Define to uintmax_t if
91866         not defined, and if UINT64_MAX is not defined.
91867         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
91868         Reported by John David Anglin.
91869
91870 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
91871
91872         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
91873         resolve alias if codeset is empty.
91874         * lib/config.charset (BeOS): Use wildcard syntax.
91875
91876 2001-03-13  Jim Meyering  <meyering@lucent.com>
91877
91878         * lib/path-concat.c (path_concat)
91879         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
91880         concatenating e.g., `C:' and `foo'.
91881         From Bruno Haible.
91882
91883 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
91884
91885         * lib/localcharset.c (locale_charset): Don't use
91886         setlocale(LC_CTYPE,NULL). Don't return NULL.
91887         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
91888
91889 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
91890
91891         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
91892         support for DOS/DJGPP.
91893
91894 2001-03-01  Paul Eggert  <eggert@twinsun.com>
91895
91896         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
91897         lacks mkstemp.  Compile our own tempname.c if we compile our own
91898         mkstemp.c, as mkstemp relies on tempname.
91899
91900 2001-03-01  Jim Meyering  <meyering@lucent.com>
91901
91902         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
91903         AH_VERBATIM really does output its argument verbatim.
91904
91905 2001-02-28  Paul Eggert  <eggert@twinsun.com>
91906
91907         * lib/Makefile.am (libfetish_a_SOURCES):
91908         Add dup-safer.c, fopen-safer.c.
91909         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
91910
91911         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
91912         * lib/unistd-safer.h: New files.
91913
91914 2001-02-25  Paul Eggert  <eggert@twinsun.com>
91915
91916         The mkstemp replacement is taken from glibc 2.2.2, with some
91917         portability fixes for use outside glibc, as follows:
91918
91919         * lib/tempname.c (struct_stat64): New macro.
91920         (direxists, __gen_tempname): Use it.
91921         This avoids a portability problem with Solaris 8.
91922
91923         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
91924         (<stddef.h>, <stdint.h>, <string.h>):
91925         Include only if STDC_HEADERS || _LIBC.
91926         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
91927         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
91928         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
91929         (__set_errno): Define this macro if <errno.h> doesn't.
91930         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
91931         Define these macros if <stdio.h> doesn't.
91932         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
91933         Define these macros if <sys/stat.h>
91934         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
91935         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
91936         __xstat64): Define if not _LIBC.
91937         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
91938         (__gen_tempname): Invoke gettimeofday only if
91939         HAVE_GETTIMEOFDAY || _LIBC;
91940         otherwise, fall back on plain "time".
91941         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
91942
91943         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
91944
91945         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
91946
91947 2001-02-18  Paul Eggert  <eggert@twinsun.com>
91948
91949         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
91950
91951 2001-02-17  Paul Eggert  <eggert@twinsun.com>
91952
91953         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
91954         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
91955         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
91956         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
91957
91958 2001-02-17  Paul Eggert  <eggert@twinsun.com>
91959
91960         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
91961         Remove workaround macros for hosts that have mbrtowc but not
91962         mbstate_t, as we now insist on proper declarations for both
91963         before using mbrtowc.
91964
91965 2001-02-17  Jim Meyering  <meyering@lucent.com>
91966
91967         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
91968         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
91969         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
91970         UnixWare 7.1.1.
91971
91972         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
91973         rather than AC_CACHE_VAL.
91974
91975 2001-02-17  Jim Meyering  <meyering@lucent.com>
91976
91977         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
91978         around included file name.
91979
91980         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
91981
91982         * lib/strftime.c: Update from GNU libc (the only changes were to
91983         comments).
91984
91985 2001-02-17  Jim Meyering  <meyering@lucent.com>
91986
91987         * lib/regex.c: Update from libc.
91988
91989 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
91990
91991         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
91992         clash.
91993
91994 2001-02-16  Paul Eggert  <eggert@twinsun.com>
91995
91996         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
91997         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
91998         Reported by Mark Hounschell via Paul Eggert.
91999
92000 2001-02-07  Jim Meyering  <meyering@lucent.com>
92001
92002         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
92003
92004 2001-02-05  Jim Meyering  <meyering@lucent.com>
92005
92006         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
92007         it includes the patch required for `large file' support with at least
92008         HP-UX's 10.20 /bin/cc.
92009
92010 2001-02-03  Jim Meyering  <meyering@lucent.com>
92011
92012         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
92013         AS_IF, now that it works once again (mysteriously).
92014         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
92015
92016 2001-01-30  Jim Meyering  <meyering@lucent.com>
92017
92018         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
92019         * m4/chown.m4: Rename conftestchown to conftest.chown.
92020         * m4/rename.m4: s/conftestdir/conftest.d1/ and
92021         s/conftestdir2/conftest.d2/.
92022         * m4/utimes.m4: s/conftestdata/conftest.data/
92023         Inspired by Pavel Roskin's change in autoconf.
92024
92025 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
92026
92027         * lib/config.charset: Update for FreeBSD 4.2.
92028
92029 2001-01-27  Jim Meyering  <meyering@lucent.com>
92030
92031         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
92032         a use of AS_IF.
92033         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
92034
92035 2001-01-26  Jim Meyering  <meyering@lucent.com>
92036
92037         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
92038         quotearg.c includes it.
92039
92040 2001-01-26  Jim Meyering  <meyering@lucent.com>
92041
92042         * lib/quotearg.c: Include stddef.h.
92043         * lib/quote.c: Include stddef.h.
92044         Reported by Axel Kittenberger.
92045
92046         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
92047         line in double quotes so that it evokes a better diagnostic.
92048         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
92049         Reported by Axel Kittenberger.
92050
92051 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
92052
92053         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
92054         as if it was a `charset'.
92055
92056 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
92057
92058         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
92059         has const.
92060
92061 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
92062
92063         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
92064         to avoid a warning.  Add back 'const' to inptr.
92065
92066 2001-01-20  Jim Meyering  <meyering@lucent.com>
92067
92068         Be sure that headers are checked before used in code compiled
92069         for the type checks.
92070         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
92071         In place of that, invoke jm_CHECK_ALL_TYPES.
92072         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
92073         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
92074         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
92075         The check for ssize_t was mistakenly run before the test for unistd.h.
92076
92077         The configure-time check for stdbool.h was missing.
92078         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
92079         (jm_PREREQ_HASH): New function.
92080
92081 2001-01-17  Jim Meyering  <meyering@lucent.com>
92082
92083         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
92084         for autoconf-2.49c.
92085         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
92086
92087 2001-01-16  Jim Meyering  <meyering@lucent.com>
92088
92089         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
92090         From Bruno Haible.
92091
92092 2001-01-14  Jim Meyering  <meyering@lucent.com>
92093
92094         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
92095         foo and bar.  Create conftestdir/ in the script, not in the C code.
92096         Remove directories in the script, not in the C code.
92097         Remove conftestdir{,2} before trying to create the directory.
92098         Make the entire configure script fail if the mkdir fails.
92099
92100 2001-01-14  Jim Meyering  <meyering@lucent.com>
92101
92102         * lib/rename.c: New file.  From Volker Borchert.
92103         Include stdlib.h, string.h or strings.h, and xalloc.h.
92104         Use strip_trailing_slashes rather than open-coding it.
92105
92106 2001-01-03  Paul Eggert  <eggert@twinsun.com>
92107
92108         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
92109
92110 2001-01-03  Jim Meyering  <meyering@lucent.com>
92111
92112         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
92113         of local `inptr' to avoid warning with some system declarations of
92114         iconv.
92115
92116 2001-01-02  Volker Borchert  <bt@teknon.de>
92117
92118         * m4/rename.m4: New file.
92119         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
92120
92121 2001-01-01  Jim Meyering  <meyering@lucent.com>
92122
92123         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
92124         even on systems with utmpx.h.  It's necessary for the declaration of
92125         utmp's ut_user member.  Reported by Andreas Jaeger.
92126
92127         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
92128         available. They are required for the declarations of getgrgid and
92129         getpwuid resp.
92130         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
92131         Reported by Andreas Jaeger.
92132
92133 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
92134
92135         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
92136         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
92137         so `make install' also works in VPATH builds.
92138
92139 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
92140
92141         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
92142         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
92143         can be used in subdirectories.
92144
92145 2000-12-29  Paul Eggert  <eggert@twinsun.com>
92146
92147         * lib/modechange.c: Do not assume that mode_t uses the
92148         traditional octal encoding.  E.g. "chmod 1 FOO" should set
92149         the other-execute bit of FOO even if S_IXOTH != 1.
92150
92151         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
92152         WOTH, XOTH, ALLM): New macros.
92153         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
92154          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
92155         Use them.
92156         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
92157         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
92158         (mode_compile):
92159         No need to use uintmax_t; unsigned long is long enough.
92160         Don't bother to get suffix since we don't use it.
92161
92162 2000-12-26  Jim Meyering  <meyering@lucent.com>
92163
92164         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
92165         better with autoheader.
92166
92167 2000-12-24  Jim Meyering  <meyering@lucent.com>
92168
92169         * lib/hash.c (is_prime): Return explicit boolean values.
92170         (hash_get_first): Return NULL to appease Irix5.6's 89.
92171         Reported by Nelson Beebe.
92172
92173 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
92174
92175         * lib/localcharset.c (locale_charset): Add support for Win32.
92176
92177 2000-12-18  Paul Eggert  <eggert@twinsun.com>
92178
92179         * lib/physmem.h, lib/physmem.c: New files.
92180
92181         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
92182         (noinst_HEADERS): Add physmem.h.
92183
92184         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
92185         't' for compatibility with Solaris 8 sort.
92186
92187 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
92188
92189         * lib/config.charset: Add support for BeOS.
92190
92191 2000-12-17  Jim Meyering  <meyering@lucent.com>
92192
92193         * m4/dos.m4 (jm_AC_DOS): New file and macro.
92194         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
92195
92196 2000-12-16  Jim Meyering  <meyering@lucent.com>
92197
92198         This bug had a serious impact on chown: `chown N:M FILE' (for integer
92199         N and M) would have treated it like `chown N:N FILE'.
92200
92201         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
92202
92203 2000-12-16  Jim Meyering  <meyering@lucent.com>
92204
92205         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
92206         SHELLS_FILE to a file name that's useful on djgpp systems.
92207         Include stdlib.h.
92208         (ADDITIONAL_DEFAULT_SHELLS): Define.
92209         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
92210         Based mostly on a patch from Prashant TR.
92211
92212 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
92213
92214         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
92215         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
92216         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
92217
92218 2000-12-08  Andreas Schwab  <schwab@suse.de>
92219
92220         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
92221         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
92222
92223 2000-12-07  Jim Meyering  <meyering@lucent.com>
92224
92225         * lib/stripslash.c (ISSLASH): Define.
92226         (strip_trailing_slashes): Use ISSLASH rather than comparing against
92227         `/'.
92228         From Prashant TR.
92229
92230         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
92231         (dir_name_r): Declare this function as static.
92232         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
92233         manifest itself on a name containing a mix of slashes and
92234         backslashes.
92235         Make this function work with names starting with a DOS-style
92236         drive letter and colon prefix.
92237         (dir_name): Append `.' if necessary.
92238         Based mostly on patches from Prashant TR and Eli Zaretskii.
92239
92240         * lib/dirname.h (dir_name_r): Remove prototype.
92241
92242 2000-12-06  Paul Eggert  <eggert@twinsun.com>
92243
92244         * m4/off_t-format.m4: Remove this file.
92245         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
92246
92247 2000-12-06  Jim Meyering  <meyering@lucent.com>
92248
92249         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
92250         replacement strtoull, we may well need the replacement strtoul, too.
92251         Check for declarations of strtoul and strtoull.
92252         Check for strtol.  Mainly as a cue to cause automake to include
92253         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
92254         Check for limits.h -- strtol.c needs it.
92255
92256 2000-12-05  Jim Meyering  <meyering@lucent.com>
92257
92258         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
92259
92260 2000-12-04  Jim Meyering  <meyering@lucent.com>
92261
92262         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
92263         Also include memory.h, stdlib.h, unistd.h if appropriate.
92264         Reported by Andreas Jaeger (conflicting declaration of malloc).
92265
92266 2000-12-02  Jim Meyering  <meyering@lucent.com>
92267
92268         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
92269         * m4/jm-macros.m4 (jm_MACROS): require it.
92270
92271 2000-12-02  Jim Meyering  <meyering@lucent.com>
92272
92273         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
92274
92275 2000-12-01  Paul Eggert  <eggert@twinsun.com>
92276
92277         * lib/memrchr.c: Include <config.h> before any system include file.
92278
92279 2000-11-30  Jim Meyering  <meyering@lucent.com>
92280
92281         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
92282
92283 2000-11-30  Jim Meyering  <meyering@lucent.com>
92284
92285         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
92286
92287 2000-11-29  Paul Eggert  <eggert@twinsun.com>
92288
92289         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
92290
92291 2000-11-26  Jim Meyering  <meyering@lucent.com>
92292
92293         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
92294
92295 2000-11-22  Paul Eggert  <eggert@twinsun.com>
92296
92297         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
92298         size of (size_t) -1; it's not portable.
92299
92300 2000-11-17  Jim Meyering  <meyering@lucent.com>
92301
92302         * lib/strstr.c: Update from GNU libc.
92303
92304 2000-11-17  Akim Demaille  <akim@epita.fr>
92305
92306         * lib/obstack.h: Formatting changes.
92307         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
92308         prevent type checking.
92309         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
92310         cast the value to (void *): assigning a `foo *' to a `void *'
92311         variable is valid.
92312         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
92313
92314 2000-11-16  Jim Meyering  <meyering@lucent.com>
92315
92316         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
92317
92318 2000-11-11  Jim Meyering  <meyering@lucent.com>
92319
92320         * lib/error.c: Add a couple #includes, merging from GNU libc version.
92321
92322 2000-11-10  Jim Meyering  <meyering@lucent.com>
92323
92324         * lib/obstack.h: Update from GNU libc.
92325         * lib/obstack.c: Likewise.
92326
92327 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
92328
92329         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
92330
92331 2000-11-06  Paul Eggert  <eggert@twinsun.com>
92332
92333         * lib/getusershell.c (setusershell): Use rewind rather than
92334         fseek/fseeko, to avoid configuration hassles with fseeko.
92335         Don't bother opening SHELLS_FILE if shellstream is NULL;
92336         it's not necessary.
92337
92338 2000-11-05  Jim Meyering  <meyering@lucent.com>
92339
92340         * lib/makepath.h (make_dir): Declare.
92341         * lib/makepath.c (make_dir): Remove `static' attribute.
92342         Tweak a comment.
92343
92344 2000-11-04  Jim Meyering  <meyering@lucent.com>
92345
92346         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
92347
92348 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
92349
92350         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
92351         last one in a bucket, advance to the next bucket.
92352
92353 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
92354
92355         * lib/fnmatch.c: Do not comment out all the code if we are using
92356         the GNU C library, because in some cases we are replacing buggy
92357         code in the GNU C library itself.
92358
92359 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
92360
92361         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
92362         (regex_compile): Catch bogus \(\1\).
92363
92364 2000-10-30  Paul Eggert  <eggert@twinsun.com>
92365
92366         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
92367         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
92368         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
92369
92370 2000-10-30  Paul Eggert  <eggert@twinsun.com>
92371
92372         * lib/error.h, getline.h, modechange.h:
92373         Remove "2000" from Copyright line, as the file hasn't been
92374         changed this year other than in the copyright notice.
92375
92376         * lib/xalloc.h: Add "2000" to Copyright line, as this file
92377         was changed this year.
92378
92379 2000-10-29  Jim Meyering  <meyering@lucent.com>
92380
92381         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
92382         renaming.
92383         * m4/ls-mntd-fs.m4: Likewise
92384
92385 2000-10-29  Jim Meyering  <meyering@lucent.com>
92386
92387         * lib/xstat.in: Fix grammar in comment.
92388
92389 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
92390
92391         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
92392         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
92393         doesn't define __restrict_arr.
92394
92395 2000-10-28  Jim Meyering  <meyering@lucent.com>
92396
92397         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
92398         (jm_PREREQ_MEMCHR): New function.
92399
92400 2000-10-28  Jim Meyering  <meyering@lucent.com>
92401
92402         * lib/memchr.c: Update from libc.
92403         Adjust for portability:
92404         [HAVE_STDLIB_H]: Include stdlib.h.
92405         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
92406         Undef __memchr, too.
92407         [!weak_alias]: Define __memchr to memchr.
92408
92409         * lib/regex.c: Update from libc.
92410         * lib/regex.h: Likewise.
92411         * lib/getopt1.c: Likewise.
92412         * lib/memcmp.c: Likewise.
92413
92414         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
92415         Avoid using fseek, when possible -- it's broken by design.
92416         Patch by Ulrich Drepper.
92417
92418 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
92419
92420         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
92421         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
92422         Giving in to popular pressure to shut up the compiler with casts.
92423
92424 2000-10-26  Jim Meyering  <meyering@lucent.com>
92425
92426         * lib/strftime.c: Update from libc.
92427
92428 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
92429
92430         * regex.c: More `unsigned char' -> `re_char' changes.
92431         Also change several `int' into `re_wchar_t'.
92432         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
92433         (PUSH_FAILURE_POINTER): Don't cast any more.
92434         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
92435         We want GCC to complain, since this piece of code makes
92436         re_match non-reentrant, which *should* be fixed.
92437         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
92438         (EXTEND_BUFFER): Use RETALLOC.
92439         (SET_LIST_BIT): Don't cast.
92440         (re_wchar_t): New type.
92441         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
92442         that those two functions will always properly return.
92443         (IMMEDIATE_QUIT_CHECK): Cast to void.
92444         (analyse_first): Use recursion rather than an explicit stack.
92445         (re_compile_fastmap): Can't fail anymore.
92446         (re_search_2): Don't check re_compile_fastmap for failure.
92447         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
92448         Now also sets the new value (passed in a new argument).
92449         (re_match_2_internal): Use it.
92450         Also, use a new var `reg' of type size_t when looping through regs
92451         rather than reuse the inappropriate `mcnt'.
92452
92453 2000-10-25  Jim Meyering  <meyering@lucent.com>
92454
92455         * lib/obstack.c: Update from libc.
92456
92457 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
92458
92459         * regex.c (regex_compile): Change the way of handling a range from
92460         a char less than 256 to a char not less than 256.
92461
92462 2000-10-24  Andrew Innes  <andrewi@gnu.org>
92463
92464         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
92465         NT-Emacs only.
92466         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
92467         so that re_search functions only quit when callers expect them to.
92468
92469 2000-10-23  Jim Meyering  <meyering@lucent.com>
92470
92471         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
92472         wrong.  That set_locale call must not have any side effects.
92473         From Paul Eggert.
92474
92475 2000-10-22  Jim Meyering  <meyering@lucent.com>
92476
92477         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
92478         [CYCLIC]: Remove now-unused definition.
92479
92480         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
92481         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
92482         Suggestion from Ulrich Drepper.
92483
92484 2000-10-21  Jim Meyering  <meyering@lucent.com>
92485
92486         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
92487         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
92488         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
92489
92490 2000-10-21  Jim Meyering  <meyering@lucent.com>
92491
92492         * lib/dirname.c (memrchr): Declare if necessary.
92493         (dir_name): Remove the restriction that there be no
92494         trailing slashes.  Now, this code skips past them, effectively
92495         ignoring them.
92496         [TEST_DIRNAME] (main): New unit tests.
92497
92498         * lib/memrchr.c: New file from GNU libc.
92499         Undef __memrchr, too.
92500         [!weak_alias]: Define __memrchr to memrchr.
92501         Guard weak_alias use with `#ifdef weak_alias'.
92502
92503 2000-10-21  Jim Meyering  <meyering@lucent.com>
92504
92505         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
92506         (dir_name): Use dir_name_r.
92507         * lib/dirname.h (dir_name_r): Declare it.
92508
92509 2000-10-17  Jim Meyering  <meyering@lucent.com>
92510
92511         * lib/quote.h (PARAMS): Define and use.
92512         Reported by Akim Demaille.
92513
92514         * lib/getopt.c: Update from libc.
92515
92516 2000-10-16  Jim Meyering  <meyering@lucent.com>
92517
92518         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
92519         setlocale.
92520         From Jan Fedak.
92521
92522 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
92523
92524         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
92525
92526 2000-09-25  Jim Meyering  <meyering@lucent.com>
92527
92528         * lib/md5.h (rol): Define (from GnuPG).
92529
92530         * lib/sha.c: Give credit (GnuPG) where due.
92531         (M): Use rol rather than open-coding it.
92532         Add a FIXME comment.
92533
92534 2000-09-21  Jim Meyering  <meyering@lucent.com>
92535
92536         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
92537         Reported by Michael Stone.
92538
92539 2000-09-20  Jim Meyering  <meyering@lucent.com>
92540
92541         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
92542         (noinst_HEADERS): Add sha.h.
92543         Based on code from Scott G. Miller and from GnuPG.
92544
92545 2000-09-18  Jim Meyering  <meyering@lucent.com>
92546
92547         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
92548         LIBS. Otherwise, everyone ends up linking with -lelf for some
92549         configurations.
92550         Reported by Mike Stone.
92551
92552 2000-09-15  Jim Meyering  <meyering@lucent.com>
92553
92554         * lib/regex.c: Update from libc.
92555
92556 2000-09-10  Jim Meyering  <meyering@lucent.com>
92557
92558         * lib/getopt.c (_getopt_internal): Update from glibc.
92559
92560 2000-09-09  Jim Meyering  <meyering@lucent.com>
92561
92562         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
92563         think it should be used as a general replacement for isascii.
92564         * lib/fnmatch.c: Likewise.
92565         * lib/mbswidth.c: Likewise
92566         * lib/regex.c: Likewise.
92567
92568         Don't use atoi.
92569         * lib/userspec.c: Include sys/param.h and limits.h.
92570         Include xstrtol.h.
92571         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
92572         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
92573         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
92574         UID, GID.  Check range.
92575
92576 2000-09-06  Jim Meyering  <meyering@lucent.com>
92577
92578         * lib/getopt.c (_getopt_internal): Update from glibc.
92579
92580 2000-08-30  Jim Meyering  <meyering@lucent.com>
92581
92582         * lib/strftime.c: Merge in changes from GNU libc.
92583
92584 2000-08-26  Jim Meyering  <meyering@lucent.com>
92585
92586         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
92587         * m4/fpending.m4: New file.
92588
92589 2000-08-26  Jim Meyering  <meyering@lucent.com>
92590
92591         * lib/closeout.c: Include "__fpending.h".
92592         (close_stdout_status): Return right away if there's nothing to flush.
92593
92594         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
92595         * lib/__fpending.c: New file.
92596         * lib/__fpending.h: New file.
92597
92598 2000-08-20  Jim Meyering  <meyering@lucent.com>
92599
92600         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
92601         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
92602         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
92603
92604 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
92605
92606         Improve fileutils installation on systems where running
92607         programs (like install) can't be unlinked.
92608         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
92609         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
92610
92611 2000-08-07  Paul Eggert  <eggert@twinsun.com>
92612
92613         Standardize on "memory exhausted" instead of "Memory exhausted"
92614         or "virtual memory exhausted".
92615         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
92616         "virtual memory exhausted".
92617         * lib/same.c (same_name): Invoke xalloc_die instead of printing
92618         our own message.
92619         * lib/userspec.c (parse_user_spec): Likewise.
92620         * lib/bumpalloc.h: comment fix
92621         * lib/same.c, userspec.c: Include xalloc.h.
92622
92623         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
92624         not char *const and pointing to a constant array.
92625         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
92626         (xrealloc): Comment fix.
92627
92628         * lib/userspec.c (parse_user_spec):
92629         Don't translate a message until just before returning,
92630         to avoid unnecessary translation.
92631
92632 2000-08-07  Jim Meyering  <meyering@lucent.com>
92633
92634         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
92635         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
92636         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
92637         getgroups.c, gethostname.c, getopt.h, group-member.c,
92638         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
92639         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
92640         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
92641         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
92642         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
92643         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
92644         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
92645         yesno.c: Back out Copyright date changes for each file with no change
92646         this year.  This eases coordination with other programs using the same
92647         source code modules.  From Paul Eggert.
92648
92649 2000-08-06  Paul Eggert  <eggert@twinsun.com>
92650
92651         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
92652         not char, for compatibility with glibc 2.1.3 strftime.c.
92653
92654 2000-08-03  Greg McGary  <greg@mcgary.org>
92655
92656         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
92657         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
92658         (EXTEND_BUFFER): Use them.
92659
92660 2000-08-01  Jim Meyering  <meyering@lucent.com>
92661
92662         * lib/dirname.c (ISSLASH): Define.
92663         (BACKSLASH_IS_PATH_SEPARATOR): Define.
92664         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
92665         both `\' and `/' may be use as path separators.
92666         Based on a patch from Prashant TR.
92667
92668 2000-07-31  Paul Eggert  <eggert@twinsun.com>
92669
92670         * lib/quotearg.c (quotearg_n_options): Don't make the initial
92671         slot vector a constant, since it might get modified.
92672
92673 2000-07-31  Jim Meyering  <meyering@lucent.com>
92674
92675         * lib/xmalloc.c: Use `virtual memory exhausted', not
92676         `Memory exhausted'.
92677         * lib/obstack.c (print_and_abort): Likewise.
92678
92679 2000-07-30  Paul Eggert  <eggert@twinsun.com>
92680
92681         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
92682         buffer, so that the caller can always quote one small
92683         component of a "memory exhausted" message in slot 0.
92684         From a suggestion by Jim Meyering.
92685
92686 2000-07-30  Jim Meyering  <meyering@lucent.com>
92687
92688         * lib/makepath.c (make_path): Quote the other instance, too.
92689
92690         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
92691         (STATIC_BUF_SIZE): Define.
92692         (quotearg_n_options): Use only statically allocated storage when
92693         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
92694         than STATIC_BUF_SIZE.
92695
92696 2000-07-29  Jim Meyering  <meyering@lucent.com>
92697
92698         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
92699         * lib/dirname.c (dir_name): Likewise.
92700
92701         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
92702         `/'.
92703
92704         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
92705         (dir_name): Assert that there are no trailing slashes.
92706
92707 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
92708
92709         * lib/mbswidth.h (mbswidth): Add a flags argument.
92710         (mbswidth): New declaration.
92711         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
92712         * lib/mbswidth.c (mbswidth): Add a flags argument.
92713         (mbsnwidth): New function.
92714
92715 2000-07-24  Jim Meyering  <meyering@lucent.com>
92716
92717         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
92718
92719 2000-07-23  Paul Eggert  <eggert@twinsun.com>
92720
92721         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
92722
92723 2000-07-23  Paul Eggert  <eggert@twinsun.com>
92724
92725         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
92726         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
92727         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
92728         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
92729         invoke multibyte primitives.
92730
92731 2000-07-23  Paul Eggert  <eggert@twinsun.com>
92732
92733         * lib/quotearg.c:
92734         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
92735         so that mbstate_t is always defined.
92736
92737         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
92738         be 1 in at least one GCC installation, and this configuration
92739         error is likely to be common.  Ignoring MB_LEN_MAX hurts
92740         performance on hosts that have mbrtowc but have only unibyte
92741         locales, but I assume these hosts are rare.
92742
92743 2000-07-23  Paul Eggert  <eggert@twinsun.com>
92744
92745         * lib/mbswidth.c (_XOPEN_SOURCE):
92746         Don't define; this causes problems on Solaris 7.
92747         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
92748
92749 2000-07-23  Jim Meyering  <meyering@lucent.com>
92750
92751         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
92752         too: getgrgid, getpwuid, getuid.
92753
92754 2000-07-23  Jim Meyering  <meyering@lucent.com>
92755
92756         * lib/basename.c (base_name): Add an assertion.
92757
92758 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
92759
92760         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
92761         shadow its mbsinit function.
92762
92763 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
92764
92765         * lib/mbswidth.h: New file.
92766         * lib/mbswidth.c: New file.
92767         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
92768         (noinst_HEADERS): Add mbswidth.h.
92769
92770 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
92771
92772         * lib/config.charset: Add support for FreeBSD. Improve support for
92773         HP-UX and IRIX 6.
92774
92775 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
92776
92777         * m4/mbswidth.m4: New file.
92778         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
92779
92780 2000-07-15  Jim Meyering  <meyering@lucent.com>
92781
92782         * lib/makepath.c: Include quote.h.
92783         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
92784         corresponding argument in a `quote (...)' call.
92785         Give better diagnostics.
92786
92787         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
92788         (noinst_HEADERS): Add quote.h.
92789
92790         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
92791         from tar's src/misc.c.
92792         * lib/quote.h: New file.  Prototypes for same.
92793
92794 2000-07-14  Paul Eggert  <eggert@twinsun.com>
92795
92796         From a suggestion by Bruno Haible.
92797         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
92798         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
92799         to decide whether to define the BeOS workaround macro;
92800         this adjusts to the change to AC_MBSTATE_T.
92801
92802 2000-07-14  Jim Meyering  <meyering@lucent.com>
92803
92804         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
92805         jm_AC_TYPE_UINTMAX_T.
92806
92807 2000-07-13  Paul Eggert  <eggert@twinsun.com>
92808
92809         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
92810
92811         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
92812         quotearg_buffer_restyled): Add support for
92813         clocale_quoting_style.  Undo previous change to
92814         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
92815         and "{RIGHT QUOTATION MARK}" msgids.
92816
92817 2000-07-10  Paul Eggert  <eggert@twinsun.com>
92818
92819         From a suggestion by Bruno Haible.
92820         * m4/mbstate_t.m4 (AC_MBSTATE_T):
92821         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
92822         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
92823         and mbstate_t, to a single-part test that simply defines mbstate_t.
92824         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
92825         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
92826
92827 2000-07-10  Jim Meyering  <meyering@lucent.com>
92828
92829         * m4/strerror_r.m4: Mirror the correction made in autoconf.
92830
92831         * m4/gnu-source.m4: Output to confdefs.h directly.
92832         Suggestion from Akim Demaille.
92833
92834 2000-07-09  Paul Eggert  <eggert@twinsun.com>
92835
92836         The old behavior of quoting `like this' doesn't look good with
92837         newer, ISO-style fonts.  See:
92838         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
92839
92840         Instead, quote "like this" by default.  Let the translator
92841         tailor the locale-specific quoting behavior by providing
92842         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
92843
92844         * lib/quotearg.c (N_): New macro.
92845         (gettext_default): New function.
92846         (quotearg_buffer_restyled): Use
92847         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
92848         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
92849
92850 2000-07-09  Jim Meyering  <meyering@lucent.com>
92851
92852         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
92853         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
92854
92855         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
92856         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
92857
92858 2000-07-09  Jim Meyering  <meyering@lucent.com>
92859
92860         * lib/Most files: Update copyright dates to include 2000.
92861
92862 2000-07-08  Jim Meyering  <meyering@lucent.com>
92863
92864         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
92865         if not defined.
92866         (xgethostname): Remove now-unnecessary #ifdef.
92867         Move declaration of `err' into loop where it's used.
92868
92869 2000-07-05  Paul Eggert  <eggert@twinsun.com>
92870         and Bruno Haible  <haible@clisp.cons.org>
92871
92872         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
92873         only if the test for an object-type mbstate_t fails.  This
92874         prevents us from mistakenly reporting that mbstate_t is a
92875         system object type after we "#define mbstate_t int" to work
92876         around its lack.
92877
92878 2000-07-05  Paul Eggert  <eggert@twinsun.com>
92879         and Bruno Haible  <haible@clisp.cons.org>
92880
92881         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
92882
92883 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
92884
92885         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
92886         to strerror_r.
92887         Include <ctype.h> for use of isalpha.
92888
92889 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
92890
92891         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
92892         by allocating a larger buffer. Test the gethostname return value for
92893         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
92894         returns an error and ENAMETOOLONG isn't defined.
92895
92896 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
92897
92898         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
92899         dimension.
92900
92901 2000-07-04  Jim Meyering  <meyering@lucent.com>
92902
92903         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
92904         of the deprecated AC_CHECKING.
92905
92906 2000-07-04  Jim Meyering  <meyering@lucent.com>
92907
92908         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
92909         Reported by Bruno Haible.
92910
92911 2000-07-04  Jim Meyering  <meyering@lucent.com>
92912
92913         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
92914         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
92915         lacks mbrtowc.
92916
92917 2000-07-03  Paul Eggert  <eggert@twinsun.com>
92918
92919         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
92920         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
92921
92922 2000-07-03  Paul Eggert  <eggert@twinsun.com>
92923         and Bruno Haible  <haible@clisp.cons.org>
92924
92925         * lib/quotearg.c (mbrtowc):
92926         Assign to *pwc, and return 1 only if result is nonzero.
92927         (iswprint): Use ISPRINT when substituting our own mbrtowc.
92928
92929 2000-07-03  Jim Meyering  <meyering@lucent.com>
92930
92931         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
92932
92933 2000-07-03  Jim Meyering  <meyering@lucent.com>
92934
92935         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
92936         This is necessary to get a definition of e.g., UTMP_FILE on
92937         HP-UX 10.20.
92938         From Bob Proulx.
92939
92940 2000-07-02  Jim Meyering  <meyering@lucent.com>
92941
92942         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
92943
92944         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
92945         AC_LIBOBJ(function_name).
92946         * m4/chown.m4: Likewise.
92947         * m4/fnmatch.m4: Likewise.
92948         * m4/ftruncate.m4: Likewise.
92949         * m4/getgroups.m4: Likewise.
92950         * m4/getline.m4: Likewise.
92951         * m4/group-member.m4: Likewise.
92952         * m4/jm-macros.m4: Likewise.
92953         * m4/lstat.m4: Likewise.
92954         * m4/malloc.m4: Likewise.
92955         * m4/memcmp.m4: Likewise.
92956         * m4/nanosleep.m4: Likewise.
92957         * m4/putenv.m4: Likewise.
92958         * m4/realloc.m4: Likewise.
92959         * m4/regex.m4: Likewise.
92960         * m4/stat.m4: Likewise.
92961         * m4/strftime.m4: Likewise.
92962
92963 2000-07-02  Jim Meyering  <meyering@lucent.com>
92964
92965         * lib/quotearg.c (mbstate_t): Don't define here.
92966
92967 2000-07-02  Jim Meyering  <meyering@lucent.com>
92968
92969         * lib/nanosleep.c (SIGCONT): Define if not already defined.
92970
92971 2000-07-01  Jim Meyering  <meyering@lucent.com>
92972
92973         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
92974
92975 2000-07-01  Jim Meyering  <meyering@lucent.com>
92976
92977         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
92978         problem.
92979
92980 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
92981
92982         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
92983         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
92984
92985 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
92986
92987         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
92988         per change in ../m4/ls-mntd-fs.m4.
92989         (read_filesystem_list): Ignore symbolic links.
92990
92991 2000-06-29  Jim Meyering  <meyering@lucent.com>
92992
92993         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
92994         for declaration of strcmp.
92995
92996         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
92997
92998         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
92999         Avoid warning by casting result to `char *' to remove `const'.
93000
93001 2000-06-28  Jim Meyering  <meyering@lucent.com>
93002
93003         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
93004         included by quotearg.c, for which we perform this test.  From
93005         Bruno Haible.
93006
93007 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
93008
93009         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
93010         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
93011         <utmpx.h> exists, put readutmp.o into LIBOBJS.
93012
93013 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
93014
93015         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
93016
93017 2000-06-26  Paul Eggert  <eggert@twinsun.com>
93018
93019         savedir now sets errno on failure and invokes xmalloc to get memory.
93020         Fix a couple of other minor bugs while we're at it.
93021
93022         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
93023         (NAMLEN): Remove macro.
93024         (malloc, realloc): Remove decls.
93025         (stpcpy): Likewise.
93026         ("xalloc.h"): Include.
93027         (NAME_SIZE_DEFAULT): New macro.
93028         (savedir): Use xmalloc / xrealloc to allocate memory.
93029         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
93030         Skip "" directory entries.
93031         Use strlen to calculate directory entry length, since the old method
93032         is rarely used these days and isn't worth supporting.
93033         Don't use a pointer after freeing it.
93034         Check for integer overflow when calculating allocation size.
93035         Use memcpy to copy entries, instead of stpcpy.
93036         Set errno properly when returning NULL.
93037         Check for readdir error.
93038
93039 2000-06-26  Jim Meyering  <meyering@lucent.com>
93040
93041         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
93042
93043 2000-06-25  Jim Meyering  <meyering@lucent.com>
93044
93045         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
93046         Linux header bug when _XOPEN_SOURCE is defined to 500.
93047
93048 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
93049
93050         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
93051         deficiency.
93052
93053 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
93054
93055         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
93056         Include xalloc.h.
93057         Don't include <stdlib.h>.  Don't declare malloc, realloc.
93058
93059 2000-06-24  Jim Meyering  <meyering@lucent.com>
93060
93061         * m4/strerror_r.m4: Revive this file -- to try out an experimental
93062         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
93063         for which strerror does return char*, but which lacks a conveniently
93064         accessible declaration of the function.  If the compile-test says
93065         strerror_r doesn't work, then resort to a `run'-test that works on
93066         BeOS and segfaults on DEC Unix.
93067
93068 2000-06-24  Jim Meyering  <meyering@lucent.com>
93069
93070         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
93071
93072 2000-06-23  Paul Eggert  <eggert@twinsun.com>
93073
93074         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
93075         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
93076
93077 2000-06-23  Paul Eggert  <eggert@twinsun.com>
93078
93079         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
93080         (mbrtowc, mbstate_t): Define substitutes if
93081         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
93082         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
93083         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
93084
93085 2000-06-23  Jim Meyering  <meyering@lucent.com>
93086
93087         * m4/afs.m4: Add missing AC_MSG_RESULT.
93088         Reported by Bruno Haible.
93089
93090         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
93091         Suggestion from Bruno Haible.
93092
93093 2000-06-23  Jim Meyering  <meyering@lucent.com>
93094
93095         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
93096
93097 2000-06-21  Jim Meyering  <meyering@lucent.com>
93098
93099         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
93100
93101 2000-06-21  Jim Meyering  <meyering@lucent.com>
93102
93103         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
93104         (noinst_HEADERS): Add getstr.h.
93105
93106         * lib/getline.c (getstr): Move into a separate file.
93107         * lib/getstr.c (getstr): New file, extracted from getline.c, with
93108         the following changes: new parameter, delim2; both delim[12]
93109         parameters have type `int', not `char'.  The latter would lose
93110         with 8-bit delimiters.
93111         * lib/getstr.h: New file.
93112
93113 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93114
93115         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
93116         than 1024, return a memory chunk of least possible size, instead
93117         of size PATH_MAX + 2. In the loop, increment the size proportionally.
93118         Use free/xmalloc instead of xrealloc to avoid copying for very long
93119         paths.
93120
93121 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93122
93123         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
93124         the empty string.
93125
93126 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93127
93128         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
93129         address, not strdup.  Include <stdlib.h> and don't declare free().
93130
93131 2000-06-19  Jim Meyering  <meyering@lucent.com>
93132
93133         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
93134
93135 2000-06-18  Jim Meyering  <meyering@lucent.com>
93136
93137         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
93138
93139         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
93140         `checking whether...' message to be consistent with that of the
93141         lstat test.
93142
93143 2000-06-18  Jim Meyering  <meyering@lucent.com>
93144
93145         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
93146         Besides, these days every porting target provides a mkdir function.
93147
93148         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
93149         needed. (this snippet comes from src/system.h).
93150
93151 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
93152
93153         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
93154
93155 2000-06-15  Paul Eggert  <eggert@twinsun.com>
93156
93157         * lib/human.c (adjust_value): New function.
93158         (human_readable_inexact): Apply rounding style even when
93159         printing approximate values.
93160
93161 2000-06-14  Paul Eggert  <eggert@twinsun.com>
93162
93163         * lib/human.c (human_readable_inexact): Allow an input block
93164         size that is not a multiple of the output block size, and vice versa.
93165         Reported by Piergiorgio Sartor.
93166
93167 2000-06-14  Paul Eggert  <eggert@twinsun.com>
93168
93169         * lib/getdate.y (get_date): Apply relative times after time
93170         zone indicator, not before.  Reported by Todd A. Jacobs.
93171
93172 2000-06-13  Jim Meyering  <meyering@lucent.com>
93173
93174         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
93175
93176         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
93177
93178 2000-06-12  Paul Eggert  <eggert@twinsun.com>
93179
93180         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
93181
93182 2000-06-12  Jim Meyering  <meyering@lucent.com>
93183
93184         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
93185         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
93186         optional argument.
93187         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
93188         the optional argument, `lib'.
93189
93190 2000-06-08  Jim Meyering  <meyering@lucent.com>
93191
93192         * m4/largefile.m4: Remove file (now that it's part of autoconf).
93193
93194 2000-06-04  Paul Eggert  <eggert@twinsun.com>
93195
93196         Rewrite largefile configuration so that we don't need to run
93197         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
93198         AC_CANONICAL_HOST in configure.in -- jmm]
93199
93200         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
93201         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
93202         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
93203         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
93204         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
93205         All uses changed.
93206         Instead of inspecting the output of getconf, try to compile the
93207         test program without and with the macro definition.
93208         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
93209         for getconf.  Instead, check for the needed flags by compiling
93210         test programs.
93211
93212 2000-06-04  Paul Eggert  <eggert@twinsun.com>
93213
93214         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
93215
93216 2000-06-04  Jim Meyering  <meyering@lucent.com>
93217
93218         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
93219         SunOS 4.1.4 for which gid_t is an unsigned type.
93220
93221 2000-06-03  Jim Meyering  <meyering@lucent.com>
93222
93223         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
93224         now that autoconf requires that.
93225
93226         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
93227         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
93228         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
93229
93230 2000-06-03  Jim Meyering  <meyering@lucent.com>
93231
93232         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
93233
93234 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
93235
93236         * m4/glibc21.m4: New file.
93237         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
93238
93239 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
93240
93241         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
93242         newer, don't install charset.alias.
93243         * lib/config.charset: Change the Linux/glibc rules so they become empty
93244         on glibc-2.1 or newer.
93245
93246 2000-06-02  Jim Meyering  <meyering@lucent.com>
93247
93248         * lib/mountlist.c: Back out last change.  Instead, do this...
93249         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
93250         me_dummy member using the same `ignore'-testing code.
93251         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
93252         fs_type strings.
93253         From Mark D. Roth.
93254
93255 2000-05-29  Jim Meyering  <meyering@lucent.com>
93256
93257         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
93258         mounts with the `ignore' attribute.  Based on a patch from
93259         Mark D. Roth.
93260
93261 2000-05-28  Jim Meyering  <meyering@lucent.com>
93262
93263         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
93264         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93265         * m4/stat.m4: Likewise.
93266         * m4/lstat.m4: Likewise.
93267         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
93268
93269         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
93270         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
93271
93272 2000-05-26  Jim Meyering  <meyering@lucent.com>
93273
93274         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
93275
93276 2000-05-24  Jim Meyering  <meyering@lucent.com>
93277
93278         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
93279         autoconf requires that.
93280         * m4/lib-check.m4: Likewise.
93281         * m4/jm-macros.m4: Likewise.
93282         * m4/strftime.m4: Likewise.
93283
93284         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
93285         AC_CHECK_DECLS, now that autoconf requires that.
93286
93287 2000-05-22  Jim Meyering  <meyering@lucent.com>
93288
93289         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93290         * m4/lstat.m4: Likewise.
93291
93292 2000-05-22  Jim Meyering  <meyering@lucent.com>
93293
93294         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
93295
93296 2000-05-20  Jim Meyering  <meyering@lucent.com>
93297
93298         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
93299         (jm_PREREQ): Use it.
93300
93301 2000-05-18  Jim Meyering  <meyering@lucent.com>
93302
93303         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
93304         back, too, since it may have been modified by allocate_entry.
93305         (hash_delete): Rewrite to use neither the assignment operator
93306         nor the comma operator in an if-expression.
93307
93308 2000-05-15  Paul Eggert  <eggert@twinsun.com>
93309
93310         * lib/closeout.c:
93311         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
93312         Remove; no longer needed.
93313         "quotearg.h": Add include.
93314         (file_name): Do not bother to explicitly initialize to NULL; it's less
93315         efficient on some hosts.
93316         (close_stdout_status): Remove test as to whether stdout was already
93317         closed; it breaks for the case "echo x | sort >&-".
93318         Quote file name colons.
93319         Do not assume that _("write error") lacks format strings.
93320
93321 2000-05-15  Jim Meyering  <meyering@lucent.com>
93322
93323         * lib/version-etc.c (version_etc_copyright): Update the copyright
93324         string used in all --version output.
93325
93326 2000-05-14  Jim Meyering  <meyering@lucent.com>
93327
93328         * lib/closeout.c (close_stdout_set_file_name): New function.
93329         (close_stdout_status): Use new file-scoped global.
93330         Return right away if fstat says the stdout file descriptor is invalid.
93331         * lib/closeout.h (close_stdout_set_file_name): Declare.
93332
93333 2000-05-10  Jim Meyering  <meyering@lucent.com>
93334
93335         * lib/closeout.c [default_exit_status]: New file-scoped variable.
93336         (close_stdout_set_status): New function.
93337         * lib/closeout.h (close_stdout_set_status): Declare.
93338
93339 2000-05-09  Jim Meyering  <meyering@lucent.com>
93340
93341         * m4/gettext.m4: Rename this...
93342         * m4/libintl.m4: ...to this.
93343
93344 2000-05-08  Jim Meyering  <meyering@lucent.com>
93345
93346         * lib/long-options.c: Don't include closeout.h.
93347         (parse_long_options): Don't call close_stdout for --version.
93348
93349 2000-05-06  Paul Eggert  <eggert@twinsun.com>
93350
93351         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
93352         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
93353         2.1.3 bug.  This avoids a clash when files like regex.c define
93354         _GNU_SOURCE.
93355
93356 2000-05-06  Jim Meyering  <meyering@lucent.com>
93357
93358         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
93359         (AC_REPLACE_FUNCS): Add strnlen.
93360
93361         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
93362         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
93363
93364         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
93365         AC_SEARCH_LIBS call for nanosleep.
93366         (LIB_NANOSLEEP): Set and AC_SUBST.
93367
93368 2000-05-06  Jim Meyering  <meyering@lucent.com>
93369
93370         * lib/strnlen.c: Undefine __strnlen and strnlen.
93371         [!weak_alias]: Define __strnlen to strnlen.
93372
93373         * lib/atexit.c: New file, from libiberty.
93374
93375 2000-05-06  Jim Meyering  <meyering@lucent.com>
93376
93377         * lib/closeout.c (close_stdout_status): Also check for errors on the
93378         stderr stream.
93379
93380 2000-05-05  Jim Meyering  <meyering@lucent.com>
93381
93382         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
93383         AC_SEARCH_LIBS call for clock_gettime.
93384         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
93385
93386         * m4/search-libs.m4: Update from autoconf.
93387
93388         su doesn't work on Solaris 2.6.
93389         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
93390         <shadow.h>.  Reported by Dragos Harabor.
93391
93392 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
93393
93394         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
93395         memcpy instead of xmalloc, xrealloc, path_concat.
93396         (locale_charset): Treat empty environment variables as absent.
93397         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
93398
93399 2000-05-04  Jim Meyering  <meyering@lucent.com>
93400
93401         * lib/getopt.c: Update from glibc.
93402         * lib/obstack.c: Likewise.
93403         * lib/obstack.h: Likewise.
93404         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
93405         file
93406
93407         * lib/regex.h: Likewise.
93408         * lib/strndup.c: Likewise.
93409         * lib/strnlen.c: New file, from glibc.
93410
93411 2000-05-03  Jim Meyering  <meyering@lucent.com>
93412
93413         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
93414
93415 2000-05-02  Paul Eggert  <eggert@twinsun.com>
93416
93417         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
93418         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
93419         compile-time test, rather than inspecting host and OS, to
93420         decide whether to define _LARGEFILE_SOURCE.
93421
93422 2000-05-01  Jim Meyering  <meyering@lucent.com>
93423
93424         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
93425
93426         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
93427         Based on a patch from Bruno Haible.
93428
93429 2000-05-01  Jim Meyering  <meyering@lucent.com>
93430
93431         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
93432
93433 2000-04-29  Jim Meyering  <meyering@lucent.com>
93434
93435         * lib/path-concat.c: Declare strdup only if it's not defined.
93436         * lib/canon-host.c: Likewise.
93437
93438 2000-04-28  Jim Meyering  <meyering@lucent.com>
93439
93440         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
93441         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
93442         is included first, then limits.h is included by locale.h by libintl.h.
93443         From John David Anglin.
93444
93445 2000-04-25  Jim Meyering  <meyering@lucent.com>
93446
93447         * lib/makepath.c (S_IRWXUGO): Define.
93448         (make_path): Always perform explicit chmod if MODE specifies any
93449         of the `special' permission bits.  Prompted by a bug report against
93450         install from Mate Wierdl and Joost van Baal.
93451
93452 2000-04-18  Jim Meyering  <meyering@lucent.com>
93453
93454         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
93455         (jm_PREREQ): Use it.
93456
93457 2000-04-18  Jim Meyering  <meyering@lucent.com>
93458
93459         * lib/README: New file.
93460
93461         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
93462         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
93463
93464 2000-04-17  Jim Meyering  <meyering@lucent.com>
93465
93466         Get it right :-)
93467         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
93468         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
93469         Suggestion from Akim Demaille.
93470
93471 2000-04-17  Jim Meyering  <meyering@lucent.com>
93472
93473         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
93474         the definition of it to rpl_strftime also defined-away the system's
93475         declaration.
93476
93477 2000-04-15  Jim Meyering  <meyering@lucent.com>
93478
93479         Use `C' to denote so-called `contiguous' files, the same way
93480         that tar does.
93481         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
93482         (ftypelet): Use S_ISCTG.
93483         From Michael Deutschmann.
93484
93485 2000-04-14  Jim Meyering  <meyering@lucent.com>
93486
93487         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
93488         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
93489         clobbered.
93490
93491 2000-04-14  Jim Meyering  <meyering@lucent.com>
93492
93493         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
93494
93495 2000-04-13  Jim Meyering  <meyering@lucent.com>
93496
93497         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
93498         AH_VERBATIM to insert required #ifndef into config.h.in.
93499         Suggestion from Akim Demaille.
93500
93501 2000-04-12  Jim Meyering  <meyering@lucent.com>
93502
93503         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
93504         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
93505         Christian Krackowizer.
93506
93507         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
93508         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
93509         (AC_SYS_LARGEFILE): Require.
93510         (AM_C_PROTOTYPES): Require.
93511
93512 2000-04-08  Jim Meyering  <meyering@lucent.com>
93513
93514         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
93515         names don't conflict.  Reported by Eli Zaretskii.
93516
93517 2000-04-07  Jim Meyering  <meyering@lucent.com>
93518
93519         * lib/putenv.c: Move inclusion of errno.h so it follows that of
93520         sys/types.h, to work around system header problems on AIX 3.2.5.
93521         From Bruno Haible.
93522
93523 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
93524
93525         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
93526         bug.  Deal with the different error behavior of Irix iconv.
93527
93528 2000-04-05  Paul Eggert  <eggert@twinsun.com>
93529
93530         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
93531         IRIX if the installer said otherwise.
93532
93533 2000-04-05  Jim Meyering  <meyering@lucent.com>
93534
93535         Portability tweaks required for ultrix4.3.
93536         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
93537         (jm_CHECK_DECLS): Add getutent to the list of functions.
93538         (_jm_DECL_HEADERS): Add utmpx.h.
93539         From John David Anglin.
93540
93541         * m4/strftime.m4: Back out the 2000-04-02 change.
93542         Instead of that change, simply undefine putenv in the test program.
93543
93544 2000-04-05  Jim Meyering  <meyering@lucent.com>
93545
93546         Portability tweaks required for ultrix4.3.
93547         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
93548         getutent.
93549         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
93550         * lib/canon-host.c: Declare strdup.
93551         * lib/path-concat.c: Likewise.
93552         From John David Anglin.
93553
93554 2000-04-04  Jim Meyering  <meyering@lucent.com>
93555
93556         Be more DOS 8.3-friendly.
93557         * lib/ref-add.sin: Renamed from ref-add.sed.in.
93558         * lib/ref-del.sin: Renamed from ref-del.sed.in.
93559         * lib/Makefile.am: Reflect renaming.
93560         Reported by Eli Zaretskii.
93561
93562         Use a temporary file name that won't clash with `charset.alias'
93563         in the DOS 8.3 name space.
93564         * lib/Makefile.am (charset_tmp): Define.
93565         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
93566         (uninstall-local): Likewise.
93567         Reported by Eli Zaretskii.
93568
93569 2000-04-03  Jim Meyering  <meyering@lucent.com>
93570
93571         * m4/gettext.m4: Fix typo in comment.
93572
93573         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
93574         textutils/configure.in).  Suggestion from Paul Eggert.
93575         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
93576
93577 2000-04-02  Paul Eggert  <eggert@twinsun.com>
93578
93579         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
93580         variable in the shell rather than using putenv, which isn't
93581         portable.  This avoids the configure-time inter-test dependency
93582         on the potentially-renamed putenv function.
93583
93584 2000-03-30  Paul Eggert  <eggert@twinsun.com>
93585
93586         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
93587         before checking struct stat.st_blksize, so that
93588         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
93589
93590 2000-03-29  Paul Eggert  <eggert@twinsun.com>
93591
93592         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
93593         since strftime.c uses HAVE_STRFTIME to decide whether to use
93594         the underlying strftime.
93595
93596 2000-03-29  Paul Eggert  <eggert@twinsun.com>
93597
93598         * lib/time/strftime.c (my_strftime): Make sure we call the system
93599         strftime, not ourselves, when invoking the underlying strftime.
93600
93601 2000-03-24  Jim Meyering  <meyering@lucent.com>
93602
93603         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
93604         (charset_alias): Define.
93605         (install-exec-local): Factor out common code.
93606         (uninstall-local): Split lines longer than 80.
93607         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
93608         (SUFFIXES): Define.
93609         (.sed.in.sed): New rule.  Don't redirect directly to $@.
93610         (CLEANFILES): Add ref-add.sed and ref-del.sed.
93611
93612 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
93613
93614         * lib/config.charset: Output a line containing "Packages using this
93615         file".
93616         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
93617         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
93618         ref-del.sed): New rules.
93619
93620 2000-03-17  Jim Meyering  <meyering@lucent.com>
93621
93622         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
93623         Otherwise, include <strings.h>
93624
93625 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
93626
93627         * lib/unicodeio.c (utf8_wctomb): New function.
93628         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
93629         format instead of in UCS-4 with platform dependent endianness.
93630
93631 2000-03-10  Jim Meyering  <meyering@lucent.com>
93632
93633         * m4/lib-check.m4: Look for getspnam in -lgen, too.
93634         From Marco Franzen.
93635
93636 2000-03-07  Paul Eggert  <eggert@twinsun.com>
93637
93638         * lib/savedir.c (savedir): Work even if directory size is
93639         negative; this can happen with some screwy NFS configurations.
93640
93641 2000-03-06  Jim Meyering  <meyering@lucent.com>
93642
93643         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
93644         if it's NULL (because we ran out of memory).  From Bruno Haible.
93645
93646 2000-03-05  Jim Meyering  <meyering@lucent.com>
93647
93648         * lib/localcharset.c ("path-concat.h"): Include.
93649         (get_charset_aliases): Use path_concat instead of ANSI string
93650         concatenation.
93651
93652         * lib/unicodeio.h (PARAMS): Define.
93653         Use it to guard prototype.
93654
93655 2000-03-04  Jim Meyering  <meyering@lucent.com>
93656
93657         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
93658         for lib/localcharset.c.
93659
93660 2000-03-04  Jim Meyering  <meyering@lucent.com>
93661
93662         * lib/Makefile.am (install-exec-local): Create $(libdir) before
93663         installing into it.
93664         (uninstall-local): Uncomment this rule so `make distcheck' works
93665         once again.
93666
93667         * lib/unicodeio.c (<errno.h>): Include it.
93668         (errno): Declare if not defined.
93669
93670         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
93671
93672         * lib/config.charset: New version, incorporating remarks from a linux
93673         i18n mailing list.  From Bruno Haible.
93674
93675 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
93676
93677         * m4/codeset.m4: New file.
93678         * m4/iconv.m4: New file.
93679         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
93680
93681 2000-03-03  Jim Meyering  <meyering@lucent.com>
93682
93683         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
93684
93685 2000-03-02  Jim Meyering  <meyering@lucent.com>
93686
93687         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
93688         the messages come out on separate lines.
93689
93690         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
93691         rather than jm_CHECK_DECLARATIONS.
93692         * m4/decl.m4: Remove now-unused file.
93693
93694         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
93695         geteuid.
93696
93697 2000-03-02  Jim Meyering  <meyering@lucent.com>
93698
93699         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
93700
93701 2000-03-01  Jim Meyering  <meyering@lucent.com>
93702
93703         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
93704         * lib/unicodeio.c: Likewise.
93705
93706 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
93707
93708         * lib/config.charset: New file.
93709         * lib/localcharset.c: New file.
93710         * lib/unicodeio.h, lib/unicodeio.c: New files.
93711         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
93712         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
93713         (noinst_HEADERS): Add unicodeio.h.
93714         (all-local, install-exec-local, charset.alias): New targets.
93715
93716 2000-02-28  Paul Eggert  <eggert@twinsun.com>
93717
93718         * lib/quotearg.c (ALERT_CHAR): New macro.
93719         (quotearg_buffer_restyled): Use it.
93720
93721 2000-02-27  Jim Meyering  <meyering@lucent.com>
93722
93723         * m4/check-decl.m4: Add getenv to the list.
93724
93725 2000-02-27  Jim Meyering  <meyering@lucent.com>
93726
93727         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
93728         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
93729
93730         * lib/backupfile.c: Guard inclusion of stdlib.h with
93731         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
93732         Declare malloc if needed.
93733
93734         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
93735         `#ifndef HAVE_DECL..'
93736         now that autoconf always defines the HAVE_DECL_ symbols.
93737         * lib/human.c: Likewise.
93738         * lib/same.c: Likewise.
93739         * lib/strtoumax.c: Likewise.
93740
93741         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
93742         declaration check was not run.
93743         * lib/hash.c: Likewise.
93744         * lib/human.c: Likewise.
93745         * lib/same.c: Likewise.
93746         * lib/strtoumax.c: Likewise.
93747
93748         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
93749         `.', then first look up the entire `.'-containing string as a login
93750         name.
93751
93752 2000-02-23  Jim Meyering  <meyering@lucent.com>
93753
93754         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
93755         in place of my hack.
93756
93757 2000-02-18  Paul Eggert  <eggert@twinsun.com>
93758
93759         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
93760         (textint): New typedef.
93761         (parser_control): Member year changed from int to textint.
93762         All uses changed.
93763         (YYSTYPE): Removed; replaced by %union with int and textint members.
93764         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
93765         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
93766         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
93767         (tSNUMBER, tUNUMBER): Now of type <textintval>.
93768         (date, number, to_year): Use width of number in digits, not its value,
93769         to determine whether it's a 2-digit year, or a 2-digit time.
93770         (yylex): Store number of digits of numeric tokens.
93771         Reported by John Kendall.
93772
93773         (parser_control): Changed from struct parser_control to typedef (for
93774         consistency).  All uses changed.
93775
93776         (tID): Removed; not used.
93777         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
93778
93779 2000-02-14  Paul Eggert  <eggert@twinsun.com>
93780
93781         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
93782         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
93783
93784 2000-02-12  Jim Meyering  <meyering@lucent.com>
93785
93786         * lib/userspec.c (ISDIGIT): Define it.
93787         (isdigit): Remove definition.
93788         (is_number): Use ISDIGIT, not isdigit.
93789         <libintl.h>: Include.
93790         (_ and N_): Define.
93791         (parse_user_spec): Mark translatable strings.
93792
93793 2000-02-10  Jim Meyering  <meyering@lucent.com>
93794
93795         With these changes, nanosleep.[ch] are finally enough like the other
93796         lib/* replacement files to compile on a few more losing systems.
93797
93798         * lib/nanosleep.h: Don't include config.h.
93799         Remove prototype from declaration of nanosleep.
93800         (PARAMS): Remove now-unneeded definition.
93801         * lib/nanosleep.c: #undef nanosleep.
93802         (rpl_nanosleep): Rename from nanosleep.
93803
93804 2000-02-10  Jim Meyering  <meyering@lucent.com>
93805
93806         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
93807         gnu_nanosleep to rpl_nanosleep.
93808
93809 2000-02-09  Jim Meyering  <meyering@lucent.com>
93810
93811         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
93812         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
93813
93814 2000-02-08  Akim Demaille  <akim@epita.fr>
93815
93816         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
93817         `[' and `]' and remove uses of `changequote'.
93818         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
93819         (AC_SYS_LARGEFILE): Likewise.
93820         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
93821         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
93822         of changequote.
93823         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
93824         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
93825         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
93826         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
93827
93828 2000-02-05  Jim Meyering  <meyering@lucent.com>
93829
93830         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
93831         Remove explicit use of AC_HEADER_TIME.  It is required by
93832         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
93833         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
93834         in autoconf whereby the expansion of the latter ended up preceding
93835         the expansion of its prerequisite, AC_HEADER_TIME.
93836         Reported by Volker Borchert.
93837
93838 2000-02-03  Jim Meyering  <meyering@lucent.com>
93839
93840         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
93841
93842 2000-02-03  Jim Meyering  <meyering@lucent.com>
93843
93844         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
93845         rather than with `#if HAVE_UTMPNAME'.
93846
93847 2000-02-02  Jim Meyering  <meyering@lucent.com>
93848
93849         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
93850         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
93851         Reported by Eli Zaretskii.
93852
93853 2000-02-01  Jim Meyering  <meyering@lucent.com>
93854
93855         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
93856
93857 2000-01-31  Jim Meyering  <meyering@lucent.com>
93858
93859         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
93860         functions.  Add the time.h and sys/time.h headers along with the
93861         AC_REQUIRE'ment of AC_HEADER_TIME.
93862
93863 2000-01-31  Jim Meyering  <meyering@lucent.com>
93864
93865         * lib/nanosleep.h (nanosleep): Guard declaration with
93866         `#if ! HAVE_DECL_NANOSLEEP'.
93867         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
93868         the declaration in that vendor's sys/timers.h.
93869         Reported by Christian Krackowizer.
93870
93871         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
93872         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
93873         (ISPRINT): Likewise.
93874         Reported by Tom Tromey.
93875
93876 2000-01-30  Jim Meyering  <meyering@lucent.com>
93877
93878         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
93879
93880         * m4/prereq.m4 (utmp_includes): Define.
93881         Check for ut_user and ut_name members in both struct utmpx
93882         and struct utmp.
93883
93884 2000-01-30  Jim Meyering  <meyering@lucent.com>
93885
93886         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
93887         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
93888         header files where only utmpx.ut_user is declared.
93889
93890         * lib/readutmp.h (UT_USER): Define.
93891
93892 2000-01-29  Jim Meyering  <meyering@lucent.com>
93893
93894         * m4/lib-check.m4: New file containing library-related checks from
93895         fileutils and sh-utils (textutils had none).
93896
93897 2000-01-28  Jim Meyering  <meyering@lucent.com>
93898
93899         * m4/perl.m4: Change format of warning message to look more like that
93900         from the missing script.  Suggestion from François Pinard.
93901
93902 2000-01-25  Jim Meyering  <meyering@lucent.com>
93903
93904         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
93905         well as time.h in the compile check.
93906         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
93907         Fix typo in cross-compiling case: s/yes/no/.
93908
93909 2000-01-23  Jim Meyering  <meyering@lucent.com>
93910
93911         * m4/jm-macros.m4: Move df-related tests here from
93912         fileutils/configure.in
93913
93914         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
93915         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
93916
93917         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
93918         s/space/ac_fsusage_space/.
93919         (jm_FILE_SYSTEM_USAGE): Take two parameters.
93920
93921         * m4/ftruncate.m4: New file (derived from part of
93922         fileutils/configure.in).
93923         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
93924         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
93925
93926         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
93927         AC_SUBST these here, rather than just in sh-util/configure.in, so
93928         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
93929         all the same.
93930         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
93931         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
93932         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
93933         (AC_SUBST(POW_LIBM)): Likewise.
93934         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
93935
93936 2000-01-23  Jim Meyering  <meyering@lucent.com>
93937
93938         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
93939         obstack.c.
93940
93941 2000-01-22  Jim Meyering  <meyering@lucent.com>
93942
93943         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
93944
93945         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
93946
93947         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
93948         configure.in
93949         (AC_CHECK_HEADERS): Likewise for sh-utils.
93950         (AC_CHECK_HEADERS): Likewise for textutils.
93951         Merge the three lists of headers.
93952
93953         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
93954         from fileutils' configure.in.
93955
93956         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
93957         code. Moved tests into their own function (_jm_DECL_HEADERS) in
93958         check-decl.m4.
93959
93960         * m4/check-decl.m4: Use #if rather than #ifdef.
93961         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
93962         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
93963         (_jm_DECL_HEADERS): Define new function.
93964         (jm_CHECK_DECLARATIONS): Require it.
93965
93966 2000-01-22  Jim Meyering  <meyering@lucent.com>
93967
93968         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
93969         [! HAVE_DECL_STRTOULL]: Declare strtoull.
93970         Required for some AIX systems.  Reported by Christian Krackowizer.
93971         [TESTING] (main): New function.
93972
93973         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
93974         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
93975         letters.
93976
93977         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
93978         iswprint.
93979
93980         * lib/strverscmp.c (ISDIGIT): Define.
93981         (strverscmp): Use ISDIGIT, not isdigit.
93982
93983 2000-01-19  Jim Meyering  <meyering@lucent.com>
93984
93985         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
93986         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
93987         defines `struct timespec' in <sys/time.h>
93988
93989         * m4/c-bs-a.m4: Remove uses of changequote altogether.
93990         Thanks to Akim for explaining.
93991
93992 2000-01-17  Paul Eggert  <eggert@twinsun.com>
93993
93994         * lib/nanosleep.c (nanosleep):
93995         Don't use SA_INTERRUPT to decide whether to call sigaction, as
93996         POSIX.1 doesn't require SA_INTERRUPT and some systems
93997         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
93998         it's been part of POSIX.1 since day 1 (in 1988).
93999
94000 2000-01-17  Jim Meyering  <meyering@lucent.com>
94001
94002         * lib/interlock: Remove unused file.  Reported by François Pinard.
94003
94004 2000-01-16  Paul Eggert  <eggert@twinsun.com>
94005
94006         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
94007         alert, backslash, formfeed, and vertical tab unnecessarily in
94008         shell quoting style.
94009
94010 2000-01-16  Jim Meyering  <meyering@lucent.com>
94011
94012         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
94013         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
94014         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
94015         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
94016
94017 2000-01-16  Jim Meyering  <meyering@lucent.com>
94018
94019         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
94020         because the latter didn't work.
94021
94022 2000-01-15  Jim Meyering  <meyering@lucent.com>
94023
94024         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
94025         (AC_REPLACE_FUNCS): Add memcpy and memset.
94026         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
94027         Add strpbrk.
94028         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
94029
94030 2000-01-12  Jim Meyering  <meyering@lucent.com>
94031
94032         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
94033         (jm_PREREQ): Use it.
94034         (jm_PREREQ_READUTMP): New macro.
94035         (jm_PREREQ): Use it.
94036
94037 2000-01-11  Paul Eggert  <eggert@twinsun.com>
94038
94039         Quote multibyte characters correctly.
94040         * m4/c-bs-a.m4: New file.
94041         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
94042         (jm_PREREQ): Use it.
94043
94044 2000-01-11  Paul Eggert  <eggert@twinsun.com>
94045
94046         * m4/uintmax_t.m4: Port to autoconf 2.13.
94047
94048 2000-01-08  Jim Meyering  <meyering@ascend.com>
94049
94050         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
94051         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
94052
94053 2000-01-04  Jim Meyering  <meyering@ascend.com>
94054
94055         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
94056         jm_STRUCT_DIRENT_D_TYPE.
94057         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
94058         jm_STRUCT_DIRENT_D_INO.
94059         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
94060         jm_STRUCT_UTIMBUF.
94061         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
94062         renamings.
94063         * m4/utime.m4: Likewise.
94064
94065         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
94066         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
94067
94068 2000-01-03  Paul Eggert  <eggert@twinsun.com>
94069
94070         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
94071         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
94072
94073 2000-01-02  Jim Meyering  <meyering@ascend.com>
94074
94075         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
94076         remember if this is necessary.
94077
94078 1999-12-26  Jim Meyering  <meyering@ascend.com>
94079
94080         * m4/jm-macros.m4: Use it here.
94081         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
94082
94083 1999-12-23  Jim Meyering  <meyering@ascend.com>
94084
94085         * m4/jm-macros.m4: Check for clock_gettime (moved from
94086         fileutils/configure.in)
94087         Check for gettimeofday.
94088
94089 1999-12-20  Jim Meyering  <meyering@ascend.com>
94090
94091         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
94092         autoconf-2.14a-1999-12-20.
94093
94094 1999-12-19  Jim Meyering  <meyering@ascend.com>
94095
94096         * m4/lstat-slash.m4: New file.
94097         * m4/jm-macros.m4: Use the new macro:
94098         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94099
94100 1999-12-07  Jim Meyering  <meyering@ascend.com>
94101
94102         * m4/perl.m4: Require that File::Compare be available, too.
94103         Too many systems seem to lack it.
94104
94105         * m4/strftime.m4: Add checks for most of the cpp macros tested in
94106         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
94107
94108 1999-11-18  Paul Eggert  <eggert@twinsun.com>
94109
94110         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
94111         problem with the QNX 4.25 shell, which doesn't propagate exit
94112         status of failed commands inside shell assignments.
94113
94114 1999-11-17  Jim Meyering  <meyering@ascend.com>
94115
94116         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
94117
94118 1999-11-07  Jim Meyering  <meyering@ascend.com>
94119
94120         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
94121
94122 1999-11-06  Jim Meyering  <meyering@ascend.com>
94123
94124         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
94125         * m4/jm-macros.m4 (jm_MACROS): Use it here.
94126
94127 1999-11-05  Jim Meyering  <meyering@ascend.com>
94128
94129         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
94130         configure.in of textutils, fileutils, and sh-utils into this one
94131         (shared between those packages) file.
94132         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
94133         AC_STRUCT_ST_BLKSIZE.
94134
94135 1999-11-03  Jim Meyering  <meyering@ascend.com>
94136
94137         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
94138         of AC_CHECK_TYPE checks includes unistd.h.
94139         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
94140         Suggestion from Akim Demaille.
94141
94142 1999-10-30  Jim Meyering  <meyering@ascend.com>
94143
94144         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
94145         m4-quoted string.
94146         * m4/ls-mntd-fs.m4: Likewise.
94147         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
94148         * m4/jm-winsz1.m4: Likewise.
94149
94150         * m4/const.m4: Remove file, since the fix made it into the experimental
94151         version of autoconf.
94152         * m4/mktime.m4: Likewise.
94153
94154         * m4/check-type.m4: Remove file, now that the latest version of
94155         AC_CHECK_TYPE takes a third arg to specify additional #includes.
94156
94157         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
94158         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
94159         AC_CHECK_TYPE.
94160
94161 1999-10-04  Jim Meyering  <meyering@ascend.com>
94162
94163         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
94164
94165 1999-09-22  Paul Eggert  <eggert@twinsun.com>
94166
94167         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
94168         2.95.1 bug with HP-UX 10.20.
94169
94170 1999-09-17  Jim Meyering  <meyering@ascend.com>
94171
94172         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
94173         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
94174         due to missing strdup (against sh-utils-2.0).
94175
94176 1999-08-29  Jim Meyering  <meyering@ascend.com>
94177
94178         * m4/jm-macros.m4: Require jm_BISON.
94179         * m4/bison.m4: New file.
94180
94181 1999-08-17  Paul Eggert  <eggert@twinsun.com>
94182
94183         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
94184         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
94185
94186 1999-08-05  Jim Meyering  <meyering@ascend.com>
94187
94188         * m4/getline.m4: Rename test file from conftestdata to conftest.data
94189         to avoid conflicts with `conftest' on 8+3 filesystems.
94190         Suggestion from Eli Zaretskii.
94191
94192 1999-08-04  Jim Meyering  <meyering@ascend.com>
94193
94194         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
94195         fileutils and sh-utils (textutils's getline test was inadequate).
94196         (AM_FUNC_GETLINE): Run this test.
94197         (AC_CHECK_FUNCS): Check for getdelim.
94198         Reported by Bob Proulx.
94199
94200 1999-08-02  Jim Meyering  <meyering@ascend.com>
94201
94202         * m4/jm-macros.m4: Add a comment.
94203
94204 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94205
94206         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
94207         <inttypes.h> defines strtoumax as a macro (and not as a
94208         function).
94209
94210 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94211
94212         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
94213         that we can shift, multiply and divide unsigned long long
94214         values; Ultrix cc can't do it.
94215
94216 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94217
94218         * m4/mktime.m4: New file, which is a preview of what should appear
94219         in the next public autoconf release.
94220
94221 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94222
94223         * m4/lfs.m4: Remove this file.
94224         * m4/largefile.m4: New file.  It contains the old contents of
94225         lfs.m4, except that all names with prefix AC_LFS have been
94226         changed to use the prefix AC_SYS_LARGEFILE instead, to be
94227         compatible with future autoconf versions.  Also, some minor m4
94228         quoting problems have been fixed.
94229
94230 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94231
94232         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
94233         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
94234         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
94235         and simplify the shell code.
94236
94237 1999-08-01  Jim Meyering  <meyering@ascend.com>
94238
94239         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
94240         m4.
94241
94242 1999-07-20  Jim Meyering  <meyering@ascend.com>
94243
94244         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
94245
94246 1999-07-15  Jim Meyering  <meyering@ascend.com>
94247
94248         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
94249
94250 1999-05-22  Jim Meyering  <meyering@ascend.com>
94251
94252         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
94253
94254 1999-05-20  Jim Meyering  <meyering@ascend.com>
94255
94256         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
94257         Add a colon after each `then' in case $4 is empty.
94258
94259 1999-05-16  Jim Meyering  <meyering@ascend.com>
94260
94261         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
94262
94263 1999-05-10  Jim Meyering  <meyering@ascend.com>
94264
94265         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
94266
94267         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
94268         AC_FUNC_MKTIME.
94269
94270 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
94271
94272         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
94273
94274 1999-05-04  Paul Eggert  <eggert@twinsun.com>
94275
94276         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
94277         not CPPFLAGS, so that linking works correctly in IRIX.
94278
94279 1999-04-30  Paul Eggert  <eggert@twinsun.com>
94280
94281         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
94282
94283 1999-04-20  Paul Eggert  <eggert@twinsun.com>
94284
94285         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
94286         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
94287         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
94288         jm_AC_TYPE_UNSIGNED_LONG_LONG.
94289         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
94290
94291         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
94292
94293 1999-04-20  Jim Meyering  <meyering@ascend.com>
94294
94295         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
94296         AC_REPLACE xstroull if necessary.  From Paul Eggert.
94297         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
94298
94299 1999-04-18  Jim Meyering  <meyering@ascend.com>
94300
94301         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
94302         * m4/jm-macros.m4: Use it.
94303
94304 1999-04-06  Jim Meyering  <meyering@ascend.com>
94305
94306         * m4/strftime.m4: Remove test for %f.
94307
94308 1999-03-29  Jim Meyering  <meyering@ascend.com>
94309
94310         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
94311         superset of the AC_TYPE_* checks in the textutils, fileutils,
94312         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
94313         AC_TYPE_PID_T.
94314
94315 1999-03-28  Jim Meyering  <meyering@ascend.com>
94316
94317         * m4/jm-macros.m4: Define GNU_PACKAGE here.
94318         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
94319         replaced e.g., in the *.sh files of the sh-utils.
94320
94321 1999-03-20  Jim Meyering  <meyering@ascend.com>
94322
94323         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
94324         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
94325         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
94326
94327 1999-03-19  Jim Meyering  <meyering@ascend.com>
94328
94329         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
94330
94331 1999-03-12  Jim Meyering  <meyering@ascend.com>
94332
94333         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
94334
94335 1999-03-07  Jim Meyering  <meyering@ascend.com>
94336
94337         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
94338         declared.
94339
94340 1999-02-17  Jim Meyering  <meyering@ascend.com>
94341
94342         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
94343         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
94344
94345 1999-02-07  Jim Meyering  <meyering@ascend.com>
94346
94347         * m4/group-member.m4: New file -- extracted from sh-utils'
94348         configure.in.
94349
94350         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
94351         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
94352
94353 1999-02-06  Jim Meyering  <meyering@ascend.com>
94354
94355         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
94356         * m4/fnmatch.m4: Likewise.
94357         * m4/getgroups.m4: Likewise.
94358         * m4/lstat.m4: Likewise.
94359         * m4/malloc.m4: Likewise.
94360         * m4/putenv.m4: Likewise.
94361         * m4/realloc.m4: Likewise.
94362         * m4/regex.m4: Likewise.
94363         * m4/stat.m4: Likewise.
94364         * m4/strftime.m4: Likewise.
94365         Suggestion from Alain Magloire.
94366
94367         * m4/chown.m4: Use `.$ac_objext', not `.o'.
94368         * m4/fnmatch.m4: Likewise.
94369         * m4/getgroups.m4: Likewise.
94370         * m4/getline.m4: Likewise.
94371         * m4/lstat.m4: Likewise.
94372         * m4/malloc.m4: Likewise.
94373         * m4/memcmp.m4: Likewise.
94374         * m4/putenv.m4: Likewise.
94375         * m4/realloc.m4: Likewise.
94376         * m4/regex.m4: Likewise.
94377         * m4/stat.m4: Likewise.
94378         * m4/strftime.m4: Likewise.
94379         Suggestion from Alain Magloire.
94380
94381         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
94382         an argument.
94383
94384         * m4/regex.m4: Add a run-time Test for proper operation of
94385         re_compile_pattern.
94386
94387 1999-01-31  Jim Meyering  <meyering@ascend.com>
94388
94389         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
94390
94391 1999-01-30  Jim Meyering  <meyering@ascend.com>
94392
94393         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
94394
94395         * m4/jm-mktime.m4: Make this a wrapper around the official
94396         AM_FUNC_MKTIME rather than my private copy, now that the official one
94397         is up to date.
94398         * m4/mktime.m4: Remove file.
94399
94400         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
94401         * m4/uptime.m4: Likewise.
94402         * m4/uintmax_t.m4: Likewise.
94403
94404 1999-01-28  Jim Meyering  <meyering@ascend.com>
94405
94406         * m4/jm-macros.m4: Use jm_AFS.
94407         * m4/afs.m4: New file (from fileutils' configure.in).
94408
94409         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
94410         * m4/chown.m4: Likewise.
94411         * m4/d-ino.m4: Likewise.
94412         * m4/d-type.m4: Likewise.
94413         * m4/fnmatch.m4: Likewise.
94414         * m4/getgroups.m4: Likewise.
94415         * m4/gettext.m4: Likewise.
94416         * m4/jm-mktime.m4: Likewise.
94417         * m4/jm-winsz2.m4: Likewise.
94418         * m4/lcmessage.m4: Likewise.
94419         * m4/ls-mntd-fs.m4: Likewise.
94420         * m4/malloc.m4: Likewise.
94421         * m4/memcmp.m4: Likewise.
94422         * m4/putenv.m4: Likewise.
94423         * m4/realloc.m4: Likewise.
94424         * m4/st_mtim.m4: Likewise.
94425         * m4/strftime.m4: Likewise.
94426
94427 1999-01-16  Jim Meyering  <meyering@ascend.com>
94428
94429         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
94430         (ARGMATCH_DIE_DECL): Define.
94431
94432 1999-01-12  Jim Meyering  <meyering@ascend.com>
94433
94434         * m4/Makefile.am.in: Rewrite to avoid using fmt.
94435         Reported by Lars Hecking.
94436
94437 1999-01-10  Jim Meyering  <meyering@ascend.com>
94438
94439         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
94440         gross kludge.
94441         * m4/inttypes_h.m4: Likewise.
94442         * m4/lstat.m4: Likewise.
94443         * m4/malloc.m4: Likewise.
94444         * m4/readdir.m4: Likewise.
94445         * m4/realloc.m4: Likewise.
94446         * m4/st_dm_mode.m4: Likewise.
94447         * m4/stat.m4: Likewise.
94448         * m4/utimbuf.m4: Likewise.
94449         * m4/utimes.m4: Likewise.
94450
94451         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
94452         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
94453         comments in config.h.in are meaningful.
94454
94455         * m4/jm-macros.m4: Require autoconf-2.13 here.
94456
94457         * m4/regex.m4: By default, don't use the included regex.c on systems
94458         with glibc 2.  Suggestion from Uli Drepper.
94459
94460 1999-01-02  Jim Meyering  <meyering@ascend.com>
94461
94462         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
94463
94464 1998-12-18  Jim Meyering  <meyering@ascend.com>
94465
94466         * m4/Makefile.am.in (Makefile.am): Simplify rule.
94467         Based on a suggestion from Lars Hecking.
94468
94469 1998-11-16  Paul Eggert  <eggert@twinsun.com>
94470
94471         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
94472
94473 1998-11-16  Jim Meyering  <meyering@ascend.com>
94474
94475         * m4/lfs.m4: Double-quote the `uname...` expression.
94476
94477 1998-11-14  Jim Meyering  <meyering@ascend.com>
94478
94479         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
94480         * m4/stat.m4: Likewise.
94481
94482 1998-11-03  Jim Meyering  <meyering@ascend.com>
94483
94484         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
94485         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
94486
94487 1998-10-18  Jim Meyering  <meyering@ascend.com>
94488
94489         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
94490
94491 1998-10-17  Jim Meyering  <meyering@ascend.com>
94492
94493         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
94494         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
94495         calls for those previously hard-coded headers.  Instead, take a new
94496         parameter.
94497         (jm_CHECK_DECLARATIONS): Reflect interface change.
94498         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
94499         (jm_CHECK_DECL_LOCALTIME_R): New macro.
94500
94501         * m4/mktime.m4: Test for spring-forward gap before long-running test.
94502
94503 1998-10-14  Jim Meyering  <meyering@ascend.com>
94504
94505         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
94506         instead of "TZ=America/Vancouver".  From Paul Eggert.
94507
94508 1998-10-11  Jim Meyering  <meyering@ascend.com>
94509
94510         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
94511         This adds a test for a recently added compatibility fix for mktime.c.
94512         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
94513
94514 1998-09-27  Jim Meyering  <meyering@ascend.com>
94515
94516         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
94517
94518         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
94519         ../configure.in, including a change from Gordon Matzigkeit to allow
94520         cross-compiling for the Hurd.
94521
94522         * m4/glibc.m4: New file/macro to test for the GNU C Library
94523         versions 1 and 2.  From Gordon Matzigkeit.
94524         Indent.
94525
94526 1998-09-21  Jim Meyering  <meyering@ascend.com>
94527
94528         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
94529
94530 1998-08-18  Paul Eggert  <eggert@twinsun.com>
94531
94532         Port nanosecond-resolution times to UnixWare 2.1.2 and
94533         pedantic Solaris 2.6.
94534
94535         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
94536         AC_STRUCT_ST_MTIM.
94537         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
94538         Generate name of ns member, instead of just 1 or undef.
94539         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
94540
94541 1998-08-15  Jim Meyering  <meyering@ascend.com>
94542
94543         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
94544         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
94545         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
94546         instead of jm_TYPE_SSIZE_T.
94547
94548 1998-08-12  Jim Meyering  <meyering@ascend.com>
94549
94550         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
94551
94552 1998-08-02  Jim Meyering  <meyering@ascend.com>
94553
94554         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
94555         in acconfig.h manually.
94556
94557 1998-07-31  Paul Eggert  <eggert@twinsun.com>
94558
94559         * m4/st_mtim.m4: New file.
94560
94561 1998-07-28  Jim Meyering  <meyering@ascend.com>
94562
94563         * m4/utimes.m4: Undef stat.
94564
94565 1998-07-25  Jim Meyering  <meyering@ascend.com>
94566
94567         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
94568         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
94569
94570 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
94571
94572         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
94573         uid and gid actually remain unchanged.
94574
94575 1998-07-07  Jim Meyering  <meyering@ascend.com>
94576
94577         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
94578
94579 1998-07-04  Jim Meyering  <meyering@ascend.com>
94580
94581         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
94582         to prove that this macro can be used in packages without regex.c.
94583
94584 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
94585
94586         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
94587         is to be used.
94588
94589 1998-07-03  Jim Meyering  <meyering@ascend.com>
94590
94591         * m4/gettext.m4: Add -lintl if it's found to be necessary.
94592
94593         * m4/gettext.m4: New file -- from gettext-0.10.35.
94594         * m4/lcmessage.m4: Likewise.
94595         * m4/progtest.m4: Likewise.
94596
94597         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
94598         * m4/jm-macros.m4: Require the new macro.
94599
94600 1998-06-29  Jim Meyering  <meyering@ascend.com>
94601
94602         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
94603         for the definition of NGROUPS (used in a system header included
94604         by sys/mount.h).
94605
94606 1998-06-28  Jim Meyering  <meyering@ascend.com>
94607
94608         * m4/ls-mntd-fs.m4: New file.
94609         * m4/fstypename.m4: New file.
94610
94611         * m4/jm-macros.m4: Require the new macro.
94612         * m4/jm-glibc-io.m4: New file.
94613
94614 1998-05-19  Jim Meyering  <meyering@ascend.com>
94615
94616         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
94617         * m4/lchown.m4: New file.
94618
94619         * m4/Makefile.am.in: New file.
94620         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
94621
94622 1998-05-14  Jim Meyering  <meyering@ascend.com>
94623
94624         * m4/Makefile.am (EXTRA_DIST): Add them.
94625         * m4/jm-macros.m4: New file.
94626         * m4/utimbuf.m4: New file.
94627
94628 1998-05-12  Jim Meyering  <meyering@ascend.com>
94629
94630         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
94631
94632 1998-05-11  Jim Meyering  <meyering@ascend.com>
94633
94634         * m4/isc-posix.m4: New file.
94635
94636 1998-05-10  Jim Meyering  <meyering@ascend.com>
94637
94638         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
94639
94640 1998-05-09  Jim Meyering  <meyering@ascend.com>
94641
94642         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
94643         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
94644         with automake.
94645
94646         * m4/ssize_t.m4: New file.
94647         * m4/mktime.m4: Remove file -- the new automake has this now.
94648
94649 1998-04-26  Jim Meyering  <meyering@ascend.com>
94650
94651         * m4/assert.m4: New file.
94652         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
94653
94654 1998-04-05  Jim Meyering  <meyering@ascend.com>
94655
94656         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
94657         (jm_PREREQ): Use it here.
94658
94659 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
94660
94661         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
94662         in acconfig.h.
94663
94664 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
94665
94666         * m4/prereq.m4: New file.
94667         * m4/error.m4: New file.
94668         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
94669
94670 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
94671
94672         * m4/getline.m4: Don't set am_cv_func_working_getline before the
94673         cache-check for the same variable -- that defeated the purpose of
94674         the test; the test program was never run.  This was a problem only
94675         on systems with losing getline functions -- HP-UX 10.20 is one.
94676         Reported by Bjorn Helgaas.
94677
94678 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
94679
94680         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
94681
94682 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
94683
94684         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
94685
94686         * m4/const.m4: New file.  Use an initializer in this declaration
94687         typedef int charset[2]; const charset x;
94688         Reported by Bob Glickstein.
94689
94690 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
94691
94692         * m4/chown.m4: Fix reversed types on -1 args to chown.
94693         From Kaveh Ghazi.
94694
94695 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
94696
94697         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
94698         Add lseek and memchr.
94699
94700         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
94701         T.E.Dickey <dickey@clark.net> said that some older preprocessors
94702         have a 20-character limit on names.
94703
94704 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
94705
94706         * m4/inttypes_h.m4: New file.
94707         * m4/uintmax_t.m4: New file.
94708         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
94709
94710
94711         -----
94712
94713         Local Variables:
94714         coding: utf-8
94715         End:
94716
94717         Copyright (C) 1997-2012 Free Software Foundation, Inc.
94718
94719         Copying and distribution of this file, with or without
94720         modification, are permitted provided the copyright notice
94721         and this notice are preserved.